, _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(">")))
void
Controls::timecode_clicked ()
{
- auto dialog = new PlayheadToTimecodeDialog(this, _viewer.position(), _film->video_frame_rate());
- ScopeGuard sg = [dialog]() { dialog->Destroy(); };
+ auto dialog = make_wx<PlayheadToTimecodeDialog>(this, _viewer.position(), _film->video_frame_rate());
if (dialog->ShowModal() == wxID_OK) {
_viewer.seek(dialog->get(), true);
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<PlayheadToFrameDialog>(this, _viewer.position(), _film->video_frame_rate());
if (dialog->ShowModal() == wxID_OK) {
_viewer.seek(dialog->get(), true);