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/ErrorAction.hpp

    r91379c r0012e6  
    1818  virtual ~ErrorAction();
    1919
    20   virtual void call();
    21   virtual void undo();
    2220  virtual bool canUndo();
     21  virtual bool shouldUndo();
    2322
    2423private:
     24
     25  virtual ActionState* performCall();
     26  virtual ActionState* performUndo(ActionState*);
     27  virtual ActionState* performRedo(ActionState*);
     28
    2529  std::string errorMsg;
    2630};
Note: See TracChangeset for help on using the changeset viewer.