'libs/ardour' - Compiler specific includes and includes
[ardour.git] / gtk2_ardour / plugin_ui.h
index a65fd1a2238442fb0f84b8197891669780f0698b..cf86f3e1bb4814e7872a98a216cc2ce587026900 100644 (file)
@@ -50,6 +50,7 @@
 
 #include "automation_controller.h"
 #include "ardour_button.h"
+#include "ardour_window.h"
 
 namespace ARDOUR {
        class PluginInsert;
@@ -278,11 +279,10 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
        bool integer_printer (char* buf, Gtk::Adjustment &, ControlUI *);
 };
 
-class PluginUIWindow : public Gtk::Window
+class PluginUIWindow : public ArdourWindow
 {
   public:
-       PluginUIWindow (Gtk::Window*,
-                       boost::shared_ptr<ARDOUR::PluginInsert> insert,
+       PluginUIWindow (boost::shared_ptr<ARDOUR::PluginInsert> insert,
                        bool scrollable=false,
                        bool editor=true);
        ~PluginUIWindow ();
@@ -294,15 +294,10 @@ class PluginUIWindow : public Gtk::Window
        void set_title(const std::string& title);
 
 
-       bool on_enter_notify_event (GdkEventCrossing*);
-       bool on_leave_notify_event (GdkEventCrossing*);
-       bool on_focus_in_event (GdkEventFocus*);
-       bool on_focus_out_event (GdkEventFocus*);
        bool on_key_press_event (GdkEventKey*);
        bool on_key_release_event (GdkEventKey*);
        void on_show ();
        void on_hide ();
-       void on_map ();
 
   private:
        std::string _title;
@@ -312,6 +307,11 @@ class PluginUIWindow : public Gtk::Window
        Gtk::VBox vbox;
        bool was_visible;
        bool _keyboard_focused;
+#ifdef AUDIOUNIT_SUPPORT
+        int pre_deactivate_x;
+        int pre_deactivate_y;
+#endif
+
        void keyboard_focused (bool yn);
 
        void app_activated (bool);