X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fconfig.h;h=1a11b4a411635e1b550cdb5e78d32e36121843db;hp=8fbdeaf9584ffe9f9aa85c9084b2fd867aa80bb9;hb=d85bd416c6267e9c86948b9b5f2e5dba5e67f755;hpb=deb61d087799d18cce97b1f0f99fe036d2214a42 diff --git a/src/lib/config.h b/src/lib/config.h index 8fbdeaf95..1a11b4a41 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -590,6 +590,14 @@ public: return _last_release_notes_version; } + boost::optional main_divider_sash_position() const { + return _main_divider_sash_position; + } + + boost::optional main_content_divider_sash_position() const { + return _main_content_divider_sash_position; + } + /* SET (mostly) */ void set_master_encoding_threads (int n) { @@ -1138,6 +1146,14 @@ public: return _export; } + void set_main_divider_sash_position(int position) { + maybe_set(_main_divider_sash_position, position); + } + + void set_main_content_divider_sash_position(int position) { + maybe_set(_main_content_divider_sash_position, position); + } + void changed (Property p = OTHER); boost::signals2::signal Changed; /** Emitted if read() failed on an existing Config file. There is nothing @@ -1370,6 +1386,8 @@ private: RoughDuration _default_kdm_duration; double _auto_crop_threshold; boost::optional _last_release_notes_version; + boost::optional _main_divider_sash_position; + boost::optional _main_content_divider_sash_position; ExportConfig _export;