/* * ActionMenuItem.cpp * * Created on: Dec 11, 2009 * Author: crueger */ #include #include "Menu/ActionMenuItem.hpp" #include "Actions/MethodAction.hpp" using namespace std; ActionMenuItem::ActionMenuItem(char _trigger, const char* _description,Menu* _menu,Action* _action) : MenuItem(_trigger,_description,_menu), action(_action) { } ActionMenuItem::~ActionMenuItem() {} void ActionMenuItem::doTrigger() { action->call(); } bool ActionMenuItem::isActive() { return action->isActive(); }