Accept float fps when getting timecodes from the Timecode control
[dcpomatic.git] / src / wx / timecode.h
index 18eddfdb4a19b72fa2eb854e46b53f01e0d453fc..18508847b3af4e0b2f1ddf225f339c1afa7e7be5 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 class TimecodeBase : public wxPanel
 {
 public:
-       TimecodeBase (wxWindow *);
+       TimecodeBase (wxWindow *, bool set_button);
 
        void clear ();
 
        void set_editable (bool);
+       void set_focus ();
 
        boost::signals2::signal<void ()> Changed;
 
@@ -58,8 +59,8 @@ template <class T>
 class Timecode : public TimecodeBase
 {
 public:
-       Timecode (wxWindow* parent)
-               : TimecodeBase (parent)
+       Timecode (wxWindow* parent, bool set_button = true)
+               : TimecodeBase (parent, set_button)
        {
 
        }
@@ -80,7 +81,7 @@ public:
                checked_set (_fixed, t.timecode (fps));
        }
 
-       T get (int fps) const
+       T get (float fps) const
        {
                T t;
                std::string const h = wx_to_std (_hours->GetValue ());