summaryrefslogtreecommitdiff
path: root/gtk2_ardour/vst_plugin_ui.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-11-23 00:57:32 +0000
committerCarl Hetherington <carl@carlh.net>2011-11-23 00:57:32 +0000
commite913b03fb6205589494fcc99f05917ec871e81c6 (patch)
treea3e8d6f497d180a26f535fa6f5f277881b113098 /gtk2_ardour/vst_plugin_ui.h
parentd325144ebc550ffe86c73a1f9bb83112bb7ddfa8 (diff)
Missing files / renames.
git-svn-id: svn://localhost/ardour2/branches/3.0@10785 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/vst_plugin_ui.h')
-rw-r--r--gtk2_ardour/vst_plugin_ui.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/gtk2_ardour/vst_plugin_ui.h b/gtk2_ardour/vst_plugin_ui.h
new file mode 100644
index 0000000000..9ab38fe446
--- /dev/null
+++ b/gtk2_ardour/vst_plugin_ui.h
@@ -0,0 +1,55 @@
+/*
+ Copyright (C) 2000-2010 Paul Davis
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#ifndef __ardour_vst_plugin_ui_h__
+#define __ardour_vst_plugin_ui_h__
+
+#include "plugin_ui.h"
+
+namespace ARDOUR {
+ class VSTPlugin;
+}
+
+class VSTPluginUI : public PlugUIBase, public Gtk::VBox
+{
+public:
+ VSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert>, boost::shared_ptr<ARDOUR::VSTPlugin>);
+ virtual ~VSTPluginUI ();
+
+ virtual int get_preferred_height ();
+ virtual int get_preferred_width ();
+
+ virtual int package (Gtk::Window &);
+
+ bool non_gtk_gui () const { return true; }
+
+protected:
+
+ virtual int get_XID () = 0;
+
+ boost::shared_ptr<ARDOUR::VSTPlugin> _vst;
+ Gtk::Socket _socket;
+
+private:
+
+ bool configure_handler (GdkEventConfigure *);
+ void preset_selected ();
+};
+
+#endif