![]() |
VR-Forces 4.8 Class Documentation
|
This class will override some basic functionality of the observer views logic in order to retrieve current observer views from the scenario. More...

Public Member Functions | |
| DtVrfObserverViewsWidget (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor of the page. More... | |
| virtual | ~DtVrfObserverViewsWidget () |
| DTOR. More... | |
| virtual void | scenarioClosed () |
| virtual void | scenarioLoaded () |
| virtual void | onSetDefaultObserverView (std::string oldView, std::string newView) |
| Sets the new default observer view view. More... | |
| virtual void | onScenarioInformationAboutToBeSaved () |
| Called before the scenario information is saved in order to commit name edits. More... | |
| virtual void | hideObserverView (const std::string &, bool) |
| virtual void | setDefaultScenarioView (const std::string &viewName, const std::string &observerMode) |
| virtual void | unSetDefaultScenarioView (const std::string &viewName, const std::string &observerMode) |
| virtual void | terrainViewsHidden (const std::set< std::string > &) |
Public Member Functions inherited from makVrv::DtObserverViewsWidget | |
| DtObserverViewsWidget (DtDe &de, QWidget *parent=0) | |
| Constructor of the page. More... | |
| virtual | ~DtObserverViewsWidget () |
| DTOR. More... | |
| virtual QIcon | icon () |
| Get the icon of the page. More... | |
| virtual QString | title () |
| Get the title of the page. More... | |
| bool | getClickedObserverViewInfo (DtUnicode &viewName, DtObserverViewsManager::ViewProjection &projection) const |
| Gets the name and projection mode of the clicked observer view. More... | |
| virtual void | showSaveChangesMessage () |
| pops up an action confirmation message when the user is modifying the observers in the list More... | |
| virtual void | showClearWarningMessage () |
| Raises a confirmation message box to clear the contents of the observer views list. More... | |
| virtual void | showAssociateWarningMessage () |
| Raises a confirmation message box to associate the current contents of the observer views list with the currently loaded terrain. More... | |
| virtual void | showDissociateWarningMessage () |
| Raises a confirmation message box to dissociate any observer views that are currently associated with the currently loaded terrain. More... | |
| virtual void | requestSaveFilename () |
| Raises a message box offering options to 'Save As' or 'Don't Save'. More... | |
| virtual void | contextItemRequestSaveFilename () |
| Saves a single observer view. More... | |
| virtual void | resizeColumns () |
| Set the column size of the Observer view Table Widget. More... | |
Public Member Functions inherited from makVrv::DtObserverViewsWidgetInterface | |
| virtual | ~DtObserverViewsWidgetInterface () |
| Virtual DTOR. More... | |
| virtual void | enableObserverViewsList (bool enabled)=0 |
| enables the observer views list More... | |
| virtual void | enableAddViewButton (bool enabled)=0 |
| enables the "add view" button More... | |
| virtual void | enableAssociateViewsToTerrainButton (bool enabled)=0 |
| enables the "associate views to terrain" button More... | |
| virtual void | enableSaveToFileButton (bool enabled)=0 |
| enables the "save views to file" button More... | |
| virtual void | enableDissociateViewsButton (bool enabled)=0 |
| enables the "dissociate views" button More... | |
| virtual void | enableLoadAndMergeViewsButton (bool enabled)=0 |
| enables the "load views" button More... | |
| virtual void | enableClearViewsButton (bool enabled)=0 |
| virtual void | enableSaveButton (bool enabled)=0 |
| If this is true, the dialog that is used when the export icon is pressed will contain a Save button (in addition to the Save As...) button. More... | |
| virtual void | setAssociateViewsToTerrainButtonOnExitMessageVisible (bool visible)=0 |
| virtual void | setSavedChangesButtonOnExitMessageVisible (bool visible)=0 |
| virtual int | viewListSize ()=0 |
| virtual void | dissociateViewFromTerrain (const std::string &viewName)=0 |
Protected Member Functions | |
| virtual void | insertObserverView (int index, const makVrv::DtObserverViewInfoViewerData &observerViewData) |
| Adds a new observer view to the list of current views. If default view set font to bold. More... | |
| virtual std::string | observerViewProjectionMode (const makArchives::DtObserverStateRecord &record) const |
| virtual std::string | observerViewProjectionMode (const std::string &obsMode) const |
Protected Member Functions inherited from makVrv::DtObserverViewsWidget | |
| virtual void | activate () |
| Called when the page is displayed. More... | |
| virtual void | deactivate () |
| Called when the page is hidden. More... | |
| void | setupUi (QWidget *p) |
| Sets up the contents of the widget onto the supplied parent. More... | |
| virtual void | clearObserverViews () |
| Clears out observer views list. More... | |
| virtual void | deleteView (const std::string &, DtObserverViewsManager::ViewProjection projection) |
| Removes the specified view from the observers view list. More... | |
| virtual void | renameObserverRecord (const std::string &newName, const std::string &oldName) |
| Renames the observer record from old name to new name. More... | |
| virtual void | setDefaultView (const std::string &viewName, DtObserverViewsManager::ViewProjection projection) |
| Set a view as default. More... | |
| virtual void | unSetDefaultView (const std::string &viewName, DtObserverViewsManager::ViewProjection projection) |
| unset a default view More... | |
| virtual bool | eventFilter (QObject *obj, QEvent *event) |
| virtual void | createQtTreeItem (QTreeWidgetItem &item, const DtObserverViewInfoViewerData &observerViewData) |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtObserverViewsWidgetInterface | |
| boost::signal< void()> | signal_captureAndObserverView |
| Signals. More... | |
| boost::signal< void(const DtUnicode &, DtObserverViewsManager::ViewProjection, bool) > | signal_setObserverViewbyNameAndMode |
| Called when the user click on a view and the system load it. More... | |
| boost::signal< void()> | signal_clearObserverViews |
| Called when the user cleans observer view's list form the widget. More... | |
| boost::signal< void()> | signal_associateObserverViewsToCurrentTerrain |
| Called when the user confirms to associate views with the current terrain from observer view's list form the widget. More... | |
| boost::signal< void()> | signal_dissociateObserverViewsToCurrentTerrain |
| Called when the user confirms to dissociate views with the current terrain from observer view's list form the widget. More... | |
| boost::signal< void(const DtUnicode &)> | signal_saveObserverViewsFileAs |
| Called when the user presses the saveObserverViews button. More... | |
| boost::signal< void()> | signal_saveObserverViewsFile |
| boost::signal< void(const DtUnicode &)> | signal_saveSingleObserverViewsFile |
| Called when the user saves a single observer view into a file. More... | |
| boost::signal< void(const DtUnicode &)> | signal_loadObserverViewsFile |
| Called when the user loads observer views from a file. More... | |
| boost::signal< bool(const DtUnicode &, const DtUnicode &, DtObserverViewsManager::ViewProjection)> | signal_renameObserverRecord |
| Called when the user rename a observer view. More... | |
| boost::signal< void(const std::string &, DtObserverViewsManager::ViewProjection)> | signal_rightClickedOnObserverView |
| Called when to save the data of a right clicked observer view. More... | |
| boost::signal< void()> | signal_saveLoadedFile |
| Called when the user rename a observer view. More... | |
Protected Slots inherited from makVrv::DtObserverViewsWidget | |
| virtual void | onAddObserverView () |
| Calls down to logic to capture view and add it back here. More... | |
| virtual void | onViewSelectionChanged () |
| Calls down to logic to set a new observer view. More... | |
| virtual void | onItemPressed () |
| Calls down to logic to set a new observer view. More... | |
| virtual void | onClearObserverViews () |
| Calls down to logic to clear out observer views. More... | |
| virtual void | onAssociateViewsToTerrain () |
| 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. More... | |
| virtual void | onSaveViewsToFile () |
| 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. More... | |
| virtual void | onLoadAndMergeViews () |
| Calls down to logic to load file and place view records found in there into the interface. More... | |
| virtual void | observerViewNameChanged () |
| Called when any aspect of the item data has changed. More... | |
| void | onRightClicked (QTreeWidgetItem *, QMouseEvent *, int col, int row) |
| Determines the item that was clicked on and displays a context menu. More... | |
| virtual void | onDissociateViewsToTerrain () |
| dissociate the views from the current terrain loaded in scene More... | |
| virtual void | enableObserverViewsList (bool enabled) |
| enables the observer views list More... | |
| virtual void | enableAddViewButton (bool enabled) |
| enables the "add view" button More... | |
| virtual void | enableAssociateViewsToTerrainButton (bool enabled) |
| enables the "associate views to terrain" button More... | |
| virtual void | enableSaveToFileButton (bool enabled) |
| enables the "save views to file" button More... | |
| virtual void | enableSaveButton (bool enabled) |
| If this is true, the dialog that is used when the "Save To File" icon is pressed will contain a Save button (in addition to the Save As...) button. More... | |
| virtual void | enableDissociateViewsButton (bool enabled) |
| enables the "dissociate views" button More... | |
| virtual void | enableLoadAndMergeViewsButton (bool enabled) |
| enables the "load views" button More... | |
| virtual void | enableClearViewsButton (bool enabled) |
| enables the "clear views" button More... | |
| virtual void | setAssociateViewsToTerrainButtonOnExitMessageVisible (bool visible) |
| virtual void | setSavedChangesButtonOnExitMessageVisible (bool visible) |
| virtual int | viewListSize () |
| virtual void | dissociateViewFromTerrain (const std::string &viewName) |
This class will override some basic functionality of the observer views logic in order to retrieve current observer views from the scenario.
The widget is present simply to allow for the creation of the new logic
| makVrf::DtVrfObserverViewsWidget::DtVrfObserverViewsWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor of the page.
|
virtual |
DTOR.
|
virtual |
|
virtual |
|
virtual |
Sets the new default observer view view.
|
virtual |
Called before the scenario information is saved in order to commit name edits.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Adds a new observer view to the list of current views. If default view set font to bold.
Reimplemented from makVrv::DtObserverViewsWidget.
|
protectedvirtual |
|
protectedvirtual |
|
protected |