from.SetToCurrent ();
_from_date = new wxDatePickerCtrl (this, wxID_ANY, from);
table->Add (_from_date, 1, wxEXPAND);
from.SetToCurrent ();
_from_date = new wxDatePickerCtrl (this, wxID_ANY, from);
table->Add (_from_date, 1, wxEXPAND);
- _from_time = new wxTimePickerCtrl (this, wxID_ANY, from);
- table->Add (_from_time, 1, wxEXPAND);
+ _from_time = new TimePicker (this, from);
+ table->Add (_from_time, 0);
add_label_to_sizer (table, this, _("until"), true);
wxDateTime to = from;
add_label_to_sizer (table, this, _("until"), true);
wxDateTime to = from;
to.Add (wxDateSpan (0, 0, 1, 0));
_until_date = new wxDatePickerCtrl (this, wxID_ANY, to);
table->Add (_until_date, 1, wxEXPAND);
to.Add (wxDateSpan (0, 0, 1, 0));
_until_date = new wxDatePickerCtrl (this, wxID_ANY, to);
table->Add (_until_date, 1, wxEXPAND);
- _until_time = new wxTimePickerCtrl (this, wxID_ANY, to);
- table->Add (_until_time, 1, wxEXPAND);
+ _until_time = new TimePicker (this, to);
+ table->Add (_until_time, 0);
_from_date->Bind (wxEVT_DATE_CHANGED, bind (&KDMTimingPanel::changed, this));
_until_date->Bind (wxEVT_DATE_CHANGED, bind (&KDMTimingPanel::changed, this));
_from_date->Bind (wxEVT_DATE_CHANGED, bind (&KDMTimingPanel::changed, this));
_until_date->Bind (wxEVT_DATE_CHANGED, bind (&KDMTimingPanel::changed, this));
- _from_time->Bind (wxEVT_TIME_CHANGED, bind (&KDMTimingPanel::changed, this));
- _until_time->Bind (wxEVT_TIME_CHANGED, bind (&KDMTimingPanel::changed, this));
+ _from_time->Changed.connect (bind (&KDMTimingPanel::changed, this));
+ _until_time->Changed.connect (bind (&KDMTimingPanel::changed, this));
return boost::posix_time::ptime (
boost::gregorian::date (date.GetYear(), date.GetMonth() + 1, date.GetDay()),
return boost::posix_time::ptime (
boost::gregorian::date (date.GetYear(), date.GetMonth() + 1, date.GetDay()),