diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-24 01:49:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-24 19:12:36 +0200 |
| commit | 401da185ca664fc8d819fc842ffc08e14d4f6486 (patch) | |
| tree | 5c2ea2d1a7b1b537c04e7e9b3d32c8a44080f168 /src/wx/kdm_timing_panel.h | |
| parent | dbcd1675732d59f6337f7f60d0a39aaa6a1aa3a6 (diff) | |
Restore time zone to Cinema and improve UI to use it (#2473).
Diffstat (limited to 'src/wx/kdm_timing_panel.h')
| -rw-r--r-- | src/wx/kdm_timing_panel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wx/kdm_timing_panel.h b/src/wx/kdm_timing_panel.h index f847992a7..a6199534a 100644 --- a/src/wx/kdm_timing_panel.h +++ b/src/wx/kdm_timing_panel.h @@ -44,10 +44,16 @@ public: bool valid () const; + /** Give a UTC offset from a cinema that the user just selected. If the user + * never changed the UTC offset in the panel, the suggested UTC will be set. + */ + void suggest_utc_offset(dcp::UTCOffset offset); + boost::signals2::signal<void ()> TimingChanged; private: void changed () const; + void utc_offset_changed(); dcp::UTCOffset utc_offset() const; static dcp::LocalTime local_time(wxDatePickerCtrl *, TimePicker *, dcp::UTCOffset offset); @@ -57,6 +63,7 @@ private: TimePicker* _from_time; TimePicker* _until_time; Choice* _utc_offset; + bool _utc_offset_changed_once = false; wxStaticText* _warning; std::vector<Offset> _offsets; }; |
