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

Public Member Functions | |
| ReplacementDialogPage (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| CTOR. More... | |
| virtual | ~ReplacementDialogPage () |
| DTOR. More... | |
| virtual QIcon | icon () |
| Get the icon of the page. More... | |
| virtual QString | title () |
| Get the title of the page. More... | |
| virtual const std::string & | pageClassName () const |
| Get the class name of the page. More... | |
Public Member Functions inherited from makVrv::DtPage | |
| DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR for page. More... | |
| virtual | ~DtPage () |
| DTOR for page. More... | |
| virtual PageAction | pageAction () |
| return the current action on the page More... | |
| virtual void | setPageAction (PageAction action) |
| set the curret action on the page More... | |
| virtual void | setActionFlag (int flag) |
| set the action flag of the page More... | |
| virtual int | actionFlag () |
| return the action flag of the page More... | |
| virtual void | setParentDialog (QWidget *paraentDialog) |
| set the parent dialog that owns this page More... | |
| virtual QWidget * | parentDialog () |
| return the parent dialog that own this page More... | |
| 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 More... | |
| virtual void | askBeforeAction () |
| Called when the action flag is set and before the action is beind executed, default do nothing. More... | |
| 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. More... | |
| virtual void | resumeLastAction () |
| resume the last action of the page More... | |
| virtual void | onCloseEvent () |
| will be called when user hit the close button of this page, default do nothing. More... | |
| virtual void | onSwitchEvent () |
| will be called when user try switch to another page, default do nothing. More... | |
Static Public Member Functions | |
| static const std::string & | thePageClassName () |
| Get the class name of the page. More... | |
Protected Member Functions | |
| virtual void | activate () |
| Called by the pager when this page is activated and shown. More... | |
| virtual void | deactivate () |
| Called by the pager when this page is deactivated and hidden. More... | |
Protected Attributes | |
| makVrv::DtPersistenceToolbarWidget * | myToolbar |
| DerivedDialogWidget * | myWidget |
| DerivedDialogLogic * | myLogic |
Protected Attributes inherited from makVrv::DtPage | |
| DtDe & | myDe |
| QWidget * | myParentDialog |
| PageAction | myCurrentPageAction |
| int | myActionFlag |
Additional Inherited Members | |
Public Types inherited from makVrv::DtPage | |
| enum | PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 } |
The example dialog-page that will be inserted into the dialog.
This page contains a widget and logic for that 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 is derived from DtLoaderSettingsWidget and is extended with an extra checkbox. The logic is derived from DtLoaderSettingsLogic and manages the events from the extra checkbox.
| ReplacementDialogPage::ReplacementDialogPage | ( | makVrv::DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = Qt::Widget |
||
| ) |
CTOR.
This constructor creates the main widget of the ReplacementDialogPage. The logic is created at a later time.
|
virtual |
DTOR.
This destructor destroys both the main widget and the logic for the ReplacementDialogPage.
|
virtual |
Get the icon of the page.
makVrv::DtPage requires this function to be implemented.
Implements makVrv::DtPage.
|
virtual |
Get the title of the page.
makVrv::DtPage requires this function to be implemented.
Implements makVrv::DtPage.
|
virtual |
Get the class name of the page.
makVrv::DtPage requires this function to be implemented.
Implements makVrv::DtPage.
|
static |
Get the class name of the page.
makVrv::DtPageCreatorTemplate requires this function to be implemented.
|
protectedvirtual |
Called by the pager when this page is activated and shown.
This function creates the logic and connects it to the main widget. makVrv::DtPage requires this function to be implemented.
Implements makVrv::DtPage.
|
protectedvirtual |
Called by the pager when this page is deactivated and hidden.
This function disconnects the logic form the main widget then destroys the logic object. makVrv::DtPage requires this function to be implemented.
Implements makVrv::DtPage.
|
protected |
|
protected |
|
protected |