fix re-drawing of splitting icon
[ardour.git] / gtk2_ardour / rc_option_editor.cc
index 676ebf83328aa6fd0968a1b0fc092a225feb0903..f78f5fc18282d8ffcfc6fc77d464495ba579df1f 100644 (file)
@@ -653,7 +653,7 @@ public:
        {
                _store = ListStore::create (_model);
                _view.set_model (_store);
-               _view.append_column (_("Name"), _model.name);
+               _view.append_column (_("Control Surface Protocol"), _model.name);
                _view.get_column(0)->set_resizable (true);
                _view.get_column(0)->set_expand (true);
                _view.append_column_editable (_("Enabled"), _model.enabled);
@@ -1813,9 +1813,9 @@ RCOptionEditor::RCOptionEditor ()
 
        add_option (_("User interaction"), new KeyboardOptions);
 
-       add_option (_("User interaction"), new OptionEditorHeading (_("Control surfaces")));
+       /* Control Surfaces */
 
-       add_option (_("User interaction"), new ControlSurfacesOptions (*this));
+       add_option (_("Control Surfaces"), new ControlSurfacesOptions (*this));
 
        ComboOption<RemoteModel>* rm = new ComboOption<RemoteModel> (
                "remote-model",
@@ -1828,14 +1828,14 @@ RCOptionEditor::RCOptionEditor ()
        rm->add (MixerOrdered, _("follows order of mixer"));
        rm->add (EditorOrdered, _("follows order of editor"));
 
-       add_option (_("User interaction"), rm);
+       add_option (_("Control Surfaces"), rm);
 
        /* VIDEO Timeline */
        add_option (_("Video"), new VideoTimelineOptions (_rc_config));
 
        /* INTERFACE */
 
-       add_option (S_("GUI"),
+       add_option (S_("Preferences|GUI"),
             new BoolOption (
                     "widget-prelight",
                     _("Graphically indicate mouse pointer hovering over various widgets"),
@@ -1843,7 +1843,7 @@ RCOptionEditor::RCOptionEditor ()
                     sigc::mem_fun (*_rc_config, &RCConfiguration::set_widget_prelight)
                     ));
 
-       add_option (S_("GUI"),
+       add_option (S_("Preferences|GUI"),
             new BoolOption (
                     "use-tooltips",
                     _("Show tooltips if mouse hovers over a control"),
@@ -1853,15 +1853,8 @@ RCOptionEditor::RCOptionEditor ()
 
 #ifndef GTKOSX
        /* font scaling does nothing with GDK/Quartz */
-       add_option (S_("GUI"), new FontScalingOptions (_rc_config));
+       add_option (S_("Preferences|GUI"), new FontScalingOptions (_rc_config));
 #endif
-       add_option (S_("GUI"),
-                   new BoolOption (
-                           "use-own-plugin-gui",
-                           string_compose (_("Use plugins' own interfaces instead of %1's"), PROGRAM_NAME),
-                           sigc::mem_fun (*_rc_config, &RCConfiguration::get_use_plugin_own_gui),
-                           sigc::mem_fun (*_rc_config, &RCConfiguration::set_use_plugin_own_gui)
-                           ));
 
        add_option (S_("GUI"),
                    new BoolOption (
@@ -1881,7 +1874,7 @@ RCOptionEditor::RCOptionEditor ()
        _mixer_strip_visibility.add (0, X_("MeterPoint"), _("Meter Point"));
        
        add_option (
-               S_("GUI"),
+               S_("Preferences|GUI"),
                new VisibilityOption (
                        _("Mixer Strip"),
                        &_mixer_strip_visibility,
@@ -1890,7 +1883,7 @@ RCOptionEditor::RCOptionEditor ()
                        )
                );
 
-       add_option (S_("GUI"),
+       add_option (S_("Preferences|GUI"),
             new BoolOption (
                     "default-narrow_ms",
                     _("Use narrow strips in the mixer by default"),
@@ -1898,11 +1891,11 @@ RCOptionEditor::RCOptionEditor ()
                     sigc::mem_fun (*_rc_config, &RCConfiguration::set_default_narrow_ms)
                     ));
 
-       add_option (S_("GUI"), new OptionEditorHeading (_("Metering")));
+       add_option (S_("Preferences|GUI"), new OptionEditorHeading (_("Metering")));
 
        ComboOption<float>* mht = new ComboOption<float> (
                "meter-hold",
-               _("Meter hold time"),
+               _("Peak hold time"),
                sigc::mem_fun (*_rc_config, &RCConfiguration::get_meter_hold),
                sigc::mem_fun (*_rc_config, &RCConfiguration::set_meter_hold)
                );
@@ -1912,24 +1905,56 @@ RCOptionEditor::RCOptionEditor ()
        mht->add (MeterHoldMedium, _("medium"));
        mht->add (MeterHoldLong, _("long"));
 
-       add_option (S_("GUI"), mht);
+       add_option (S_("Preferences|GUI"), mht);
 
        ComboOption<float>* mfo = new ComboOption<float> (
                "meter-falloff",
-               _("Meter fall-off"),
+               _("DPM fall-off"),
                sigc::mem_fun (*_rc_config, &RCConfiguration::get_meter_falloff),
                sigc::mem_fun (*_rc_config, &RCConfiguration::set_meter_falloff)
                );
 
-       mfo->add (METER_FALLOFF_OFF, _("off"));
-       mfo->add (METER_FALLOFF_SLOWEST, _("slowest"));
-       mfo->add (METER_FALLOFF_SLOW, _("slow"));
-       mfo->add (METER_FALLOFF_MEDIUM, _("medium"));
-       mfo->add (METER_FALLOFF_FAST, _("fast"));
-       mfo->add (METER_FALLOFF_FASTER, _("faster"));
-       mfo->add (METER_FALLOFF_FASTEST, _("fastest"));
+       mfo->add (METER_FALLOFF_OFF,      _("off"));
+       mfo->add (METER_FALLOFF_SLOWEST,  _("slowest [6.6dB/sec]"));
+       mfo->add (METER_FALLOFF_SLOW,     _("slow [8.6dB/sec] (BBC PPM, EBU PPM)"));
+       mfo->add (METER_FALLOFF_SLOWISH,  _("slowish [12.0dB/sec] (DIN)"));
+       mfo->add (METER_FALLOFF_MODERATE, _("moderate [13.3dB/sec] (EBU Digi PPM, IRT Digi PPM)"));
+       mfo->add (METER_FALLOFF_MEDIUM,   _("medium [20dB/sec]"));
+       mfo->add (METER_FALLOFF_FAST,     _("fast [32dB/sec]"));
+       mfo->add (METER_FALLOFF_FASTER,   _("faster [46dB/sec]"));
+       mfo->add (METER_FALLOFF_FASTEST,  _("fastest [70dB/sec]"));
+
+       add_option (S_("Preferences|GUI"), mfo);
+
+       ComboOption<MeterLineUp>* mlu = new ComboOption<MeterLineUp> (
+               "meter-line-up-level",
+               _("Meter line-up level"),
+               sigc::mem_fun (*_rc_config, &RCConfiguration::get_meter_line_up_level),
+               sigc::mem_fun (*_rc_config, &RCConfiguration::set_meter_line_up_level)
+               );
+
+       mlu->add (MeteringLineUp24, _("-24dB"));
+       mlu->add (MeteringLineUp20, _("-20dB (SMPTE)"));
+       mlu->add (MeteringLineUp18, _("-18dB (EBU)"));
+       mlu->add (MeteringLineUp15, _("-15dB"));
+
+       Gtkmm2ext::UI::instance()->set_tip (mlu->tip_widget(), _("Configure meter-ticks and color-knee point."));
+
+       add_option (S_("Preferences|GUI"), mlu);
+
+       Gtk::Adjustment *mpk = manage (new Gtk::Adjustment(0, -10, 0, .1, .1));
+       HSliderOption *mpks = new HSliderOption("meter-peak",
+                       _("Peak threshold [dBFS]"),
+                       mpk,
+                       sigc::mem_fun (*_rc_config, &RCConfiguration::get_meter_peak),
+                       sigc::mem_fun (*_rc_config, &RCConfiguration::set_meter_peak)
+                       );
+
+       Gtkmm2ext::UI::instance()->set_tip
+               (mpks->tip_widget(),
+                _("Specify the audio signal level in dbFS at and above which the meter-peak indicator will flash red."));
 
-       add_option (S_("GUI"), mfo);
+       add_option (S_("Preferences|GUI"), mpks);
 }
 
 void