diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-15 02:21:25 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-15 02:21:25 +0000 |
commit | 0e74620ad469eb9d2ab9cb2f57ff650b2c796a00 (patch) | |
tree | 2fccaff29bd42ed8ce43f085aca0249ddbfecca1 /gtk2_ardour/plugin_ui.h | |
parent | 3a1af63fedc4792a3c98de446d031bfe27e9202d (diff) |
Make VST preset files pre-preset rather than global. Clean up VST preset handling to use more of the bas class' code.
git-svn-id: svn://localhost/ardour2/branches/3.0@8279 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.h')
-rw-r--r-- | gtk2_ardour/plugin_ui.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/gtk2_ardour/plugin_ui.h b/gtk2_ardour/plugin_ui.h index e1d9cfafce..9fe2ab4921 100644 --- a/gtk2_ardour/plugin_ui.h +++ b/gtk2_ardour/plugin_ui.h @@ -121,7 +121,7 @@ class PlugUIBase : public virtual sigc::trackable Gtk::Image* focus_in_image; bool no_load_preset; - void setting_selected(); + virtual void setting_selected (); void add_plugin_setting (); void save_plugin_setting (); void delete_plugin_setting (); @@ -311,24 +311,10 @@ class VSTPluginUI : public PlugUIBase, public Gtk::VBox Gtk::Socket socket; Gtk::HBox preset_box; Gtk::VBox vpacker; - Gtk::ComboBox vst_preset_combo; - Glib::RefPtr<Gtk::ListStore> preset_model; - - struct PresetModelColumns : public Gtk::TreeModel::ColumnRecord { - PresetModelColumns() { - add (name); - add (number); - } - Gtk::TreeModelColumn<std::string> name; - Gtk::TreeModelColumn<int> number; - }; - - PresetModelColumns preset_columns; bool configure_handler (GdkEventConfigure*, Gtk::Socket*); void save_plugin_setting (); - void preset_chosen (); - void update_presets (); + void setting_selected (); }; #endif // VST_SUPPORT |