X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontrols.cc;h=7cb75ef153874a5e158a56b596e9c302cd5370d1;hb=e87f943433216d294b22853411eca5c582be1066;hp=804b59daec390173e28931f9e65fb6c2f8397f8e;hpb=b7e65adf286ce20918797a06a910ededf8f07b7b;p=dcpomatic.git diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 804b59dae..7cb75ef15 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -70,10 +70,6 @@ Controls::Controls(wxWindow* parent, FilmViewer& viewer, bool editor_controls) , _markers (new MarkersPanel(this, viewer)) , _slider (new wxSlider(this, wxID_ANY, 0, 0, 4096)) , _viewer (viewer) - , _slider_being_moved (false) - , _outline_content (0) - , _eye (0) - , _jump_to_selected (0) , _rewind_button (new Button(this, wxT("|<"))) , _back_button (new Button(this, wxT("<"))) , _forward_button (new Button(this, wxT(">"))) @@ -381,8 +377,7 @@ Controls::setup_sensitivity () void Controls::timecode_clicked () { - auto dialog = new PlayheadToTimecodeDialog(this, _viewer.position(), _film->video_frame_rate()); - ScopeGuard sg = [dialog]() { dialog->Destroy(); }; + auto dialog = make_wx(this, _viewer.position(), _film->video_frame_rate()); if (dialog->ShowModal() == wxID_OK) { _viewer.seek(dialog->get(), true); @@ -393,8 +388,7 @@ Controls::timecode_clicked () void Controls::frame_number_clicked () { - auto dialog = new PlayheadToFrameDialog(this, _viewer.position(), _film->video_frame_rate()); - ScopeGuard sg = [dialog]() { dialog->Destroy(); }; + auto dialog = make_wx(this, _viewer.position(), _film->video_frame_rate()); if (dialog->ShowModal() == wxID_OK) { _viewer.seek(dialog->get(), true);