Manages the signals and model of the ScenarioListView. All signals emitted by the ScenarioListView need to be connected to their corresponding slots in this controller. This controller periodically refreshes the status of the Applications and Scenarios displayed in the ScenarioListView.
More...
#include <ArmarXGui/gui-plugins/ScenarioManager/controller/ScenarioListController.h>
|
void | addApplicationsToScenario (QList< QPair< QString, ScenarioManager::Data_Structure::Application * > > applications, int row, const QModelIndex &parent) |
| Adds applications to a scenario. More...
|
|
void | createdScenario (std::string name, std::string package) |
| Creates a new scenario in the package. More...
|
|
void | createScenario () |
| Shows a view that allows the user to create a new Scenario. More...
|
|
void | removeItem (QModelIndex item) |
| Removes an item from the model. More...
|
|
void | restart (int row, int column, QModelIndex parent) |
| Restarts the object in the specified location. More...
|
|
void | saveScenario (ScenarioManager::Data_Structure::ApplicationInstancePtr application) |
|
void | setIceAdmin (IceGrid::AdminPrx iceAdmin) |
| Set an IceAdmin for the controller. More...
|
|
void | showApplication (const QModelIndex &index) |
| Calculates the object at the given index and signals to show it. More...
|
|
void | start (int row, int column, QModelIndex parent) |
| Starts or stops the object in the specified location. More...
|
|
void | stop (int row, int column, QModelIndex parent) |
|
void | stopUpdateTask () |
|
void | updateModel () |
| Updates the model by reloading all scenarios and applications. More...
|
|
void | updateStati () |
| Updates the statuses of all Applications and Scenarios. More...
|
|
void | updateStati (ApplicationInstanceStatusMap stati) |
|
Manages the signals and model of the ScenarioListView. All signals emitted by the ScenarioListView need to be connected to their corresponding slots in this controller. This controller periodically refreshes the status of the Applications and Scenarios displayed in the ScenarioListView.
Definition at line 57 of file ScenarioListController.h.
◆ ScenarioListController()
Constructor which sets the data structure, the executor and optionally the parent object.
- Parameters
-
packages | list of packages. Need to contain the Scenarios and Applications displayed in the ScenarioListView. |
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 59 of file ScenarioListController.cpp.
◆ ~ScenarioListController()
◆ addApplicationsToScenario
Adds applications to a scenario.
- Parameters
-
applications | list of applications to be added |
row | |
parent | model-index of the scenario |
Definition at line 268 of file ScenarioListController.cpp.
◆ applicationInstanceClicked
◆ createdScenario
void createdScenario |
( |
std::string |
name, |
|
|
std::string |
package |
|
) |
| |
|
slot |
Creates a new scenario in the package.
- Parameters
-
name | name of the new scenario |
package | name of the package |
Definition at line 564 of file ScenarioListController.cpp.
◆ createScenario
Shows a view that allows the user to create a new Scenario.
This scenario will then be added to the data structure and models.
Definition at line 538 of file ScenarioListController.cpp.
◆ fetchStati()
fetches application stati over their designated strategy.
This is potentially slow and should not be done in the GUI thread.
Definition at line 868 of file ScenarioListController.cpp.
◆ getTreeModel()
◆ modelUpdated
◆ removeItem
void removeItem |
( |
QModelIndex |
item | ) |
|
|
slot |
◆ restart
void restart |
( |
int |
row, |
|
|
int |
column, |
|
|
QModelIndex |
parent |
|
) |
| |
|
slot |
Restarts the object in the specified location.
- Parameters
-
row | row the object is in |
column | column the object is in |
parent | parent of the object. Needed to differentiate between scenarios and applications. |
- See also
- start_stop(int row, int column, QModelIndex parent);
Definition at line 228 of file ScenarioListController.cpp.
◆ saveScenario
◆ scenarioClicked
Gets emitted after a Scenario has been clicked.
- Parameters
-
◆ setIceAdmin
void setIceAdmin |
( |
IceGrid::AdminPrx |
iceAdmin | ) |
|
|
slot |
◆ showApplication
void showApplication |
( |
const QModelIndex & |
index | ) |
|
|
slot |
◆ start
void start |
( |
int |
row, |
|
|
int |
column, |
|
|
QModelIndex |
parent |
|
) |
| |
|
slot |
Starts or stops the object in the specified location.
- Parameters
-
row | row the object is in |
column | column the object is in |
parent | parent of the object. Needed to differentiate between scenarios and applications. |
Definition at line 161 of file ScenarioListController.cpp.
◆ StartScenario()
◆ statusFetched
◆ statusUpdated
Gets emitted after changes have been made to the States of the Applications.
The DetailedApplicationView should update.
◆ stop
void stop |
( |
int |
row, |
|
|
int |
column, |
|
|
QModelIndex |
parent |
|
) |
| |
|
slot |
◆ stopUpdateTask
◆ updated
Gets emitted after changes have been made to the data structure.
Other controllers should update their models.
◆ updateModel
◆ updateStati [1/2]
◆ updateStati [2/2]
The documentation for this class was generated from the following files: