Go to the documentation of this file.
28 #include "../gui/applicationdatabasemodel.h"
29 #include "../gui/filterabletreemodelsortfilterproxymodel.h"
30 #include "../gui/treeitem.h"
void modelUpdated(FilterableTreeModelSortFilterProxyModelPtr model)
void updatePackages()
Updates the packages displayed in the ApplicationDatabaseView by reloading all packages and applicati...
std::shared_ptr< Application > ApplicationPtr
FilterableTreeModelSortFilterProxyModelPtr getModel()
Returns the model used by the ApplicationDatabaseView and managed by this controller.
std::shared_ptr< Executor > ExecutorPtr
std::shared_ptr< std::vector< ScenarioManager::Data_Structure::PackagePtr > > PackageVectorPtr
void packageClicked(Data_Structure::PackagePtr package)
Gets emitted after a Package gets clicked in the ApplicationDatabaseView.
~ApplicationDatabaseController() override
std::shared_ptr< Package > PackagePtr
void on_itemClicked(const QModelIndex &index)
Finds out whether an Application or a Scenario has been clicked and sends a signal with the correspon...
This Controller manages the signals and model of the ApplicationDatabaseView. Item click signals in t...
std::shared_ptr< FilterableTreeModelSortFilterProxyModel > FilterableTreeModelSortFilterProxyModelPtr
ApplicationDatabaseController(Data_Structure::PackageVectorPtr packages, Exec::ExecutorPtr executor, QObject *parent=0)
Constructor that takes the data structure this controller operates on and optionally the parent objec...
Model underlying the ApplicationDatabaseView.
void applicationClicked(Data_Structure::ApplicationPtr app)
Gets emitted after an Application has been clicked in the ApplicationDatabaseView.