X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fplayhead_to_timecode_dialog.cc;h=dda742fbc50d3e17934d3025d65f44d7912845b2;hb=31de5b1272d928557a7272977584f5dcc9876c75;hp=be4ac7dfccc524986f4dd2a5823606c802021305;hpb=f015c70b101bd6d89eb34f9bc6e70d8e0638d12e;p=dcpomatic.git diff --git a/src/wx/playhead_to_timecode_dialog.cc b/src/wx/playhead_to_timecode_dialog.cc index be4ac7dfc..dda742fbc 100644 --- a/src/wx/playhead_to_timecode_dialog.cc +++ b/src/wx/playhead_to_timecode_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2016 Carl Hetherington + Copyright (C) 2016-2020 Carl Hetherington This file is part of DCP-o-matic. @@ -20,12 +20,16 @@ #include "playhead_to_timecode_dialog.h" -PlayheadToTimecodeDialog::PlayheadToTimecodeDialog (wxWindow* parent, int fps) +using namespace dcpomatic; + +PlayheadToTimecodeDialog::PlayheadToTimecodeDialog (wxWindow* parent, dcpomatic::DCPTime time, int fps) : TableDialog (parent, _("Go to timecode"), 2, 1, true) , _fps (fps) { add (_("Go to"), true); _timecode = add (new Timecode (this, false)); + _timecode->set_focus (); + _timecode->set_hint (time, fps); layout (); }