![]() |
VR-Forces 4.3 Class Documentation
|
a Class which represents a toolbar path. More...

Classes | |
| struct | ToolbarPathBuilder |
Public Member Functions | |
| DtToolbarPath () | |
| DtToolbarPath (const ToolbarPathBuilder &builder) | |
| DtToolbarPath (const DtMenuPath ©) | |
| DtToolbarPath (const DtToolbarPath ©) | |
| Copy CTOR. | |
| DtToolbarPath | menuPart () const |
| Get the menu path part of this path. | |
| DtToolbarPath | toolbarPart () const |
| Get the part that is the toolbar. | |
| DtToolbarPath | parentMenu () const |
| Returns the parent of this item. | |
| bool | isChildOf (const DtToolbarPath &parent) const |
| Is this path it's direct parent. | |
| bool | isDescendant (const DtToolbarPath &ancestor) const |
| Is this path under the given path. | |
| bool | isSiblingOf (const DtToolbarPath &sibling) const |
| Does this path have the same parent as the given path. | |
| bool | isToolbar () const |
| Returns true if this path is a toolbar. | |
| bool | isAbsolutePath () const |
| Is this path rooted off a toolbar. | |
| bool | isWidget () const |
| Returns true if the item is a widget. | |
| const std::string & | path () const |
| bool | isEmpty () const |
| Is the path empty. | |
| bool | isItem () const |
| Is the path an item? | |
| bool | isMainMenu () const |
| Does the path contain a main menu? | |
| bool | isSeparator () const |
| Is this path for a separator. | |
| bool | isMenu () const |
| Is the path a menu (not an item)? | |
| bool | isRow () const |
| Is the path a row item? | |
| DtToolbarPath | rootParentMenu () const |
| Get the root parent of this path. | |
| std::string | name () const |
| Get the name of the this menu path, this is either the item name or the menu name. | |
| bool | operator== (const DtToolbarPath &other) const |
| bool | operator< (const DtToolbarPath &other) const |
| bool | operator!= (const DtToolbarPath &other) const |
Static Public Member Functions | |
| static ToolbarPathBuilder | toolbar (const std::string &name) |
| static ToolbarPathBuilder | row (const std::string &name) |
| static DtToolbarPath | empty () |
| static DtToolbarPath | root () |
Protected Member Functions | |
| template<class Archive > | |
| void | _serialize (Archive &ar, const unsigned int version) |
| Serialize this class. | |
| DtToolbarPath (const std::string &path) | |
| Protected CTOR, use the static MenuMenu function to start a path. | |
Protected Attributes | |
| std::string | myPath |
| Internal path. | |
a Class which represents a toolbar path.
The specific strings are not toolbar text, but the names used when registering toolbarBuilder, menuBuilder and menuItemBuilder instances.
A toolbar differs from a menu only in that the root is the name of a toolbar
| makVrv::DtToolbarPath::DtToolbarPath | ( | ) |
| makVrv::DtToolbarPath::DtToolbarPath | ( | const ToolbarPathBuilder & | builder | ) |
| makVrv::DtToolbarPath::DtToolbarPath | ( | const DtMenuPath & | copy | ) |
| makVrv::DtToolbarPath::DtToolbarPath | ( | const DtToolbarPath & | copy | ) |
Copy CTOR.
|
protected |
Protected CTOR, use the static MenuMenu function to start a path.
|
static |
|
static |
|
static |
|
static |
| DtToolbarPath makVrv::DtToolbarPath::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.
| DtToolbarPath makVrv::DtToolbarPath::toolbarPart | ( | ) | const |
Get the part that is the toolbar.
| DtToolbarPath makVrv::DtToolbarPath::parentMenu | ( | ) | const |
Returns the parent of this item.
| bool makVrv::DtToolbarPath::isChildOf | ( | const DtToolbarPath & | parent | ) | const |
Is this path it's direct parent.
| bool makVrv::DtToolbarPath::isDescendant | ( | const DtToolbarPath & | ancestor | ) | const |
Is this path under the given path.
| bool makVrv::DtToolbarPath::isSiblingOf | ( | const DtToolbarPath & | sibling | ) | const |
Does this path have the same parent as the given path.
| bool makVrv::DtToolbarPath::isToolbar | ( | ) | const |
Returns true if this path is a toolbar.
| bool makVrv::DtToolbarPath::isAbsolutePath | ( | ) | const |
Is this path rooted off a toolbar.
| bool makVrv::DtToolbarPath::isWidget | ( | ) | const |
Returns true if the item is a widget.
|
inline |
Reimplemented in makVrf::DtSubToolbarPath.
Referenced by makVrf::DtSubToolbarPath::path().
| bool makVrv::DtToolbarPath::isEmpty | ( | ) | const |
Is the path empty.
| bool makVrv::DtToolbarPath::isItem | ( | ) | const |
Is the path an item?
| bool makVrv::DtToolbarPath::isMainMenu | ( | ) | const |
Does the path contain a main menu?
| bool makVrv::DtToolbarPath::isSeparator | ( | ) | const |
Is this path for a separator.
| bool makVrv::DtToolbarPath::isMenu | ( | ) | const |
Is the path a menu (not an item)?
| bool makVrv::DtToolbarPath::isRow | ( | ) | const |
Is the path a row item?
| DtToolbarPath makVrv::DtToolbarPath::rootParentMenu | ( | ) | const |
Get the root parent of this path.
| std::string makVrv::DtToolbarPath::name | ( | ) | const |
Get the name of the this menu path, this is either the item name or the menu name.
| bool makVrv::DtToolbarPath::operator== | ( | const DtToolbarPath & | other | ) | const |
| bool makVrv::DtToolbarPath::operator< | ( | const DtToolbarPath & | other | ) | const |
| bool makVrv::DtToolbarPath::operator!= | ( | const DtToolbarPath & | other | ) | const |
|
inlineprotected |
Serialize this class.
References DT_SERIALIZE_MEMBER.
|
protected |
Internal path.