#include "automation_controller.h"
#include "ardour_button.h"
+#include "ardour_window.h"
namespace ARDOUR {
class PluginInsert;
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 ();
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;
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);