Last change
on this file since 7ac765 was 7ac765, checked in by Frederik Heber <heber@…>, 15 years ago |
Introducing small actions.
Signed-off-by: Frederik Heber <heber@…>
|
-
Property mode
set to
100644
|
File size:
728 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * ChangeNameAction.hpp
|
---|
3 | *
|
---|
4 | * Created on: Jan 15, 2010
|
---|
5 | * Author: crueger
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef CHANGENAMEACTION_HPP
|
---|
9 | #define CHANGENAMEACTION_HPP
|
---|
10 |
|
---|
11 | #include "Actions/Action.hpp"
|
---|
12 | #include "Actions/Process.hpp"
|
---|
13 |
|
---|
14 | class MoleculeListClass;
|
---|
15 |
|
---|
16 | class MoleculeChangeNameAction : public Action {
|
---|
17 | public:
|
---|
18 | MoleculeChangeNameAction(MoleculeListClass*);
|
---|
19 | virtual ~MoleculeChangeNameAction();
|
---|
20 |
|
---|
21 | bool canUndo();
|
---|
22 | bool shouldUndo();
|
---|
23 |
|
---|
24 | virtual const std::string getName();
|
---|
25 | private:
|
---|
26 | virtual Action::state_ptr performCall();
|
---|
27 | virtual Action::state_ptr performUndo(Action::state_ptr);
|
---|
28 | virtual Action::state_ptr performRedo(Action::state_ptr);
|
---|
29 |
|
---|
30 | MoleculeListClass *molecules;
|
---|
31 | static const char NAME[];
|
---|
32 | };
|
---|
33 |
|
---|
34 |
|
---|
35 | #endif // CHANGENAMEACTION_HPP
|
---|
Note:
See
TracBrowser
for help on using the repository browser.