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

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

WSettingMenum_styleOptionMenu
 The options for toolbar style. More...
 

Detailed Description

Base class for toolbars.

Definition at line 37 of file WQtToolBarBase.h.

Constructor & Destructor Documentation

◆ WQtToolBarBase()

WQtToolBarBase::WQtToolBarBase ( 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 31 of file WQtToolBarBase.cpp.

References WSettingMenu::get(), handleStyleUpdate(), and m_styleOptionMenu.

+ Here is the call graph for this function:

◆ ~WQtToolBarBase()

WQtToolBarBase::~WQtToolBarBase ( )
virtual

Destructor.

Definition at line 57 of file WQtToolBarBase.cpp.

Member Function Documentation

◆ getStyleMenu()

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.

Parameters
titlethe title of the menu.
Returns
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:

◆ handleStyleUpdate

void WQtToolBarBase::handleStyleUpdate ( unsigned int  index)
privateslot

Used to update the style of this toolbar.

Parameters
indexthe 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:

Member Data Documentation

◆ m_styleOptionMenu

WSettingMenu* WQtToolBarBase::m_styleOptionMenu
private

The options for toolbar style.

Definition at line 67 of file WQtToolBarBase.h.

Referenced by getStyleMenu(), and WQtToolBarBase().


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