OpenWalnut
1.5.0dev
|
This is a toolbar. More...
#include <WQtToolBar.h>
Public Member Functions | |
WQtToolBar (const QString &title, WMainWindow *parent) | |
Constructs the toolbar. More... | |
virtual | ~WQtToolBar () |
destructor More... | |
void | addAction (QAction *action) |
Allows addition of new actions to the toolbar. More... | |
void | clearButtons () |
Removes all buttons,. More... | |
Public Member Functions inherited from WQtToolBarBase | |
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... | |
Protected Attributes | |
std::list< QAction * > | m_actions |
The list of widgets in this toolbar. More... | |
This is a toolbar.
Its main usage for now is the "compatible modules" toolbar
Definition at line 38 of file WQtToolBar.h.
WQtToolBar::WQtToolBar | ( | 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 33 of file WQtToolBar.cpp.
|
virtual |
destructor
Definition at line 38 of file WQtToolBar.cpp.
void WQtToolBar::addAction | ( | QAction * | action | ) |
Allows addition of new actions to the toolbar.
See the Qt Doc of QToolBar for details. Actions have the advantage that they build a uniform interface for menus, toolbars, buttons and menued toolbuttons.
action | the action to add. |
Definition at line 42 of file WQtToolBar.cpp.
References m_actions.
Referenced by WMainWindow::setupGUI().
void WQtToolBar::clearButtons | ( | ) |
|
protected |
The list of widgets in this toolbar.
Definition at line 70 of file WQtToolBar.h.
Referenced by addAction(), and clearButtons().