ICF 3.1.1.10
Technical documentation of ICF Libraries
CTabContainerGuiComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iqtgui_CTabContainerGuiComp_included
7#define iqtgui_CTabContainerGuiComp_included
8
9
10// ICF includes
12
13
14namespace istdgui
15{
16
17
24{
25public:
27
28 I_BEGIN_COMPONENT(CTabContainerGuiComp);
29 I_ASSIGN_MULTI_0(m_slaveWidgetsCompPtr, "Guis", "Slave widgets for tab window", true);
30 I_ASSIGN(m_cornerGuiCompPtr, "CornerWidget", "Optional corner widget", false, "CornerWidget");
31 I_ASSIGN(m_useTriangularTabsAttrPtr, "UseTriangularTabs", "Using triangular tab form", true, false);
32 I_ASSIGN(m_tabOrientationAttrPtr, "TabBarOrientation", "Orientation of the tab bar\n 0 - North\n 1 - South\n 2 - West\n 3 - East", true, 0);
33 I_ASSIGN(m_useDocumentModeAttrPtr, "UseDocumentMode", "If enabled, the tab widget will be switched into the document mode", true, false);
34 I_END_COMPONENT;
35
36protected:
37 // reimplemented (istdgui::CMultiPageGuiCompBase)
38 int GetPagesCount() const override;
39 istdgui::IGuiObject* GetPageGuiComponent(int pageIndex) const override;
40 int GetDesignType() const override;
41
42 // reimplemented (istdgui::CGuiComponentBase)
43 void OnGuiCreated() override;
44 void OnGuiDestroyed() override;
45
46private:
47 I_MULTIREF(IGuiObject, m_slaveWidgetsCompPtr);
48 I_REF(istdgui::IGuiObject, m_cornerGuiCompPtr);
49 I_ATTR(bool, m_useTriangularTabsAttrPtr);
50 I_ATTR(int, m_tabOrientationAttrPtr);
51 I_ATTR(bool, m_useDocumentModeAttrPtr);
52};
53
54
55} // namespace istdgui
56
57
58#endif // !iqtgui_CTabContainerGuiComp_included
59
Component to create the tab widget, that shows the specified sub-UI-component in its tab page.
int GetPagesCount() const override
Get the number of the pages in the UI container.
istdgui::IGuiObject * GetPageGuiComponent(int pageIndex) const override
Get the UI component for a given page.
void OnGuiCreated() override
Called just after GUI is initialized.
int GetDesignType() const override
Get the container UI mode.
void OnGuiDestroyed() override
Called just before GUI is released.
Common interface for GUI objects using in component context.
Definition IGuiObject.h:27
Standard GUI specific interfaces and components based on Qt.

© Witold Gantzke and Kirill Lepskiy