diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-12-22 17:02:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-28 02:01:58 +0100 |
| commit | 1889bd28b5e5fcef7607b26f184ceba3f3076b2c (patch) | |
| tree | f659b81b5eac00138c035fb2f8621ac7aa882b2c /src/lib/film.h | |
| parent | e9285246f543248eec88627ce61a3ccafd6f3ac2 (diff) | |
Remember whether Content or DCP is selected in a new ui.xml state file.
Diffstat (limited to 'src/lib/film.h')
| -rw-r--r-- | src/lib/film.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/film.h b/src/lib/film.h index 43a41ad45..036bbed7e 100644 --- a/src/lib/film.h +++ b/src/lib/film.h @@ -434,6 +434,10 @@ public: void add_ffoc_lfoc (Markers& markers) const; + void set_ui_state(std::string key, std::string value); + boost::optional<std::string> ui_state(std::string key) const; + void read_ui_state(); + /** Emitted when some property has of the Film is about to change or has changed */ mutable boost::signals2::signal<void (ChangeType, FilmProperty)> Change; @@ -477,6 +481,7 @@ private: void check_settings_consistency (); void maybe_set_container_and_resolution (); void set_dirty (bool dirty); + void write_ui_state() const; /** Log to write to */ std::shared_ptr<Log> _log; @@ -562,6 +567,8 @@ private: */ bool _tolerant; + std::map<std::string, std::string> _ui_state; + mutable boost::mutex _info_file_mutex; boost::signals2::scoped_connection _playlist_change_connection; |
