summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-01-04 21:26:18 +0000
committerCarl Hetherington <cth@carlh.net>2018-01-04 21:26:18 +0000
commit9ccaee9ed18688b3862b8b7fb7e73b69e71568e3 (patch)
treeccea84223b46ae1bb8dfc9d362d2d6e8ace52d0a /src/lib/config.h
parente21611dbada74946fcdb037386f0e58fad8fc97e (diff)
Set up a default KDM write mode and preselect the last used one when re-opening the KDM window (#1137).
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index afa362a4c..a57fbd587 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -345,6 +345,16 @@ public:
return _last_player_load_directory;
}
+ enum KDMWriteType {
+ KDM_WRITE_FLAT,
+ KDM_WRITE_FOLDER,
+ KDM_WRITE_ZIP
+ };
+
+ boost::optional<KDMWriteType> last_kdm_write_type () const {
+ return _last_kdm_write_type;
+ }
+
int frames_in_memory_multiplier () const {
return _frames_in_memory_multiplier;
}
@@ -583,6 +593,10 @@ public:
maybe_set (_last_player_load_directory, d);
}
+ void set_last_kdm_write_type (KDMWriteType t) {
+ maybe_set (_last_kdm_write_type, t);
+ }
+
void unset_sound_output () {
if (!_sound_output) {
return;
@@ -779,6 +793,7 @@ private:
boost::optional<std::string> _sound_output;
std::string _cover_sheet;
boost::optional<boost::filesystem::path> _last_player_load_directory;
+ boost::optional<KDMWriteType> _last_kdm_write_type;
int _frames_in_memory_multiplier;
/** Singleton instance, or 0 */