![]() |
VR-Forces 4.0.4 Class Documentation
|
A Toolbar manager which is how to lookup and find toolbars using toolbar paths. More...

Public Member Functions | |
| virtual | ~DtQtToolbarManager () |
| Register a new instance of the toolbar manager, this is only necessary if replacing the existing DtToolbarManager. | |
| void | registerToolbar (const DtToolbarPath &path, QToolBar *menu) |
| Register a toolbar, this is done automatically by the DtToolbarAssembler. | |
| QToolBar * | findToolbar (const DtToolbarPath &path) const |
| Find a toolbar by its path. | |
| virtual bool | getToolbarState (const DtToolbarPath &path, DtToolbarConfiguration::ToolbarState &state) |
| Retreives the state of a given toolbar. | |
Static Public Member Functions | |
| static DtQtToolbarManager & | instance (DtDe &de) |
| Get an instance of the Toolbar manager. | |
Public Attributes | |
| boost::signal< void(const DtToolbarPath &)> | signal_toolbarDeleted |
| Signals when a toolbar has been deleted. | |
Protected Slots | |
| void | onToolbarDestroyed (QObject *obj) |
| When a toolbar is destroyed. | |
Protected Member Functions | |
| DtQtToolbarManager (DtDe &de) | |
| Protected CTOR, use the instance function. | |
Protected Attributes | |
| ToolbarMap | myToolbars |
Private Types | |
| typedef std::map < DtToolbarPath, QToolBar * > | ToolbarMap |
Friends | |
| class | DtQtToolbarManagerCreator |
A Toolbar manager which is how to lookup and find toolbars using toolbar paths.
Toolbars are automatically registered by the DtToolbarAssembler.
typedef std::map<DtToolbarPath,QToolBar*> makVrv::DtQtToolbarManager::ToolbarMap [private] |
| virtual makVrv::DtQtToolbarManager::~DtQtToolbarManager | ( | ) | [virtual] |
Register a new instance of the toolbar manager, this is only necessary if replacing the existing DtToolbarManager.
DTOR
| makVrv::DtQtToolbarManager::DtQtToolbarManager | ( | DtDe & | de | ) | [protected] |
Protected CTOR, use the instance function.
| static DtQtToolbarManager& makVrv::DtQtToolbarManager::instance | ( | DtDe & | de | ) | [static] |
Get an instance of the Toolbar manager.
Reimplemented from makVrv::DtToolbarManager.
| void makVrv::DtQtToolbarManager::registerToolbar | ( | const DtToolbarPath & | path, |
| QToolBar * | menu | ||
| ) |
Register a toolbar, this is done automatically by the DtToolbarAssembler.
| QToolBar* makVrv::DtQtToolbarManager::findToolbar | ( | const DtToolbarPath & | path | ) | const |
Find a toolbar by its path.
| virtual bool makVrv::DtQtToolbarManager::getToolbarState | ( | const DtToolbarPath & | path, |
| DtToolbarConfiguration::ToolbarState & | state | ||
| ) | [virtual] |
Retreives the state of a given toolbar.
Returns false if the path's not found
Implements makVrv::DtToolbarManager.
| void makVrv::DtQtToolbarManager::onToolbarDestroyed | ( | QObject * | obj | ) | [protected, slot] |
When a toolbar is destroyed.
friend class DtQtToolbarManagerCreator [friend] |
| boost::signal<void (const DtToolbarPath&)> makVrv::DtQtToolbarManager::signal_toolbarDeleted |
Signals when a toolbar has been deleted.
ToolbarMap makVrv::DtQtToolbarManager::myToolbars [protected] |