OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::TabToolBar Class Reference

#include "TabToolBar.h"

Inheritance diagram for ot::TabToolBar:
ot::AbstractToolBar

Public Member Functions

 TabToolBar (MainWindow *_window=(MainWindow *) nullptr)
 
virtual ~TabToolBar ()
 
virtual QToolBar * getToolBar (void) override
 
virtual const QToolBar * getToolBar (void) const override
 
TabToolBarPageaddPage (const std::string &_pageName, bool _returnExisting=false)
 Adds a new page to the TabToolBar and returns it.
 
TabToolBarGroupaddGroup (const std::string &_pageName, const std::string &_groupName, bool _returnExisting=false)
 Adds a new group to the TabToolBar page and returns it.
 
TabToolBarSubGroupaddSubGroup (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.
 
TabToolBarPagefindPage (const std::string &_pageName)
 
const TabToolBarPagefindPage (const std::string &_pageName) const
 
bool hasPage (const std::string &_pageName) const
 
TabToolBarGroupfindGroup (const std::string &_pageName, const std::string &_groupName)
 
const TabToolBarGroupfindGroup (const std::string &_pageName, const std::string &_groupName) const
 
bool hasGroup (const std::string &_pageName, const std::string &_groupName) const
 
TabToolBarSubGroupfindSubGroup (const std::string &_pageName, const std::string &_groupName, const std::string &_subGroupName)
 
const TabToolBarSubGroupfindSubGroup (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 ()
 
AbstractToolBaroperator= (AbstractToolBar &&)=default
 

Constructor & Destructor Documentation

◆ TabToolBar()

ot::TabToolBar::TabToolBar ( MainWindow * _window = (MainWindow*)nullptr)

◆ ~TabToolBar()

ot::TabToolBar::~TabToolBar ( )
virtual

Member Function Documentation

◆ addGroup()

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.

Parameters
_groupNameName/Title of the group.
_returnExistingIf true the group will be returned if it already exists. Otherwise nullptr will be returned in this case.

◆ addPage()

ot::TabToolBarPage * ot::TabToolBar::addPage ( const std::string & _pageName,
bool _returnExisting = false )

Adds a new page to the TabToolBar and returns it.

Parameters
_pageNameName/Title of the page.
_returnExistingIf true the page will be returned if it already exists. Otherwise nullptr will be returned in this case.

◆ addSubGroup()

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.

Parameters
_subGroupNameName/Title of the sub group.
_returnExistingIf true the sub group will be returned if it already exists. Otherwise nullptr will be returned in this case.

◆ findGroup() [1/2]

ot::TabToolBarGroup * ot::TabToolBar::findGroup ( const std::string & _pageName,
const std::string & _groupName )

◆ findGroup() [2/2]

const ot::TabToolBarGroup * ot::TabToolBar::findGroup ( const std::string & _pageName,
const std::string & _groupName ) const

◆ findPage() [1/2]

ot::TabToolBarPage * ot::TabToolBar::findPage ( const std::string & _pageName)

◆ findPage() [2/2]

const ot::TabToolBarPage * ot::TabToolBar::findPage ( const std::string & _pageName) const

◆ findSubGroup() [1/2]

ot::TabToolBarSubGroup * ot::TabToolBar::findSubGroup ( const std::string & _pageName,
const std::string & _groupName,
const std::string & _subGroupName )

◆ findSubGroup() [2/2]

const ot::TabToolBarSubGroup * ot::TabToolBar::findSubGroup ( const std::string & _pageName,
const std::string & _groupName,
const std::string & _subGroupName ) const

◆ forgetPage()

void ot::TabToolBar::forgetPage ( TabToolBarPage * _page)

Removes the specified page from the lists. Caller keeps ownership of the page.

◆ getToolBar() [1/2]

const QToolBar * ot::TabToolBar::getToolBar ( void ) const
overridevirtual

Implements ot::AbstractToolBar.

◆ getToolBar() [2/2]

QToolBar * ot::TabToolBar::getToolBar ( void )
overridevirtual

Implements ot::AbstractToolBar.

◆ hasGroup()

bool ot::TabToolBar::hasGroup ( const std::string & _pageName,
const std::string & _groupName ) const
inline

◆ hasPage()

bool ot::TabToolBar::hasPage ( const std::string & _pageName) const
inline

◆ hasSubGroup()

bool ot::TabToolBar::hasSubGroup ( const std::string & _pageName,
const std::string & _groupName,
const std::string & _subGroupName ) const
inline

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