a Class which represents a menu path.
More...
Protected Member Functions |
| | DtMenuPath (const std::string &path) |
| | Protected CTOR, use the static MenuMenu function to start a path.
|
Protected Attributes |
| std::string | myPath |
| | Internal path.
|
Detailed Description
a Class which represents a menu path.
The specific strings are not menu text, but the names used when registering menuBuilder and menuItemBuilder instances.
Constructor & Destructor Documentation
| makVrv::DtMenuPath::DtMenuPath |
( |
const DtMenuPath & |
copy | ) |
|
| makVrv::DtMenuPath::DtMenuPath |
( |
const std::string & |
path | ) |
|
|
protected |
Protected CTOR, use the static MenuMenu function to start a path.
Member Function Documentation
| 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 |
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 |
| 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 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.
Member Data Documentation
| std::string makVrv::DtMenuPath::myPath |
|
protected |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.tot/include/vrvCore/DtMenuPath.h