summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-10-31 20:44:02 -0400
committerDavid Robillard <d@drobilla.net>2014-10-31 20:46:43 -0400
commit5de6c21ec1d1c6dde705df6cbe47d4aa5e711b55 (patch)
tree3a26cf24f14591a8d54eed1579a2decf0fd0b2db /gtk2_ardour/plugin_ui.h
parent324ab35abca1ee8dbf24842dc149b15dd54d23e3 (diff)
More generic RT-safe implementation of LV2 properties.
Diffstat (limited to 'gtk2_ardour/plugin_ui.h')
-rw-r--r--gtk2_ardour/plugin_ui.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gtk2_ardour/plugin_ui.h b/gtk2_ardour/plugin_ui.h
index e5a5b59930..b7e2b5f2df 100644
--- a/gtk2_ardour/plugin_ui.h
+++ b/gtk2_ardour/plugin_ui.h
@@ -47,6 +47,7 @@
#include "ardour/types.h"
#include "ardour/plugin.h"
+#include "ardour/variant.h"
#include "automation_controller.h"
#include "ardour_button.h"
@@ -279,11 +280,12 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
bool integer_printer (char* buf, Gtk::Adjustment &, ControlUI *);
bool midinote_printer(char* buf, Gtk::Adjustment &, ControlUI *);
-#ifdef LV2_SUPPORT
- void patch_set_file (uint32_t patch_idx);
- void patch_changed (uint32_t patch_idx);
- Gtk::FileChooserButton **_fcb;
-#endif
+ void set_property (const ARDOUR::Plugin::ParameterDescriptor& desc,
+ Gtk::FileChooserButton* widget);
+ void property_changed (uint32_t key, const ARDOUR::Variant& value);
+
+ typedef std::map<uint32_t, Gtk::FileChooserButton*> PropertyControls;
+ PropertyControls _property_controls;
};
class PluginUIWindow : public ArdourWindow