OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WQtCombinerToolbar Class Reference

This is a toolbar. More...

#include <WQtCombinerToolbar.h>

+ Inheritance diagram for WQtCombinerToolbar:
+ Collaboration diagram for WQtCombinerToolbar:

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...
 
QMenugetStyleMenu (QString title=QString("Toolbar Style")) const
 Returns a menu for styling the menu items. More...
 

Private Attributes

WMainWindowm_parent
 The widget managing this widget. More...
 

Detailed Description

This is a toolbar.

Its main usage for now is the "compatible modules" toolbar.

Definition at line 49 of file WQtCombinerToolbar.h.

Constructor & Destructor Documentation

◆ WQtCombinerToolbar() [1/2]

WQtCombinerToolbar::WQtCombinerToolbar ( WMainWindow parent,
const WQtCombinerActionList compatibles 
)

Constructs the toolbar.

Parameters
parentthe parent widget of this widget, i.e. the widget that manages it.
compatiblesthe list of combiners

Definition at line 41 of file WQtCombinerToolbar.cpp.

References WMainWindow::getControlPanel(), and WQtControlPanel::getMissingModuleAction().

+ Here is the call graph for this function:

◆ WQtCombinerToolbar() [2/2]

WQtCombinerToolbar::WQtCombinerToolbar ( WMainWindow parent)
explicit

This creates an empty toolbar only containing the dummy button to reserve the size.

Parameters
parentthe parent widget.

Definition at line 52 of file WQtCombinerToolbar.cpp.

◆ ~WQtCombinerToolbar()

WQtCombinerToolbar::~WQtCombinerToolbar ( )
virtual

destructor

Definition at line 58 of file WQtCombinerToolbar.cpp.

Member Function Documentation

◆ makeEmpty()

void WQtCombinerToolbar::makeEmpty ( )

Make the toolbar appear empty but not disappear.

Definition at line 62 of file WQtCombinerToolbar.cpp.

Referenced by WQtControlPanel::selectRoiTreeItem().

+ Here is the caller graph for this function:

◆ updateButtons()

void WQtCombinerToolbar::updateButtons ( const WQtCombinerActionList compatibles)

Update the toolbar to represent the compatibles given as parameter.

Parameters
compatiblesThe 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_parent

WMainWindow* WQtCombinerToolbar::m_parent
private

The widget managing this widget.

Definition at line 87 of file WQtCombinerToolbar.h.

Referenced by updateButtons().


The documentation for this class was generated from the following files: