This Controller manages the signals and model of the ApplicationDatabaseView. Item click signals in the ApplicationDatabaseView need to be connected to the on_itemClicked() slot. When an item gets clicked, this controller finds out whether an Application or a Package was clicked and specifically which Application or Package it was. It then sends a signal with a pointer to the clicked object.
More...
#include <ArmarXGui/gui-plugins/ScenarioManager/controller/ApplicationDatabaseController.h>
This Controller manages the signals and model of the ApplicationDatabaseView. Item click signals in the ApplicationDatabaseView need to be connected to the on_itemClicked() slot. When an item gets clicked, this controller finds out whether an Application or a Package was clicked and specifically which Application or Package it was. It then sends a signal with a pointer to the clicked object.
Definition at line 49 of file ApplicationDatabaseController.h.
◆ ApplicationDatabaseController()
Constructor that takes the data structure this controller operates on and optionally the parent object.
- Parameters
-
packages | list of packages. Need to contain the Packages and Applications displayed in the ApplicationDatabaseView. |
executor | executor used to start, stop and update status of the Applications and Scenarios. |
parent | standard QT option to specify a parent |
Definition at line 40 of file ApplicationDatabaseController.cpp.
◆ ~ApplicationDatabaseController()
◆ applicationClicked
◆ getModel()
◆ modelUpdated
◆ on_itemClicked
void on_itemClicked |
( |
const QModelIndex & |
index | ) |
|
|
slot |
Finds out whether an Application or a Scenario has been clicked and sends a signal with the corresponding object.
- Parameters
-
index | model-index of the clicked object |
Definition at line 98 of file ApplicationDatabaseController.cpp.
◆ packageClicked
◆ updatePackages
The documentation for this class was generated from the following files: