X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftime_picker.h;h=53e31a06a8d21e15c26cfe90f3d29b8b1a161de3;hb=c8db1d4012217ec295d2a77581cf0661543dc9af;hp=80888301031f18f2599bf5fddc8654cf319aae1d;hpb=5b7c8b06f7d9ea910020b4620c234cf0dce95a66;p=dcpomatic.git diff --git a/src/wx/time_picker.h b/src/wx/time_picker.h index 808883010..53e31a06a 100644 --- a/src/wx/time_picker.h +++ b/src/wx/time_picker.h @@ -21,8 +21,7 @@ #include #include -class wxTextCtrl; -class wxSpinButton; +class wxSpinCtrl; class TimePicker : public wxPanel { @@ -35,13 +34,8 @@ public: boost::signals2::signal Changed; private: - void update_spin (); - void update_text (); + void spin_changed (); - wxTextCtrl* _hours; - wxSpinButton* _hours_spin; - wxTextCtrl* _minutes; - wxSpinButton* _minutes_spin; - - bool _block_update; + wxSpinCtrl* _hours; + wxSpinCtrl* _minutes; };