#include "lib/util.h"
#include "timecode.h"
#include "wx_util.h"
-#include <boost/lexical_cast.hpp>
+#include <iostream>
using std::string;
using std::cout;
-using boost::lexical_cast;
TimecodeBase::TimecodeBase (wxWindow* parent)
: wxPanel (parent)
{
wxSize const s = TimecodeBase::size (parent);
-
+
wxTextValidator validator (wxFILTER_INCLUDE_CHAR_LIST);
wxArrayString list;
validator.SetIncludes (list);
_sizer = new wxBoxSizer (wxHORIZONTAL);
-
+
_editable = new wxPanel (this);
wxSizer* editable_sizer = new wxBoxSizer (wxHORIZONTAL);
_hours = new wxTextCtrl (_editable, wxID_ANY, wxT(""), wxDefaultPosition, s, 0, validator);
_sizer->Add (_editable);
_fixed = add_label_to_sizer (_sizer, this, wxT ("42"), false);
-
+
_hours->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&TimecodeBase::changed, this));
_minutes->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&TimecodeBase::changed, this));
_seconds->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&TimecodeBase::changed, this));
size.SetHeight (-1);
return size;
}
-
-