12#include <QtCore/qstring.h>
18namespace tt {
class TabToolbar; }
24 class TabToolBarGroup;
25 class TabToolBarSubGroup;
33 virtual QToolBar* getToolBar(
void)
override;
34 virtual const QToolBar* getToolBar(
void)
const override;
43 TabToolBarPage* addPage(
const std::string& _pageName,
bool _returnExisting =
false);
48 TabToolBarGroup* addGroup(
const std::string& _pageName,
const std::string& _groupName,
bool _returnExisting =
false);
53 TabToolBarSubGroup* addSubGroup(
const std::string& _pageName,
const std::string& _groupName,
const std::string& _subGroupName,
bool _returnExisting =
false);
64 const TabToolBarPage* findPage(
const std::string& _pageName)
const;
65 bool hasPage(
const std::string& _pageName)
const {
return this->findPage(_pageName) !=
nullptr; };
67 TabToolBarGroup* findGroup(
const std::string& _pageName,
const std::string& _groupName);
68 const TabToolBarGroup* findGroup(
const std::string& _pageName,
const std::string& _groupName)
const;
69 bool hasGroup(
const std::string& _pageName,
const std::string& _groupName)
const {
return this->findGroup(_pageName, _groupName) !=
nullptr; };
71 TabToolBarSubGroup* findSubGroup(
const std::string& _pageName,
const std::string& _groupName,
const std::string& _subGroupName);
72 const TabToolBarSubGroup* findSubGroup(
const std::string& _pageName,
const std::string& _groupName,
const std::string& _subGroupName)
const;
73 bool hasSubGroup(
const std::string& _pageName,
const std::string& _groupName,
const std::string& _subGroupName)
const {
return this->findSubGroup(_pageName, _groupName, _subGroupName) !=
nullptr; };
76 tt::TabToolbar* m_toolBar;
78 std::list<TabToolBarPage*> m_pages;
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition MainWindow.h:17
Definition TabToolBarPage.h:27
Definition TabToolBar.h:18