#include "TabToolBar.h"
Public Member Functions | |
TabToolBar (MainWindow *_window=(MainWindow *) nullptr) | |
virtual | ~TabToolBar () |
virtual QToolBar * | getToolBar (void) override |
virtual const QToolBar * | getToolBar (void) const override |
TabToolBarPage * | addPage (const std::string &_pageName, bool _returnExisting=false) |
Adds a new page to the TabToolBar and returns it. | |
TabToolBarGroup * | addGroup (const std::string &_pageName, const std::string &_groupName, bool _returnExisting=false) |
Adds a new group to the TabToolBar page and returns it. | |
TabToolBarSubGroup * | addSubGroup (const std::string &_pageName, const std::string &_groupName, const std::string &_subGroupName, bool _returnExisting=false) |
Adds a new sub group to the TabToolBar group and returns it. | |
void | forgetPage (TabToolBarPage *_page) |
Removes the specified page from the lists. Caller keeps ownership of the page. | |
TabToolBarPage * | findPage (const std::string &_pageName) |
const TabToolBarPage * | findPage (const std::string &_pageName) const |
bool | hasPage (const std::string &_pageName) const |
TabToolBarGroup * | findGroup (const std::string &_pageName, const std::string &_groupName) |
const TabToolBarGroup * | findGroup (const std::string &_pageName, const std::string &_groupName) const |
bool | hasGroup (const std::string &_pageName, const std::string &_groupName) const |
TabToolBarSubGroup * | findSubGroup (const std::string &_pageName, const std::string &_groupName, const std::string &_subGroupName) |
const TabToolBarSubGroup * | findSubGroup (const std::string &_pageName, const std::string &_groupName, const std::string &_subGroupName) const |
bool | hasSubGroup (const std::string &_pageName, const std::string &_groupName, const std::string &_subGroupName) const |
Public Member Functions inherited from ot::AbstractToolBar | |
AbstractToolBar () | |
AbstractToolBar (AbstractToolBar &&)=default | |
virtual | ~AbstractToolBar () |
AbstractToolBar & | operator= (AbstractToolBar &&)=default |
ot::TabToolBar::TabToolBar | ( | MainWindow * | _window = (MainWindow*)nullptr | ) |
|
virtual |
ot::TabToolBarGroup * ot::TabToolBar::addGroup | ( | const std::string & | _pageName, |
const std::string & | _groupName, | ||
bool | _returnExisting = false ) |
Adds a new group to the TabToolBar page and returns it.
_groupName | Name/Title of the group. |
_returnExisting | If true the group will be returned if it already exists. Otherwise nullptr will be returned in this case. |
ot::TabToolBarPage * ot::TabToolBar::addPage | ( | const std::string & | _pageName, |
bool | _returnExisting = false ) |
Adds a new page to the TabToolBar and returns it.
_pageName | Name/Title of the page. |
_returnExisting | If true the page will be returned if it already exists. Otherwise nullptr will be returned in this case. |
ot::TabToolBarSubGroup * ot::TabToolBar::addSubGroup | ( | const std::string & | _pageName, |
const std::string & | _groupName, | ||
const std::string & | _subGroupName, | ||
bool | _returnExisting = false ) |
Adds a new sub group to the TabToolBar group and returns it.
_subGroupName | Name/Title of the sub group. |
_returnExisting | If true the sub group will be returned if it already exists. Otherwise nullptr will be returned in this case. |
ot::TabToolBarGroup * ot::TabToolBar::findGroup | ( | const std::string & | _pageName, |
const std::string & | _groupName ) |
const ot::TabToolBarGroup * ot::TabToolBar::findGroup | ( | const std::string & | _pageName, |
const std::string & | _groupName ) const |
ot::TabToolBarPage * ot::TabToolBar::findPage | ( | const std::string & | _pageName | ) |
const ot::TabToolBarPage * ot::TabToolBar::findPage | ( | const std::string & | _pageName | ) | const |
ot::TabToolBarSubGroup * ot::TabToolBar::findSubGroup | ( | const std::string & | _pageName, |
const std::string & | _groupName, | ||
const std::string & | _subGroupName ) |
const ot::TabToolBarSubGroup * ot::TabToolBar::findSubGroup | ( | const std::string & | _pageName, |
const std::string & | _groupName, | ||
const std::string & | _subGroupName ) const |
void ot::TabToolBar::forgetPage | ( | TabToolBarPage * | _page | ) |
Removes the specified page from the lists. Caller keeps ownership of the page.
|
overridevirtual |
Implements ot::AbstractToolBar.
|
overridevirtual |
Implements ot::AbstractToolBar.
|
inline |
|
inline |
|
inline |