VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

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.
- Public Member Functions inherited from makVrv::DtMenu
 DtMenu (DtDe &de, const std::string &menuIdName)
 CTOR.
virtual ~DtMenu ()
 DTOR.
virtual const std::string & menuIdName () const
 Get the menu id name, the menu id name is not the same thing as the visible menu text.

Protected Attributes

std::string myMenuText
- Protected Attributes inherited from makVrv::DtMenu
DtDemyDe
std::string myMenuIdName

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 ( )
inlinevirtual

Member Function Documentation

virtual std::string makVrf::DtSimpleMenu::menuText ( )
inlinevirtual

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

QMenu* makVrf::DtSimpleMenu::createMenu ( makVrv::DtDe ,
QWidget parent 
)
inlinevirtual

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 Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)