OpenScenarioController Class Reference

Manages the signals and model of the OpenScenarioView. This Controller manages opening and loading in a scenario. More...

#include <ArmarXGui/gui-plugins/ScenarioManager/controller/openscenariocontroller.h>

+ Inheritance diagram for OpenScenarioController:

Public Slots

void on_openScenario (int row, int column, QModelIndex parent)
 Finds a scenario in the model, based on the given data and updates the current model and data structure to include the given scenario. More...
 
void on_showAddPackageDialog ()
 
void showOpenScenarioView ()
 Shows the OpenScenarioView which allows the User to open and load in a Scenario. More...
 
void updateModel ()
 Reloads the packages into the model. More...
 

Signals

void showPackageDialog ()
 
void updated ()
 This signal gets emitted if the data structure has changed. More...
 

Public Member Functions

 OpenScenarioController (Data_Structure::PackageVectorPtr packages, Exec::ExecutorPtr exec, QObject *parent=0)
 Constructor that sets the data structure and optionally the parent object. More...
 
 ~OpenScenarioController () override
 

Detailed Description

Manages the signals and model of the OpenScenarioView. This Controller manages opening and loading in a scenario.

Definition at line 48 of file openscenariocontroller.h.

Constructor & Destructor Documentation

◆ OpenScenarioController()

OpenScenarioController ( Data_Structure::PackageVectorPtr  packages,
Exec::ExecutorPtr  exec,
QObject *  parent = 0 
)

Constructor that sets the data structure and optionally the parent object.

Parameters
packageslist of packages
parentstandard optional QT parent object

Definition at line 52 of file openscenariocontroller.cpp.

+ Here is the call graph for this function:

◆ ~OpenScenarioController()

~OpenScenarioController ( )
override

Definition at line 67 of file openscenariocontroller.cpp.

Member Function Documentation

◆ on_openScenario

void on_openScenario ( int  row,
int  column,
QModelIndex  parent 
)
slot

Finds a scenario in the model, based on the given data and updates the current model and data structure to include the given scenario.

Parameters
rowrow the scenario is in
columncolumn the scenario is in
parentparent index of the scenario

Definition at line 72 of file openscenariocontroller.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ on_showAddPackageDialog

void on_showAddPackageDialog ( )
slot

Definition at line 190 of file openscenariocontroller.cpp.

+ Here is the caller graph for this function:

◆ showOpenScenarioView

void showOpenScenarioView ( )
slot

Shows the OpenScenarioView which allows the User to open and load in a Scenario.

Definition at line 185 of file openscenariocontroller.cpp.

◆ showPackageDialog

void showPackageDialog ( )
signal
+ Here is the caller graph for this function:

◆ updated

void updated ( )
signal

This signal gets emitted if the data structure has changed.

+ Here is the caller graph for this function:

◆ updateModel

void updateModel ( )
slot

Reloads the packages into the model.

Definition at line 195 of file openscenariocontroller.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: