Go to the documentation of this file.
28 #include "../gui/scenariomodel.h"
29 #include "../gui/scenariolistview.h"
30 #include "../gui/createscenarioview.h"
31 #include "../gui/filterabletreemodelsortfilterproxymodel.h"
154 void start(
int row,
int column, QModelIndex parent);
155 void stop(
int row,
int column, QModelIndex parent);
165 void restart(
int row,
int column, QModelIndex parent);
174 int row,
const QModelIndex& parent);
192 int findScenario(
ScenarioItem* rootItem, std::string name, std::string packageName);
193 QModelIndex findSubScenarioModelIndex(std::string scenarioName, std::string packageName);
195 QModelIndex findSubScenarioModelIndexByScenarioIndex(QModelIndex scenarioIndex, std::string packageName);
197 static void ShowWarningDialog(QString
message,
bool showOnce =
false, QString messageId =
"");
204 std::vector<ApplicationInstancePtr> applicationInstances;
205 std::mutex applicationInstanceMutex;
208 IceGrid::AdminPrx iceAdmin;
TreeItem representing data contained in a Scenario or an Application.
std::map< ApplicationInstancePtr, std::string > ApplicationInstanceStatusMap
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr
std::shared_ptr< Scenario > ScenarioPtr
Manages the signals and model of the ScenarioListView. All signals emitted by the ScenarioListView ne...
static bool StartScenario(ScenarioManager::Data_Structure::ScenarioPtr scenario, Exec::ExecutorPtr executor, IceGrid::AdminPrx iceAdmin)
Model defining how a Scenario gets displayed in the TreeView.
void stop(int row, int column, QModelIndex parent)
void setIceAdmin(IceGrid::AdminPrx iceAdmin)
Set an IceAdmin for the controller.
message(STATUS "Boost-Library-Dir: " "${Boost_LIBRARY_DIRS}") message(STATUS "Boost-LIBRARIES
std::shared_ptr< Executor > ExecutorPtr
std::shared_ptr< std::vector< ScenarioManager::Data_Structure::PackagePtr > > PackageVectorPtr
void updated()
Gets emitted after changes have been made to the data structure.
void scenarioClicked(Data_Structure::ScenarioPtr scenario)
Gets emitted after a Scenario has been clicked.
void createdScenario(std::string name, std::string package)
Creates a new scenario in the package.
void restart(int row, int column, QModelIndex parent)
Restarts the object in the specified location.
std::shared_ptr< FilterableTreeModelSortFilterProxyModel > FilterableTreeModelSortFilterProxyModelPtr
~ScenarioListController() override
Destructor.
void start(int row, int column, QModelIndex parent)
Starts or stops the object in the specified location.
void showApplication(const QModelIndex &index)
Calculates the object at the given index and signals to show it.
ScenarioListController(Data_Structure::PackageVectorPtr packages, Exec::ExecutorPtr executor, QObject *parent=0)
Constructor which sets the data structure, the executor and optionally the parent object.
void addApplicationsToScenario(QList< QPair< QString, ScenarioManager::Data_Structure::Application * > > applications, int row, const QModelIndex &parent)
Adds applications to a scenario.
void statusFetched(ApplicationInstanceStatusMap stati)
void updateStati()
Updates the statuses of all Applications and Scenarios.
Base Class for all Logging classes.
void saveScenario(ScenarioManager::Data_Structure::ApplicationInstancePtr application)
void modelUpdated(FilterableTreeModelSortFilterProxyModelPtr model)
void applicationInstanceClicked(Data_Structure::ApplicationInstancePtr appInstance, ScenarioItem *item)
Gets emitted after an ApplicationInstance has been clicked.
void createScenario()
Shows a view that allows the user to create a new Scenario.
View that allows user to create a new scenario.
void removeItem(QModelIndex item)
Removes an item from the model.
void statusUpdated()
Gets emitted after changes have been made to the States of the Applications.
void fetchStati()
fetches application stati over their designated strategy.
FilterableTreeModelSortFilterProxyModelPtr getTreeModel()
Returns the model used by the ScenarioListView and managed by this controller.
void updateModel()
Updates the model by reloading all scenarios and applications.