VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtMenuPath Class Reference

a Class which represents a menu path. The specific strings are not menu text, but the names used when registering menuBuilder and menuItemBuilder instances.

DtMenuPath::mainMenu("FileMenu").item("ExitItem");
DtMenuPath::mainMenu("FileMenu").menu("OpenMenu").item("OpenTerrainFile");
Inheritance diagram for makVrv::DtMenuPath:
Inheritance graph
[legend]

Classes

struct  MenuPathBuilder
 

Public Member Functions

 DtMenuPath ()
 
 DtMenuPath (const MenuPathBuilder &builder)
 
 DtMenuPath (const DtMenuPath &copy)
 
const std::string & path () const
 
DtMenuPath menuPart () const
 
DtMenuPath parentMenu () const
 
DtMenuPath rootParentMenu () const
 
std::string name () const
 
bool isEmpty () const
 
bool isAbsolutePath () const
 
bool isMainMenu () const
 
bool isPopupPath () const
 
bool isMenu () const
 
bool isItem () const
 
bool isChildOf (const DtMenuPath &parent) const
 
bool isDescendant (const DtMenuPath &ancestor) const
 
bool isSiblingOf (const DtMenuPath &sibling) const
 
bool isSeparator () const
 
bool operator== (const DtMenuPath &other) const
 
bool operator< (const DtMenuPath &other) const
 
bool operator!= (const DtMenuPath &other) const
 

Static Public Member Functions

static DtMenuPath empty ()
 
static DtMenuPath root ()
 
static DtMenuPath popup ()
 
static MenuPathBuilder mainMenu (const std::string &name)
 
static MenuPathBuilder popupMenu (const std::string &name)
 
static MenuPathBuilder menu (const std::string &name)
 

Protected Member Functions

 DtMenuPath (const std::string &path)
 

Protected Attributes

std::string myPath
 

Constructor & Destructor Documentation

makVrv::DtMenuPath::DtMenuPath ( )
makVrv::DtMenuPath::DtMenuPath ( const MenuPathBuilder builder)
makVrv::DtMenuPath::DtMenuPath ( const DtMenuPath copy)

Copy CTOR.

makVrv::DtMenuPath::DtMenuPath ( const std::string &  path)
protected

Protected CTOR, use the static MenuMenu function to start a path.

Member Function Documentation

static DtMenuPath makVrv::DtMenuPath::empty ( )
static
static DtMenuPath makVrv::DtMenuPath::root ( )
static
static DtMenuPath makVrv::DtMenuPath::popup ( )
static
static MenuPathBuilder makVrv::DtMenuPath::mainMenu ( const std::string &  name)
static
static MenuPathBuilder makVrv::DtMenuPath::popupMenu ( const std::string &  name)
static
static MenuPathBuilder makVrv::DtMenuPath::menu ( const std::string &  name)
static
const std::string& makVrv::DtMenuPath::path ( ) const
inline
DtMenuPath makVrv::DtMenuPath::menuPart ( ) const

Get the menu path part of this path. Typically this will remove the item, however it will simply return a copy is the path has no item.

DtMenuPath makVrv::DtMenuPath::parentMenu ( ) const

Get the path to the parent of this path. If this path is the top level an empty path is returned.

DtMenuPath makVrv::DtMenuPath::rootParentMenu ( ) const

Get the root parent of this path.

std::string makVrv::DtMenuPath::name ( ) const

Get the name of the this menu path, this is either the item name or the menu name.

bool makVrv::DtMenuPath::isEmpty ( ) const

Is the path empty.

bool makVrv::DtMenuPath::isAbsolutePath ( ) const

Is this path rooted off a main menu.

bool makVrv::DtMenuPath::isMainMenu ( ) const

Is this item a main menu path.

bool makVrv::DtMenuPath::isPopupPath ( ) const

Is this item a popup menu path.

bool makVrv::DtMenuPath::isMenu ( ) const

Is the path a menu (not an item)?

bool makVrv::DtMenuPath::isItem ( ) const

Is the path an item?

bool makVrv::DtMenuPath::isChildOf ( const DtMenuPath parent) const

Is this path it's direct parent.

bool makVrv::DtMenuPath::isDescendant ( const DtMenuPath ancestor) const

Is this path under the given path.

bool makVrv::DtMenuPath::isSiblingOf ( const DtMenuPath sibling) const

Does this path have the same parent as the given path.

bool makVrv::DtMenuPath::isSeparator ( ) const

Is this path for a separator.

bool makVrv::DtMenuPath::operator== ( const DtMenuPath other) const
bool makVrv::DtMenuPath::operator< ( const DtMenuPath other) const
bool makVrv::DtMenuPath::operator!= ( const DtMenuPath other) const

Member Data Documentation

std::string makVrv::DtMenuPath::myPath
protected

Internal path.


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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)