チェンジセット 3486

差分発生行の前後
無視リスト:
コミット日時:
2010/03/06 18:07:27 (3 年前)
コミッタ:
hkrn
ログメッセージ:

added CommandEvent?.COMMITTED and UndoEvent?.PUSH, UndoEvent#undoCount?, UndoEvent#redoCount?

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/events/CommandEvent.as

    r3438 r3486  
    1010         
    1111        public static const UNREGISTERED:String = PREFIX + "unregistered"; 
     12         
     13        public static const COMMITTED:String = PREFIX + "committed"; 
    1214         
    1315        public function CommandEvent(type:String, command:ICommand) 
  • as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/events/UndoEvent.as

    r3438 r3486  
    77        public static const REDO:String = PREFIX + "redo"; 
    88         
    9         public function UndoEvent(type:String) 
     9        public static const PUSH:String = PREFIX + "push"; 
     10         
     11        public function UndoEvent(type:String, undoCount:int, redoCount:int) 
    1012        { 
     13            m_undoCount = undoCount; 
     14            m_redoCount = redoCount; 
    1115            super(type, false, false); 
    1216        } 
     17         
     18        public function get undoCount():int 
     19        { 
     20            return m_undoCount; 
     21        } 
     22         
     23        public function get redoCount():int 
     24        { 
     25            return m_redoCount; 
     26        } 
     27         
     28        private var m_undoCount:int; 
     29        private var m_redoCount:int; 
    1330    } 
    1431}