add note onset detection to the ferret, c/o the aubio-based Onset VAMP plugin (REQUIR...
[ardour.git] / gtk2_ardour / mixer_ui.h
index 2a5b416ae0b995e8428cd72b5f60d117c31e2f19..06a16519ccb67d23229fa64920cd8536a1aaf70d 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_mixer_ui_h__
@@ -38,7 +37,6 @@
 #include <ardour/ardour.h>
 #include <ardour/io.h>
 
-#include "keyboard_target.h"
 #include "route_redirect_selection.h"
 #include "enums.h"
 
@@ -47,7 +45,6 @@ namespace ARDOUR {
        class RouteGroup;
        class Session;
        class AudioDiskstream;
-       class AudioEngine;
 };
 
 class MixerStrip;
@@ -56,7 +53,7 @@ class PluginSelector;
 class Mixer_UI : public Gtk::Window
 {
   public:
-       Mixer_UI (ARDOUR::AudioEngine&);
+       Mixer_UI ();
        ~Mixer_UI();
 
        void connect_to_session (ARDOUR::Session *);
@@ -78,11 +75,14 @@ class Mixer_UI : public Gtk::Window
        void hide_strip (MixerStrip *);
 
        void ensure_float (Gtk::Window&);
+       void toggle_auto_rebinding ();
+       void set_auto_rebinding(bool);
 
        RouteRedirectSelection& selection() { return _selection; }
        
+       static const char* get_order_key();
+
   private:
-       ARDOUR::AudioEngine&     engine;
        ARDOUR::Session         *session;
 
        bool _visible;
@@ -106,6 +106,12 @@ class Mixer_UI : public Gtk::Window
        Gtk::HBox                out_packer;
        Gtk::HPaned              list_hpane;
 
+       // for restoring window geometry.
+       int m_root_x, m_root_y, m_width, m_height;
+       
+       void set_window_pos_and_size ();
+       void get_window_pos_and_size ();
+
        bool on_key_press_event (GdkEventKey*);
 
        void pane_allocation_handler (Gtk::Allocation&, Gtk::Paned*);
@@ -125,6 +131,9 @@ class Mixer_UI : public Gtk::Window
        void unselect_all_audiobus_strips ();
        void select_all_audiobus_strips ();
 
+       void auto_rebind_midi_controls ();
+       bool auto_rebinding;
+
        void strip_select_op (bool audiotrack, bool select);
        void select_strip_op (MixerStrip*, bool select);
 
@@ -146,6 +155,7 @@ class Mixer_UI : public Gtk::Window
        
        void track_list_change (const Gtk::TreeModel::Path&,const Gtk::TreeModel::iterator&);
        void track_list_delete (const Gtk::TreeModel::Path&);
+       void track_list_reorder (const Gtk::TreeModel::Path& path, const Gtk::TreeModel::iterator& iter, int* new_order);
 
        void initial_track_display ();
        void show_track_list_menu ();
@@ -232,6 +242,10 @@ class Mixer_UI : public Gtk::Window
 
        Width _strip_width;
 
+       void sync_order_keys ();
+       bool ignore_route_reorder;
+       bool ignore_sync;
+
        static const int32_t default_width = 478;
        static const int32_t default_height = 765;
 };