X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkdm_timing_panel.cc;h=e0e5ac44f4a3c87b9dcc3e3982ec26fb23bd5af9;hb=08f96200aacf9f91ef3e3f5b80224a5b2437f279;hp=53f674e2ecbe01f6edc83ec80461cd68c2259467;hpb=885de94a17a39314fd2c1fd97a8df953eb3d4031;p=dcpomatic.git diff --git a/src/wx/kdm_timing_panel.cc b/src/wx/kdm_timing_panel.cc index 53f674e2e..e0e5ac44f 100644 --- a/src/wx/kdm_timing_panel.cc +++ b/src/wx/kdm_timing_panel.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2015-2016 Carl Hetherington + Copyright (C) 2015-2020 Carl Hetherington This file is part of DCP-o-matic. @@ -21,6 +21,7 @@ #include "kdm_timing_panel.h" #include "wx_util.h" #include "time_picker.h" +#include "static_text.h" #include #include @@ -61,7 +62,7 @@ KDMTimingPanel::KDMTimingPanel (wxWindow* parent) overall_sizer->Add (table); - _warning = new wxStaticText (this, wxID_ANY, wxT ("")); + _warning = new StaticText (this, wxT("")); overall_sizer->Add (_warning, 0, wxTOP, DCPOMATIC_SIZER_GAP); wxFont font = _warning->GetFont(); font.SetStyle(wxFONTSTYLE_ITALIC); @@ -69,6 +70,12 @@ KDMTimingPanel::KDMTimingPanel (wxWindow* parent) _warning->SetForegroundColour (wxColour (255, 0, 0)); _warning->SetFont(font); + /* I said I've been to the year 3000. Not much has changed but they live underwater. And your In-in-in-interop DCP + is pretty fine. + */ + _from_date->SetRange(wxDateTime(1, wxDateTime::Jan, 1900, 0, 0, 0, 0), wxDateTime(31, wxDateTime::Dec, 3000, 0, 0, 0, 0)); + _until_date->SetRange(wxDateTime(1, wxDateTime::Jan, 1900, 0, 0, 0, 0), wxDateTime(31, wxDateTime::Dec, 3000, 0, 0, 0, 0)); + _from_date->Bind (wxEVT_DATE_CHANGED, bind (&KDMTimingPanel::changed, this)); _until_date->Bind (wxEVT_DATE_CHANGED, bind (&KDMTimingPanel::changed, this)); _from_time->Changed.connect (bind (&KDMTimingPanel::changed, this));