![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Implementation of the widget, which is represented as a set of pages. More...
#include <CMultiPageWidget.h>
Inherits QWidget.
Public Types | |
enum | DesignType { DT_SIMPLE , DT_TOOL_BOX , DT_TAB_WIDGET , DT_SPLITTER , DT_STACK , DT_COLLAPSIBLE_GROUPS , DT_MINI_WIDGETS , DT_USER = 1024 } |
typedef QWidget | BaseClass |
typedef IMultiPageWidgetDelegate::PageHeaderPosition | PageHeaderPosition |
Signals | |
void | EmitPageIndexChanged (int pageIndex) |
Signal will be emitted whenever the currently selected page will be changed. | |
Public Member Functions | |
CMultiPageWidget (QWidget *parentWidgetPtr=nullptr, int designMode=DT_SIMPLE, int containerGuiFlags=IMultiPageWidgetDelegate::CGF_NONE, Qt::Orientation orientation=Qt::Vertical) | |
Construct the multi page widget. | |
virtual QWidget * | GetContainerWidgetPtr () const |
Get page container widget. | |
void | SetDesignMode (int designMode) |
Set design mode. | |
void | SetContainerGuiFlags (int containerGuiFlags) |
Set flags for container behavior. | |
void | SetLayoutOrientation (Qt::Orientation orientation) |
Set layout orientation for the pages in the container UI. | |
virtual void | ResetPages () |
Remove all pages from the container widget. | |
virtual void | SetPageHeaderPosition (PageHeaderPosition pageHeaderPosition) |
Set the position of the page header on the container UI. | |
virtual int | InsertPage (QWidget *pageWidgetPtr, const QString &pageTitle, int pageIndex=-1) |
Add a new page to the container. | |
virtual void | RemovePage (int pageIndex) |
Remove the page from the container. | |
virtual int | GetPagesCount () const |
Get the number of the pages in the container. | |
virtual QWidget * | GetPageWidgetPtr (int pageIndex) const |
Get page's widget from the container. | |
virtual int | GetCurrentPage () const |
Get currently active page in the container. | |
virtual bool | SetCurrentPage (int pageIndex) |
Set active page in the container. | |
virtual QString | GetPageTitle (int pageIndex) const |
Get the title of the given page. | |
virtual void | SetPageTitle (int pageIndex, const QString &pageTitle) |
Set the page title. | |
virtual QIcon | GetPageIcon (int pageIndex) const |
Get the page icon. | |
virtual void | SetPageIcon (int pageIndex, const QIcon &pageIcon) |
Set the page icon. | |
virtual QString | GetPageToolTip (int pageIndex) const |
Get the page tool tip. | |
virtual void | SetPageToolTip (int pageIndex, const QString &pageToolTip) |
Set the page tool tip. | |
virtual bool | IsPageEnabled (int pageIndex) const |
Get if the page enabled/disabled. | |
virtual bool | SetPageEnabled (int pageIndex, bool isPageEnabled=true) |
Set page enabled/disabled. | |
virtual bool | IsPageVisible (int pageIndex) const |
Get if the page visible/hidden. | |
virtual bool | SetPageVisible (int pageIndex, bool isPageVisible=true) |
Set page visible/hidden. | |
virtual QSize | GetPageIconSize () const |
Get the size page icon. | |
virtual bool | SetPageIconSize (const QSize &pageIconSize) |
Set the size of the icon for all pages in the container. | |
template<class DelegateImpl > | |
void | RegisterMultiPageWidgetDelegate (int uiMode) |
Register your own page widget delegate objects for the given UI mode. | |
Static Public Member Functions | |
static bool | IsPageIndexChangeSupported (int designMode) |
Check if switching of pages is supported for this UI mode. | |
Protected Slots | |
void | OnPageIndexChanged (int pageIndex) |
Implementation of the widget, which is represented as a set of pages.
According to a selected UI presentation mode, it can be a tab widget, stacked layout, tool box, or simple a set of lay-outed widgets.
Definition at line 29 of file CMultiPageWidget.h.
Definition at line 33 of file CMultiPageWidget.h.
Definition at line 34 of file CMultiPageWidget.h.
Definition at line 36 of file CMultiPageWidget.h.
iwidgets::CMultiPageWidget::CMultiPageWidget | ( | QWidget * | parentWidgetPtr = nullptr, |
int | designMode = DT_SIMPLE, | ||
int | containerGuiFlags = IMultiPageWidgetDelegate::CGF_NONE, | ||
Qt::Orientation | orientation = Qt::Vertical ) |
Construct the multi page widget.
designMode | Specify the type of the underlying page container widget. |
orientation | Specify how the pages are layouted in the container UI. |
|
signal |
Signal will be emitted whenever the currently selected page will be changed.
|
virtual |
Get page container widget.
|
virtual |
Get currently active page in the container.
|
virtual |
Get the page icon.
|
virtual |
Get the size page icon.
|
virtual |
Get the number of the pages in the container.
|
virtual |
Get the title of the given page.
|
virtual |
Get the page tool tip.
|
virtual |
Get page's widget from the container.
|
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
.
|
virtual |
Get if the page enabled/disabled.
|
static |
Check if switching of pages is supported for this UI mode.
|
virtual |
Get if the page visible/hidden.
|
protectedslot |
void iwidgets::CMultiPageWidget::RegisterMultiPageWidgetDelegate | ( | int | uiMode | ) |
Register your own page widget delegate objects for the given UI mode.
Definition at line 281 of file CMultiPageWidget.h.
|
virtual |
Remove the page from the container.
The page widget will be destroyed.
|
virtual |
Remove all pages from the container widget.
void iwidgets::CMultiPageWidget::SetContainerGuiFlags | ( | int | containerGuiFlags | ) |
Set flags for container behavior.
Existing pages will be re-integrated into the new container widget.
|
virtual |
Set active page in the container.
void iwidgets::CMultiPageWidget::SetDesignMode | ( | int | designMode | ) |
Set design mode.
Existing pages will be re-integrated into the new container widget.
void iwidgets::CMultiPageWidget::SetLayoutOrientation | ( | Qt::Orientation | orientation | ) |
Set layout orientation for the pages in the container UI.
|
virtual |
Set page enabled/disabled.
|
virtual |
Set the position of the page header on the container UI.
|
virtual |
Set the page icon.
|
virtual |
Set the size of the icon for all pages in the container.
|
virtual |
Set the page title.
|
virtual |
Set the page tool tip.
|
virtual |
Set page visible/hidden.
© Witold Gantzke and Kirill Lepskiy