X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftimecode.h;h=31ddd111caec3aa17538122100dad3b42713389a;hb=54819e695ac39ad62f2633ae10cdcf51adb4d810;hp=18eddfdb4a19b72fa2eb854e46b53f01e0d453fc;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/wx/timecode.h b/src/wx/timecode.h index 18eddfdb4..31ddd111c 100644 --- a/src/wx/timecode.h +++ b/src/wx/timecode.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2015 Carl Hetherington + Copyright (C) 2013-2016 Carl Hetherington This file is part of DCP-o-matic. @@ -30,11 +30,12 @@ class TimecodeBase : public wxPanel { public: - TimecodeBase (wxWindow *); + TimecodeBase (wxWindow *, bool set_button); void clear (); void set_editable (bool); + void set_focus (); boost::signals2::signal Changed; @@ -58,8 +59,8 @@ template class Timecode : public TimecodeBase { public: - Timecode (wxWindow* parent) - : TimecodeBase (parent) + Timecode (wxWindow* parent, bool set_button = true) + : TimecodeBase (parent, set_button) { }