source: molecuilder/src/Actions/small_actions.hpp@ 7a8319

Last change on this file since 7a8319 was 8d9984, checked in by Tillmann Crueger <crueger@…>, 15 years ago

Added full undo functioniality

  • Property mode set to 100644
File size: 710 bytes
RevLine 
[795b4d]1// All rather small Actions should go into this file for simplicities sake
2
[b53a7e]3#ifndef _SMALL_ACTIONS_HPP
4#define _SMALL_ACTIONS_HPP
[795b4d]5
[b53a7e]6#include "Actions/Action.hpp"
7#include "Actions/Process.hpp"
[795b4d]8
9class MoleculeListClass;
10
11class ChangeMoleculeNameAction : public Action {
12public:
13 ChangeMoleculeNameAction(MoleculeListClass*);
[b53a7e]14 virtual ~ChangeMoleculeNameAction();
[795b4d]15
16 bool canUndo();
17 bool shouldUndo();
18
19 virtual const std::string getName();
20private:
[521e29]21 virtual Action::state_ptr performCall();
22 virtual Action::state_ptr performUndo(Action::state_ptr);
23 virtual Action::state_ptr performRedo(Action::state_ptr);
[0012e6]24
[795b4d]25 MoleculeListClass *molecules;
[8d9984]26 static const char NAME[];
[795b4d]27};
[b53a7e]28
[536380]29
[b53a7e]30#endif // _SMALL_ACTIONS_HPP
Note: See TracBrowser for help on using the repository browser.