/* * ActionMenuItem.h * * Created on: Dec 11, 2009 * Author: crueger */ #ifndef ACTIONMENUITEM_H_ #define ACTIONMENUITEM_H_ #include #include "Menu/TextMenu/MenuItem.hpp" class Action; class TxMenu; /** * Produce MenuItems that take an appropriate action when called. */ class ActionMenuItem : public MenuItem { public: ActionMenuItem(char,const std::string &,TxMenu* const,const std::string &); ~ActionMenuItem(); virtual void doTrigger(); virtual bool isActive(); private: const std::string ActionName; //!< this action will be called when the trigger matches }; #endif /* ACTIONMENUITEM_H_ */