Ignore:
Timestamp:
Mar 24, 2010, 4:26:21 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
521e29
Parents:
91379c
Message:

Added methods that allow bookkeeping of actions for undo/redo methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/ActionSequence.hpp

    r91379c r0012e6  
    1212
    1313class Action;
     14class ActionState;
    1415
    1516/**
     
    1920{
    2021public:
     22  typedef std::deque<Action*> actionSet;
     23  typedef std::deque<ActionState*> stateSet;
     24
    2125  ActionSequence();
    2226  virtual ~ActionSequence();
     
    2529  Action* removeLastAction();
    2630
    27   void callAll();
    28   void undoAll();
     31  stateSet callAll();
     32  stateSet undoAll(stateSet);
     33  stateSet redoAll(stateSet);
    2934
    3035  bool canUndo();
     36  bool shouldUndo();
    3137
    3238private:
    33   std::deque<Action*> actions;
     39  actionSet actions;
    3440};
    3541
Note: See TracChangeset for help on using the changeset viewer.