Add option to use plugin GUIs or Ardour generic ones.
authorCarl Hetherington <carl@carlh.net>
Sun, 22 Jan 2012 10:18:37 +0000 (10:18 +0000)
committerCarl Hetherington <carl@carlh.net>
Sun, 22 Jan 2012 10:18:37 +0000 (10:18 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11298 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/processor_box.cc
gtk2_ardour/rc_option_editor.cc
libs/ardour/ardour/rc_configuration_vars.h

index 784076e6befb8f07b54bd72f8c7ba20569d7cc68..d6697f9de7821a69c8d846302ba35660ea4b8767 100644 (file)
@@ -1025,7 +1025,11 @@ ProcessorBox::processor_button_press_event (GdkEventButton *ev, ProcessorEntry*
 
                if (_session->engine().connected()) {
                        /* XXX giving an error message here is hard, because we may be in the midst of a button press */
-                       toggle_edit_processor (processor);
+                       if (Config->get_use_plugin_own_gui ()) {
+                               toggle_edit_processor (processor);
+                       } else {
+                               toggle_edit_generic_processor (processor);
+                       }
                }
                ret = true;
 
index ec3dd466f431bb9f65b20c7f0669cffb08fba75d..5c67005386c83ee9e686d9d572b0203a111fa899 100644 (file)
@@ -1521,7 +1521,7 @@ RCOptionEditor::RCOptionEditor ()
 
        add_option (S_("Visual|Interface"),
             new BoolOption (
-                    "widget_prelight",
+                    "widget-prelight",
                     _("Graphically indicate mouse pointer hovering over various widgets"),
                     sigc::mem_fun (*_rc_config, &RCConfiguration::get_widget_prelight),
                     sigc::mem_fun (*_rc_config, &RCConfiguration::set_widget_prelight)
@@ -1531,6 +1531,13 @@ RCOptionEditor::RCOptionEditor ()
        /* font scaling does nothing with GDK/Quartz */
        add_option (S_("Visual|Interface"), new FontScalingOptions (_rc_config));
 #endif
+       add_option (S_("Visual|Interface"),
+                   new BoolOption (
+                           "use-own-plugin-gui",
+                           _("Use plugins' own interface instead of Ardour's basic one"),
+                           sigc::mem_fun (*_rc_config, &RCConfiguration::get_use_plugin_own_gui),
+                           sigc::mem_fun (*_rc_config, &RCConfiguration::set_use_plugin_own_gui)
+                           ));
 
        /* The names of these controls must be the same as those given in MixerStrip
           for the actual widgets being controlled.
index eac7288c59922fbc0a7431d5807831add9ab3478..5c38c33af1bbfddb99d06bfe40fd2795b1fa47df 100644 (file)
@@ -171,6 +171,7 @@ CONFIG_VARIABLE (gain_t, max_gain, "max-gain", 2.0) /* +6.0dB */
 CONFIG_VARIABLE (bool, update_editor_during_summary_drag, "update-editor-during-summary-drag", true)
 CONFIG_VARIABLE (bool, never_display_periodic_midi, "never-display-periodic-midi", true)
 CONFIG_VARIABLE (bool, sound_midi_notes, "sound-midi-notes", false)
+CONFIG_VARIABLE (bool, use_plugin_own_gui, "use-plugin-own-gui", true)
 
 /* denormal management */