Last change
on this file since 0012e6 was 0012e6, checked in by Tillmann Crueger <crueger@…>, 15 years ago |
Added methods that allow bookkeeping of actions for undo/redo methods
|
-
Property mode
set to
100644
|
File size:
679 bytes
|
Line | |
---|
1 | // All rather small Actions should go into this file for simplicities sake
|
---|
2 |
|
---|
3 | #ifndef _SMALL_ACTIONS_HPP
|
---|
4 | #define _SMALL_ACTIONS_HPP
|
---|
5 |
|
---|
6 | #include "Actions/Action.hpp"
|
---|
7 | #include "Actions/Process.hpp"
|
---|
8 |
|
---|
9 | class MoleculeListClass;
|
---|
10 |
|
---|
11 | class ChangeMoleculeNameAction : public Action {
|
---|
12 | public:
|
---|
13 | ChangeMoleculeNameAction(MoleculeListClass*);
|
---|
14 | virtual ~ChangeMoleculeNameAction();
|
---|
15 |
|
---|
16 | bool canUndo();
|
---|
17 | bool shouldUndo();
|
---|
18 |
|
---|
19 | virtual const std::string getName();
|
---|
20 | private:
|
---|
21 | virtual ActionState* performCall();
|
---|
22 | virtual ActionState* performUndo(ActionState*);
|
---|
23 | virtual ActionState* performRedo(ActionState*);
|
---|
24 |
|
---|
25 | MoleculeListClass *molecules;
|
---|
26 | static char NAME[];
|
---|
27 | };
|
---|
28 |
|
---|
29 |
|
---|
30 | #endif // _SMALL_ACTIONS_HPP
|
---|
Note:
See
TracBrowser
for help on using the repository browser.