Last change
on this file since b53a7e was b53a7e, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
Added a special class of Actions that take some time.
|
-
Property mode
set to
100644
|
File size:
569 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 | void call();
|
---|
17 | void undo();
|
---|
18 | bool canUndo();
|
---|
19 | bool shouldUndo();
|
---|
20 |
|
---|
21 | virtual const std::string getName();
|
---|
22 | private:
|
---|
23 | MoleculeListClass *molecules;
|
---|
24 | static char NAME[];
|
---|
25 | };
|
---|
26 |
|
---|
27 | #endif // _SMALL_ACTIONS_HPP
|
---|
Note:
See
TracBrowser
for help on using the repository browser.