OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
aTtbGroup.h
Go to the documentation of this file.
1/*
2 * File: aTtbGroup.h
3 * Package: akWidgets
4 *
5 * Created on: August 05, 2020
6 * Author: Alexander Kuester
7 * Copyright (c) 2022 Alexander Kuester
8 * This file is part of the uiCore component.
9 * This file is subject to the terms and conditions defined in
10 * file 'LICENSE', which is part of this source code package.
11 *
12 * This class is using a modified version of the "Qt TabToolbar" library.
13 * The changes to the library are listed in the documentation which was
14 * provided with this source code package.
15 */
16
17#pragma once
18
19// AK header
21#include <akCore/akCore.h>
22#include <akGui/aTtbContainer.h>
23
24// Qt header
25#include <qstring.h> // QString
26
27// Forward declaration
28class QAction;
29namespace tt { class Group; }
30
31namespace ak {
32
33 // Forward declaration
34 class aMessenger;
35 class aUidManager;
36
38 public:
40 aMessenger * _messenger,
41 tt::Group * _group,
42 const QString & _text
43 );
44
45 virtual ~aTtbGroup();
46
49 virtual void addChild(
50 aObject * _child
51 ) override;
52
55 virtual aTtbContainer * createSubContainer(
56 const QString & _text = QString("")
57 ) override;
58
60 virtual void destroyAllSubContainer(void) override;
61
65 virtual void removeChildObject(
66 aObject * _child
67 ) override;
68
71 virtual void setEnabled(
72 bool _enabled
73 ) override;
74
75 void addAction(QAction* _action);
76
77 private:
78 tt::Group * m_group;
79
80 // Block default constructor
81 aTtbGroup() = delete;
82
83 // Block copy constructor
84 aTtbGroup(const aTtbGroup & _other) = delete;
85 aTtbGroup & operator = (aTtbGroup &) = delete;
86 };
87} // namespace ak
#define UICORE_API_EXPORT
Definition globalDataTypes.h:20
Definition Group.h:20
Class used to forward messages to receivers This class is used to forward a message to receivers....
Definition aMessenger.h:34
This class is used to store the main information of any object used Information contained is the UID ...
Definition aObject.h:34
This class provides a interface that represents a tab toolbar container.
Definition aTtbContainer.h:36
Definition aTtbGroup.h:37
Definition uiAPI.h:45
Definition TabToolBar.h:18