source:
molecuilder/src/Actions/MoleculeAction/ChangeNameAction.hpp@
7ac765
| Last change on this file since 7ac765 was 7ac765, checked in by , 16 years ago | |
|---|---|
|
|
| File size: 728 bytes | |
| Rev | Line | |
|---|---|---|
| [7ac765] | 1 | /* |
| 2 | * ChangeNameAction.hpp | |
| 3 | * | |
| 4 | * Created on: Jan 15, 2010 | |
| 5 | * Author: crueger | |
| 6 | */ | |
| [795b4d] | 7 | |
| [7ac765] | 8 | #ifndef CHANGENAMEACTION_HPP |
| 9 | #define CHANGENAMEACTION_HPP | |
| [795b4d] | 10 | |
| [b53a7e] | 11 | #include "Actions/Action.hpp" |
| 12 | #include "Actions/Process.hpp" | |
| [795b4d] | 13 | |
| 14 | class MoleculeListClass; | |
| 15 | ||
| [7ac765] | 16 | class MoleculeChangeNameAction : public Action { |
| [795b4d] | 17 | public: |
| [7ac765] | 18 | MoleculeChangeNameAction(MoleculeListClass*); |
| 19 | virtual ~MoleculeChangeNameAction(); | |
| [795b4d] | 20 | |
| 21 | bool canUndo(); | |
| 22 | bool shouldUndo(); | |
| 23 | ||
| 24 | virtual const std::string getName(); | |
| 25 | private: | |
| [521e29] | 26 | virtual Action::state_ptr performCall(); |
| 27 | virtual Action::state_ptr performUndo(Action::state_ptr); | |
| 28 | virtual Action::state_ptr performRedo(Action::state_ptr); | |
| [0012e6] | 29 | |
| [795b4d] | 30 | MoleculeListClass *molecules; |
| [8d9984] | 31 | static const char NAME[]; |
| [795b4d] | 32 | }; |
| [b53a7e] | 33 | |
| [536380] | 34 | |
| [7ac765] | 35 | #endif // CHANGENAMEACTION_HPP |
Note:
See TracBrowser
for help on using the repository browser.
