Loading...
Searching...
No Matches
ApplicationSettings.hpp
1#pragma once
2#include <score/tools/Version.hpp>
3
4#include <QString>
5#include <QStringList>
6
7#include <score_lib_base_export.h>
8namespace score
9{
16SCORE_LIB_BASE_EXPORT QString displayedVersion();
17
25struct SCORE_LIB_BASE_EXPORT ApplicationSettings
26{
28 bool tryToRestore = true;
29
31 bool forceRestore = false;
32
35 bool hasScript = false;
36
38 bool gui = true;
39
41 bool opengl = true;
42
44 bool autoplay = false;
45
47 bool vector_gui = true;
48
50 score::Version saveFormatVersion{4};
51
53 QStringList loadList;
54
56 QString ui;
57
59 int waitAfterLoad = 0;
60
62 QStringList arguments;
63
65 int uiEventRate = 64;
66
68 void parse(QStringList args, int& argc, char** argv);
69};
70
71SCORE_LIB_BASE_EXPORT
72void setQApplicationMetadata();
73}
Represents the version of a plug-in.
Definition Version.hpp:13
Base toolkit upon which the software is built.
Definition Application.cpp:117
QString displayedVersion()
The version as shown to users.
Definition ApplicationSettings.cpp:19
Load-time settings.
Definition ApplicationSettings.hpp:26
QString ui
UI file to be loaded.
Definition ApplicationSettings.hpp:56
QStringList arguments
Complete list of arguments passed to parse.
Definition ApplicationSettings.hpp:62
QStringList loadList
List of scenarios that should be loaded.
Definition ApplicationSettings.hpp:53