/* * HelpAction.hpp * * Created on: May 8, 2010 * Author: heber */ #ifndef HELPACTION_HPP_ #define HELPACTION_HPP_ #include "Actions/Action.hpp" void CommandHelp(); class CommandLineHelpAction : public Action { friend void CommandHelp(); public: CommandLineHelpAction(); virtual ~CommandLineHelpAction(); bool canUndo(); bool shouldUndo(); virtual const std::string getName(); protected: virtual Dialog * fillDialog(Dialog *dialog); private: 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 /* HELPACTION_HPP_ */