A Qt implementation of a DtToolbarAssembler.
|
| | DtQtToolbarAssembler (DtDe &) |
| |
| virtual QAction * | findMenuItem (const std::string &item, const std::map< DtMenuPath, QAction * > &menuItems) const |
| |
| virtual void | assembleRow (const DtToolbarPath &toolbarPath, DtToolbarConfiguration::ToolbarLocation location) |
| |
| virtual void | assembleToolbar (const DtToolbarPath &toolbarPath, const DtToolbarConfiguration &configuration) |
| |
| virtual void | assembleToolbarItem (const DtToolbarPath &toolbarPath) |
| |
| virtual void | assembleToolbarMenuItem (const DtToolbarPath &toolbarPath) |
| |
| virtual void | assembleToolbarWidget (const DtToolbarPath &toolbarPath) |
| |
| virtual void | assembleToolbarMenu (const DtToolbarPath &toolbarPath) |
| |
| virtual QWidget * | toolbarWindow () |
| |
| virtual DtQtToolbarManager & | toolbarManager () |
| |
| virtual void | assemble (const DtToolbarConfiguration &configuration) |
| |
| virtual void | addToolbarBreak (DtToolbarConfiguration::ToolbarLocation loc) |
| |
| | DtToolbarAssembler (DtDe &de) |
| |
| void | assembleToolbarPath (const DtToolbarPath &toolbarPath, const DtToolbarConfiguration &configuration, DtToolbarConfiguration::ToolbarLocation location) |
| |
| virtual void | assembleTopLeftToolbars (const LocationPathMap &locMap, DtToolbarConfiguration::ToolbarLocation loc, const DtToolbarConfiguration &configuration) |
| |
| virtual void | assembleBottomRightToolbars (const LocationPathMap &, DtToolbarConfiguration::ToolbarLocation, const DtToolbarConfiguration &) |
| |
| virtual void | populateToobarPathsMap (const LocationPathMap &locMap, DtToolbarConfiguration::ToolbarLocation loc, const DtToolbarConfiguration &configuration, ToolbarPathsMapMap &tpMap) |
| |
| virtual void | updateToolbarPath (const DtToolbarPath &toolbarPath, const DtToolbarConfiguration &configuration) |
| |
| virtual void | updateToolbar (const DtToolbarPath &toolbarPath, const DtToolbarConfiguration &configuration) |
| |
| virtual makVrv::DtQtToolbarAssembler::~DtQtToolbarAssembler |
( |
| ) |
|
|
virtual |
| makVrv::DtQtToolbarAssembler::DtQtToolbarAssembler |
( |
DtDe & |
| ) |
|
|
protected |
Get an instance of the assembler.
| void makVrv::DtQtToolbarAssembler::registerToolbar |
( |
DtToolbar * |
| ) |
|
Register a toolbar builder.
| DtToolbar* makVrv::DtQtToolbarAssembler::toolbarBuilder |
( |
const std::string & |
| ) |
const |
Returns a toolbar builder given the toolbar id name.
| void makVrv::DtQtToolbarAssembler::unregisterToolbar |
( |
DtToolbar * |
, |
|
|
bool |
deleteBuilder = true |
|
) |
| |
Register a toolbar builder.
| virtual void makVrv::DtQtToolbarAssembler::setIconSize |
( |
const QSize & |
| ) |
|
|
virtual |
Sets the icon size used for button images on the toolbars. Default is 16x16.
| const QSize& makVrv::DtQtToolbarAssembler::iconSize |
( |
| ) |
const |
Merges the contents of the supplied toolbar builder map, adding new entries and replacing existing.
| virtual void makVrv::DtQtToolbarAssembler::registerWidgetBuilder |
( |
const std::string & |
, |
|
|
DtWidgetBuilder * |
, |
|
|
bool |
deleteExisting = true |
|
) |
| |
|
virtual |
Adds in a widget builder that can be used to create a widget for a toolbar. If one exists, will replace. Will delete if delete flag is true.
| virtual DtWidgetBuilder* makVrv::DtQtToolbarAssembler::widgetBuilder |
( |
const std::string & |
| ) |
|
|
virtual |
Returns a widget builder with a given name.
| virtual void makVrv::DtQtToolbarAssembler::unregisterWidgetBuilder |
( |
const std::string & |
, |
|
|
bool |
deleteExisting = true |
|
) |
| |
|
virtual |
Removes a widget builder and deletes if deleteExisting is true.
| virtual QAction* makVrv::DtQtToolbarAssembler::findMenuItem |
( |
const std::string & |
item, |
|
|
const std::map< DtMenuPath, QAction * > & |
menuItems |
|
) |
| const |
|
protectedvirtual |
Assemble a row from the path. If row has already been created, then, do not add a break. Since rows are really just toolbar breaks, if the current row is different than the last row, then, add a new break.
Reimplemented from makVrv::DtToolbarAssembler.
| virtual void makVrv::DtQtToolbarAssembler::assembleToolbarItem |
( |
const DtToolbarPath & |
toolbarPath | ) |
|
|
protectedvirtual |
| virtual void makVrv::DtQtToolbarAssembler::assembleToolbarMenuItem |
( |
const DtToolbarPath & |
toolbarPath | ) |
|
|
protectedvirtual |
| virtual void makVrv::DtQtToolbarAssembler::assembleToolbarWidget |
( |
const DtToolbarPath & |
toolbarPath | ) |
|
|
protectedvirtual |
| virtual void makVrv::DtQtToolbarAssembler::assembleToolbarMenu |
( |
const DtToolbarPath & |
toolbarPath | ) |
|
|
protectedvirtual |
Assemble a menu from the path. Will look in menu manager first for menu if the menu exists. If not will create the menu from the local assembler.
Reimplemented from makVrv::DtToolbarAssembler.
| virtual QWidget* makVrv::DtQtToolbarAssembler::toolbarWindow |
( |
| ) |
|
|
protectedvirtual |
| QSize makVrv::DtQtToolbarAssembler::myIconSize |
|
protected |
The documentation for this class was generated from the following file: