Public Member Functions |
| | ~DtDisplayConfigEditorLogic () |
| | Destructor.
|
| virtual QStandardItemModel * | displayTreeModel () |
| | Get the item model.
|
| void | realizeNewDisplayEngineConfiguration (const std::string &clientName, const DtDisplayConfiguration &dec) |
| void | destroyDisplayEngine (const std::string &displayName, bool realized) |
| | Destroys a display.
|
| void | modifyDisplayEngine (const std::string &displayName, bool isRealised, const DtDisplayConfiguration &config) |
| | /brief Change the values of the realized display configuration to the values in config.
|
| void | addWindow (const std::string &displayName, const DtWindowConfiguration &config, bool realized) |
| | Add a window to a display.
|
| void | destroyWindow (const std::string &displayName, const std::string &windowName, bool realized, DtWindowItem *windowItem) |
| | Destroys window in a display.
|
| void | modifyWindow (const std::string &displayName, const std::string &windowName, const DtWindowConfiguration &config, bool isRealized) |
| | /brief Change the values of the realized window configuration to the values in config.
|
| void | addChannel (const std::string &displayName, const std::string &windowName, const DtChannelConfiguration &config, bool isRealized) |
| | Add a channel to a window.
|
| void | destroyChannel (const std::string &displayName, const std::string &windowName, const std::string &channelName, bool realized) |
| | Destroys a channel in a window.
|
| void | modifyChannel (const std::string &displayName, const std::string &windowName, const std::string &channelName, const DtChannelConfiguration &config, bool realized) |
| | Modify a channel.
|
| virtual void | slot_activate (DtDe *de) |
| | Observer slots.
|
| virtual void | slot_deactivate (DtDe *de) |
| virtual void | slot_activate (DtDeCommunicator *igComm) |
| virtual void | slot_deactivate (DtDeCommunicator *igComm) |
| void | onDisplayTreeSelectionChanged (const QModelIndex &index) |
| | Called by widget when selection changes.
|
| void | onDisplayTreeContextMenu (const QModelIndex &index, const QPoint &pos) |
| | Called by widget when right click occurs.
|
| void | onObserverCreationRequested (const std::string &observerName) |
| | Called by request to request new observer creation.
|
| void | getChannelList (QStringList &channelListOut) |
| | Get the list of available realized channels currently available.
|
| void | getObserverList (QStringList &observerListOut) |
| | Get the list of observers currently available.
|
| void | getSensorList (QStringList &sensorListOut) |
| | Get the list of sensors currently available.
|
|
| virtual void | slot_igAdded (const DtDeRecord &igName) |
| | Realized slots.
|
| 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) |
| | Popup slots.
|
| 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, std::string filename) |
| void | onLoadDisplayConfig (const QModelIndex &index, std::string filename, QWidget *parent) |
|
| void | onModifyConfiguration (const QModelIndex &index, const DtWindowConfiguration &config) |
| | Modify the configuration of the selected item with the data changed via the property editor.
|
| void | onModifyConfiguration (const QModelIndex &index, const DtDisplayConfiguration &config) |
| void | onModifyConfiguration (const QModelIndex &index, const DtChannelConfiguration &config) |
Protected Member Functions |
| | DtDisplayConfigEditorLogic (DtDe &de, DtDisplayConfigEditorInterface *iFace) |
| | Constructor is protected because the static creator needs to call bind().
|
| void | populateDisplayConfigEditor () |
| | Populate the display config editor with configs.
|
| DtIgItem * | findIgItem (const QModelIndex &index) |
| | Attempt to find the DtIgItem for an index.
|
| DtDisplayEngineItem * | findDisplayEngineItem (const QModelIndex &index) |
| | Attempt to get the DtDisplayItem from the item at a given index.
|
| DtWindowItem * | findWindowItem (const QModelIndex &index) |
| | Attempt to get the window item from the given 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) |
| | Create a new de item.
|
| QStandardItem * | addDisplayEngineItem (QStandardItem *parent, const QString &parentKey, const DtDisplayConfiguration &dec) |
| | This does not actually create an item, but creates the items for its windows.
|
| QStandardItem * | addWindowItem (QStandardItem *parent, const QString &parentKey, const std::string &displayName, const DtWindowConfiguration &wc) |
| | Creates a new item, makes item a child of parent and makes all channels in the window configuration children of item.
|
| QStandardItem * | addChannelItem (QStandardItem *parent, const QString &parentKey, const std::string &displayName, const DtChannelConfiguration &cc) |
| | Creates a new item, makes item a child of parent.
|
| void | removeItemByKey (const QString &key) |
| | Removes QStandardItem associated with name from model.
|
| void | remapChildItems (QStandardItem *item, const QString &oldParentKey, const QString &newParentKey) |
| | Changes the keys of all child items so that they match their parent's key.
|
| bool | getDisplayEngineConfiguration (const std::string &displayName, bool isRealized, DtDisplayConfiguration &dcOut) |
| | Fills dcOut with a copy of the realized display configuration named displayName.
|
| bool | getWindowConfiguration (const std::string &displayName, const std::string &windowName, bool isRealized, DtWindowConfiguration &vcOut) |
| | Fills vcOut with a copy of the realized window configuration named windowName.
|
| bool | getChannelConfiguration (const std::string &displayName, const std::string &windowName, const std::string &channelName, bool realized, DtChannelConfiguration &ccOut) |
| | Fills ccOut with a copy of the realized channel configuration named channelName.
|
| const std::string & | displayEngineOwner (const std::string &displayName) |
| | Get the de name which owns the display.
|
| int | flagsFromSelection (const QModelIndex &index) |
| | Return the DisplayItemFlags based on the selected item.
|
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.