Olive
config.h
Go to the documentation of this file.
1 /***
2 
3  Olive - Non-Linear Video Editor
4  Copyright (C) 2019 Olive Team
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 ***/
20 
21 #ifndef CONFIG_H
22 #define CONFIG_H
23 
24 #include <QString>
25 
26 namespace olive {
40  const int kSaveVersion = 190219; // YYMMDD
41 
54  const int kMinimumSaveVersion = 190219; // lowest compatible project version
55 
63  enum TimecodeType {
66 
69 
72 
75  };
76 
86 
89  };
90 
100 
104 
108  };
109 
116  enum ProjectView {
119 
122  };
123 
137 
140  };
141 }
142 
149 struct Config {
155  Config();
156 
163 
170 
177 
184 
191 
198 
205 
213 
220 
230 
237 
244 
253 
260 
268 
277 
284 
291 
299 
308 
316 
326 
336 
345 
353 
362 
373 
383 
394 
404 
412  bool loop;
413 
422 
429  QString css_path;
430 
439 
450 
459 
468 
477 
485  QString language_file;
486 
496 
503 
511 
521  void load(QString path);
522 
532  void save(QString path);
533 };
534 
547  RuntimeConfig();
548 
555 
563 
570 };
571 
572 namespace olive {
573 extern Config CurrentConfig;
575 }
576 
577 #endif // CONFIG_H
QString preferred_audio_input
Preferred audio input device.
Definition: config.h:476
Definition: config.h:88
bool enable_drag_files_to_timeline
Enable dragging files outside Olive directly into the Timeline.
Definition: config.h:259
RuntimeConfig CurrentRuntimeConfig
Definition: config.cpp:33
QString css_path
CSS Path.
Definition: config.h:429
Definition: config.h:103
bool shaders_are_enabled
Enable shaders.
Definition: config.h:554
Definition: config.h:139
bool enable_seek_to_import
Enable seek to import.
Definition: config.h:283
The RuntimeConfig struct.
Definition: config.h:541
AutoScrollMode
The AutoScrollMode enum.
Definition: config.h:97
bool use_custom_title_safe_ratio
Use custom title/action safe area aspect ratio.
Definition: config.h:243
int waveform_resolution
Waveform resolution.
Definition: config.h:495
Definition: config.h:71
double previous_queue_size
Previous frame queue size.
Definition: config.h:372
QString preferred_audio_output
Preferred audio output device.
Definition: config.h:467
bool use_software_fallback
Use software fallbacks when possible.
Definition: config.h:449
bool rectified_waveforms
Use rectified waveforms.
Definition: config.h:212
int effect_textbox_lines
Number of lines that an Effect's textbox has.
Definition: config.h:438
int recording_mode
Recording mode/channel layout.
Definition: config.h:276
TimecodeType
The TimecodeType enum.
Definition: config.h:63
int audio_rate
Current audio sample rate.
Definition: config.h:315
QString external_translation_file
Load an external translation file.
Definition: config.h:569
RuntimeConfig()
RuntimeConfig Constructor.
Definition: config.cpp:282
int project_view_type
Project view type.
Definition: config.h:344
Definition: debugdialog.h:39
int previous_queue_type
Previous frame queue type.
Definition: config.h:382
Definition: config.h:107
The Config struct.
Definition: config.h:149
bool show_project_toolbar
Show the project toolbar.
Definition: config.h:361
bool edit_tool_also_seeks
Edit tool also seeks.
Definition: config.h:183
Definition: config.h:99
QString language_file
Language/translation file.
Definition: config.h:485
int default_transition_length
Default transition length.
Definition: config.h:219
Definition: config.h:68
bool show_title_safe_area
Show title/action safe area.
Definition: config.h:236
Definition: config.h:118
bool scroll_zooms
The scroll wheel zooms rather than scrolls.
Definition: config.h:169
bool hover_focus
Enable hover focus.
Definition: config.h:335
Definition: config.h:85
bool paste_seeks
Paste also seeks.
Definition: config.h:197
int autoscroll
Auto-scroll mode.
Definition: config.h:307
bool disable_blending
Disable blending modes.
Definition: config.h:562
Config()
Config Constructor.
Definition: config.cpp:35
bool autoscale_by_default
Auto-scale by default.
Definition: config.h:267
int upcoming_queue_type
Upcoming frame queue type.
Definition: config.h:403
bool show_track_lines
Show track lines.
Definition: config.h:162
QString img_seq_formats
Image sequence formats.
Definition: config.h:204
bool enable_audio_scrubbing
Enable audio scrubbing.
Definition: config.h:290
Definition: config.h:65
double custom_title_safe_ratio
Custom title/action safe area aspect ratio.
Definition: config.h:252
bool center_timeline_timecodes
Center Timeline timecodes.
Definition: config.h:458
Definition: config.h:74
double upcoming_queue_size
Upcoming frame queue size.
Definition: config.h:393
Config CurrentConfig
Definition: config.cpp:32
FrameQueueType
The FrameQueueType enum.
Definition: config.h:134
const int kMinimumSaveVersion
Minimum project version that this version of Olive can open.
Definition: config.h:54
Definition: config.h:121
RecordingMode
The RecordingMode enum.
Definition: config.h:83
Definition: config.h:136
bool set_name_with_marker
Ask for a marker name when setting a marker.
Definition: config.h:352
bool add_default_effects_to_clips
Add default effects to clips.
Definition: config.h:510
bool edit_tool_selects_links
Edit tool selects links.
Definition: config.h:176
void load(QString path)
Load config from file.
Definition: config.cpp:76
void save(QString path)
Save config to file.
Definition: config.cpp:221
ProjectView
The ProjectView enum.
Definition: config.h:116
bool drop_on_media_to_replace
Enable drop on media to replace.
Definition: config.h:298
bool fast_seeking
Enable fast seeking.
Definition: config.h:325
bool select_also_seeks
Selecting also seeks.
Definition: config.h:190
int timecode_view
Timecode display mode.
Definition: config.h:229
bool loop
Loop.
Definition: config.h:412
bool seek_also_selects
Seeking also selects.
Definition: config.h:421
const int kSaveVersion
Version identifier for saved projects.
Definition: config.h:40
int thumbnail_resolution
Thumbnail resolution.
Definition: config.h:502