+ _reference_note->SetFont(font);
+
+ _use = new wxCheckBox (this, wxID_ANY, _("Use"));
+
+ _type_label = create_label (this, _("Type"), true);
+ _frame_type = new ContentChoice<VideoContent, VideoFrameType> (
+ this,
+ new wxChoice (this, wxID_ANY),
+ VideoContentProperty::FRAME_TYPE,
+ &Content::video,
+ boost::mem_fn (&VideoContent::frame_type),
+ boost::mem_fn (&VideoContent::set_frame_type),
+ &caster<int, VideoFrameType>,
+ &caster<VideoFrameType, int>
+ );
+
+ _left_crop_label = create_label (this, _("Left crop"), true);
+ _left_crop = new ContentSpinCtrl<VideoContent> (
+ this,
+ new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)),
+ VideoContentProperty::CROP,
+ &Content::video,
+ boost::mem_fn (&VideoContent::left_crop),
+ boost::mem_fn (&VideoContent::set_left_crop)
+ );
+
+ _right_crop_label = create_label (this, _("Right crop"), true);
+ _right_crop = new ContentSpinCtrl<VideoContent> (
+ this,
+ new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)),
+ VideoContentProperty::CROP,
+ &Content::video,
+ boost::mem_fn (&VideoContent::right_crop),
+ boost::mem_fn (&VideoContent::set_right_crop)
+ );
+
+ _top_crop_label = create_label (this, _("Top crop"), true);
+ _top_crop = new ContentSpinCtrl<VideoContent> (
+ this,
+ new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)),
+ VideoContentProperty::CROP,
+ &Content::video,
+ boost::mem_fn (&VideoContent::top_crop),
+ boost::mem_fn (&VideoContent::set_top_crop)
+ );
+
+ _bottom_crop_label = create_label (this, _("Bottom crop"), true);
+ _bottom_crop = new ContentSpinCtrl<VideoContent> (
+ this,
+ new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)),
+ VideoContentProperty::CROP,
+ &Content::video,
+ boost::mem_fn (&VideoContent::bottom_crop),
+ boost::mem_fn (&VideoContent::set_bottom_crop)
+ );
+
+ _fade_in_label = create_label (this, _("Fade in"), true);
+ _fade_in = new Timecode<ContentTime> (this);
+
+ _fade_out_label = create_label (this, _("Fade out"), true);
+ _fade_out = new Timecode<ContentTime> (this);
+
+ _scale_to_label = create_label (this, _("Scale to"), true);
+ _scale = new ContentChoice<VideoContent, VideoContentScale> (
+ this,
+ new wxChoice (this, wxID_ANY),
+ VideoContentProperty::SCALE,
+ &Content::video,
+ boost::mem_fn (&VideoContent::scale),
+ boost::mem_fn (&VideoContent::set_scale),
+ &index_to_scale,
+ &scale_to_index
+ );
+
+ wxClientDC dc (this);
+ wxSize size = dc.GetTextExtent (wxT ("A quite long name"));
+ size.SetHeight (-1);
+
+ _filters_label = create_label (this, _("Filters"), true);
+ _filters = new StaticText (this, _("None"), wxDefaultPosition, size);
+ _filters_button = new Button (this, _("Edit..."));
+
+ _colour_conversion_label = create_label (this, _("Colour conversion"), true);
+ _colour_conversion = new wxChoice (this, wxID_ANY, wxDefaultPosition, size);
+ _colour_conversion->Append (_("None"));
+ BOOST_FOREACH (PresetColourConversion const & i, PresetColourConversion::all()) {
+ _colour_conversion->Append (std_to_wx (i.name));
+ }
+
+ /// TRANSLATORS: translate the word "Custom" here; do not include the "Colour|" prefix
+ _colour_conversion->Append (S_("Colour|Custom"));
+ _edit_colour_conversion_button = new Button (this, _("Edit..."));
+
+ _range_label = create_label (this, _("Range"), true);
+ _range = new wxChoice (this, wxID_ANY);
+ _range->Append (_("Full (JPEG, 0-255)"));
+ _range->Append (_("Video (MPEG, 16-235)"));
+
+ _description = new StaticText (this, wxT ("\n \n \n \n \n"), wxDefaultPosition, wxDefaultSize);