ACF $AcfVersion:0$
CTabContainerGuiComp.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
7
8
9namespace iqtgui
10{
11
12
19{
20public:
22
23 I_BEGIN_COMPONENT(CTabContainerGuiComp);
24 I_ASSIGN_MULTI_0(m_slaveWidgetsCompPtr, "Guis", "Slave widgets for tab window", true);
25 I_ASSIGN(m_cornerGuiCompPtr, "CornerWidget", "Optional corner widget", false, "CornerWidget");
26 I_ASSIGN(m_useTriangularTabsAttrPtr, "UseTriangularTabs", "Using triangular tab form", true, false);
27 I_ASSIGN(m_tabOrientationAttrPtr, "TabBarOrientation", "Orientation of the tab bar\n 0 - North\n 1 - South\n 2 - West\n 3 - East", true, 0);
28 I_ASSIGN(m_useDocumentModeAttrPtr, "UseDocumentMode", "If enabled, the tab widget will be switched into the document mode", true, false);
29 I_END_COMPONENT;
30
31protected:
32 // reimplemented (iqtgui::CMultiPageGuiCompBase)
33 virtual int GetPagesCount() const override;
34 virtual iqtgui::IGuiObject* GetPageGuiComponent(int pageIndex) const override;
35 virtual int GetDesignType() const override;
36
37 // reimplemented (iqtgui::CGuiComponentBase)
38 virtual void OnGuiCreated() override;
39 virtual void OnGuiDestroyed() override;
40
41private:
42 I_MULTIREF(IGuiObject, m_slaveWidgetsCompPtr);
43 I_REF(iqtgui::IGuiObject, m_cornerGuiCompPtr);
44 I_ATTR(bool, m_useTriangularTabsAttrPtr);
45 I_ATTR(int, m_tabOrientationAttrPtr);
46 I_ATTR(bool, m_useDocumentModeAttrPtr);
47};
48
49
50} // namespace iqtgui
51
52
53
Component to create the tab widget, that shows the specified sub-UI-component in its tab page.
virtual void OnGuiCreated() override
Called just after GUI is initialized.
virtual iqtgui::IGuiObject * GetPageGuiComponent(int pageIndex) const override
Get the UI component for a given page.
virtual void OnGuiDestroyed() override
Called just before GUI is released.
virtual int GetDesignType() const override
Get the container UI mode.
virtual int GetPagesCount() const override
Get the number of the pages in the UI container.
Common interface for GUI objects used in ACF component context.
Definition IGuiObject.h:133
Standard GUI specific interfaces and components based on Qt.