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  int waitAfterLoad = 0;
41 
43  QStringList arguments;
44 
46  int uiEventRate = 64;
47 
49  void parse(QStringList args, int& argc, char** argv);
50 };
51 
52 SCORE_LIB_BASE_EXPORT
53 void setQApplicationMetadata();
54 }
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
QStringList arguments
Complete list of arguments passed to parse.
Definition: ApplicationSettings.hpp:43
QStringList loadList
List of scenarios that should be loaded.
Definition: ApplicationSettings.hpp:37