- grid->Add (_play_length);
-
- {
- add_label_to_sizer (grid, this, _("Video frame rate"), true);
- wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
- _video_frame_rate = new wxTextCtrl (this, wxID_ANY);
- s->Add (_video_frame_rate, 1, wxEXPAND);
- _set_video_frame_rate = new wxButton (this, wxID_ANY, _("Set"));
- _set_video_frame_rate->Enable (false);
- s->Add (_set_video_frame_rate, 0, wxLEFT | wxRIGHT, 8);
- grid->Add (s, 1, wxEXPAND);
- }
-
- grid->AddSpacer (0);
-
- /* We can't use Wrap() here as it doesn't work with markup:
- * http://trac.wxwidgets.org/ticket/13389
- */
-
- wxString in = _("<i>Only change this if the content's frame rate has been read incorrectly.</i>");
- wxString out;
- int const width = 20;
- int current = 0;
- for (size_t i = 0; i < in.Length(); ++i) {
- if (in[i] == ' ' && current >= width) {
- out += '\n';
- current = 0;
- } else {
- out += in[i];
- ++current;
- }
- }
-
- t = new wxStaticText (this, wxID_ANY, wxT (""));
- t->SetLabelMarkup (out);
-#ifdef DCPOMATIC_OSX
- /* Hack to stop hidden text on some versions of OS X */
- t->SetMinSize (wxSize (-1, 256));
-#endif
- grid->Add (t, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, 6);
-
- /* Completely speculative fix for #891 */
- grid->Layout ();