No-op; rename a whole load of wx constants to their shorter equivalents.
[dcpomatic.git] / src / wx / timecode.cc
index 8db6050943caff69504ff09324650251a2fa4282..699687a956f05e77497edaf12629248730968974 100644 (file)
@@ -70,12 +70,12 @@ TimecodeBase::TimecodeBase (wxWindow* parent, bool set_button)
 
        _fixed = add_label_to_sizer (_sizer, this, wxT ("42"), false);
 
-       _hours->Bind      (wxEVT_COMMAND_TEXT_UPDATED,   boost::bind (&TimecodeBase::changed, this));
-       _minutes->Bind    (wxEVT_COMMAND_TEXT_UPDATED,   boost::bind (&TimecodeBase::changed, this));
-       _seconds->Bind    (wxEVT_COMMAND_TEXT_UPDATED,   boost::bind (&TimecodeBase::changed, this));
-       _frames->Bind     (wxEVT_COMMAND_TEXT_UPDATED,   boost::bind (&TimecodeBase::changed, this));
+       _hours->Bind      (wxEVT_TEXT,   boost::bind (&TimecodeBase::changed, this));
+       _minutes->Bind    (wxEVT_TEXT,   boost::bind (&TimecodeBase::changed, this));
+       _seconds->Bind    (wxEVT_TEXT,   boost::bind (&TimecodeBase::changed, this));
+       _frames->Bind     (wxEVT_TEXT,   boost::bind (&TimecodeBase::changed, this));
        if (_set_button) {
-               _set_button->Bind (wxEVT_COMMAND_BUTTON_CLICKED, boost::bind (&TimecodeBase::set_clicked, this));
+               _set_button->Bind (wxEVT_BUTTON, boost::bind (&TimecodeBase::set_clicked, this));
                _set_button->Enable (false);
        }
 
@@ -84,6 +84,12 @@ TimecodeBase::TimecodeBase (wxWindow* parent, bool set_button)
        SetSizerAndFit (_sizer);
 }
 
+void
+TimecodeBase::set_focus ()
+{
+       _hours->SetFocus ();
+}
+
 void
 TimecodeBase::clear ()
 {