diff options
author | David Robillard <d@drobilla.net> | 2011-05-18 05:00:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-18 05:00:44 +0000 |
commit | 041c8821438b2c6a83e1513fa2aedf7bbb8cbffd (patch) | |
tree | 9202118e6255d689b9c89a4767cd7da864d865a7 /gtk2_ardour/plugin_ui.h | |
parent | 424b3479de067375d28bb867aafe33316dd0ce17 (diff) |
Add 'controls' item to plugin insert context menu to always show Ardour generated controls for plugin, even if the plugin has a GUI. In particular, this gives you UI access to presets and the other handy stuff ardour sticks at the top, for inherently broken external UIs which don't allow Ardour to add such things.
Fix crash related to scale points when showing plugin UIs.
Fix packing of scrolled generic plugin UI so the controls expand (rather than leaving a ton of wasted empty space and using unnecessary scroll bars).
git-svn-id: svn://localhost/ardour2/branches/3.0@9551 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.h')
-rw-r--r-- | gtk2_ardour/plugin_ui.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/plugin_ui.h b/gtk2_ardour/plugin_ui.h index 3176e4a14d..743234f16a 100644 --- a/gtk2_ardour/plugin_ui.h +++ b/gtk2_ardour/plugin_ui.h @@ -211,7 +211,7 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox /* input */ - Gtk::ComboBoxText* combo; + Gtk::ComboBoxText* combo; std::map<std::string, float>* combo_map; Gtk::ToggleButton* button; boost::shared_ptr<AutomationController> controller; @@ -261,7 +261,10 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox class PluginUIWindow : public Gtk::Window { public: - PluginUIWindow (Gtk::Window*, boost::shared_ptr<ARDOUR::PluginInsert> insert, bool scrollable=false); + PluginUIWindow (Gtk::Window*, + boost::shared_ptr<ARDOUR::PluginInsert> insert, + bool scrollable=false, + bool editor=true); ~PluginUIWindow (); PlugUIBase& pluginui() { return *_pluginui; } |