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>
9 #include <QApplication>
13 #if defined(SCORE_STATIC_PLUGINS)
14 #include <score_static_plugins.hpp>
25 const char* default_argv[2] = {
"score",
nullptr};
34 , m_app{
new QApplication{argc, argv}}
36 #if defined(SCORE_STATIC_PLUGINS)
37 score_init_static_plugins();
41 this->setParent(m_app);
44 =
new score::Presenter{m_applicationSettings, m_settings, m_pset,
nullptr,
this};
51 this->setParent(
nullptr);
54 QApplication::processEvents();
60 return m_presenter->applicationContext();
65 return context().components;
70 return m_presenter->components();
73 int exec() {
return m_app->exec(); }
89 , m_app{
new QApplication{argc, argv}}
91 #if defined(SCORE_STATIC_PLUGINS)
92 score_init_static_plugins();
96 this->setParent(m_app);
100 =
new score::Presenter{m_applicationSettings, m_settings, m_pset, m_view,
this};
109 this->setParent(
nullptr);
112 QApplication::processEvents();
118 return m_presenter->applicationContext();
123 return context().components;
128 return m_presenter->components();
133 int exec() {
return m_app->exec(); }
135 QApplication* m_app{};
Definition: ApplicationComponents.hpp:68
Definition: ApplicationInterface.hpp:39
void loadPluginData(score::Settings &settings, score::Presenter &presenter)
loadPluginData Utility method to load the minimal required data for plug-ins.
Definition: ApplicationInterface.cpp:77
Definition: MinimalApplication.hpp:22
Definition: MinimalApplication.hpp:85
The Presenter class.
Definition: lib/core/presenter/Presenter.hpp:36
Definition: lib/core/settings/Settings.hpp:70
Application-wide user settings registering and handling.
Definition: lib/core/settings/Settings.hpp:42
The main display of the application.
Definition: lib/core/view/Window.hpp:41
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: ApplicationComponents.hpp:46
Load-time settings.
Definition: ApplicationSettings.hpp:17
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15