- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Actions/MethodAction.hpp
r3e8325 r521e29 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 Action::state_ptr performCall(); 29 virtual Action::state_ptr performUndo(Action::state_ptr); 30 virtual Action::state_ptr performRedo(Action::state_ptr); 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.