Public Member Functions | List of all members
iwidgets::CCollapsibleGroupWidgetDelegate Class Reference

Implementation of the IMultiPageWidgetDelegate interface for a simple container of widgets. More...

#include <CCollapsibleGroupWidgetDelegate.h>

Inheritance diagram for iwidgets::CCollapsibleGroupWidgetDelegate:
iwidgets::IMultiPageWidgetDelegate istd::IPolymorphic

Public Member Functions

 CCollapsibleGroupWidgetDelegate ()
 
virtual QWidget * CreateContainerWidget (QWidget *parentWidgetPtr, int containerGuiFlags=CGF_NONE, int orientation=Qt::Horizontal)
 Create container for the page widgets. More...
 
virtual bool ConnectPageIndexListener (QWidget &containerWidget, QObject *receiverPtr, const char *receiverSlotName)
 Connect object, which will be notified about changing of the current selected page index. More...
 
virtual bool SetPageHeaderPosition (QWidget &containerWidget, PageHeaderPosition pageHeaderPosition)
 Set the position of the page header bar on the container UI. More...
 
virtual int InsertPage (QWidget &containerWidget, QWidget *pageWidgetPtr, const QString &pageTitle, int pageIndex=-1)
 Add a new page to the container. More...
 
virtual void RemovePage (QWidget &containerWidget, int pageIndex)
 Remove the page from the container. More...
 
virtual void ResetPages (QWidget &containerWidget)
 Remove all pages from the container. More...
 
virtual int GetPagesCount (const QWidget &containerWidget) const
 Get the number of the pages in the container. More...
 
virtual QWidget * GetPageWidgetPtr (const QWidget &containerWidget, int pageIndex) const
 Get page's widget from the container. More...
 
virtual int GetCurrentPage (const QWidget &containerWidget) const
 Get currently active page in the container. More...
 
virtual bool SetCurrentPage (QWidget &containerWidget, int pageIndex)
 Set active page in the container. More...
 
virtual QString GetPageTitle (const QWidget &containerWidget, int pageIndex) const
 Get the title of the given page. More...
 
virtual void SetPageTitle (QWidget &containerWidget, int pageIndex, const QString &pageTitle)
 Set the page title. More...
 
virtual QIcon GetPageIcon (const QWidget &containerWidget, int pageIndex) const
 Get the page icon. More...
 
virtual void SetPageIcon (QWidget &containerWidget, int pageIndex, const QIcon &pageIcon)
 Set the page icon. More...
 
virtual QString GetPageToolTip (const QWidget &containerWidget, int pageIndex) const
 Get the page tool tip. More...
 
virtual void SetPageToolTip (QWidget &containerWidget, int pageIndex, const QString &pageToolTip)
 Set the page tool tip. More...
 
virtual bool IsPageEnabled (const QWidget &containerWidget, int pageIndex) const
 Get if the page enabled/disabled. More...
 
virtual bool SetPageEnabled (QWidget &containerWidget, int pageIndex, bool isPageEnabled=true)
 Set page enabled/disabled. More...
 
virtual bool IsPageVisible (const QWidget &containerWidget, int pageIndex) const
 Get if the page visible/hidden. More...
 
virtual bool SetPageVisible (QWidget &containerWidget, int pageIndex, bool isPageVisible=true)
 Set page visible/hidden. More...
 
virtual QSize GetPageIconSize (const QWidget &containerWidget) const
 Get the size page icon. More...
 
virtual bool SetPageIconSize (QWidget &containerWidget, const QSize &pageIconSize)
 Set the size of the icon for all pages in the container. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Additional Inherited Members

- Public Types inherited from iwidgets::IMultiPageWidgetDelegate
enum  PageHeaderPosition {
  PHP_AUTO, PHP_LEFT, PHP_TOP, PHP_RIGHT,
  PHP_BOTTOM
}
 Enum for describing of page header bar position on the container widget. More...
 
enum  ContainerGuiFlags { CGF_NONE = 0, CGF_UNIFORM_SIZES = 1, CGF_COMPACT = 2 }
 Flags for specifying the visual behavior of the page widgets in the UI-container. More...
 

Detailed Description

Implementation of the IMultiPageWidgetDelegate interface for a simple container of widgets.

Definition at line 16 of file CCollapsibleGroupWidgetDelegate.h.

Constructor & Destructor Documentation

iwidgets::CCollapsibleGroupWidgetDelegate::CCollapsibleGroupWidgetDelegate ( )

Member Function Documentation

virtual bool iwidgets::CCollapsibleGroupWidgetDelegate::ConnectPageIndexListener ( QWidget &  containerWidget,
QObject *  receiverPtr,
const char *  receiverSlotName 
)
virtual

Connect object, which will be notified about changing of the current selected page index.

