3#include <core/application/ApplicationInterface.hpp>
4#include <core/application/ApplicationSettings.hpp>
5#include <core/presenter/Presenter.hpp>
6#include <core/settings/Settings.hpp>
7#include <core/view/Window.hpp>
14#if defined(SCORE_STATIC_PLUGINS)
15#include <score_static_plugins.hpp>
28 const char* argv[2] = {
"score",
nullptr};
38 static DefaultArgs& defaultArgs() noexcept
40 static DefaultArgs args;
44 explicit MinimalApplication(DefaultArgs& args)
45 : MinimalApplication{args.argc, (char**)args.argv}
49 MinimalApplication(
int& argc,
char** argv)
51 , m_app{new QApplication{argc, argv}}
54#if defined(SCORE_STATIC_PLUGINS)
55 score_init_static_plugins();
59 this->setParent(m_app.get());
62 =
new score::Presenter{m_applicationSettings, m_settings, m_pset,
nullptr,
this};
67 ~MinimalApplication()
override
69 this->setParent(
nullptr);
74 QApplication::processEvents();
86 return m_presenter->applicationContext();
91 return context().components;
96 return m_presenter->components();
99 int exec() {
return m_app->exec(); }
103 std::unique_ptr<QApplication> m_app;
117 , m_app{
new QApplication{argc, argv}}
121#if defined(SCORE_STATIC_PLUGINS)
122 score_init_static_plugins();
126 this->setParent(m_app.get());
130 =
new score::Presenter{m_applicationSettings, m_settings, m_pset, m_view,
this};
140 this->setParent(
nullptr);
144 QApplication::processEvents();
157 return m_presenter->applicationContext();
162 return context().components;
167 return m_presenter->components();
172 int exec() {
return m_app->exec(); }
180 std::unique_ptr<QApplication> m_app;
Definition ApplicationComponents.hpp:68
Definition ApplicationInterface.hpp:53
void loadPluginData(score::Settings &settings, score::Presenter &presenter)
loadPluginData Utility method to load the minimal required data for plug-ins.
Definition ApplicationInterface.cpp:127
Definition MinimalApplication.hpp:23
Definition MinimalApplication.hpp:113
The Presenter class.
Definition lib/core/presenter/Presenter.hpp:36
Definition lib/core/settings/Settings.hpp:81
Application-wide user settings registering and handling.
Definition lib/core/settings/Settings.hpp:42
void teardownModels() noexcept
Definition lib/core/settings/Settings.cpp:29
The main display of the application.
Definition lib/core/view/Window.hpp:41
Base toolkit upon which the software is built.
Definition Application.cpp:83
void loadApplicationResources()
Definition ApplicationInterface.cpp:62
Definition ApplicationComponents.hpp:46
Load-time settings.
Definition ApplicationSettings.hpp:26
Specializes ApplicationContext with the QMainWindow.
Definition GUIApplicationContext.hpp:15
Definition MinimalApplication.hpp:26