/* * SubMenuItem.cpp * * Created on: Dec 10, 2009 * Author: crueger */ #include "SubMenuItem.hpp" SubMenuItem::SubMenuItem(char _trigger,const char* _description,Menu* _parent, Menu* _theMenu) : MenuItem(_trigger,_description,_parent), theMenu(_theMenu) { } SubMenuItem::~SubMenuItem() { delete theMenu; } void SubMenuItem::doTrigger() { theMenu->display(); }