X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmixer_ui.h;h=16e6d35c3fd1895862e8fdb07347cbc5b62cb606;hb=46bbe834009d51a652e03a7fd4fa57bfb6457e38;hp=aab4480d306c6b887cf7898010f00611e3289fe8;hpb=65bda27d4218d9d4ebf809d91e716c892e1f1d8b;p=ardour.git diff --git a/gtk2_ardour/mixer_ui.h b/gtk2_ardour/mixer_ui.h index aab4480d30..16e6d35c3f 100644 --- a/gtk2_ardour/mixer_ui.h +++ b/gtk2_ardour/mixer_ui.h @@ -1,21 +1,26 @@ /* - Copyright (C) 2000 Paul Davis - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -*/ + * Copyright (C) 2005-2007 Taybin Rutkin + * Copyright (C) 2005-2018 Paul Davis + * Copyright (C) 2006 Nick Mainsbridge + * Copyright (C) 2007-2009 David Robillard + * Copyright (C) 2009-2012 Carl Hetherington + * Copyright (C) 2013-2019 Robin Gareus + * Copyright (C) 2014-2018 Ben Loftis + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ #ifndef __ardour_mixer_ui_h__ #define __ardour_mixer_ui_h__ @@ -52,6 +57,7 @@ #include "axis_provider.h" #include "enums.h" +#include "monitor_section.h" #include "route_processor_selection.h" namespace ARDOUR { @@ -61,6 +67,7 @@ namespace ARDOUR { }; class AxisView; +class FoldbackStrip; class MixerStrip; class PluginSelector; class MixerGroupTabs; @@ -80,7 +87,7 @@ protected: virtual bool row_drop_possible_vfunc (const Gtk::TreeModel::Path&, const Gtk::SelectionData&) const; }; -class Mixer_UI : public ArdourWidgets::Tabbable, public PBD::ScopedConnectionList, public ARDOUR::SessionHandlePtr, public AxisViewProvider, public Gtkmm2ext::ActionMapOwner +class Mixer_UI : public ArdourWidgets::Tabbable, public PBD::ScopedConnectionList, public ARDOUR::SessionHandlePtr, public AxisViewProvider { public: static Mixer_UI* instance(); @@ -107,7 +114,7 @@ public: void maximise_mixer_space(); void restore_mixer_space(); - MonitorSection* monitor_section() const { return _monitor_section; } + MonitorSection& monitor_section() { return _monitor_section; } void deselect_all_strip_processors(); void delete_processors(); @@ -140,12 +147,14 @@ public: void toggle_vcas (); void showhide_vcas (bool on); - + #ifdef MIXBUS void toggle_mixbuses (); void showhide_mixbusses (bool on); #endif + bool screenshot (std::string const&); + protected: void set_axis_targets_for_operation (); ARDOUR::AutomationControlSet selected_gaincontrols (); @@ -174,6 +183,7 @@ private: ArdourWidgets::VPane rhs_pane1; ArdourWidgets::VPane rhs_pane2; ArdourWidgets::HPane inner_pane; + Gtk::VBox strip_group_box; Gtk::HBox strip_packer; Gtk::ScrolledWindow vca_scroller; Gtk::HBox vca_hpacker; @@ -189,6 +199,7 @@ private: MixerGroupTabs* _group_tabs; bool on_scroll_event (GdkEventScroll*); + bool on_vca_scroll_event (GdkEventScroll*); std::list strips; @@ -197,17 +208,21 @@ private: bool masters_scroller_button_release (GdkEventButton*); void scroll_left (); void scroll_right (); + void vca_scroll_left (); + void vca_scroll_right (); void toggle_midi_input_active (bool flip_others); + void move_vca_into_view (boost::shared_ptr); void move_stripable_into_view (boost::shared_ptr); void add_stripables (ARDOUR::StripableList&); void add_routes (ARDOUR::RouteList&); void remove_strip (MixerStrip *); - + void remove_foldback (FoldbackStrip *); void add_masters (ARDOUR::VCAList&); void remove_master (VCAMasterStrip*); + void new_masters_created (); MixerStrip* strip_by_route (boost::shared_ptr) const; MixerStrip* strip_by_stripable (boost::shared_ptr) const; @@ -287,8 +302,9 @@ private: void track_column_click (gint); void build_track_menu (); - MonitorSection* _monitor_section; - PluginSelector *_plugin_selector; + MonitorSection _monitor_section; + PluginSelector *_plugin_selector; + FoldbackStrip * foldback_strip; void stripable_property_changed (const PBD::PropertyChange& what_changed, boost::weak_ptr ws); void route_group_property_changed (ARDOUR::RouteGroup *, const PBD::PropertyChange &); @@ -378,10 +394,7 @@ private: friend class MixerGroupTabs; - void set_monitor_action_sensitivity (bool); - void monitor_section_going_away (); - void monitor_section_attached (); void monitor_section_detached ();