CCollapsibleGroupWidgetDelegate.h
Go to the documentation of this file.
1 #ifndef iwidgets_CCollapsibleGroupWidgetDelegate_included
2 #define iwidgets_CCollapsibleGroupWidgetDelegate_included
3 
4 
5 // ACF includes
7 
8 
9 namespace iwidgets
10 {
11 
12 
17 {
18 public:
20 
21  // reimplemented (iwidgets::IMultiPageWidgetDelegate)
22  virtual QWidget* CreateContainerWidget(
23  QWidget* parentWidgetPtr,
24  int containerGuiFlags = CGF_NONE,
25  int orientation = Qt::Horizontal);
26  virtual bool ConnectPageIndexListener(
27  QWidget& containerWidget,
28  QObject* receiverPtr,
29  const char* receiverSlotName);
30  virtual bool SetPageHeaderPosition(QWidget& containerWidget, PageHeaderPosition pageHeaderPosition);
31  virtual int InsertPage(
32  QWidget& containerWidget,
33  QWidget* pageWidgetPtr,
34  const QString& pageTitle,
35  int pageIndex = -1);
36  virtual void RemovePage(QWidget& containerWidget, int pageIndex);
37  virtual void ResetPages(QWidget& containerWidget);
38  virtual int GetPagesCount(const QWidget& containerWidget) const;
39  virtual QWidget* GetPageWidgetPtr(const QWidget& containerWidget, int pageIndex) const;
40  virtual int GetCurrentPage(const QWidget& containerWidget) const;
41  virtual bool SetCurrentPage(QWidget& containerWidget, int pageIndex);
42  virtual QString GetPageTitle(const QWidget& containerWidget, int pageIndex) const;
43  virtual void SetPageTitle(QWidget& containerWidget, int pageIndex, const QString& pageTitle);
44  virtual QIcon GetPageIcon(const QWidget& containerWidget, int pageIndex) const;
45  virtual void SetPageIcon(QWidget& containerWidget, int pageIndex, const QIcon& pageIcon);
46  virtual QString GetPageToolTip(const QWidget& containerWidget, int pageIndex) const;
47  virtual void SetPageToolTip(QWidget& containerWidget, int pageIndex, const QString& pageToolTip);
48  virtual bool IsPageEnabled(const QWidget& containerWidget, int pageIndex) const;
49  virtual bool SetPageEnabled(QWidget& containerWidget, int pageIndex, bool isPageEnabled = true);
50  virtual bool IsPageVisible(const QWidget& containerWidget, int pageIndex) const;
51  virtual bool SetPageVisible(QWidget& containerWidget, int pageIndex, bool isPageVisible = true);
52  virtual QSize GetPageIconSize(const QWidget& containerWidget) const;
53  virtual bool SetPageIconSize(QWidget& containerWidget, const QSize& pageIconSize);
54 
55 private:
56  QSize m_iconSize;
57  int m_containerGuiFlags;
58  int m_orientation;
59 };
60 
61 
62 } // namespace iwidgets
63 
64 
65 #endif // !iwidgets_CCollapsibleGroupWidgetDelegate_included
66 
67 
virtual QString GetPageToolTip(const QWidget &containerWidget, int pageIndex) const
Get the page tool tip.
virtual int GetPagesCount(const QWidget &containerWidget) const
Get the number of the pages in the container.
virtual int InsertPage(QWidget &containerWidget, QWidget *pageWidgetPtr, const QString &pageTitle, int pageIndex=-1)
Add a new page to the container.
virtual void SetPageToolTip(QWidget &containerWidget, int pageIndex, const QString &pageToolTip)
Set the page tool tip.
virtual bool SetPageHeaderPosition(QWidget &containerWidget, PageHeaderPosition pageHeaderPosition)
Set the position of the page header bar on the container UI.
virtual bool IsPageEnabled(const QWidget &containerWidget, int pageIndex) const
Get if the page enabled/disabled.
virtual QSize GetPageIconSize(const QWidget &containerWidget) const
Get the size page icon.
virtual bool SetPageIconSize(QWidget &containerWidget, const QSize &pageIconSize)
Set the size of the icon for all pages in the container.
virtual bool SetPageVisible(QWidget &containerWidget, int pageIndex, bool isPageVisible=true)
Set page visible/hidden.
virtual void RemovePage(QWidget &containerWidget, int pageIndex)
Remove the page from the container.
virtual void SetPageIcon(QWidget &containerWidget, int pageIndex, const QIcon &pageIcon)
Set the page icon.
Implementation of the IMultiPageWidgetDelegate interface for a simple container of widgets...
virtual bool SetPageEnabled(QWidget &containerWidget, int pageIndex, bool isPageEnabled=true)
Set page enabled/disabled.
virtual QWidget * GetPageWidgetPtr(const QWidget &containerWidget, int pageIndex) const
Get page's widget from the container.
virtual QString GetPageTitle(const QWidget &containerWidget, int pageIndex) const
Get the title of the given page.
virtual int GetCurrentPage(const QWidget &containerWidget) const
Get currently active page in the container.
virtual bool SetCurrentPage(QWidget &containerWidget, int pageIndex)
Set active page in the container.
virtual bool ConnectPageIndexListener(QWidget &containerWidget, QObject *receiverPtr, const char *receiverSlotName)
Connect object, which will be notified about changing of the current selected page index...
virtual QWidget * CreateContainerWidget(QWidget *parentWidgetPtr, int containerGuiFlags=CGF_NONE, int orientation=Qt::Horizontal)
Create container for the page widgets.
virtual bool IsPageVisible(const QWidget &containerWidget, int pageIndex) const
Get if the page visible/hidden.
virtual void SetPageTitle(QWidget &containerWidget, int pageIndex, const QString &pageTitle)
Set the page title.
virtual void ResetPages(QWidget &containerWidget)
Remove all pages from the container.
PageHeaderPosition
Enum for describing of page header bar position on the container widget.
Interface of a delegate object used for operating on concrete UI-container implementation.
Default behavior of the UI container.
virtual QIcon GetPageIcon(const QWidget &containerWidget, int pageIndex) const
Get the page icon.

© 2007-2017 Witold Gantzke and Kirill Lepskiy