![]() |
VR-Forces 5.0.2 Developer's Guide
|
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.

Public Member Functions | |
| ReplacementDialogPage (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| virtual | ~ReplacementDialogPage () |
| virtual QIcon | icon () |
| virtual makVrv::DtQIconConfigurations | qIconConfigurations () const |
| virtual QString | title () |
| virtual const std::string & | pageClassName () const |
Public Member Functions inherited from makVrv::DtPage | |
| DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~DtPage () |
| virtual PageAction | pageAction () |
| virtual void | setPageAction (PageAction action) |
| virtual void | setActionFlag (int flag) |
| virtual int | actionFlag () |
| virtual void | setParentDialog (QWidget *paraentDialog) |
| virtual QWidget * | parentDialog () |
| virtual bool | shouldAskBeforeAction (PageAction action) |
| virtual void | askBeforeAction () |
| virtual void | executeAfterAsk (bool revert) |
| virtual void | resumeLastAction () |
| virtual void | onCloseEvent () |
| virtual void | onSwitchEvent () |
Static Public Member Functions | |
| static const std::string & | thePageClassName () |
Protected Member Functions | |
| virtual void | activate () |
| virtual void | deactivate () |
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 } |
| 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 icon configurations for the page. This is used to style the page's icon based on application settings. 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 |