X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fardour_window.h;h=f9d762d17747712262e79d2dffe13078c2b7b907;hb=7d553eea8028977021f1526b8ab538737a21767c;hp=3b8628d5a7b0d636d654f45b1743359975c18f7f;hpb=3b20beb8d80e6b0ac12ef17e4f10e1d5dcc9fe55;p=ardour.git diff --git a/gtk2_ardour/ardour_window.h b/gtk2_ardour/ardour_window.h index 3b8628d5a7..f9d762d177 100644 --- a/gtk2_ardour/ardour_window.h +++ b/gtk2_ardour/ardour_window.h @@ -20,13 +20,16 @@ #ifndef __ardour_window_h__ #define __ardour_window_h__ -#include #include #include "gtkmm2ext/visibility_tracker.h" #include "ardour/session_handle.h" +namespace WM { + class ProxyTemporary; +} + /** * This virtual parent class is so that each window uses the * same mechanism to declare its closing. It shares a common @@ -35,16 +38,20 @@ */ class ArdourWindow : public Gtk::Window, public ARDOUR::SessionHandlePtr, public Gtkmm2ext::VisibilityTracker { - public: +public: ArdourWindow (std::string title); ArdourWindow (Gtk::Window& parent, std::string title); - ~ArdourWindow(); + virtual ~ArdourWindow(); - bool on_enter_notify_event (GdkEventCrossing*); - bool on_leave_notify_event (GdkEventCrossing*); +protected: + bool on_focus_in_event (GdkEventFocus*); + bool on_focus_out_event (GdkEventFocus*); + bool on_delete_event (GdkEventAny *); + bool on_key_press_event (GdkEventKey*); void on_unmap (); - private: +private: + WM::ProxyTemporary* proxy; void init (); };