VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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(). 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.

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 ()
 
QMenucreateMenu (makVrv::DtDe &de, QWidget *parent)
 
- Public Member Functions inherited from makVrv::DtMenu
 DtMenu (DtDe &de, const std::string &menuIdName)
 
virtual ~DtMenu ()
 
virtual const std::string & menuIdName () const
 

Protected Attributes

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

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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)