![]() |
VR-Forces Developer's Guide
|
a Class which represents a menu path. The specific strings are not menu text, but the names used when registering menuBuilder and menuItemBuilder instances.

Classes | |
| struct | MenuPathBuilder |
Public Member Functions | |
| DtMenuPath () | |
| DtMenuPath (const MenuPathBuilder &builder) | |
| DtMenuPath (const DtMenuPath ©) | |
| 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 |
| makVrv::DtMenuPath::DtMenuPath | ( | ) |
| makVrv::DtMenuPath::DtMenuPath | ( | const MenuPathBuilder & | builder | ) |
| makVrv::DtMenuPath::DtMenuPath | ( | const DtMenuPath & | copy | ) |
Copy CTOR.
|
protected |
Protected CTOR, use the static MenuMenu function to start a path.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
Referenced by makVrf::DtSubMenuPath::path().
| 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 |
|
protected |
Internal path.