![]() |
OpenWalnut
1.5.0dev
|
Base class for toolbars. More...
#include <WQtToolBarBase.h>
Inheritance diagram for WQtToolBarBase:
Collaboration diagram for WQtToolBarBase:Public Member Functions | |
| WQtToolBarBase (const QString &title, WMainWindow *parent) | |
| Constructs the toolbar. More... | |
| virtual | ~WQtToolBarBase () |
| Destructor. More... | |
| QMenu * | getStyleMenu (QString title=QString("Toolbar Style")) const |
| Returns a menu for styling the menu items. More... | |
Private Slots | |
| void | handleStyleUpdate (unsigned int index) |
| Used to update the style of this toolbar. More... | |
Private Attributes | |
| WSettingMenu * | m_styleOptionMenu |
| The options for toolbar style. More... | |
Base class for toolbars.
Definition at line 37 of file WQtToolBarBase.h.
| WQtToolBarBase::WQtToolBarBase | ( | const QString & | title, |
| WMainWindow * | parent | ||
| ) |
Constructs the toolbar.
| title | name of the toolbar. |
| parent | the parent widget of this widget, i.e. the widget that manages it. |
Definition at line 31 of file WQtToolBarBase.cpp.
References WSettingMenu::get(), handleStyleUpdate(), and m_styleOptionMenu.
Here is the call graph for this function:
|
virtual |
Destructor.
Definition at line 57 of file WQtToolBarBase.cpp.
| QMenu * WQtToolBarBase::getStyleMenu | ( | QString | title = QString( "Toolbar Style" ) | ) | const |
Returns a menu for styling the menu items.
All the handling is done internally. Just use the menu.
| title | the title of the menu. |
Definition at line 62 of file WQtToolBarBase.cpp.
References m_styleOptionMenu.
Referenced by WMainWindow::setupGUI().
Here is the caller graph for this function:
|
privateslot |
Used to update the style of this toolbar.
| index | the new index in the option list. |
Definition at line 68 of file WQtToolBarBase.cpp.
Referenced by WQtToolBarBase().
Here is the caller graph for this function:
|
private |
The options for toolbar style.
Definition at line 67 of file WQtToolBarBase.h.
Referenced by getStyleMenu(), and WQtToolBarBase().