Go to the documentation of this file.
28 #include "../gui/treemodel.h"
29 #include "../gui/settingsview.h"
30 #include "../gui/settingsmodel.h"
31 #include "../gui/settingsitem.h"
32 #include "../gui/packageadderview.h"
84 void setExecutorState(
int killMethodIndex,
int delay,
int stopStrategyIndex);
This controller manages the signals and model of the SettingsView. Any signals involving the settings...
void updateModel()
Updates the packages displayed in the settingsview by reloading all packages into the model.
View that allows the user to find and add new packages.
std::shared_ptr< SettingsModel > SettingsModelPtr
SettingsController(Data_Structure::PackageVectorPtr packages, Exec::ExecutorPtr executor, QObject *parent=0)
Constructor that sets the data structure this controller operates on, the executor which gets configu...
std::shared_ptr< ScenarioManager::Exec::StarterFactory > StarterFactoryPtr
std::shared_ptr< Executor > ExecutorPtr
std::shared_ptr< std::vector< ScenarioManager::Data_Structure::PackagePtr > > PackageVectorPtr
void showSettings()
Shows the settings dialog.
void setExecutorState(int killMethodIndex, int delay, int stopStrategyIndex)
std::shared_ptr< ScenarioManager::Exec::StopperFactory > StopperFactoryPtr
Creates different instances of StopStrategy. This Factory creates different types of stop-strategies.
void showPackageAdderView()
Shows a view that allows the user to add new packages.
std::shared_ptr< FilterableTreeModelSortFilterProxyModel > FilterableTreeModelSortFilterProxyModelPtr
void packageRemoved()
Emitted when a package gets removed.
void removePackage(int row, int column, QModelIndex parent)
Removes a package from the settings.
void setExecutorStopStrategy(std::string killMethod, int delay, std::string stopMethod)
Configures the Executor.
void addPackage(std::string name)
Adds a new package to the settings.
~SettingsController() override
Destructor.
void packageAdded(std::string name)
Emitted when a package gets added in the settings.
void closeUnavailablePackages()