Changeset 0012e6 for molecuilder/src/Actions/MethodAction.cpp
- Timestamp:
- Mar 24, 2010, 4:26:21 PM (16 years ago)
- Children:
- 521e29
- Parents:
- 91379c
- File:
-
- 1 edited
-
molecuilder/src/Actions/MethodAction.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Actions/MethodAction.cpp
r91379c r0012e6 10 10 #include <string> 11 11 12 #include "MethodAction.hpp" 12 #include "Actions/MethodAction.hpp" 13 #include "Helpers/Assert.hpp" 13 14 14 15 using namespace std; … … 21 22 22 23 MethodAction::~MethodAction() 23 { 24 // TODO Auto-generated destructor stub 24 {} 25 26 27 ActionState* MethodAction::performCall() { 28 executeMethod(); 29 // we don't have a state to save so we return Action::success 30 return Action::success; 25 31 } 26 32 33 ActionState* MethodAction::performUndo(ActionState*) { 34 ASSERT(0,"Cannot undo a MethodAction"); 35 return Action::success; 36 } 27 37 28 void MethodAction::call() { 29 executeMethod(); 30 } 31 void MethodAction::undo() { 32 38 ActionState* MethodAction::performRedo(ActionState*){ 39 ASSERT(0,"Cannot redo a MethodAction"); 40 return Action::success; 33 41 } 34 42 … … 36 44 return false; 37 45 } 46 47 bool MethodAction::shouldUndo(){ 48 return true; 49 }
Note:
See TracChangeset
for help on using the changeset viewer.
