Update CC automation menu when changing channel selection
[ardour.git] / gtk2_ardour / ardour_ui.h
index 53abcd0f17fbab61fa3a3c2bef25571aaa4d94a9..c5e4010f0f51e1eeaf14198e8311cb3c5a092954 100644 (file)
@@ -91,6 +91,7 @@
 #include "location_ui.h"
 #include "lua_script_manager.h"
 #include "rc_option_editor.h"
+#include "route_dialogs.h"
 #include "route_params_ui.h"
 #include "session_option_editor.h"
 #include "speaker_dialog.h"
@@ -202,6 +203,12 @@ public:
 
        static ARDOUR_UI *instance () { return theArdourUI; }
 
+       /* signal emitted when escape key is pressed. All UI components that
+          need to respond to Escape in some way (e.g. break drag, clear
+          selection, etc) should connect to and handle this.
+       */
+       PBD::Signal0<void> Escape;
+
        PublicEditor&     the_editor() { return *editor;}
        Mixer_UI* the_mixer() { return mixer; }
 
@@ -226,6 +233,7 @@ public:
 
        XMLNode* main_window_settings() const;
        XMLNode* editor_settings() const;
+       XMLNode* preferences_settings() const;
        XMLNode* mixer_settings () const;
        XMLNode* keyboard_settings () const;
        XMLNode* tearoff_settings (const char*) const;
@@ -255,6 +263,7 @@ public:
        void synchronize_sync_source_and_video_pullup ();
 
        void add_route ();
+       void add_route_dialog_finished (int);
 
        void add_routes_part_two ();
        void add_routes_thread ();
@@ -368,6 +377,8 @@ public:
 
        Gtkmm2ext::ActionMap global_actions;
 
+       ARDOUR::PresentationInfo::order_t translate_order (RouteDialogs::InsertAt);
+
 protected:
        friend class PublicEditor;
 
@@ -672,7 +683,6 @@ private:
        bool save_as_progress_update (float fraction, int64_t cnt, int64_t total, Gtk::Label* label, Gtk::ProgressBar* bar);
        void save_session_as ();
        void rename_session ();
-       ARDOUR::PresentationInfo::order_t translate_order (AddRouteDialog::InsertAt);
 
        int         create_mixer ();
        int         create_editor ();
@@ -877,6 +887,9 @@ private:
 
        void step_up_through_tabs ();
        void step_down_through_tabs ();
+
+       void escape ();
+       void pre_release_dialog ();
 };
 
 #endif /* __ardour_gui_h__ */