Make send automation work (#4734).
[ardour.git] / gtk2_ardour / lxvst_plugin_ui.h
1 #ifndef __lxvst_plugin_ui_h__
2 #define __lxvst_plugin_ui_h__
3
4 #include <sigc++/signal.h>
5 #include "vst_plugin_ui.h"
6
7 #ifdef LXVST_SUPPORT
8
9 namespace ARDOUR {
10         class PluginInsert;
11         class LXVSTPlugin;
12 }
13
14 class LXVSTPluginUI : public VSTPluginUI
15 {
16   public:
17         LXVSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert>, boost::shared_ptr<ARDOUR::VSTPlugin>);
18         ~LXVSTPluginUI ();
19
20         int get_preferred_height ();
21         
22         bool start_updating (GdkEventAny *);
23         bool stop_updating (GdkEventAny *);
24
25         int package (Gtk::Window&);
26         void forward_key_event (GdkEventKey *);
27         bool non_gtk_gui () const { return true; }
28
29 private:
30         void resize_callback ();
31         int get_XID ();
32
33         sigc::connection _screen_update_connection;
34 };
35
36 #endif //LXVST_SUPPORT
37
38 #endif