summaryrefslogtreecommitdiff
path: root/src/wx/time_picker.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-10-28 22:56:23 +0100
committerCarl Hetherington <cth@carlh.net>2016-10-28 22:56:23 +0100
commitc27d6f3a7e6c79c60ffac7c616dd3a3431819862 (patch)
tree65dbc097882c052eee7e1021dc9ea35fed68956d /src/wx/time_picker.h
parent1b6cc1e8aa8abd05dfc9a108b35ddd7cbf50dedf (diff)
Attempt to tidy up layout of KDM window.
Diffstat (limited to 'src/wx/time_picker.h')
-rw-r--r--src/wx/time_picker.h14
1 files changed, 4 insertions, 10 deletions
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 <wx/wx.h>
#include <boost/signals2.hpp>
-class wxTextCtrl;
-class wxSpinButton;
+class wxSpinCtrl;
class TimePicker : public wxPanel
{
@@ -35,13 +34,8 @@ public:
boost::signals2::signal<void ()> 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;
};