Extract common code out into kdm_for_screen()
[dcpomatic.git] / src / wx / playhead_to_timecode_dialog.cc
index a691aa64e0f7cfc260e9ddd754da11ea04e99176..dda742fbc50d3e17934d3025d65f44d7912845b2 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2020 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 #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<DCPTime> (this, false));
        _timecode->set_focus ();
+       _timecode->set_hint (time, fps);
 
        layout ();
 }