Missing copyright declaration.
[ardour.git] / gtk2_ardour / ardour_dialog.h
index 0b93dfb37b25b3d384c4d62fb896b2dc0b6aae4d..3384c013d40ae4969e72fadbb1071819619844d4 100644 (file)
 #ifndef __ardour_dialog_h__
 #define __ardour_dialog_h__
 
-#include <ardour/ardour.h>
+#include "ardour/ardour.h"
 #include <gtkmm/window.h>
 #include <gtkmm/dialog.h>
 
 namespace ARDOUR {
        class Session;
-};
+}
 
 /*
  * This virtual parent class is so that each dialog box uses the
@@ -36,12 +36,17 @@ namespace ARDOUR {
 class ArdourDialog : public Gtk::Dialog
 {
   public:
-       ArdourDialog (std::string title, bool modal = false);
+       ArdourDialog (std::string title, bool modal = false, bool use_separator = false);
+       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 ();
+       void on_show ();
 
        ARDOUR::Session *session;
 
@@ -52,6 +57,14 @@ class ArdourDialog : public Gtk::Dialog
        virtual void session_gone () {
                set_session (0);
        }
+
+       static void close_all_dialogs () { CloseAllDialogs(); }
+
+  private:
+       void init ();
+
+       static sigc::signal<void> CloseAllDialogs;
 };
 
 #endif // __ardour_dialog_h__
+