![]() |
VR-Forces 4.6 Class Documentation
|
This class is a specialized dialog page that will allow the dialog page to be editable in a stand-alone dialog. More...

Public Member Functions | |
| DtInstanceEditablePage (DtDe &de, QWidget *parent, Qt::WindowFlags f=0) | |
| CTOR for a stand alone dialog. | |
| virtual | ~DtInstanceEditablePage () |
| DTOR. | |
| virtual void | editContents ()=0 |
| Enable page to be editable as per rules above. | |
| virtual void | commitChanges ()=0 |
| Move changes from local to system data. | |
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 QIcon | icon ()=0 |
| Get the icon of the page. | |
| virtual QString | title ()=0 |
| Get the title of the page. | |
| virtual const std::string & | pageClassName () const =0 |
| Get the class name of the 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 void | activate ()=0 |
| Called when the page is displayed. | |
| virtual void | deactivate ()=0 |
| Called when the page is hidden. | |
| 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. | |
Public Attributes | |
| boost::signal< void()> | signal_contentsCommitted |
| Signal that is sent when commitChanges() is called. | |
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 |
This class is a specialized dialog page that will allow the dialog page to be editable in a stand-alone dialog.
A dialog page is considered editable if.
1) It works with a local copy of the data, not the system copy 2) Data is not automatically saved 3) The persistent toolbar is not shown on the page (thereby enforcing the local nature of the data and no auto-saving) 4) The data can then be "committed" to the system data via a data merge
| makVrv::DtInstanceEditablePage::DtInstanceEditablePage | ( | DtDe & | de, |
| QWidget * | parent, | ||
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR for a stand alone dialog.
|
virtual |
DTOR.
|
pure virtual |
Enable page to be editable as per rules above.
Implemented in makVrv::DtModelDefinitionEditorPage.
|
pure virtual |
Move changes from local to system data.
Implemented in makVrv::DtModelDefinitionEditorPage.
| boost::signal<void ()> makVrv::DtInstanceEditablePage::signal_contentsCommitted |
Signal that is sent when commitChanges() is called.
Should be sent by implementing class