Olive
config.h
1 #ifndef CONFIG_H
2 #define CONFIG_H
3 
4 #include <QString>
5 
6 #define SAVE_VERSION 190201 // YYMMDD
7 #define MIN_SAVE_VERSION 190104 // lowest compatible project version
8 
9 #define TIMECODE_DROP 0
10 #define TIMECODE_NONDROP 1
11 #define TIMECODE_FRAMES 2
12 #define TIMECODE_MILLISECONDS 3
13 
14 #define RECORD_MODE_MONO 1
15 #define RECORD_MODE_STEREO 2
16 
17 #define AUTOSCROLL_NO_SCROLL 0
18 #define AUTOSCROLL_PAGE_SCROLL 1
19 #define AUTOSCROLL_SMOOTH_SCROLL 2
20 
21 #define PROJECT_VIEW_TREE 0
22 #define PROJECT_VIEW_ICON 1
23 
24 #define FRAME_QUEUE_TYPE_FRAMES 0
25 #define FRAME_QUEUE_TYPE_SECONDS 1
26 
27 struct Config {
28  Config();
29 
30  bool saved_layout;
31  bool show_track_lines;
32  bool scroll_zooms;
33  bool edit_tool_selects_links;
34  bool edit_tool_also_seeks;
35  bool select_also_seeks;
36  bool paste_seeks;
37  QString img_seq_formats;
38  bool rectified_waveforms;
39  int default_transition_length;
40  int timecode_view;
41  bool show_title_safe_area;
42  bool use_custom_title_safe_ratio;
43  double custom_title_safe_ratio;
44  bool enable_drag_files_to_timeline;
45  bool autoscale_by_default;
46  int recording_mode;
47  bool enable_seek_to_import;
48  bool enable_audio_scrubbing;
49  bool drop_on_media_to_replace;
50  int autoscroll;
51  int audio_rate;
52  bool fast_seeking;
53  bool hover_focus;
54  int project_view_type;
55  bool set_name_with_marker;
56  bool show_project_toolbar;
57  double previous_queue_size;
58  int previous_queue_type;
59  double upcoming_queue_size;
60  int upcoming_queue_type;
61  bool loop;
62  bool seek_also_selects;
63  QString css_path;
64  int effect_textbox_lines;
65  bool use_software_fallback;
66  bool center_timeline_timecodes;
67  QString preferred_audio_output;
68  QString preferred_audio_input;
69  QString language_file;
70  int waveform_resolution;
71  int thumbnail_resolution;
72 
73  void load(QString path);
74  void save(QString path);
75 };
76 
77 struct RuntimeConfig {
78  RuntimeConfig();
79 
80  bool shaders_are_enabled;
81  bool disable_blending;
82  QString external_translation_file;
83 };
84 
85 extern Config config;
86 extern RuntimeConfig runtime_config;
87 
88 #endif // CONFIG_H
Definition: config.h:77
Definition: config.h:27