projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put Time types in dcpomatic namespace.
[dcpomatic.git]
/
src
/
wx
/
playhead_to_frame_dialog.cc
diff --git
a/src/wx/playhead_to_frame_dialog.cc
b/src/wx/playhead_to_frame_dialog.cc
index bb3c5b5fb022177cb28d240230349ac93ed50139..4c8bc1cc6ede06f9ca03014808684517dfb68743 100644
(file)
--- a/
src/wx/playhead_to_frame_dialog.cc
+++ b/
src/wx/playhead_to_frame_dialog.cc
@@
-19,14
+19,18
@@
*/
#include "playhead_to_frame_dialog.h"
*/
#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)
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 ("")));
, _fps (fps)
{
add (_("Go to"), true);
_frame = add (new wxTextCtrl (this, wxID_ANY, wxT ("")));
+ _frame->SetFocus ();
layout ();
}
layout ();
}
@@
-34,5
+38,5
@@
PlayheadToFrameDialog::PlayheadToFrameDialog (wxWindow* parent, int fps)
DCPTime
PlayheadToFrameDialog::get () const
{
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);
}
}