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

#include "TabToolBarPage.h"

Public Member Functions

 TabToolBarPage (TabToolBar *_parentTabToolBar, tt::Page *_page, const std::string &_name)
 
virtual ~TabToolBarPage ()
 
const std::string & getName (void) const
 
void setParentTabToolBar (TabToolBar *_parentTabToolBar)
 
TabToolBargetParentTabToolBar (void)
 
const TabToolBargetParentTabToolBar (void) const
 
TabToolBarGroupaddGroup (const std::string &_groupName, bool _returnExisting=false)
 Adds a new group to the TabToolBar page and returns it.
 
TabToolBarSubGroupaddSubGroup (const std::string &_groupName, const std::string &_subGroupName, bool _returnExisting=false)
 Adds a new sub group to the TabToolBar group and returns it.
 
void forgetGroup (TabToolBarGroup *_group)
 Removes the specified group from the lists. Caller keeps ownership of the group.
 
TabToolBarGroupfindGroup (const std::string &_groupName)
 
const TabToolBarGroupfindGroup (const std::string &_groupName) const
 
bool hasGroup (const std::string &_groupName) const
 
TabToolBarSubGroupfindSubGroup (const std::string &_groupName, const std::string &_subGroupName)
 
const TabToolBarSubGroupfindSubGroup (const std::string &_groupName, const std::string &_subGroupName) const
 
bool hasSubGroup (const std::string &_groupName, const std::string &_subGroupName) const
 

Constructor & Destructor Documentation

◆ TabToolBarPage()

ot::TabToolBarPage::TabToolBarPage ( TabToolBar * _parentTabToolBar,
tt::Page * _page,
const std::string & _name )

◆ ~TabToolBarPage()

ot::TabToolBarPage::~TabToolBarPage ( )
virtual

Member Function Documentation

◆ addGroup()

ot::TabToolBarGroup * ot::TabToolBarPage::addGroup ( 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.

◆ addSubGroup()

ot::TabToolBarSubGroup * ot::TabToolBarPage::addSubGroup ( 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::TabToolBarPage::findGroup ( const std::string & _groupName)

◆ findGroup() [2/2]

const ot::TabToolBarGroup * ot::TabToolBarPage::findGroup ( const std::string & _groupName) const

◆ findSubGroup() [1/2]

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

◆ findSubGroup() [2/2]

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

◆ forgetGroup()

void ot::TabToolBarPage::forgetGroup ( TabToolBarGroup * _group)

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

◆ getName()

const std::string & ot::TabToolBarPage::getName ( void ) const
inline

◆ getParentTabToolBar() [1/2]

TabToolBar * ot::TabToolBarPage::getParentTabToolBar ( void )
inline

◆ getParentTabToolBar() [2/2]

const TabToolBar * ot::TabToolBarPage::getParentTabToolBar ( void ) const
inline

◆ hasGroup()

bool ot::TabToolBarPage::hasGroup ( const std::string & _groupName) const
inline

◆ hasSubGroup()

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

◆ setParentTabToolBar()

void ot::TabToolBarPage::setParentTabToolBar ( TabToolBar * _parentTabToolBar)
inline

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