- コミット日時:
- 2008/08/27 18:22:19 (5 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint/controls/GPLayerWindowControl.mxml
r1161 r1178 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 3 width="144" height=" 230"3 width="144" height="310" 4 4 creationComplete="init()" 5 5 > 6 6 <mx:Script source="GPLayerWindowControlScript.as"> 7 7 </mx:Script> 8 <mx:DataGrid id="layerDataGrid" x="0" y="57" width="124" height="1 05" editable="true"8 <mx:DataGrid id="layerDataGrid" x="0" y="57" width="124" height="185" editable="true" 9 9 dragMoveEnabled="true" 10 10 dragEnabled="true" dropEnabled="true"> … … 16 16 </mx:columns> 17 17 </mx:DataGrid> 18 <mx:Button x=" 5" y="165" id="newLayerButton" label="新" width="22" paddingLeft="0" paddingRight="0"/>19 <mx:Button x="3 5" y="165" id="copyLayerButton" label="複" width="22" paddingLeft="0" paddingRight="0"/>20 <mx:Button x="6 5" y="165" id="deleteLayerButton" label="削" width="22" paddingLeft="0" paddingRight="0"/>21 <mx:Button x="9 5" y="165" id="mergeLayerButton" label="統" width="22" paddingLeft="0" paddingRight="0"/>18 <mx:Button x="6" y="245" id="newLayerButton" label="新" width="22" paddingLeft="0" paddingRight="0"/> 19 <mx:Button x="36" y="245" id="copyLayerButton" label="複" width="22" paddingLeft="0" paddingRight="0"/> 20 <mx:Button x="66" y="245" id="deleteLayerButton" label="削" width="22" paddingLeft="0" paddingRight="0"/> 21 <mx:Button x="96" y="245" id="mergeLayerButton" label="統" width="22" paddingLeft="0" paddingRight="0"/> 22 22 <mx:ComboBox id="blendModeComboBox" x="0" y="0" width="124"></mx:ComboBox> 23 23 <mx:Label x="3" y="32" text="透"/> as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint/entities/GPLogger.as
r1177 r1178 8 8 9 9 import mx.controls.Alert; 10 import mx.utils.Base64Decoder; 11 import mx.utils.Base64Encoder; 10 12 11 13 public class GPLogger … … 582 584 } 583 585 } 586 public function get password():String { 587 var pos:uint = log.position; 588 var e:Base64Encoder = new Base64Encoder(); 589 log.compress(); 590 e.encodeBytes(log); 591 log.uncompress(); 592 log.position = pos; 593 return e.flush(); 594 } 595 public static function deserialize(s:String):GPLogger { 596 var e:Base64Decoder = new Base64Decoder(); 597 e.decode(s); 598 var b:ByteArray = e.toByteArray(); 599 b.uncompress(); 600 return new GPLogger(b); 601 } 602 584 603 public function getCompressedLog():ByteArray { 585 604 compress();

