CTabContainerGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtgui_CTabContainerGuiComp_included
2 #define iqtgui_CTabContainerGuiComp_included
3 
4 
5 // ACF includes
7 
8 
9 namespace iqtgui
10 {
11 
12 
19 {
20 public:
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 
31 protected:
32  // reimplemented (iqtgui::CMultiPageGuiCompBase)
33  virtual int GetPagesCount() const;
34  virtual iqtgui::IGuiObject* GetPageGuiComponent(int pageIndex) const;
35  virtual int GetDesignType() const;
36 
37  // reimplemented (iqtgui::CGuiComponentBase)
38  virtual void OnGuiCreated();
39  virtual void OnGuiDestroyed();
40 
41 private:
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 #endif // !iqtgui_CTabContainerGuiComp_included
54 
virtual iqtgui::IGuiObject * GetPageGuiComponent(int pageIndex) const
Get the UI component for a given page.
virtual int GetPagesCount() const
Get the number of the pages in the UI container.
Component to create the tab widget, that shows the specified sub-UI-component in its tab page...
CMultiPageGuiCompBase BaseClass
virtual int GetDesignType() const
Get the container UI mode.
Common interface for GUI objects using in component context.
Definition: IGuiObject.h:25
virtual void OnGuiDestroyed()
Called just before GUI is released.
virtual void OnGuiCreated()
Called just after GUI is initialized.

© 2007-2017 Witold Gantzke and Kirill Lepskiy