Parameters
containerWidgetContainer widget which provides initiate switching of the page
receiverPtrReceiver of the page changing notification
receiverSlotNameName of the slot implemented in the receiver implementation, which will be triggered on page switching.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual QWidget* iwidgets::CCollapsibleGroupWidgetDelegate::CreateContainerWidget ( QWidget *  parentWidgetPtr,
int  containerGuiFlags = CGF_NONE,
int  orientation = Qt::Horizontal 
)
virtual

Create container for the page widgets.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual int iwidgets::CCollapsibleGroupWidgetDelegate::GetCurrentPage ( const QWidget &  containerWidget) const
virtual

Get currently active page in the container.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual QIcon iwidgets::CCollapsibleGroupWidgetDelegate::GetPageIcon ( const QWidget &  containerWidget,
int  pageIndex 
) const
virtual

Get the page icon.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual QSize iwidgets::CCollapsibleGroupWidgetDelegate::GetPageIconSize ( const QWidget &  containerWidget) const
virtual

Get the size page icon.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual int iwidgets::CCollapsibleGroupWidgetDelegate::GetPagesCount ( const QWidget &  containerWidget) const
virtual

Get the number of the pages in the container.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual QString iwidgets::CCollapsibleGroupWidgetDelegate::GetPageTitle ( const QWidget &  containerWidget,
int  pageIndex 
) const
virtual

Get the title of the given page.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual QString iwidgets::CCollapsibleGroupWidgetDelegate::GetPageToolTip ( const QWidget &  containerWidget,
int  pageIndex 
) const
virtual

Get the page tool tip.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual QWidget* iwidgets::CCollapsibleGroupWidgetDelegate::GetPageWidgetPtr ( const QWidget &  containerWidget,
int  pageIndex 
) const
virtual

Get page's widget from the container.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual int iwidgets::CCollapsibleGroupWidgetDelegate::InsertPage ( QWidget &  containerWidget,
QWidget *  pageWidgetPtr,
const QString &  pageTitle,
int  pageIndex = -1 
)
virtual

Add a new page to the container.

If pageIndex is negative, the new page will be inserted after the last page. The container overtakes the control about widgetPtr.

Returns
Position of the inserted page.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual bool iwidgets::CCollapsibleGroupWidgetDelegate::IsPageEnabled ( const QWidget &  containerWidget,
int  pageIndex 
) const
virtual

Get if the page enabled/disabled.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual bool iwidgets::CCollapsibleGroupWidgetDelegate::IsPageVisible ( const QWidget &  containerWidget,
int  pageIndex 
) const
virtual

Get if the page visible/hidden.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual void iwidgets::CCollapsibleGroupWidgetDelegate::RemovePage ( QWidget &  containerWidget,
int  pageIndex 
)
virtual

Remove the page from the container.

The page widget will be destroyed.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual void iwidgets::CCollapsibleGroupWidgetDelegate::ResetPages ( QWidget &  containerWidget)
virtual

Remove all pages from the container.

All page widgets will be destroyed.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual bool iwidgets::CCollapsibleGroupWidgetDelegate::SetCurrentPage ( QWidget &  containerWidget,
int  pageIndex 
)
virtual

Set active page in the container.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual bool iwidgets::CCollapsibleGroupWidgetDelegate::SetPageEnabled ( QWidget &  containerWidget,
int  pageIndex,
bool  isPageEnabled = true 
)
virtual

Set page enabled/disabled.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual bool iwidgets::CCollapsibleGroupWidgetDelegate::SetPageHeaderPosition ( QWidget &  containerWidget,
PageHeaderPosition  pageHeaderPosition 
)
virtual

Set the position of the page header bar on the container UI.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual void iwidgets::CCollapsibleGroupWidgetDelegate::SetPageIcon ( QWidget &  containerWidget,
int  pageIndex,
const QIcon &  pageIcon 
)
virtual

Set the page icon.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual bool iwidgets::CCollapsibleGroupWidgetDelegate::SetPageIconSize ( QWidget &  containerWidget,
const QSize &  pageIconSize 
)
virtual

Set the size of the icon for all pages in the container.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual void iwidgets::CCollapsibleGroupWidgetDelegate::SetPageTitle ( QWidget &  containerWidget,
int  pageIndex,
const QString &  pageTitle 
)
virtual

Set the page title.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual void iwidgets::CCollapsibleGroupWidgetDelegate::SetPageToolTip ( QWidget &  containerWidget,
int  pageIndex,
const QString &  pageToolTip 
)
virtual

Set the page tool tip.

Implements iwidgets::IMultiPageWidgetDelegate.

virtual bool iwidgets::CCollapsibleGroupWidgetDelegate::SetPageVisible ( QWidget &  containerWidget,
int  pageIndex,
bool  isPageVisible = true 
)
virtual

Set page visible/hidden.

Implements iwidgets::IMultiPageWidgetDelegate.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy