OpenWalnut
1.5.0dev
|
This is a toolbar. More...
#include <WQtCombinerToolbar.h>
Public Member Functions | |
WQtCombinerToolbar (WMainWindow *parent, const WQtCombinerActionList &compatibles) | |
Constructs the toolbar. More... | |
WQtCombinerToolbar (WMainWindow *parent) | |
This creates an empty toolbar only containing the dummy button to reserve the size. More... | |
virtual | ~WQtCombinerToolbar () |
destructor More... | |
void | updateButtons (const WQtCombinerActionList &compatibles) |
Update the toolbar to represent the compatibles given as parameter. More... | |
void | makeEmpty () |
Make the toolbar appear empty but not disappear. 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... | |
Private Attributes | |
WMainWindow * | m_parent |
The widget managing this widget. More... | |
This is a toolbar.
Its main usage for now is the "compatible modules" toolbar.
Definition at line 49 of file WQtCombinerToolbar.h.
WQtCombinerToolbar::WQtCombinerToolbar | ( | WMainWindow * | parent, |
const WQtCombinerActionList & | compatibles | ||
) |
Constructs the toolbar.
parent | the parent widget of this widget, i.e. the widget that manages it. |
compatibles | the list of combiners |
Definition at line 41 of file WQtCombinerToolbar.cpp.
References WMainWindow::getControlPanel(), and WQtControlPanel::getMissingModuleAction().
|
explicit |
This creates an empty toolbar only containing the dummy button to reserve the size.
parent | the parent widget. |
Definition at line 52 of file WQtCombinerToolbar.cpp.
|
virtual |
destructor
Definition at line 58 of file WQtCombinerToolbar.cpp.
void WQtCombinerToolbar::makeEmpty | ( | ) |
Make the toolbar appear empty but not disappear.
Definition at line 62 of file WQtCombinerToolbar.cpp.
Referenced by WQtControlPanel::selectRoiTreeItem().
void WQtCombinerToolbar::updateButtons | ( | const WQtCombinerActionList & | compatibles | ) |
Update the toolbar to represent the compatibles given as parameter.
compatibles | The compatibles to produce the buttons for. |
Definition at line 67 of file WQtCombinerToolbar.cpp.
References WMainWindow::getControlPanel(), WQtControlPanel::getMissingModuleAction(), and m_parent.
Referenced by WQtControlPanel::createCompatibleButtons().
|
private |
The widget managing this widget.
Definition at line 87 of file WQtCombinerToolbar.h.
Referenced by updateButtons().