summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-12-10 21:32:27 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-12-10 21:32:27 +0000
commitacf1490e45034a961b7703154c5eabaf6a9aec55 (patch)
tree73fc1d9befef1f751ef4b956322d7eeeb99b4eba /gtk2_ardour/plugin_ui.h
parentf3dd3e6b18be7d22ca31e5424c2a07922b44b74e (diff)
AU support; mv LADSPA gui to Generic; small fix(?) for NSD issue with absolute/full pathnames
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2755 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.h')
-rw-r--r--gtk2_ardour/plugin_ui.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/gtk2_ardour/plugin_ui.h b/gtk2_ardour/plugin_ui.h
index 2f15356c61..ad91ebb991 100644
--- a/gtk2_ardour/plugin_ui.h
+++ b/gtk2_ardour/plugin_ui.h
@@ -70,6 +70,7 @@ class PlugUIBase : public virtual sigc::trackable
virtual ~PlugUIBase() {}
virtual gint get_preferred_height () = 0;
+ virtual gint get_preferred_width () = 0;
virtual bool start_updating(GdkEventAny*) = 0;
virtual bool stop_updating(GdkEventAny*) = 0;
@@ -85,14 +86,15 @@ class PlugUIBase : public virtual sigc::trackable
void bypass_toggled();
};
-class LadspaPluginUI : public PlugUIBase, public Gtk::VBox
+class GenericPluginUI : public PlugUIBase, public Gtk::VBox
{
public:
- LadspaPluginUI (boost::shared_ptr<ARDOUR::PluginInsert> plug, bool scrollable=false);
- ~LadspaPluginUI ();
+ GenericPluginUI (boost::shared_ptr<ARDOUR::PluginInsert> plug, bool scrollable=false);
+ ~GenericPluginUI ();
gint get_preferred_height () { return prefheight; }
-
+ gint get_preferred_width () { return -1; }
+
bool start_updating(GdkEventAny*);
bool stop_updating(GdkEventAny*);
@@ -206,7 +208,12 @@ class PluginUIWindow : public ArdourDialog
private:
PlugUIBase* _pluginui;
+ bool non_gtk_gui;
+ void app_activated (bool);
void plugin_going_away ();
+
+ bool create_vst_editor (boost::shared_ptr<ARDOUR::PluginInsert>);
+ bool create_audiounit_editor (boost::shared_ptr<ARDOUR::PluginInsert>);
};
#ifdef VST_SUPPORT
@@ -217,6 +224,7 @@ class VSTPluginUI : public PlugUIBase, public Gtk::VBox
~VSTPluginUI ();
gint get_preferred_height ();
+ gint get_preferred_width ();
bool start_updating(GdkEventAny*) {return false;}
bool stop_updating(GdkEventAny*) {return false;}
@@ -233,4 +241,9 @@ class VSTPluginUI : public PlugUIBase, public Gtk::VBox
};
#endif // VST_SUPPORT
+#ifdef HAVE_AUDIOUNITS
+/* this function has to be in a .mm file */
+extern PlugUIBase* create_au_gui (boost::shared_ptr<ARDOUR::PluginInsert>, Gtk::VBox**);
+#endif
+
#endif /* __ardour_plugin_ui_h__ */