Add appearance dialog for SubRip subtitles.
[dcpomatic.git] / src / wx / key_dialog.cc
index 70229c7a90babaebdb7ca5953db533f7803b9c2a..2062a2341aa060f75aa4fac62b029b880b4ae487 100644 (file)
 
 #include "key_dialog.h"
 #include "wx_util.h"
+#include <iostream>
 
 using std::cout;
 
 KeyDialog::KeyDialog (wxWindow* parent, dcp::Key key)
-       : TableDialog (parent, _("Key"), 3, true)
+       : TableDialog (parent, _("Key"), 3, 1, true)
 {
        add (_("Key"), true);
 
@@ -40,8 +41,8 @@ KeyDialog::KeyDialog (wxWindow* parent, dcp::Key key)
         }
 
         validator.SetIncludes (list);
-       
-       _key = add (new wxTextCtrl (this, wxID_ANY, _(""), wxDefaultPosition, size, 0, validator));
+
+       _key = add (new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, size, 0, validator));
        _key->SetValue (std_to_wx (key.hex ()));
        _key->SetMaxLength (32);