OpenWalnut  1.5.0dev
Public Member Functions | Protected Attributes | List of all members
WQtToolBar Class Reference

This is a toolbar. More...

#include <WQtToolBar.h>

+ Inheritance diagram for WQtToolBar:
+ Collaboration diagram for WQtToolBar:

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...
 
QMenugetStyleMenu (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...
 

Detailed Description

This is a toolbar.

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

Definition at line 38 of file WQtToolBar.h.

Constructor & Destructor Documentation

◆ WQtToolBar()

WQtToolBar::WQtToolBar ( const QString &  title,
WMainWindow parent 
)

Constructs the toolbar.

Parameters
titlename of the toolbar.
parentthe parent widget of this widget, i.e. the widget that manages it.

Definition at line 33 of file WQtToolBar.cpp.

◆ ~WQtToolBar()

WQtToolBar::~WQtToolBar ( )
virtual

destructor

Definition at line 38 of file WQtToolBar.cpp.

Member Function Documentation

◆ addAction()

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.

Parameters
actionthe action to add.

Definition at line 42 of file WQtToolBar.cpp.

References m_actions.

Referenced by WMainWindow::setupGUI().

+ Here is the caller graph for this function:

◆ clearButtons()

void WQtToolBar::clearButtons ( )

Removes all buttons,.

Definition at line 48 of file WQtToolBar.cpp.

References m_actions.

Member Data Documentation

◆ m_actions

std::list< QAction* > WQtToolBar::m_actions
protected

The list of widgets in this toolbar.

Definition at line 70 of file WQtToolBar.h.

Referenced by addAction(), and clearButtons().


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