diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-22 12:28:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-04-22 12:28:19 +0100 |
| commit | 8031edf0ce27b75727438e504128448b0884b426 (patch) | |
| tree | c1de0021c11575bd0da5829d24c2cc6701c57da9 /src/wx/kdm_timing_panel.h | |
| parent | 450063921e66534da362ac5dab08ff9d67e2bdbe (diff) | |
Disallow KDM until times being before from times (#821).
Diffstat (limited to 'src/wx/kdm_timing_panel.h')
| -rw-r--r-- | src/wx/kdm_timing_panel.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wx/kdm_timing_panel.h b/src/wx/kdm_timing_panel.h index 7e607296f..d71e2d292 100644 --- a/src/wx/kdm_timing_panel.h +++ b/src/wx/kdm_timing_panel.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2015 Carl Hetherington <cth@carlh.net> + Copyright (C) 2015-2016 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,6 +19,7 @@ #include <wx/wx.h> #include <boost/date_time/posix_time/posix_time.hpp> +#include <boost/signals2.hpp> class wxDatePickerCtrl; class wxTimePickerCtrl; @@ -33,11 +34,17 @@ public: /** @return KDM until time in local time */ boost::posix_time::ptime until () const; + bool valid () const; + + boost::signals2::signal<void ()> TimingChanged; + private: + void changed () const; static boost::posix_time::ptime posix_time (wxDatePickerCtrl *, wxTimePickerCtrl *); wxDatePickerCtrl* _from_date; wxDatePickerCtrl* _until_date; wxTimePickerCtrl* _from_time; wxTimePickerCtrl* _until_time; + wxStaticText* _warning; }; |
