Update -> set in timecode control.
authorCarl Hetherington <cth@carlh.net>
Fri, 19 Jul 2013 00:17:28 +0000 (01:17 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 19 Jul 2013 00:17:28 +0000 (01:17 +0100)
src/wx/timecode.cc
src/wx/timecode.h

index 3e61f02bcdc5ae0d9b44c3f28f4c402a3ae584a1..82c27c5b5ad171a63b18297fd3308d374921e4fe 100644 (file)
@@ -59,16 +59,16 @@ Timecode::Timecode (wxWindow* parent)
        _frames = new wxTextCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, size, 0, validator);
        _frames->SetMaxLength (2);
        sizer->Add (_frames);
-       _update_button = new wxButton (this, wxID_ANY, _("Update"));
-       sizer->Add (_update_button, 0, wxLEFT | wxRIGHT, 8);
+       _set_button = new wxButton (this, wxID_ANY, _("Set"));
+       sizer->Add (_set_button, 0, wxLEFT | wxRIGHT, 8);
 
        _hours->Connect (wxID_ANY, wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler (Timecode::changed), 0, this);
        _minutes->Connect (wxID_ANY, wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler (Timecode::changed), 0, this);
        _seconds->Connect (wxID_ANY, wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler (Timecode::changed), 0, this);
        _frames->Connect (wxID_ANY, wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler (Timecode::changed), 0, this);
-       _update_button->Connect (wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler (Timecode::update_clicked), 0, this);
+       _set_button->Connect (wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler (Timecode::set_clicked), 0, this);
 
-       _update_button->Enable (false);
+       _set_button->Enable (false);
        
        SetSizerAndFit (sizer);
 }
@@ -109,12 +109,12 @@ Timecode::get (int fps) const
 void
 Timecode::changed (wxCommandEvent &)
 {
-       _update_button->Enable (true);
+       _set_button->Enable (true);
 }
 
 void
-Timecode::update_clicked (wxCommandEvent &)
+Timecode::set_clicked (wxCommandEvent &)
 {
        Changed ();
-       _update_button->Enable (false);
+       _set_button->Enable (false);
 }
index 465239fe53cdd5dbbb0495f4bdba89a6ead05a2c..ca6deb9692a033085f0e5f5bba26663385f6aca2 100644 (file)
@@ -33,12 +33,12 @@ public:
 
 private:
        void changed (wxCommandEvent &);
-       void update_clicked (wxCommandEvent &);
+       void set_clicked (wxCommandEvent &);
        
        wxTextCtrl* _hours;
        wxTextCtrl* _minutes;
        wxTextCtrl* _seconds;
        wxTextCtrl* _frames;
-       wxButton* _update_button;
+       wxButton* _set_button;
 };