![]() |
VR-Forces Developer's Guide
|
The DtDisplayConfigEditorLogic is the brains behind the display configuration editor. Causes display configurations to be realized on slaves. Modifies realized display configurations.
The logic controls a tree window in the widget. The tree window contains all the realized displays. Changes made to the property sheet on the widget make changes to proxies.

Public Member Functions | |
| ~DtDisplayConfigEditorLogic () | |
| virtual QStandardItemModel * | displayTreeModel () |
| void | realizeNewDisplayEngineConfiguration (const std::string &clientName, const DtDisplayConfiguration &dec) |
| void | destroyDisplayEngine (const std::string &displayName, bool realized) |
| void | modifyDisplayEngine (const std::string &displayName, bool isRealised, const DtDisplayConfiguration &config) |
| void | addWindow (const std::string &displayName, const DtWindowConfiguration &config, bool realized) |
| void | destroyWindow (const std::string &displayName, const std::string &windowName, bool realized, DtWindowItem *windowItem) |
| void | modifyWindow (const std::string &displayName, const std::string &windowName, const DtWindowConfiguration &config, bool isRealized) |
| void | addChannel (const std::string &displayName, const std::string &windowName, const DtChannelConfiguration &config, bool isRealized) |
| void | destroyChannel (const std::string &displayName, const std::string &windowName, const std::string &channelName, bool realized) |
| void | modifyChannel (const std::string &displayName, const std::string &windowName, const std::string &channelName, const DtChannelConfiguration &config, bool realized) |
| virtual void | slot_activate (DtDe *de) |
| virtual void | slot_deactivate (DtDe *de) |
| virtual void | slot_activate (DtDeCommunicator *igComm) |
| virtual void | slot_deactivate (DtDeCommunicator *igComm) |
| virtual void | slot_refreshIcons () |
| void | onDisplayTreeSelectionChanged (const QModelIndex &index) |
| void | onDisplayTreeContextMenu (const QModelIndex &index, const QPoint &pos) |
| void | onObserverCreationRequested (const std::string &observerName) |
| void | getChannelList (QStringList &channelListOut) |
| void | getObserverList (QStringList &observerListOut) |
| void | getSensorList (QStringList &sensorListOut) |
| virtual void | slot_igAdded (const DtDeRecord &igName) |
| virtual void | slot_igRemoved (const std::string &igName) |
| virtual void | slot_displayConfigurationRealized (const std::string &igName, const std::string &displayConfig) |
| virtual void | slot_displayToBeDestroyed (const std::string &displayName) |
| virtual void | slot_windowAdded (const std::string &displayName, const DtWindowConfiguration &wc) |
| virtual void | slot_windowToBeDestroyed (const std::string &displayName, const std::string &windowName) |
| virtual void | slot_windowModified (const std::string &displayName, const std::string &windowName, const DtWindowConfiguration &wc) |
| virtual void | slot_channelAdded (const std::string &displayName, const std::string &windowName, const DtChannelConfiguration &wc) |
| virtual void | slot_channelToBeDestroyed (const std::string &displayName, const std::string &windowName, const std::string &channelName) |
| virtual void | slot_channelModified (const std::string &displayName, const std::string &windowName, const std::string &channelName, const DtChannelConfiguration &cc) |
| void | onDelete (const QModelIndex &index) |
| void | onNewDisplayEngine (const QModelIndex &index) |
| void | onNewWindow (const QModelIndex &index) |
| void | onNewChannel (const QModelIndex &index) |
| void | onDisconnectSlaveIg (const QModelIndex &index) |
| void | onSaveDisplayConfig (const QModelIndex &index, const std::string &filename) |
| void | onLoadDisplayConfig (const QModelIndex &index, const std::string &filename, QWidget *parent) |
| void | onModifyConfiguration (const QModelIndex &index, const DtWindowConfiguration &config) |
| void | onModifyConfiguration (const QModelIndex &index, const DtDisplayConfiguration &config) |
| void | onModifyConfiguration (const QModelIndex &index, const DtChannelConfiguration &config) |
Static Public Member Functions | |
| static DtDisplayConfigEditorLogic * | create (DtDe &de, DtDisplayConfigEditorInterface *iFace) |
Protected Types | |
| typedef std::map< QString, QStandardItem * > | ItemMap |
Protected Member Functions | |
| DtDisplayConfigEditorLogic (DtDe &de, DtDisplayConfigEditorInterface *iFace) | |
| void | populateDisplayConfigEditor () |
| DtIgItem * | findIgItem (const QModelIndex &index) |
| DtDisplayEngineItem * | findDisplayEngineItem (const QModelIndex &index) |
| DtWindowItem * | findWindowItem (const QModelIndex &index) |
| void | addKeyItemPair (QString newKey, QStandardItem *item) |
| const DtDisplayConfiguration * | findDisplayConfiguration (DtDisplayEngineItem *displayEngineItem) |
| const DtDisplayConfiguration * | findDisplayConfiguration (const std::string &displayName) |
| QString | makeIgKey (const std::string &igName) |
| QString | makeDisplayEngineKey (const std::string &displayName) |
| QString | makeWindowKey (const std::string &displayName, const std::string &windowName) |
| QString | makeChannelKey (const std::string &displayName, const std::string &windowName, const std::string &channelName) |
| QString | appendToKey (QString displayKey, const std::string &windowName) |
| DtDisplayConfiguration | createNewDisplayEngineConfiguration () |
| DtWindowConfiguration | createNewWindowConfigurtion (const DtDisplayConfiguration &) |
| DtChannelConfiguration | createNewChannel (const DtWindowConfiguration &) |
| QStandardItem * | addIgItem (const std::string &igName, const std::string &displayName) |
| QStandardItem * | addDisplayEngineItem (QStandardItem *parent, const QString &parentKey, const DtDisplayConfiguration &dec) |
| QStandardItem * | addWindowItem (QStandardItem *parent, const QString &parentKey, const std::string &displayName, const DtWindowConfiguration &wc) |
| QStandardItem * | addChannelItem (QStandardItem *parent, const QString &parentKey, const std::string &displayName, const DtChannelConfiguration &cc) |
| void | removeItemByKey (const QString &key) |
| void | remapChildItems (QStandardItem *item, const QString &oldParentKey, const QString &newParentKey) |
| bool | getDisplayEngineConfiguration (const std::string &displayName, bool isRealized, DtDisplayConfiguration &dcOut) |
| bool | getWindowConfiguration (const std::string &displayName, const std::string &windowName, bool isRealized, DtWindowConfiguration &vcOut) |
| bool | getChannelConfiguration (const std::string &displayName, const std::string &windowName, const std::string &channelName, bool realized, DtChannelConfiguration &ccOut) |
| const std::string & | displayEngineOwner (const std::string &displayName) |
| int | flagsFromSelection (const QModelIndex &index) |
Protected Attributes | |
| DtDe & | myDe |
| DtDisplayConfigEditorInterface * | myInterface |
| QStandardItemModel * | myDisplayTreeModel |
| ItemMap | myItemMap |
| DtSignalConnectionManager | myConnections |
|
protected |
| makVrv::DtDisplayConfigEditorLogic::~DtDisplayConfigEditorLogic | ( | ) |
Destructor.
|
protected |
Constructor is protected because the static creator needs to call bind().
|
static |
Create and initialize the logic. It calls bind() on the created logic.
|
virtual |
Get the item model.
| void makVrv::DtDisplayConfigEditorLogic::realizeNewDisplayEngineConfiguration | ( | const std::string & | clientName, |
| const DtDisplayConfiguration & | dec | ||
| ) |
| void makVrv::DtDisplayConfigEditorLogic::destroyDisplayEngine | ( | const std::string & | displayName, |
| bool | realized | ||
| ) |
Destroys a display.
| void makVrv::DtDisplayConfigEditorLogic::modifyDisplayEngine | ( | const std::string & | displayName, |
| bool | isRealised, | ||
| const DtDisplayConfiguration & | config | ||
| ) |
Change the values of the realized display configuration to the values in config.
| void makVrv::DtDisplayConfigEditorLogic::addWindow | ( | const std::string & | displayName, |
| const DtWindowConfiguration & | config, | ||
| bool | realized | ||
| ) |
Add a window to a display.
| void makVrv::DtDisplayConfigEditorLogic::destroyWindow | ( | const std::string & | displayName, |
| const std::string & | windowName, | ||
| bool | realized, | ||
| DtWindowItem * | windowItem | ||
| ) |
Destroys window in a display.
| void makVrv::DtDisplayConfigEditorLogic::modifyWindow | ( | const std::string & | displayName, |
| const std::string & | windowName, | ||
| const DtWindowConfiguration & | config, | ||
| bool | isRealized | ||
| ) |
Change the values of the realized window configuration to the values in config.
| void makVrv::DtDisplayConfigEditorLogic::addChannel | ( | const std::string & | displayName, |
| const std::string & | windowName, | ||
| const DtChannelConfiguration & | config, | ||
| bool | isRealized | ||
| ) |
Add a channel to a window.
| void makVrv::DtDisplayConfigEditorLogic::destroyChannel | ( | const std::string & | displayName, |
| const std::string & | windowName, | ||
| const std::string & | channelName, | ||
| bool | realized | ||
| ) |
Destroys a channel in a window.
| void makVrv::DtDisplayConfigEditorLogic::modifyChannel | ( | const std::string & | displayName, |
| const std::string & | windowName, | ||
| const std::string & | channelName, | ||
| const DtChannelConfiguration & | config, | ||
| bool | realized | ||
| ) |
Modify a channel.
|
virtual |
Observer slots.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Realized slots.
These are slots that get called whenever signals that effect realized displays, windows or channels are emitted.
|
virtual |
Realized slots.
These are slots that get called whenever signals that effect realized displays, windows or channels are emitted.
|
virtual |
Realized slots.
These are slots that get called whenever signals that effect realized displays, windows or channels are emitted.
|
virtual |
Realized slots.
These are slots that get called whenever signals that effect realized displays, windows or channels are emitted.
|
virtual |
Realized slots.
These are slots that get called whenever signals that effect realized displays, windows or channels are emitted.
|
virtual |
Realized slots.
These are slots that get called whenever signals that effect realized displays, windows or channels are emitted.
|
virtual |
Realized slots.
These are slots that get called whenever signals that effect realized displays, windows or channels are emitted.
|
virtual |
Realized slots.
These are slots that get called whenever signals that effect realized displays, windows or channels are emitted.
|
virtual |
Realized slots.
These are slots that get called whenever signals that effect realized displays, windows or channels are emitted.
|
virtual |
Realized slots.
These are slots that get called whenever signals that effect realized displays, windows or channels are emitted.
|
virtual |
Invoked when dark mode has been enabled or disabled OR when light/dark mode icons has been enabled or disabled.
| void makVrv::DtDisplayConfigEditorLogic::onDisplayTreeSelectionChanged | ( | const QModelIndex & | index | ) |
Called by widget when selection changes.
| void makVrv::DtDisplayConfigEditorLogic::onDisplayTreeContextMenu | ( | const QModelIndex & | index, |
| const QPoint & | pos | ||
| ) |
Called by widget when right click occurs.
| void makVrv::DtDisplayConfigEditorLogic::onObserverCreationRequested | ( | const std::string & | observerName | ) |
Called by request to request new observer creation.
| void makVrv::DtDisplayConfigEditorLogic::onDelete | ( | const QModelIndex & | index | ) |
Popup slots.
Called when a popup menu item is clicked.
| void makVrv::DtDisplayConfigEditorLogic::onNewDisplayEngine | ( | const QModelIndex & | index | ) |
Popup slots.
Called when a popup menu item is clicked.
| void makVrv::DtDisplayConfigEditorLogic::onNewWindow | ( | const QModelIndex & | index | ) |
Popup slots.
Called when a popup menu item is clicked.
| void makVrv::DtDisplayConfigEditorLogic::onNewChannel | ( | const QModelIndex & | index | ) |
Popup slots.
Called when a popup menu item is clicked.
| void makVrv::DtDisplayConfigEditorLogic::onDisconnectSlaveIg | ( | const QModelIndex & | index | ) |
Popup slots.
Called when a popup menu item is clicked.
| void makVrv::DtDisplayConfigEditorLogic::onSaveDisplayConfig | ( | const QModelIndex & | index, |
| const std::string & | filename | ||
| ) |
Popup slots.
Called when a popup menu item is clicked.
| void makVrv::DtDisplayConfigEditorLogic::onLoadDisplayConfig | ( | const QModelIndex & | index, |
| const std::string & | filename, | ||
| QWidget * | parent | ||
| ) |
Popup slots.
Called when a popup menu item is clicked.
| void makVrv::DtDisplayConfigEditorLogic::onModifyConfiguration | ( | const QModelIndex & | index, |
| const DtWindowConfiguration & | config | ||
| ) |
Modify the configuration of the selected item with the data changed via the property editor. The proxy is used.
| void makVrv::DtDisplayConfigEditorLogic::onModifyConfiguration | ( | const QModelIndex & | index, |
| const DtDisplayConfiguration & | config | ||
| ) |
Modify the configuration of the selected item with the data changed via the property editor. The proxy is used.
| void makVrv::DtDisplayConfigEditorLogic::onModifyConfiguration | ( | const QModelIndex & | index, |
| const DtChannelConfiguration & | config | ||
| ) |
Modify the configuration of the selected item with the data changed via the property editor. The proxy is used.
| void makVrv::DtDisplayConfigEditorLogic::getChannelList | ( | QStringList & | channelListOut | ) |
Get the list of available realized channels currently available.
| void makVrv::DtDisplayConfigEditorLogic::getObserverList | ( | QStringList & | observerListOut | ) |
Get the list of observers currently available.
| void makVrv::DtDisplayConfigEditorLogic::getSensorList | ( | QStringList & | sensorListOut | ) |
Get the list of sensors currently available.
|
protected |
Populate the display config editor with configs. Non virtual since it's called by the CTOR.
|
protected |
Attempt to find the DtIgItem for an index.
|
protected |
Attempt to get the DtDisplayItem from the item at a given index.
|
protected |
Attempt to get the window item from the given index.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Create a new de item.
|
protected |
This does not actually create an item, but creates the items for its windows.
|
protected |
Creates a new item, makes item a child of parent and makes all channels in the window configuration children of item.
|
protected |
Creates a new item, makes item a child of parent.
|
protected |
Removes QStandardItem associated with name from model. Assumes there is only one item with that key in myItemMap. Removes all child keys items also.
|
protected |
Changes the keys of all child items so that they match their parent's key.
|
protected |
Fills dcOut with a copy of the realized display configuration named displayName.
|
protected |
Fills vcOut with a copy of the realized window configuration named windowName.
|
protected |
Fills ccOut with a copy of the realized channel configuration named channelName.
|
protected |
Get the de name which owns the display.
|
protected |
Return the DisplayItemFlags based on the selected item. This determines what buttons on the widget are enabled and which items on the popup are enabled.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |