|
|
This Controller manages the signals and model of the ApplicationDatabaseView. More...
#include <ArmarXGui/gui-plugins/ScenarioManager/controller/ApplicationDatabaseController.h>
Inheritance diagram for ApplicationDatabaseController:Public Slots | |
| void | on_itemClicked (const QModelIndex &index) |
| Finds out whether an Application or a Scenario has been clicked and sends a signal with the corresponding object. | |
| void | updatePackages () |
| Updates the packages displayed in the ApplicationDatabaseView by reloading all packages and applications into the model. | |
Signals | |
| void | applicationClicked (Data_Structure::ApplicationPtr app) |
| Gets emitted after an Application has been clicked in the ApplicationDatabaseView. | |
| void | modelUpdated (FilterableTreeModelSortFilterProxyModelPtr model) |
| void | packageClicked (Data_Structure::PackagePtr package) |
| Gets emitted after a Package gets clicked in the ApplicationDatabaseView. | |
Public Member Functions | |
| ApplicationDatabaseController (Data_Structure::PackageVectorPtr packages, Exec::ExecutorPtr executor, QObject *parent=0) | |
| Constructor that takes the data structure this controller operates on and optionally the parent object. | |
| FilterableTreeModelSortFilterProxyModelPtr | getModel () |
| Returns the model used by the ApplicationDatabaseView and managed by this controller. | |
| ~ApplicationDatabaseController () override | |
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.
| ApplicationDatabaseController | ( | Data_Structure::PackageVectorPtr | packages, |
| Exec::ExecutorPtr | executor, | ||
| QObject * | parent = 0 ) |
Constructor that takes the data structure this controller operates on and optionally the parent object.
| 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 |
|
override |
|
signal |
Gets emitted after an Application has been clicked in the ApplicationDatabaseView.
| app | clicked Application |
| FilterableTreeModelSortFilterProxyModelPtr getModel | ( | ) |
Returns the model used by the ApplicationDatabaseView and managed by this controller.
|
signal |
|
slot |
Finds out whether an Application or a Scenario has been clicked and sends a signal with the corresponding object.
| index | model-index of the clicked object |
|
signal |
Gets emitted after a Package gets clicked in the ApplicationDatabaseView.
| package | clicked Package |
|
slot |
Updates the packages displayed in the ApplicationDatabaseView by reloading all packages and applications into the model.