*/
#include "playhead_to_frame_dialog.h"
-#include "lib/raw_convert.h"
+#include <dcp/locale_convert.h>
+
+using dcp::locale_convert;
+using namespace dcpomatic;
PlayheadToFrameDialog::PlayheadToFrameDialog (wxWindow* parent, int fps)
- : TableDialog (parent, _("Move to frame"), 2, 1, true)
+ : TableDialog (parent, _("Go to frame"), 2, 1, true)
, _fps (fps)
{
add (_("Go to"), true);
_frame = add (new wxTextCtrl (this, wxID_ANY, wxT ("")));
+ _frame->SetFocus ();
layout ();
}
DCPTime
PlayheadToFrameDialog::get () const
{
- return DCPTime::from_frames (raw_convert<Frame> (wx_to_std (_frame->GetValue ())) - 1, _fps);
+ return DCPTime::from_frames (locale_convert<Frame> (wx_to_std (_frame->GetValue ())) - 1, _fps);
}