![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Implementation of the IMultiPageWidgetDelegate interface for QTabWidget. More...
#include <CTabWidgetDelegate.h>
Public Member Functions | |
CTabWidgetDelegate (QTabWidget::TabPosition tabPosition=QTabWidget::North, bool useDocumentMode=false) | |
void | SetTabPosition (QWidget &containerWidget, QTabWidget::TabPosition tabPosition) |
void | SetDocumentModeEnabled (QWidget &containerWidget, bool isDocumentModeEnabled=true) |
virtual QWidget * | CreateContainerWidget (QWidget *parentWidgetPtr, int containerGuiFlags=CGF_NONE, int orientation=Qt::Horizontal) |
Create container for the page widgets. | |
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 bool | SetPageHeaderPosition (QWidget &containerWidget, PageHeaderPosition pageHeaderPosition) |
Set the position of the page header bar on the container UI. | |
virtual int | InsertPage (QWidget &containerWidget, QWidget *pageWidgetPtr, const QString &pageTitle, int pageIndex=-1) |
Add a new page to the container. | |
virtual void | RemovePage (QWidget &containerWidget, int pageIndex) |
Remove the page from the container. | |
virtual void | ResetPages (QWidget &containerWidget) |
Remove all pages from the container. | |
virtual int | GetPagesCount (const QWidget &containerWidget) const |
Get the number of the pages in the container. | |
virtual QWidget * | GetPageWidgetPtr (const QWidget &containerWidget, int pageIndex) const |
Get page's widget from the container. | |
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 QString | GetPageTitle (const QWidget &containerWidget, int pageIndex) const |
Get the title of the given page. | |
virtual void | SetPageTitle (QWidget &containerWidget, int pageIndex, const QString &pageTitle) |
Set the page title. | |
virtual QIcon | GetPageIcon (const QWidget &containerWidget, int pageIndex) const |
Get the page icon. | |
virtual void | SetPageIcon (QWidget &containerWidget, int pageIndex, const QIcon &pageIcon) |
Set the page icon. | |
virtual QString | GetPageToolTip (const QWidget &containerWidget, int pageIndex) const |
Get the page tool tip. | |
virtual void | SetPageToolTip (QWidget &containerWidget, int pageIndex, const QString &pageToolTip) |
Set the page tool tip. | |
virtual bool | IsPageEnabled (const QWidget &containerWidget, int pageIndex) const |
Get if the page enabled/disabled. | |
virtual bool | SetPageEnabled (QWidget &containerWidget, int pageIndex, bool isPageEnabled=true) |
Set page enabled/disabled. | |
virtual bool | IsPageVisible (const QWidget &containerWidget, int pageIndex) const |
Get if the page visible/hidden. | |
virtual bool | SetPageVisible (QWidget &containerWidget, int pageIndex, bool isPageVisible=true) |
Set page visible/hidden. | |
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. | |
![]() |
Additional Inherited Members | |
![]() | |
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... | |
Implementation of the IMultiPageWidgetDelegate interface for QTabWidget.
Definition at line 25 of file CTabWidgetDelegate.h.
iwidgets::CTabWidgetDelegate::CTabWidgetDelegate | ( | QTabWidget::TabPosition | tabPosition = QTabWidget::North, |
bool | useDocumentMode = false ) |
|
virtual |
Connect object, which will be notified about changing of the current selected page index.
containerWidget | Container widget which provides initiate switching of the page |
receiverPtr | Receiver of the page changing notification |
receiverSlotName | Name of the slot implemented in the receiver implementation, which will be triggered on page switching. |
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Create container for the page widgets.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Get currently active page in the container.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Get the page icon.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Get the size page icon.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Get the number of the pages in the container.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Get the title of the given page.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Get the page tool tip.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Get page's widget from the container.
Implements iwidgets::IMultiPageWidgetDelegate.
|
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
.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Get if the page enabled/disabled.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Get if the page visible/hidden.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Remove the page from the container.
The page widget will be destroyed.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Remove all pages from the container.
All page widgets will be destroyed.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Set active page in the container.
Implements iwidgets::IMultiPageWidgetDelegate.
void iwidgets::CTabWidgetDelegate::SetDocumentModeEnabled | ( | QWidget & | containerWidget, |
bool | isDocumentModeEnabled = true ) |
|
virtual |
Set page enabled/disabled.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Set the position of the page header bar on the container UI.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Set the page icon.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Set the size of the icon for all pages in the container.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Set the page title.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Set the page tool tip.
Implements iwidgets::IMultiPageWidgetDelegate.
|
virtual |
Set page visible/hidden.
Implements iwidgets::IMultiPageWidgetDelegate.
void iwidgets::CTabWidgetDelegate::SetTabPosition | ( | QWidget & | containerWidget, |
QTabWidget::TabPosition | tabPosition ) |
© Witold Gantzke and Kirill Lepskiy