VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
makVrf::DtSimpleMenu Class Reference

Class used by DtConfigurableMenu when asked to create simple menus as in the function DtConfigurableMenu::createSimpleMenu(). More...

Inheritance diagram for makVrf::DtSimpleMenu:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtSimpleMenu (makVrv::DtDe &de, std::string menuId, std::string menuText)
virtual ~DtSimpleMenu ()
virtual std::string menuText ()
 Gets the display text of the menu, not the menuId.
QMenucreateMenu (makVrv::DtDe &de, QWidget *parent)
 Build a menu.

Protected Attributes

std::string myMenuText

Detailed Description

Class used by DtConfigurableMenu when asked to create simple menus as in the function DtConfigurableMenu::createSimpleMenu().

This class can be overridden to create even more extensively custom menus, but one could also just override the makVrv::DtMenu as well. Menu text is plainly passed in and the translation can be applied to it


Constructor & Destructor Documentation

makVrf::DtSimpleMenu::DtSimpleMenu ( makVrv::DtDe de,
std::string  menuId,
std::string  menuText 
) [inline]
virtual makVrf::DtSimpleMenu::~DtSimpleMenu ( ) [inline, virtual]

Member Function Documentation

virtual std::string makVrf::DtSimpleMenu::menuText ( ) [inline, virtual]

Gets the display text of the menu, not the menuId.

QMenu* makVrf::DtSimpleMenu::createMenu ( makVrv::DtDe ,
QWidget parent 
) [inline, virtual]

Build a menu.

Implements makVrv::DtMenu.


Member Data Documentation

std::string makVrf::DtSimpleMenu::myMenuText [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)