ApplicationSettings.hpp
1 #pragma once
2 #include <score/tools/Version.hpp>
3 
4 #include <QStringList>
5 
6 #include <score_lib_base_export.h>
7 namespace score
8 {
16 struct SCORE_LIB_BASE_EXPORT ApplicationSettings
17 {
19  bool tryToRestore = true;
20 
22  bool forceRestore = false;
23 
25  bool gui = true;
26 
28  bool opengl = true;
29 
31  bool autoplay = false;
32 
34  score::Version saveFormatVersion{4};
35 
37  QStringList loadList;
38 
40  QString ui;
41 
43  int waitAfterLoad = 0;
44 
46  QStringList arguments;
47 
49  int uiEventRate = 64;
50 
52  void parse(QStringList args, int& argc, char** argv);
53 };
54 
55 SCORE_LIB_BASE_EXPORT
56 void setQApplicationMetadata();
57 }
Represents the version of a plug-in.
Definition: Version.hpp:13
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Load-time settings.
Definition: ApplicationSettings.hpp:17
QString ui
UI file to be loaded.
Definition: ApplicationSettings.hpp:40
QStringList arguments
Complete list of arguments passed to parse.
Definition: ApplicationSettings.hpp:46
QStringList loadList
List of scenarios that should be loaded.
Definition: ApplicationSettings.hpp:37