mp4chaps Lua script: don't clutter global environment
[ardour.git] / gtk2_ardour / mixer_ui.h
index 7dad3559430ed57611aae4f6247f11c42adb5f22..d0a051dfce6603b6280f84614165b8b7a22af83f 100644 (file)
@@ -30,6 +30,7 @@
 #include <gtkmm/frame.h>
 #include <gtkmm/menu.h>
 #include <gtkmm/treeview.h>
+#include <gtkmm/treestore.h>
 #include <gtkmm/liststore.h>
 
 #include "pbd/stateful.h"
 
 #include <gtkmm2ext/bindings.h>
 #include "gtkmm2ext/dndtreeview.h"
-#include <gtkmm2ext/pane.h>
-#include "gtkmm2ext/tabbable.h"
 #include "gtkmm2ext/treeutils.h"
 
+#include "widgets/pane.h"
+#include "widgets/tabbable.h"
+
 #include "axis_provider.h"
 #include "enums.h"
 #include "route_processor_selection.h"
@@ -77,9 +79,9 @@ protected:
        virtual bool row_drop_possible_vfunc (const Gtk::TreeModel::Path&, const Gtk::SelectionData&) const;
 };
 
-class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, public ARDOUR::SessionHandlePtr, public AxisViewProvider
+class Mixer_UI : public ArdourWidgets::Tabbable, public PBD::ScopedConnectionList, public ARDOUR::SessionHandlePtr, public AxisViewProvider
 {
-  public:
+public:
        static Mixer_UI* instance();
        ~Mixer_UI();
 
@@ -110,6 +112,7 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
        void deselect_all_strip_processors();
        void delete_processors();
        void select_none ();
+       void select_all_tracks ();
 
        void do_vca_assign (boost::shared_ptr<ARDOUR::VCA>);
        void do_vca_unassign (boost::shared_ptr<ARDOUR::VCA>);
@@ -127,10 +130,11 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
        void load_bindings ();
        Gtkmm2ext::Bindings*  bindings;
 
-  protected:
+protected:
        void set_axis_targets_for_operation ();
+       ARDOUR::AutomationControlSet selected_gaincontrols ();
 
-  private:
+private:
        Mixer_UI ();
        static Mixer_UI*     _instance;
        Gtk::VBox            _content;
@@ -150,9 +154,9 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
        Gtk::Frame            track_display_frame;
        Gtk::Frame            group_display_frame;
        Gtk::Frame            favorite_plugins_frame;
-       Gtkmm2ext::VPane      rhs_pane1;
-       Gtkmm2ext::VPane      rhs_pane2;
-       Gtkmm2ext::HPane      inner_pane;
+       ArdourWidgets::VPane  rhs_pane1;
+       ArdourWidgets::VPane  rhs_pane2;
+       ArdourWidgets::HPane  inner_pane;
        Gtk::HBox             strip_packer;
        Gtk::ScrolledWindow   vca_scroller;
        Gtk::HBox             vca_hpacker;
@@ -161,7 +165,7 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
        Gtk::Label            vca_label;
        Gtk::EventBox         vca_scroller_base;
        Gtk::HBox             out_packer;
-       Gtkmm2ext::HPane      list_hpane;
+       ArdourWidgets::HPane  list_hpane;
 
        MixerGroupTabs* _group_tabs;
 
@@ -324,6 +328,7 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
        void group_display_selection_changed ();
 
        bool strip_button_release_event (GdkEventButton*, MixerStrip*);
+       bool vca_button_release_event (GdkEventButton*, VCAMasterStrip*);
 
        Width _strip_width;
 
@@ -343,8 +348,8 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
        static const int32_t default_height = 765;
 
        /** true if we are rebuilding the route group list, or clearing
-           it during a session teardown.
-       */
+        * it during a session teardown.
+        */
        bool _in_group_rebuild_or_clear;
        bool _route_deletion_in_progress;