VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Attributes
makVrv::DtSensorConfigurationPage Class Reference

GUI to create, remove, and modify sensor configurations. More...

Inheritance diagram for makVrv::DtSensorConfigurationPage:
Inheritance graph
[legend]

Public Member Functions

 DtSensorConfigurationPage (DtDe &de, QWidget *parent, Qt::WindowFlags f=0)
 CTOR.
virtual ~DtSensorConfigurationPage ()
 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 void selectWidget (const std::string &moduleNameStr, DtSensor *sensor)
 Select and start using the appropriate widget for the specified sensor and sensor module.
void setupGui ()
 Setup the gui.
virtual void setSensors (DtSensorManager::SensorVec &sensors)
 Set the list of available sensors in the GUI.
virtual void activate ()
 Called when the page is displayed.
virtual void deactivate ()
 Called when the page is hidden.
virtual void onCurrentInstanceChanged (QString definition)
 Called when the current sensor is changed.
virtual void onCurrentInstanceChanged (int)
 Called when the current sensor is changed.
virtual void setSelectedSensor (DtSensor *sensor)
 Call to change the current sensor this page is editing.
virtual void clearWidget ()
 Remove the current sensor configuration widget from the GUI.
virtual void onRenameInstanceRequested ()
 Called when the GUI asks to rename the current sensor.
virtual void onNewInstanceRequested ()
 Called when the GUI asks for a new sensor.
virtual void addSensor (const std::string &sensorName)
 Add a sensor to the GUI.
virtual void onDeleteInstanceRequested ()
 Called when the GUI asks to delete the current sensor.
virtual void setSensorModules (DtSensorManager::SensorModuleVec &modules)
 Set the list of sensor modules available in the GUI.
virtual void renameInstance (const std::string &oldName, const std::string &newName)
 Rename a sensor instance in the GUI.
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.
virtual ~DtSelectedInstanceDialogPage ()
 DTOR.
virtual void addInstance (const std::string &)
 Add an instance.
virtual void removeInstance (const std::string &)
 Remove an instance.
virtual QString currentInstance ()
- 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::DtSensorConfigurationPageInterface
virtual ~DtSensorConfigurationPageInterface ()
 DTOR.

Static Public Member Functions

static const std::string & thePageClassName ()
 Get the class name of the page.

Protected Slots

void slot_moduleChanged (int index)
 Called when the selected sensor module is changed.
- Protected Slots inherited from makVrv::DtSelectedInstanceDialogPage

Protected Attributes

DtMasterSensorControllermyController
DtPersistenceToolbarWidgetmyPersistenceWidget
DtSignalConnectionManager mySignals
QComboBoxmySensorModuleCombo
QWidget * myCurrentWidget
DtSensorConfigurationPageLogicmyLogic
- Protected Attributes inherited from makVrv::DtSelectedInstanceDialogPage
DtSelectInstanceWidgetmySelectInstanceWidget
- Protected Attributes inherited from makVrv::DtPage
DtDemyDe
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.
boost::signal< void()> signal_restoreFactorySettingsRequested
 Emitted when the GUI requests that the current sensor settings be restored from factory defaults.
boost::signal< void(const
std::string &)> 
signal_importSettingsRequested
 Emitted when the GUI requests import from a file into the current sensor settings.
boost::signal< void(const
std::string &)> 
signal_exportSettingsRequested
 Emitted when the GUI requests export of the current sensor settings.
boost::signal< void(const
std::string &)> 
signal_sensorSelected
 Emitted when the current sensor changes in the GUI.
boost::signal< void()> signal_newSensorRequested
 Emitted when the GUI requests the creation of a new sensor.
boost::signal< void(const
std::string &oldName, const
std::string &newName)> 
signal_renameSensorRequested
 Emitted when the GUI requests that a sensor be renamed.
boost::signal< void(const
std::string &, const
std::string &)> 
signal_sensorModuleSelected
 Emitted when the sensor module for a sensor is changed.

Detailed Description

GUI to create, remove, and modify sensor configurations.

Uses widgets registered with the DtSensorConfigurationWidgetFactory to configure the sensors depending on their sensor module.

Constructor & Destructor Documentation

makVrv::DtSensorConfigurationPage::DtSensorConfigurationPage ( DtDe de,
QWidget *  parent,
Qt::WindowFlags  f = 0 
)

