51 qRegisterMetaType<FilterableTreeModelSortFilterProxyModelPtr>(
52 "FilterableTreeModelSortFilterProxyModelPtr");
53 model->setSourceModel(&treemodel);
73 for (
const auto& package : *packages)
77 for (
const auto& application : *package->getApplications())
81 if (!application->getFound())
95 model->setSourceModel(&treemodel);
107 if (appItem ==
nullptr)
115 message.setText(
"Could not find Application " + appItem->
data(0).toString() +
" at " +
116 QString::fromStdString(appItem->
getApplication()->getPathToExecutable()) +
123 if (
index.parent().isValid())
This class represents an item in the ApplicationDatabaseView.
ScenarioManager::Data_Structure::PackagePtr getPackage()
Returns the Package displayed in this item.
ScenarioManager::Data_Structure::ApplicationPtr getApplication()
Returns the Application displayed in this item.
Model of the FilterableTreeView.
void packageClicked(Data_Structure::PackagePtr package)
Gets emitted after a Package gets clicked in the ApplicationDatabaseView.
void on_itemClicked(const QModelIndex &index)
Finds out whether an Application or a Scenario has been clicked and sends a signal with the correspon...
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...
~ApplicationDatabaseController() override
void modelUpdated(FilterableTreeModelSortFilterProxyModelPtr model)
FilterableTreeModelSortFilterProxyModelPtr getModel()
Returns the model used by the ApplicationDatabaseView and managed by this controller.
void updatePackages()
Updates the packages displayed in the ApplicationDatabaseView by reloading all packages and applicati...
static std::string getCacheDir()
void appendChild(TreeItem *child)
virtual QVariant data(int column) const
void setEnabled(bool enabled)
std::shared_ptr< FilterableTreeModelSortFilterProxyModel > FilterableTreeModelSortFilterProxyModelPtr
std::shared_ptr< std::vector< ScenarioManager::Data_Structure::PackagePtr > > PackageVectorPtr
std::shared_ptr< Executor > ExecutorPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.