Go to the documentation of this file.
28 #include "../gui/treemodel.h"
29 #include "../gui/openscenariomodel.h"
30 #include "../gui/openscenarioitem.h"
31 #include "../gui/openscenarioview.h"
36 #include <QStringList>
90 QStringList getAllClosedScenarios();
91 QStringList getFavouriteScenarios(QStringList allClosedScenarios);
95 const std::size_t favlistSize;
void on_showAddPackageDialog()
OpenScenarioController(Data_Structure::PackageVectorPtr packages, Exec::ExecutorPtr exec, QObject *parent=0)
Constructor that sets the data structure and optionally the parent object.
std::shared_ptr< Executor > ExecutorPtr
std::shared_ptr< std::vector< ScenarioManager::Data_Structure::PackagePtr > > PackageVectorPtr
void updated()
This signal gets emitted if the data structure has changed.
~OpenScenarioController() override
void showOpenScenarioView()
Shows the OpenScenarioView which allows the User to open and load in a Scenario.
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 structu...
std::shared_ptr< FilterableTreeModelSortFilterProxyModel > FilterableTreeModelSortFilterProxyModelPtr
void updateModel()
Reloads the packages into the model.
Manages the signals and model of the OpenScenarioView. This Controller manages opening and loading in...
std::shared_ptr< OpenScenarioModel > OpenScenarioModelPtr
View that allows to open a previously saved scenario.