![]() |
VR-Forces 4.5 Class Documentation
|
A widget class for managing different camera views the currently selected observer can be placed in. More...

Public Member Functions | |
| virtual | ~DtObserverViewsWidget () |
| DTOR. | |
| virtual QIcon | icon () |
| Get the icon of the page. | |
| virtual QString | title () |
| Get the title of the page. | |
| virtual const std::string & | pageClassName () const |
| Get the class name of the page. | |
| virtual std::string | currentObserverView () const |
| Returns the currently selected observer view. | |
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. | |
Public Member Functions inherited from makVrv::DtObserverViewsWidgetInterface | |
| virtual | ~DtObserverViewsWidgetInterface () |
| Virtual DTOR. | |
Public Attributes | |
| QVBoxLayout * | myMainLayout |
| QHBoxLayout * | myButtonLayout |
| QTreeWidget * | myObserverViews |
| QPushButton * | myAddView |
| QPushButton * | myDeleteView |
| QPushButton * | mySaveViews |
| QPushButton * | mySaveSingle |
| QPushButton * | myLoadViews |
| QPushButton * | myLoadAndMakeViewsCurrent |
| QPushButton * | myClearViews |
| double | myLastSelectionChangedSimTime |
Protected Slots | |
| virtual void | onAddObserverView () |
| Calls down to logic to capture view and add it back here. | |
| virtual void | onViewSelectionChanged () |
| Calls down to logic to set a new observer view. | |
| virtual void | onItemPressed () |
| Calls down to logic to set a new observer view. | |
| virtual void | onClearObserverViews () |
| Calls down to logic to clear out observer views. | |
| virtual void | onSaveViews () |
| Puts up dialog to allow user to specify a file to save all current views in and calls down to logic to do the save. | |
| virtual void | onSaveSelectedView () |
| Puts up dialog to allow user to specify a file to save the currently selected view in and calls down to logic to do the save. | |
| virtual void | onDeleteSelectedView () |
| Calls down to logic to delete currently selected view. | |
| virtual void | onLoadViews () |
| Calls down to logic to load file and place view records found in there into the interface. | |
| virtual void | onLoadViewsAndMakeCurrent () |
| Calls down to logic to load file and place view records found in there into the interface. | |
| virtual void | observerViewNameChanged () |
| Called when any aspect of the item data has changed. | |
Protected Member Functions | |
| DtObserverViewsWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor of the page. | |
| virtual void | activate () |
| Called when the page is displayed. | |
| virtual void | deactivate () |
| Called when the page is hidden. | |
| void | setupUi (QWidget *p) |
| Sets up the contents of the widget onto the supplied parent. | |
| virtual void | setViewStatesEnabled (bool) |
| Tells the interface to enable/disable buttons that manipulate the observer view (add, load, observers view) | |
| virtual void | addObserverView (const std::string &) |
| Adds a new observer view to the list of current views. | |
| virtual void | clearObserverViews () |
| Clears out observer views list. | |
| virtual void | deleteView (const std::string &) |
| Removes the specified view from the observers view list. | |
| virtual void | renameObserverRecord (const std::string &newName, const std::string &oldName) |
| Renames the observer record from old name to new name. | |
Protected Attributes | |
| std::string | myClassName |
| DtObserverViewsWidgetLogic * | myLogic |
Protected Attributes inherited from makVrv::DtPage | |
| DtDe & | myDe |
| QWidget * | myParentDialog |
| PageAction | myCurrentPageAction |
| int | myActionFlag |
Friends | |
| class | DtObserverViewsWidgetCreator |
| Let the creator create the page. | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtPage | |
| enum | PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 } |
A widget class for managing different camera views the currently selected observer can be placed in.
|
virtual |
DTOR.
|
protected |
Constructor of the page.
|
virtual |
Get the icon of the page.
Implements makVrv::DtPage.
|
virtual |
Get the title of the page.
Implements makVrv::DtPage.
|
virtual |
Get the class name of the page.
Implements makVrv::DtPage.
|
virtual |
Returns the currently selected observer view.
|
protectedvirtual |
Called when the page is displayed.
Implements makVrv::DtPage.
|
protectedvirtual |
Called when the page is hidden.
Implements makVrv::DtPage.
|
protected |
Sets up the contents of the widget onto the supplied parent.
|
protectedvirtual |
Tells the interface to enable/disable buttons that manipulate the observer view (add, load, observers view)
Implements makVrv::DtObserverViewsWidgetInterface.
|
protectedvirtual |
Adds a new observer view to the list of current views.
Implements makVrv::DtObserverViewsWidgetInterface.
Reimplemented in makVrf::DtVrfObserverViewsWidget.
|
protectedvirtual |
Clears out observer views list.
Implements makVrv::DtObserverViewsWidgetInterface.
|
protectedvirtual |
Removes the specified view from the observers view list.
Implements makVrv::DtObserverViewsWidgetInterface.
|
protectedvirtual |
Renames the observer record from old name to new name.
Implements makVrv::DtObserverViewsWidgetInterface.
Reimplemented in makVrf::DtVrfObserverViewsWidget.
|
protectedvirtualslot |
Calls down to logic to capture view and add it back here.
|
protectedvirtualslot |
Calls down to logic to set a new observer view.
Also will enable/disable buttons on selection Won't do anything if CTRL is pressed.
Reimplemented in makVrf::DtVrfObserverViewsWidget.
|
protectedvirtualslot |
Calls down to logic to set a new observer view.
Also will enable/disable buttons on selection Animates the observer view change if CTRL is pressed.
Reimplemented in makVrf::DtVrfObserverViewsWidget.
|
protectedvirtualslot |
Calls down to logic to clear out observer views.
|
protectedvirtualslot |
Puts up dialog to allow user to specify a file to save all current views in and calls down to logic to do the save.
|
protectedvirtualslot |
Puts up dialog to allow user to specify a file to save the currently selected view in and calls down to logic to do the save.
|
protectedvirtualslot |
Calls down to logic to delete currently selected view.
|
protectedvirtualslot |
Calls down to logic to load file and place view records found in there into the interface.
|
protectedvirtualslot |
Calls down to logic to load file and place view records found in there into the interface.
It will also set all observers to have their state be the records found in the file (in the order in which it is read)
|
protectedvirtualslot |
Called when any aspect of the item data has changed.
Will check to see if the name needs to be updated. If the name is the same as another name, will warn the user
Reimplemented in makVrf::DtVrfObserverViewsWidget.
|
friend |
Let the creator create the page.
|
protected |
|
protected |
| QVBoxLayout* makVrv::DtObserverViewsWidget::myMainLayout |
| QHBoxLayout* makVrv::DtObserverViewsWidget::myButtonLayout |
| QTreeWidget* makVrv::DtObserverViewsWidget::myObserverViews |
| QPushButton* makVrv::DtObserverViewsWidget::myAddView |
| QPushButton* makVrv::DtObserverViewsWidget::myDeleteView |
| QPushButton* makVrv::DtObserverViewsWidget::mySaveViews |
| QPushButton* makVrv::DtObserverViewsWidget::mySaveSingle |
| QPushButton* makVrv::DtObserverViewsWidget::myLoadViews |
| QPushButton* makVrv::DtObserverViewsWidget::myLoadAndMakeViewsCurrent |
| QPushButton* makVrv::DtObserverViewsWidget::myClearViews |
| double makVrv::DtObserverViewsWidget::myLastSelectionChangedSimTime |