- checked_set (_left_crop, vc ? vc->crop().left : 0);
- checked_set (_right_crop, vc ? vc->crop().right : 0);
- checked_set (_top_crop, vc ? vc->crop().top : 0);
- checked_set (_bottom_crop, vc ? vc->crop().bottom : 0);
- setup_scaling_description ();
- } else if (property == VideoContentProperty::VIDEO_RATIO) {
- if (vc) {
- int n = 0;
- vector<Ratio const *> ratios = Ratio::all ();
- vector<Ratio const *>::iterator i = ratios.begin ();
- while (i != ratios.end() && *i != vc->ratio()) {
- ++i;
- ++n;
- }
-
- if (i == ratios.end()) {
- checked_set (_ratio, -1);
- } else {
- checked_set (_ratio, n);
- }
- } else {
- checked_set (_ratio, -1);
- }
- setup_scaling_description ();
+ setup_description ();
+ } else if (property == VideoContentProperty::VIDEO_SCALE) {
+ setup_description ();
+ } else if (property == VideoContentProperty::VIDEO_FRAME_RATE) {
+ setup_description ();
+ } else if (property == VideoContentProperty::COLOUR_CONVERSION) {
+ optional<size_t> preset = vcs ? vcs->colour_conversion().preset () : optional<size_t> ();
+ vector<PresetColourConversion> cc = Config::instance()->colour_conversions ();
+ _colour_conversion->SetLabel (preset ? std_to_wx (cc[preset.get()].name) : _("Custom"));