![]() |
VR-Forces 4.8 Class Documentation
|
GUI to create, remove, and modify sensor configurations. More...

Public Member Functions | |
| DtSensorConfigurationPage (DtDe &de, QWidget *parent, Qt::WindowFlags f=0) | |
| CTOR. More... | |
| virtual | ~DtSensorConfigurationPage () |
| 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... | |
| virtual void | selectWidget (const std::string &moduleNameStr, DtSensor *sensor) |
| Select and start using the appropriate widget for the specified sensor and sensor module. More... | |
| void | setupGui () |
| Setup the gui. More... | |
| virtual void | setSensors (DtSensorManager::SensorVec &sensors) |
| Set the list of available sensors in the GUI. More... | |
| virtual void | activate () |
| Called when the page is displayed. More... | |
| virtual void | deactivate () |
| Called when the page is hidden. More... | |
| virtual void | onCurrentInstanceChanged (QString definition) |
| Called when the current sensor is changed. More... | |
| virtual void | onCurrentInstanceChanged (int) |
| Called when the current sensor is changed. More... | |
| virtual void | setSelectedSensor (DtSensor *sensor) |
| Call to change the current sensor this page is editing. More... | |
| virtual void | clearWidget () |
| Remove the current sensor configuration widget from the GUI. More... | |
| virtual void | onRenameInstanceRequested () |
| Called when the GUI asks to rename the current sensor. More... | |
| virtual void | onNewInstanceRequested () |
| Called when the GUI asks for a new sensor. More... | |
| virtual void | addSensor (const std::string &sensorName) |
| Add a sensor to the GUI. More... | |
| virtual void | onDeleteInstanceRequested () |
| Called when the GUI asks to delete the current sensor. More... | |
| virtual void | setSensorModules (DtSensorManager::SensorModuleVec &modules) |
| Set the list of sensor modules available in the GUI. More... | |
| virtual void | renameInstance (const std::string &oldName, const std::string &newName) |
| Rename a sensor instance in the GUI. More... | |
| void | on_factoryDefaultsRestored () |
| void | on_defaultsRestored () |
| void | on_import () |
| void | on_export () |
| void | on_importFilePathChosen (const std::string &filePath) |
| void | on_exportFilePathChosen (const std::string &filePath) |
Public Member Functions inherited from makVrv::DtSelectedInstanceDialogPage | |
| DtSelectedInstanceDialogPage (DtDe &de, QWidget *parent, Qt::WindowFlags f=Qt::Widget) | |
| CTOR. More... | |
| virtual | ~DtSelectedInstanceDialogPage () |
| DTOR. More... | |
| virtual void | addInstance (const std::string &) |
| Add an instance. More... | |
| virtual void | removeInstance (const std::string &) |
| Remove an instance. More... | |
| virtual QString | currentInstance () |
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... | |
Public Member Functions inherited from makVrv::DtSensorConfigurationPageInterface | |
| virtual | ~DtSensorConfigurationPageInterface () |
| DTOR. More... | |
Static Public Member Functions | |
| static const std::string & | thePageClassName () |
| Get the class name of the page. More... | |
Protected Slots | |
| void | slot_moduleChanged (int index) |
| Called when the selected sensor module is changed. More... | |
Protected Slots inherited from makVrv::DtSelectedInstanceDialogPage | |
Protected Attributes | |
| DtMasterSensorController * | myController |
| DtPersistenceToolbarWidget * | myPersistenceWidget |
| DtSignalConnectionManager | mySignals |
| QComboBox * | mySensorModuleCombo |
| QWidget * | myCurrentWidget |
| DtSensorConfigurationPageLogic * | myLogic |
Protected Attributes inherited from makVrv::DtSelectedInstanceDialogPage | |
| DtSelectInstanceWidget * | mySelectInstanceWidget |
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 } |
Public Attributes inherited from makVrv::DtSensorConfigurationPageInterface | |
| boost::signal< void()> | signal_restoreSettingsRequested |
| Emitted when the GUI requests that the current sensor settings be restored from startup defaults. More... | |
| boost::signal< void()> | signal_restoreFactorySettingsRequested |
| Emitted when the GUI requests that the current sensor settings be restored from factory defaults. More... | |
| boost::signal< void(const std::string &)> | signal_importSettingsRequested |
| Emitted when the GUI requests import from a file into the current sensor settings. More... | |
| boost::signal< void(const std::string &)> | signal_exportSettingsRequested |
| Emitted when the GUI requests export of the current sensor settings. More... | |
| boost::signal< void(const std::string &)> | signal_sensorSelected |
| Emitted when the current sensor changes in the GUI. More... | |
| boost::signal< void()> | signal_newSensorRequested |
| Emitted when the GUI requests the creation of a new sensor. More... | |
| boost::signal< void(const std::string &oldName, const std::string &newName)> | signal_renameSensorRequested |
| Emitted when the GUI requests that a sensor be renamed. More... | |
| boost::signal< void(const std::string &, const std::string &)> | signal_sensorModuleSelected |
| Emitted when the sensor module for a sensor is changed. More... | |
Protected Member Functions inherited from makVrv::DtSelectedInstanceDialogPage | |
| void | setupGui () |
GUI to create, remove, and modify sensor configurations.
Uses widgets registered with the DtSensorConfigurationWidgetFactory to configure the sensors depending on their sensor module.
| makVrv::DtSensorConfigurationPage::DtSensorConfigurationPage | ( | DtDe & | de, |
| QWidget * | parent, | ||
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
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.
|
static |
Get the class name of the page.
|
virtual |
Select and start using the appropriate widget for the specified sensor and sensor module.
Implements makVrv::DtSensorConfigurationPageInterface.
| void makVrv::DtSensorConfigurationPage::setupGui | ( | ) |
Setup the gui.
|
virtual |
Set the list of available sensors in the GUI.
Implements makVrv::DtSensorConfigurationPageInterface.
| void makVrv::DtSensorConfigurationPage::on_factoryDefaultsRestored | ( | ) |
| void makVrv::DtSensorConfigurationPage::on_defaultsRestored | ( | ) |
| void makVrv::DtSensorConfigurationPage::on_import | ( | ) |
| void makVrv::DtSensorConfigurationPage::on_export | ( | ) |
| void makVrv::DtSensorConfigurationPage::on_importFilePathChosen | ( | const std::string & | filePath | ) |
| void makVrv::DtSensorConfigurationPage::on_exportFilePathChosen | ( | const std::string & | filePath | ) |
|
virtual |
Called when the page is displayed.
Reimplemented from makVrv::DtSelectedInstanceDialogPage.
|
virtual |
Called when the page is hidden.
Reimplemented from makVrv::DtSelectedInstanceDialogPage.
|
virtual |
Called when the current sensor is changed.
Reimplemented from makVrv::DtSelectedInstanceDialogPage.
|
virtual |
Called when the current sensor is changed.
Reimplemented from makVrv::DtSelectedInstanceDialogPage.
|
virtual |
Call to change the current sensor this page is editing.
Implements makVrv::DtSensorConfigurationPageInterface.
|
virtual |
Remove the current sensor configuration widget from the GUI.
|
virtual |
Called when the GUI asks to rename the current sensor.
Reimplemented from makVrv::DtSelectedInstanceDialogPage.
|
virtual |
Called when the GUI asks for a new sensor.
Reimplemented from makVrv::DtSelectedInstanceDialogPage.
|
virtual |
Add a sensor to the GUI.
Implements makVrv::DtSensorConfigurationPageInterface.
|
virtual |
Called when the GUI asks to delete the current sensor.
Reimplemented from makVrv::DtSelectedInstanceDialogPage.
|
virtual |
Set the list of sensor modules available in the GUI.
Implements makVrv::DtSensorConfigurationPageInterface.
|
virtual |
Rename a sensor instance in the GUI.
Implements makVrv::DtSensorConfigurationPageInterface.
|
protectedslot |
Called when the selected sensor module is changed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |