// All rather small Actions should go into this file for simplicities sake #ifndef _SMALL_ACTIONS_HPP #define _SMALL_ACTIONS_HPP #include "Actions/Action.hpp" #include "Actions/Process.hpp" class MoleculeListClass; class ChangeMoleculeNameAction : public Action { public: ChangeMoleculeNameAction(MoleculeListClass*); virtual ~ChangeMoleculeNameAction(); bool canUndo(); bool shouldUndo(); virtual const std::string getName(); private: virtual Action::state_ptr performCall(); virtual Action::state_ptr performUndo(Action::state_ptr); virtual Action::state_ptr performRedo(Action::state_ptr); MoleculeListClass *molecules; static const char NAME[]; }; #endif // _SMALL_ACTIONS_HPP