Changeset da09909 for molecuilder/src/Actions
- Timestamp:
- Dec 16, 2009, 2:40:09 PM (16 years ago)
- Children:
- 38546d
- Parents:
- c2c893
- Location:
- molecuilder/src/Actions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Actions/Action.cpp
rc2c893 rda09909 9 9 10 10 Action::Action() 11 { 12 // TODO Auto-generated constructor stub 13 14 } 11 {} 15 12 16 13 Action::~Action() 17 { 18 // TODO Auto-generated destructor stub 19 } 14 {} -
molecuilder/src/Actions/Action.hpp
rc2c893 rda09909 9 9 #define ACTION_H_ 10 10 11 /** 12 * Base class for all actions. 13 * 14 * Actions describe something that has to be done. 15 * Actions can be passed around, stored, performed and undone (Command-Pattern). 16 * 17 * TODO: Add queues of actions that have been performed to allow easy implementation of multiple-step undo 18 */ 11 19 class Action 12 20 { -
molecuilder/src/Actions/MethodAction.hpp
rc2c893 rda09909 13 13 #include "Actions/Action.hpp" 14 14 15 /** 16 * Wrapper class that allows the construction of Actions from any kind of Method 17 */ 15 18 class MethodAction : public Action 16 19 { … … 23 26 virtual bool canUndo(); 24 27 25 boost::function<void()> executeMethod; 28 boost::function<void()> executeMethod; //!< this stores the method to be called 26 29 27 30
Note:
See TracChangeset
for help on using the changeset viewer.