OpenScenarioController Class Reference

Manages the signals and model of the OpenScenarioView. 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.
 
void on_showAddPackageDialog ()
 
void showOpenScenarioView ()
 Shows the OpenScenarioView which allows the User to open and load in a Scenario.
 
void updateModel ()
 Reloads the packages into the model.
 

Signals

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

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.
 
 ~OpenScenarioController () override
 

Detailed Description

Manages the signals and model of the OpenScenarioView.

This Controller manages opening and loading in a scenario.

Constructor & Destructor Documentation

◆ OpenScenarioController()

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

Parameters
packageslist of packages
parentstandard optional QT parent object

◆ ~OpenScenarioController()

~OpenScenarioController ( )
override

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

◆ on_showAddPackageDialog

void on_showAddPackageDialog ( )
slot

◆ showOpenScenarioView

void showOpenScenarioView ( )
slot

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

◆ showPackageDialog

void showPackageDialog ( )
signal

◆ updated

void updated ( )
signal

This signal gets emitted if the data structure has changed.

◆ updateModel

void updateModel ( )
slot

Reloads the packages into the model.


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