Changeset 32df34 for molecuilder/src/Actions
- Timestamp:
- Dec 17, 2009, 2:38:29 PM (16 years ago)
- Children:
- f3dd95
- Parents:
- 425da9
- Location:
- molecuilder/src/Actions
- Files:
-
- 2 added
- 2 edited
-
Action.hpp (modified) (1 diff)
-
ActionSequence.cpp (modified) (2 diffs)
-
MakroAction.cpp (added)
-
MakroAction.hpp (added)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Actions/Action.hpp
r425da9 r32df34 20 20 { 21 21 protected: 22 public: 22 23 Action(); 23 24 virtual ~Action(); 24 25 25 public:26 26 virtual void call()=0; 27 27 virtual void undo()=0; -
molecuilder/src/Actions/ActionSequence.cpp
r425da9 r32df34 12 12 13 13 ActionSequence::ActionSequence() 14 { 15 // TODO Auto-generated constructor stub 16 17 } 14 {} 18 15 19 16 ActionSequence::~ActionSequence() 20 { 21 // TODO Auto-generated destructor stub 22 } 17 {} 23 18 24 19 … … 28 23 29 24 Action* ActionSequence::removeLastAction(){ 30 Action* theAction; 31 theAction = actions.back(); 32 actions.pop_back(); 33 return theAction; 25 if(actions.empty()) { 26 return 0; 27 } 28 else { 29 Action* theAction; 30 theAction = actions.back(); 31 actions.pop_back(); 32 return theAction; 33 } 34 34 } 35 35
Note:
See TracChangeset
for help on using the changeset viewer.
