Changeset 0012e6 for molecuilder/src/Actions/MethodAction.hpp
- Timestamp:
- Mar 24, 2010, 4:26:21 PM (15 years ago)
- Children:
- 521e29
- Parents:
- 91379c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Actions/MethodAction.hpp
r91379c r0012e6 22 22 MethodAction(std::string _name,boost::function<void()> _executeMethod,bool _doRegister=true); 23 23 virtual ~MethodAction(); 24 virtual bool canUndo(); 25 virtual bool shouldUndo(); 24 26 25 virtual void call(); 26 virtual void undo(); 27 virtual bool canUndo(); 27 private: 28 virtual ActionState* performCall(); 29 virtual ActionState* performUndo(ActionState*); 30 virtual ActionState* performRedo(ActionState*); 31 28 32 29 33 boost::function<void()> executeMethod; //!< this stores the method to be called 30 31 32 34 }; 33 35
Note:
See TracChangeset
for help on using the changeset viewer.