CTOR.

virtual makVrv::DtSensorConfigurationPage::~DtSensorConfigurationPage ( )
virtual

DTOR.

Member Function Documentation

virtual QIcon makVrv::DtSensorConfigurationPage::icon ( )
virtual

Get the icon of the page.

Implements makVrv::DtPage.

virtual QString makVrv::DtSensorConfigurationPage::title ( )
virtual

Get the title of the page.

Implements makVrv::DtPage.

virtual const std::string& makVrv::DtSensorConfigurationPage::pageClassName ( ) const
virtual

Get the class name of the page.

Implements makVrv::DtPage.

static const std::string& makVrv::DtSensorConfigurationPage::thePageClassName ( )
static

Get the class name of the page.

virtual void makVrv::DtSensorConfigurationPage::selectWidget ( const std::string &  moduleNameStr,
DtSensor sensor 
)
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.

Reimplemented from makVrv::DtSelectedInstanceDialogPage.

virtual void makVrv::DtSensorConfigurationPage::setSensors ( DtSensorManager::SensorVec sensors)
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 void makVrv::DtSensorConfigurationPage::activate ( )
virtual

Called when the page is displayed.

Reimplemented from makVrv::DtSelectedInstanceDialogPage.

virtual void makVrv::DtSensorConfigurationPage::deactivate ( )
virtual

Called when the page is hidden.

Reimplemented from makVrv::DtSelectedInstanceDialogPage.

virtual void makVrv::DtSensorConfigurationPage::onCurrentInstanceChanged ( QString  definition)
virtual

Called when the current sensor is changed.

Reimplemented from makVrv::DtSelectedInstanceDialogPage.

virtual void makVrv::DtSensorConfigurationPage::onCurrentInstanceChanged ( int  )
virtual

Called when the current sensor is changed.

Reimplemented from makVrv::DtSelectedInstanceDialogPage.

virtual void makVrv::DtSensorConfigurationPage::setSelectedSensor ( DtSensor sensor)
virtual

Call to change the current sensor this page is editing.

Implements makVrv::DtSensorConfigurationPageInterface.

virtual void makVrv::DtSensorConfigurationPage::clearWidget ( )
virtual

Remove the current sensor configuration widget from the GUI.

virtual void makVrv::DtSensorConfigurationPage::onRenameInstanceRequested ( )
virtual

Called when the GUI asks to rename the current sensor.

Reimplemented from makVrv::DtSelectedInstanceDialogPage.

virtual void makVrv::DtSensorConfigurationPage::onNewInstanceRequested ( )
virtual

Called when the GUI asks for a new sensor.

Reimplemented from makVrv::DtSelectedInstanceDialogPage.

virtual void makVrv::DtSensorConfigurationPage::addSensor ( const std::string &  sensorName)
virtual

Add a sensor to the GUI.

Implements makVrv::DtSensorConfigurationPageInterface.

virtual void makVrv::DtSensorConfigurationPage::onDeleteInstanceRequested ( )
virtual

Called when the GUI asks to delete the current sensor.

Reimplemented from makVrv::DtSelectedInstanceDialogPage.

virtual void makVrv::DtSensorConfigurationPage::setSensorModules ( DtSensorManager::SensorModuleVec modules)
virtual

Set the list of sensor modules available in the GUI.

Implements makVrv::DtSensorConfigurationPageInterface.

virtual void makVrv::DtSensorConfigurationPage::renameInstance ( const std::string &  oldName,
const std::string &  newName 
)
virtual

Rename a sensor instance in the GUI.

Implements makVrv::DtSensorConfigurationPageInterface.

void makVrv::DtSensorConfigurationPage::slot_moduleChanged ( int  index)
protectedslot

Called when the selected sensor module is changed.

Member Data Documentation

DtMasterSensorController* makVrv::DtSensorConfigurationPage::myController
protected
DtPersistenceToolbarWidget* makVrv::DtSensorConfigurationPage::myPersistenceWidget
protected
DtSignalConnectionManager makVrv::DtSensorConfigurationPage::mySignals
protected
QComboBox* makVrv::DtSensorConfigurationPage::mySensorModuleCombo
protected
QWidget* makVrv::DtSensorConfigurationPage::myCurrentWidget
protected
DtSensorConfigurationPageLogic* makVrv::DtSensorConfigurationPage::myLogic
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)