diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-12 23:21:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-14 11:41:18 +0200 |
| commit | d85bd416c6267e9c86948b9b5f2e5dba5e67f755 (patch) | |
| tree | e60c0ada656c185eef9f581dbc9682fb244ebe57 /src/lib/config.h | |
| parent | deb61d087799d18cce97b1f0f99fe036d2214a42 (diff) | |
Save and restore sash positions in the main DoM.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 18 |
1 files changed, 18 insertions, 0 deletions
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<int> main_divider_sash_position() const { + return _main_divider_sash_position; + } + + boost::optional<int> 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<void (Property)> 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<std::string> _last_release_notes_version; + boost::optional<int> _main_divider_sash_position; + boost::optional<int> _main_content_divider_sash_position; ExportConfig _export; |
