most of the 2.X->3.0 commit (up to rev 4299) except for gtk2_ardour/editor_canvas...
[ardour.git] / gtk2_ardour / ardour_dialog.h
index b2c531b0d03d5ca873f0896b1c32e7d330ef43d0..44c731b36c3b769751362160c304f36831eafd59 100644 (file)
@@ -40,6 +40,9 @@ class ArdourDialog : public Gtk::Dialog
        ArdourDialog (Gtk::Window& parent, std::string title, bool modal = false, bool use_separator = false);  
        ~ArdourDialog();
 
+       static int close_all_current_dialogs (int response);
+
+       bool on_key_press_event (GdkEventKey *);
        bool on_enter_notify_event (GdkEventCrossing*);
        bool on_leave_notify_event (GdkEventCrossing*);
        void on_unmap ();
@@ -55,8 +58,12 @@ class ArdourDialog : public Gtk::Dialog
                set_session (0);
        }
 
+       static void close_all_dialogs () { CloseAllDialogs(); }
+
   private:
        void init ();
+
+       static sigc::signal<void> CloseAllDialogs;
 };
 
 #endif // __ardour_dialog_h__