diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-06-21 13:25:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-04 23:02:26 +0200 |
| commit | de8cd4118d57591804ccd63f979aa9e495df9c93 (patch) | |
| tree | 82bd16a3a8cb44d34a21cd51581a1933a819018c /src/wx/kdm_timing_panel.h | |
| parent | 1650465106b7c20a7cc9ae5eec1cf9bf406c1dcf (diff) | |
Go back to the old way of handling KDM timing.
Once again the KDM gets its timezone from the cinema.
Diffstat (limited to 'src/wx/kdm_timing_panel.h')
| -rw-r--r-- | src/wx/kdm_timing_panel.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/wx/kdm_timing_panel.h b/src/wx/kdm_timing_panel.h index a6199534a..21478b1ab 100644 --- a/src/wx/kdm_timing_panel.h +++ b/src/wx/kdm_timing_panel.h @@ -39,31 +39,22 @@ class KDMTimingPanel : public wxPanel public: explicit KDMTimingPanel (wxWindow* parent); - dcp::LocalTime from() const; - dcp::LocalTime until() const; + boost::posix_time::ptime from() const; + boost::posix_time::ptime until() const; 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); + static boost::posix_time::ptime posix_time(wxDatePickerCtrl *, TimePicker *); wxDatePickerCtrl* _from_date; wxDatePickerCtrl* _until_date; TimePicker* _from_time; TimePicker* _until_time; - Choice* _utc_offset; - bool _utc_offset_changed_once = false; wxStaticText* _warning; std::vector<Offset> _offsets; }; |
