/* * NotMoleculeByFormulaAction.hpp * * Created on: May 12, 2010 * Author: heber */ #ifndef NOTMOLECULEBYFORMULAACTION_HPP_ #define NOTMOLECULEBYFORMULAACTION_HPP_ #include "Actions/Action.hpp" class molecule; void SelectionNotMoleculeByFormula(molecule *_mol); class SelectionNotMoleculeByFormulaAction : public Action { friend void SelectionNotMoleculeByFormula(const std::string &_formula); public: SelectionNotMoleculeByFormulaAction(); virtual ~SelectionNotMoleculeByFormulaAction(); bool canUndo(); bool shouldUndo(); virtual const std::string getName(); protected: virtual Dialog * fillDialog(Dialog *dialog); private: virtual void getParametersfromValueStorage(); virtual Action::state_ptr performCall(); virtual Action::state_ptr performUndo(Action::state_ptr); virtual Action::state_ptr performRedo(Action::state_ptr); static const char NAME[]; }; #endif /* NOTMOLECULEBYFORMULAACTION_HPP_ */