![]() |
VR-Vantage 3.1 API Documentation
|
The example page that will be inserted into the example dialog. More...

Public Member Functions | |
| HumbleDialogPage (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| CTOR. | |
| virtual | ~HumbleDialogPage () |
| Virtual DTOR. | |
| virtual QIcon | icon () |
| Get the icon of the page. | |
| virtual makVrv::DtQIconConfigurations | qIconConfigurations () const |
| Get the icon configurations for the page. | |
| virtual QString | title () |
| Get the title of the page. | |
| virtual const std::string & | pageClassName () const |
| Get the class name of the page. | |
Public Member Functions inherited from makVrv::DtPage | |
| DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR for page. | |
| virtual | ~DtPage () |
| DTOR for page. | |
| virtual PageAction | pageAction () |
| return the current action on the page | |
| virtual void | setPageAction (PageAction action) |
| set the curret action on the page | |
| virtual void | setActionFlag (int flag) |
| set the action flag of the page | |
| virtual int | actionFlag () |
| return the action flag of the page | |
| virtual void | setParentDialog (QWidget *paraentDialog) |
| set the parent dialog that owns this page | |
| virtual QWidget * | parentDialog () |
| return the parent dialog that own this page | |
| virtual bool | shouldAskBeforeAction (PageAction action) |
| test the action flag with the action, return true if we should ask before executing the action /param action the current page action | |
| virtual void | askBeforeAction () |
| Called when the action flag is set and before the action is beind executed, default do nothing. | |
| virtual void | executeAfterAsk (bool revert) |
| Called after askBeforeAction(), whether user wants to revert the action or resume the action /param revert if true, the user wants to revert the action, otherwise resume it. | |
| virtual void | resumeLastAction () |
| resume the last action of the page | |
| virtual void | onCloseEvent () |
| will be called when user hit the close button of this page, default do nothing. | |
| virtual void | onSwitchEvent () |
| will be called when user try switch to another page, default do nothing. | |
Static Public Member Functions | |
| static const std::string & | thePageClassName () |
| Get the class name of the page. | |
Protected Member Functions | |
| virtual void | activate () |
| Called by the Pager when this page becomes active. | |
| virtual void | deactivate () |
| Called by the Pager when this page becomes active. | |
Private Attributes | |
| HumbleDialogWidget * | myWidget |
| HumbleDialogLogic * | myLogic |
Additional Inherited Members | |
Public Types inherited from makVrv::DtPage | |
| enum | PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 } |
Protected Attributes inherited from makVrv::DtPage | |
| DtDe & | myDe |
| QWidget * | myParentDialog |
| PageAction | myCurrentPageAction |
| int | myActionFlag |
The example page that will be inserted into the example dialog.
This page contains a widget and logic for the widget. The widget is created at construction of this page and destroyed with the page. The logic is created when this page is activated (shown) and destroyed when this page is deactivated (hidden). For this example, the widget has a single editable text box and the logic just prints any text entered in the widget to the console.
| HumbleDialogPage::HumbleDialogPage | ( | makVrv::DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = Qt::Widget |
||
| ) |
CTOR.
This constructor creates the main widget of the HumbleDialogPage. The logic is created at a later time.
|
virtual |
Virtual DTOR.
|
virtual |
Get the icon of the page.
DtPage requires this function to be implemented.
Implements makVrv::DtPage.
|
virtual |
Get the icon configurations for the page.
This is used to style the page's icon based on application settings.
Implements makVrv::DtPage.
|
virtual |
Get the title of the page.
DtPage requires this function to be implemented.
Implements makVrv::DtPage.
|
virtual |
Get the class name of the page.
DtPage requires this function to be implemented.
Implements makVrv::DtPage.
|
static |
Get the class name of the page.
DtPageCreatorTemplate requires this function to be implemented.
|
protectedvirtual |
Called by the Pager when this page becomes active.
Called when the HumbleDialogPage is shown, this function creates and connects the logic to the main widget. DtPage requires this function to be implemented.
Implements makVrv::DtPage.
|
protectedvirtual |
Called by the Pager when this page becomes active.
Called when the HumbleDialogPage is hidden, this function disconnects and destroys the logic from the main widget. DtPage requires this function to be implemented.
Implements makVrv::DtPage.
|
private |
|
private |