|
Last change
on this file since 91b18cd was 8d9984, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
|
Added full undo functioniality
|
-
Property mode
set to
100644
|
|
File size:
710 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 Action::state_ptr performCall();
|
|---|
| 22 | virtual Action::state_ptr performUndo(Action::state_ptr);
|
|---|
| 23 | virtual Action::state_ptr performRedo(Action::state_ptr);
|
|---|
| 24 |
|
|---|
| 25 | MoleculeListClass *molecules;
|
|---|
| 26 | static const char NAME[];
|
|---|
| 27 | };
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | #endif // _SMALL_ACTIONS_HPP
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.