2005-09-25 14:42:24 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2005-2007 Taybin Rutkin <taybin@taybin.com>
|
|
|
|
* Copyright (C) 2005-2018 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2006 Nick Mainsbridge <mainsbridge@gmail.com>
|
|
|
|
* Copyright (C) 2007-2009 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2009-2012 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2013-2019 Robin Gareus <robin@gareus.org>
|
|
|
|
* Copyright (C) 2014-2018 Ben Loftis <ben@harrisonconsoles.com>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#ifndef __ardour_mixer_ui_h__
|
|
|
|
#define __ardour_mixer_ui_h__
|
|
|
|
|
|
|
|
#include <list>
|
|
|
|
|
2005-09-28 12:22:43 -04:00
|
|
|
#include <gtkmm/box.h>
|
|
|
|
#include <gtkmm/scrolledwindow.h>
|
|
|
|
#include <gtkmm/eventbox.h>
|
|
|
|
#include <gtkmm/label.h>
|
2018-01-29 18:45:42 -05:00
|
|
|
#include <gtkmm/comboboxtext.h>
|
2005-09-28 12:22:43 -04:00
|
|
|
#include <gtkmm/button.h>
|
|
|
|
#include <gtkmm/frame.h>
|
|
|
|
#include <gtkmm/menu.h>
|
|
|
|
#include <gtkmm/treeview.h>
|
2017-07-16 22:55:52 -04:00
|
|
|
#include <gtkmm/treestore.h>
|
2010-05-31 11:55:30 -04:00
|
|
|
#include <gtkmm/liststore.h>
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "pbd/stateful.h"
|
2009-12-19 15:26:31 -05:00
|
|
|
#include "pbd/signals.h"
|
2006-07-07 19:51:30 -04:00
|
|
|
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "ardour/ardour.h"
|
2012-06-25 08:46:13 -04:00
|
|
|
#include "ardour/types.h"
|
2009-12-17 13:24:23 -05:00
|
|
|
#include "ardour/session_handle.h"
|
2015-12-21 22:43:26 -05:00
|
|
|
#include "ardour/plugin.h"
|
|
|
|
#include "ardour/plugin_manager.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2016-07-06 15:20:42 -04:00
|
|
|
#include <gtkmm2ext/bindings.h>
|
2015-12-21 22:43:26 -05:00
|
|
|
#include "gtkmm2ext/dndtreeview.h"
|
2016-07-06 15:20:42 -04:00
|
|
|
#include "gtkmm2ext/treeutils.h"
|
2015-07-07 22:12:21 -04:00
|
|
|
|
2017-07-16 22:55:52 -04:00
|
|
|
#include "widgets/pane.h"
|
|
|
|
#include "widgets/tabbable.h"
|
|
|
|
|
2017-05-05 07:31:49 -04:00
|
|
|
#include "axis_provider.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
#include "enums.h"
|
2018-12-11 10:28:47 -05:00
|
|
|
#include "monitor_section.h"
|
2016-07-06 15:20:42 -04:00
|
|
|
#include "route_processor_selection.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
namespace ARDOUR {
|
|
|
|
class Route;
|
|
|
|
class RouteGroup;
|
2016-07-06 15:20:42 -04:00
|
|
|
class VCA;
|
2005-09-25 14:42:24 -04:00
|
|
|
};
|
|
|
|
|
2016-06-05 16:29:22 -04:00
|
|
|
class AxisView;
|
2019-01-18 13:22:54 -05:00
|
|
|
class FoldbackStrip;
|
2005-09-25 14:42:24 -04:00
|
|
|
class MixerStrip;
|
|
|
|
class PluginSelector;
|
2009-06-20 13:15:33 -04:00
|
|
|
class MixerGroupTabs;
|
2010-03-10 12:31:16 -05:00
|
|
|
class MonitorSection;
|
2016-02-27 22:16:37 -05:00
|
|
|
class VCAMasterStrip;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2015-12-25 10:10:09 -05:00
|
|
|
class PluginTreeStore : public Gtk::TreeStore
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static Glib::RefPtr<PluginTreeStore> create(const Gtk::TreeModelColumnRecord& columns) {
|
|
|
|
return Glib::RefPtr<PluginTreeStore> (new PluginTreeStore (columns));
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
PluginTreeStore (const Gtk::TreeModelColumnRecord& columns) : Gtk::TreeStore (columns) {}
|
|
|
|
virtual bool row_draggable_vfunc (const Gtk::TreeModel::Path&) const { return true; }
|
|
|
|
virtual bool row_drop_possible_vfunc (const Gtk::TreeModel::Path&, const Gtk::SelectionData&) const;
|
|
|
|
};
|
|
|
|
|
2018-12-10 08:33:31 -05:00
|
|
|
class Mixer_UI : public ArdourWidgets::Tabbable, public PBD::ScopedConnectionList, public ARDOUR::SessionHandlePtr, public AxisViewProvider
|
2005-09-25 14:42:24 -04:00
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2011-11-15 14:33:09 -05:00
|
|
|
static Mixer_UI* instance();
|
2005-09-25 14:42:24 -04:00
|
|
|
~Mixer_UI();
|
|
|
|
|
2015-07-09 12:40:51 -04:00
|
|
|
Gtk::Window* use_own_window (bool and_fill_it);
|
2015-07-07 22:12:21 -04:00
|
|
|
void show_window ();
|
2015-04-21 15:10:49 -04:00
|
|
|
|
2009-12-17 13:24:23 -05:00
|
|
|
void set_session (ARDOUR::Session *);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2009-10-22 21:00:13 -04:00
|
|
|
PluginSelector* plugin_selector();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2013-07-10 15:40:42 -04:00
|
|
|
void set_strip_width (Width, bool save = false);
|
2005-09-25 14:42:24 -04:00
|
|
|
Width get_strip_width () const { return _strip_width; }
|
|
|
|
|
2015-07-07 22:12:21 -04:00
|
|
|
XMLNode& get_state ();
|
|
|
|
int set_state (const XMLNode&, int /* version */);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2018-05-08 14:25:54 -04:00
|
|
|
void save_plugin_order_file ();
|
|
|
|
|
2006-01-11 22:43:52 -05:00
|
|
|
void show_strip (MixerStrip *);
|
|
|
|
void hide_strip (MixerStrip *);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2014-03-21 08:45:00 -04:00
|
|
|
void maximise_mixer_space();
|
|
|
|
void restore_mixer_space();
|
|
|
|
|
2018-12-11 10:28:47 -05:00
|
|
|
MonitorSection& monitor_section() { return _monitor_section; }
|
2007-10-11 18:07:47 -04:00
|
|
|
|
2014-07-24 23:49:33 -04:00
|
|
|
void deselect_all_strip_processors();
|
|
|
|
void delete_processors();
|
2014-07-28 12:35:41 -04:00
|
|
|
void select_none ();
|
|
|
|
|
2018-08-24 10:07:55 -04:00
|
|
|
void select_next_strip ();
|
|
|
|
void select_prev_strip ();
|
|
|
|
|
2016-02-29 21:26:45 -05:00
|
|
|
void do_vca_assign (boost::shared_ptr<ARDOUR::VCA>);
|
|
|
|
void do_vca_unassign (boost::shared_ptr<ARDOUR::VCA>);
|
2017-01-16 16:30:26 -05:00
|
|
|
void show_spill (boost::shared_ptr<ARDOUR::Stripable>);
|
|
|
|
bool showing_spill_for (boost::shared_ptr<ARDOUR::Stripable>) const;
|
2016-05-18 15:56:52 -04:00
|
|
|
|
2017-01-16 16:30:26 -05:00
|
|
|
sigc::signal1<void,boost::shared_ptr<ARDOUR::Stripable> > show_spill_change;
|
2016-02-29 21:26:45 -05:00
|
|
|
|
2016-07-06 15:20:42 -04:00
|
|
|
RouteProcessorSelection& selection() { return _selection; }
|
2017-03-10 11:50:44 -05:00
|
|
|
|
|
|
|
void show_editor_window () const;
|
|
|
|
|
2016-07-06 15:20:42 -04:00
|
|
|
void register_actions ();
|
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
void load_bindings ();
|
|
|
|
Gtkmm2ext::Bindings* bindings;
|
2016-07-06 15:20:42 -04:00
|
|
|
|
2018-12-03 19:55:52 -05:00
|
|
|
void toggle_mixer_list ();
|
|
|
|
void showhide_mixer_list (bool yn);
|
|
|
|
|
|
|
|
void toggle_monitor_section ();
|
|
|
|
void showhide_monitor_section (bool);
|
|
|
|
|
2019-09-11 19:36:05 -04:00
|
|
|
void toggle_foldback_strip ();
|
|
|
|
void showhide_foldback_strip (bool);
|
|
|
|
|
2018-12-03 19:55:52 -05:00
|
|
|
void toggle_vcas ();
|
|
|
|
void showhide_vcas (bool on);
|
2019-01-18 13:22:54 -05:00
|
|
|
|
2018-08-08 16:42:12 -04:00
|
|
|
#ifdef MIXBUS
|
2018-12-03 19:55:52 -05:00
|
|
|
void toggle_mixbuses ();
|
|
|
|
void showhide_mixbusses (bool on);
|
2018-08-08 16:42:12 -04:00
|
|
|
#endif
|
|
|
|
|
2019-07-17 18:05:32 -04:00
|
|
|
bool screenshot (std::string const&);
|
2019-07-17 16:57:30 -04:00
|
|
|
|
2019-11-20 11:37:14 -05:00
|
|
|
void toggle_monitor_action (ARDOUR::MonitorChoice monitor_choice, bool group_override = false, bool all = false);
|
|
|
|
|
2017-07-01 15:11:14 -04:00
|
|
|
protected:
|
2016-07-06 13:37:30 -04:00
|
|
|
void set_axis_targets_for_operation ();
|
2017-07-08 09:43:32 -04:00
|
|
|
ARDOUR::AutomationControlSet selected_gaincontrols ();
|
2011-11-04 13:53:21 -04:00
|
|
|
|
2017-07-01 15:11:14 -04:00
|
|
|
private:
|
2011-11-15 14:33:09 -05:00
|
|
|
Mixer_UI ();
|
2015-07-07 22:12:21 -04:00
|
|
|
static Mixer_UI* _instance;
|
|
|
|
Gtk::VBox _content;
|
|
|
|
Gtk::HBox global_hpacker;
|
|
|
|
Gtk::VBox global_vpacker;
|
|
|
|
Gtk::ScrolledWindow scroller;
|
|
|
|
Gtk::EventBox scroller_base;
|
|
|
|
Gtk::HBox scroller_hpacker;
|
|
|
|
Gtk::VBox mixer_scroller_vpacker;
|
|
|
|
Gtk::VBox list_vpacker;
|
2016-05-18 22:27:25 -04:00
|
|
|
Gtk::Label group_display_button_label;
|
|
|
|
Gtk::ScrolledWindow track_display_scroller;
|
|
|
|
Gtk::ScrolledWindow group_display_scroller;
|
|
|
|
Gtk::ScrolledWindow favorite_plugins_scroller;
|
|
|
|
Gtk::VBox group_display_vbox;
|
2017-09-18 14:45:56 -04:00
|
|
|
Gtk::Frame track_display_frame;
|
|
|
|
Gtk::Frame group_display_frame;
|
|
|
|
Gtk::Frame favorite_plugins_frame;
|
2018-01-29 18:45:42 -05:00
|
|
|
Gtk::VBox favorite_plugins_vbox;
|
|
|
|
Gtk::ComboBoxText favorite_plugins_tag_combo;
|
2017-07-16 22:55:52 -04:00
|
|
|
ArdourWidgets::VPane rhs_pane1;
|
|
|
|
ArdourWidgets::VPane rhs_pane2;
|
|
|
|
ArdourWidgets::HPane inner_pane;
|
2019-07-17 16:21:08 -04:00
|
|
|
Gtk::VBox strip_group_box;
|
2016-05-18 22:27:25 -04:00
|
|
|
Gtk::HBox strip_packer;
|
|
|
|
Gtk::ScrolledWindow vca_scroller;
|
2016-06-07 12:30:38 -04:00
|
|
|
Gtk::HBox vca_hpacker;
|
|
|
|
Gtk::VBox vca_vpacker;
|
|
|
|
Gtk::EventBox vca_label_bar;
|
|
|
|
Gtk::Label vca_label;
|
2016-05-18 22:27:25 -04:00
|
|
|
Gtk::EventBox vca_scroller_base;
|
|
|
|
Gtk::HBox out_packer;
|
2017-07-16 22:55:52 -04:00
|
|
|
ArdourWidgets::HPane list_hpane;
|
2018-02-13 09:13:52 -05:00
|
|
|
Gtk::Button add_button; // should really be an ArdourButton
|
|
|
|
Gtk::Button add_vca_button;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2009-06-20 13:15:33 -04:00
|
|
|
MixerGroupTabs* _group_tabs;
|
|
|
|
|
2009-10-28 17:36:40 -04:00
|
|
|
bool on_scroll_event (GdkEventScroll*);
|
2019-03-12 12:04:13 -04:00
|
|
|
bool on_vca_scroll_event (GdkEventScroll*);
|
2006-03-09 18:44:39 -05:00
|
|
|
|
2009-05-12 13:03:42 -04:00
|
|
|
std::list<MixerStrip *> strips;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2016-05-06 10:04:05 -04:00
|
|
|
void scroller_drag_data_received (const Glib::RefPtr<Gdk::DragContext>&, int, int, const Gtk::SelectionData&, guint, guint);
|
2006-01-04 22:18:44 -05:00
|
|
|
bool strip_scroller_button_release (GdkEventButton*);
|
2016-05-18 22:27:25 -04:00
|
|
|
bool masters_scroller_button_release (GdkEventButton*);
|
2009-10-28 17:36:40 -04:00
|
|
|
void scroll_left ();
|
|
|
|
void scroll_right ();
|
2019-03-12 12:04:13 -04:00
|
|
|
void vca_scroll_left ();
|
|
|
|
void vca_scroll_right ();
|
2016-12-21 15:57:39 -05:00
|
|
|
void toggle_midi_input_active (bool flip_others);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2019-03-13 20:29:10 -04:00
|
|
|
void move_vca_into_view (boost::shared_ptr<ARDOUR::Stripable>);
|
2016-10-15 17:16:09 -04:00
|
|
|
void move_stripable_into_view (boost::shared_ptr<ARDOUR::Stripable>);
|
|
|
|
|
2016-06-05 16:29:22 -04:00
|
|
|
void add_stripables (ARDOUR::StripableList&);
|
|
|
|
|
|
|
|
void add_routes (ARDOUR::RouteList&);
|
2005-09-25 14:42:24 -04:00
|
|
|
void remove_strip (MixerStrip *);
|
2019-08-28 16:22:24 -04:00
|
|
|
void remove_foldback (FoldbackStrip *);
|
2016-02-27 22:16:37 -05:00
|
|
|
void add_masters (ARDOUR::VCAList&);
|
|
|
|
void remove_master (VCAMasterStrip*);
|
2019-03-01 13:02:38 -05:00
|
|
|
void new_masters_created ();
|
2016-02-27 22:16:37 -05:00
|
|
|
|
2016-07-06 13:37:30 -04:00
|
|
|
MixerStrip* strip_by_route (boost::shared_ptr<ARDOUR::Route>) const;
|
2017-01-26 08:08:58 -05:00
|
|
|
MixerStrip* strip_by_stripable (boost::shared_ptr<ARDOUR::Stripable>) const;
|
2017-05-05 07:31:49 -04:00
|
|
|
|
|
|
|
AxisView* axis_view_by_stripable (boost::shared_ptr<ARDOUR::Stripable>) const;
|
|
|
|
AxisView* axis_view_by_control (boost::shared_ptr<ARDOUR::AutomationControl>) const;
|
2011-11-04 13:53:21 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
gint start_updating ();
|
|
|
|
gint stop_updating ();
|
|
|
|
|
2009-12-17 13:24:23 -05:00
|
|
|
void session_going_away ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2005-09-25 16:33:00 -04:00
|
|
|
sigc::connection fast_screen_update_connection;
|
2005-09-25 14:42:24 -04:00
|
|
|
void fast_update_strips ();
|
|
|
|
|
2005-11-29 17:48:54 -05:00
|
|
|
void track_name_changed (MixerStrip *);
|
|
|
|
|
2006-01-11 22:43:52 -05:00
|
|
|
void redisplay_track_list ();
|
2020-03-23 16:13:39 -04:00
|
|
|
void spill_redisplay (boost::shared_ptr<ARDOUR::Stripable>);
|
2006-01-11 22:43:52 -05:00
|
|
|
bool no_track_list_redisplay;
|
|
|
|
bool track_display_button_press (GdkEventButton*);
|
2009-06-23 19:05:14 -04:00
|
|
|
void strip_width_changed ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2006-01-11 22:43:52 -05:00
|
|
|
void track_list_delete (const Gtk::TreeModel::Path&);
|
2007-10-11 18:07:47 -04:00
|
|
|
void track_list_reorder (const Gtk::TreeModel::Path& path, const Gtk::TreeModel::iterator& iter, int* new_order);
|
2006-01-11 22:43:52 -05:00
|
|
|
|
2015-12-25 11:11:47 -05:00
|
|
|
void plugin_row_activated (const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* column);
|
2015-12-26 18:37:53 -05:00
|
|
|
bool plugin_row_button_press (GdkEventButton*);
|
|
|
|
void popup_note_context_menu (GdkEventButton*);
|
2015-12-27 22:11:45 -05:00
|
|
|
void plugin_drop (const Glib::RefPtr<Gdk::DragContext>&, const Gtk::SelectionData& data);
|
2015-12-26 18:37:53 -05:00
|
|
|
|
|
|
|
enum ProcessorPosition {
|
|
|
|
AddTop,
|
|
|
|
AddPreFader,
|
|
|
|
AddPostFader,
|
|
|
|
AddBottom
|
|
|
|
};
|
|
|
|
|
|
|
|
void add_selected_processor (ProcessorPosition);
|
|
|
|
void add_favorite_processor (ARDOUR::PluginPresetPtr, ProcessorPosition);
|
2015-12-27 12:17:45 -05:00
|
|
|
void remove_selected_from_favorites ();
|
2015-12-27 21:19:28 -05:00
|
|
|
void delete_selected_preset ();
|
|
|
|
ARDOUR::PluginPresetPtr selected_plugin ();
|
2015-12-25 11:11:47 -05:00
|
|
|
|
2006-01-11 22:43:52 -05:00
|
|
|
void initial_track_display ();
|
2015-10-04 14:51:05 -04:00
|
|
|
|
2006-01-11 22:43:52 -05:00
|
|
|
void set_all_strips_visibility (bool yn);
|
2015-07-10 05:11:44 -04:00
|
|
|
void set_all_audio_midi_visibility (int, bool);
|
2016-12-21 15:57:39 -05:00
|
|
|
void track_visibility_changed (std::string const & path);
|
|
|
|
void update_track_visibility ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2006-01-11 22:43:52 -05:00
|
|
|
void hide_all_routes ();
|
|
|
|
void show_all_routes ();
|
|
|
|
void show_all_audiobus ();
|
|
|
|
void hide_all_audiobus ();
|
|
|
|
void show_all_audiotracks();
|
|
|
|
void hide_all_audiotracks ();
|
2015-07-10 05:11:44 -04:00
|
|
|
void show_all_miditracks();
|
|
|
|
void hide_all_miditracks ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2006-03-09 18:44:39 -05:00
|
|
|
bool in_group_row_change;
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
void group_selected (gint row, gint col, GdkEvent *ev);
|
|
|
|
void group_unselected (gint row, gint col, GdkEvent *ev);
|
2005-10-01 12:29:37 -04:00
|
|
|
void group_display_active_clicked();
|
2009-06-21 15:59:56 -04:00
|
|
|
void new_route_group ();
|
|
|
|
void remove_selected_route_group ();
|
|
|
|
void activate_all_route_groups ();
|
|
|
|
void disable_all_route_groups ();
|
|
|
|
void add_route_group (ARDOUR::RouteGroup *);
|
|
|
|
void route_groups_changed ();
|
2010-09-14 12:51:02 -04:00
|
|
|
void route_group_name_edit (const std::string&, const std::string&);
|
2009-06-21 15:59:56 -04:00
|
|
|
void route_group_row_change (const Gtk::TreeModel::Path& path,const Gtk::TreeModel::iterator& iter);
|
2011-04-19 11:46:47 -04:00
|
|
|
void route_group_row_deleted (Gtk::TreeModel::Path const &);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
Gtk::Menu *track_menu;
|
|
|
|
void track_column_click (gint);
|
|
|
|
void build_track_menu ();
|
|
|
|
|
2018-12-11 10:28:47 -05:00
|
|
|
MonitorSection _monitor_section;
|
|
|
|
PluginSelector *_plugin_selector;
|
2019-01-18 13:22:54 -05:00
|
|
|
FoldbackStrip * foldback_strip;
|
2019-09-11 19:36:05 -04:00
|
|
|
bool _show_foldback_strip;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2016-06-09 16:58:49 -04:00
|
|
|
void stripable_property_changed (const PBD::PropertyChange& what_changed, boost::weak_ptr<ARDOUR::Stripable> ws);
|
2010-04-01 20:21:08 -04:00
|
|
|
void route_group_property_changed (ARDOUR::RouteGroup *, const PBD::PropertyChange &);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2005-09-28 12:22:43 -04:00
|
|
|
/* various treeviews */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2016-06-05 16:29:22 -04:00
|
|
|
struct StripableDisplayModelColumns : public Gtk::TreeModel::ColumnRecord {
|
|
|
|
StripableDisplayModelColumns () {
|
2016-02-27 22:16:37 -05:00
|
|
|
add (text);
|
|
|
|
add (visible);
|
2016-06-05 16:29:22 -04:00
|
|
|
add (stripable);
|
2016-02-27 22:16:37 -05:00
|
|
|
add (strip);
|
|
|
|
}
|
|
|
|
Gtk::TreeModelColumn<bool> visible;
|
|
|
|
Gtk::TreeModelColumn<std::string> text;
|
2016-06-05 16:29:22 -04:00
|
|
|
Gtk::TreeModelColumn<boost::shared_ptr<ARDOUR::Stripable> > stripable;
|
|
|
|
Gtk::TreeModelColumn<AxisView*> strip;
|
2005-10-01 12:29:37 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct GroupDisplayModelColumns : public Gtk::TreeModel::ColumnRecord {
|
2016-06-05 16:29:22 -04:00
|
|
|
GroupDisplayModelColumns() {
|
|
|
|
add (visible);
|
|
|
|
add (text);
|
|
|
|
add (group);
|
|
|
|
}
|
|
|
|
Gtk::TreeModelColumn<bool> visible;
|
|
|
|
Gtk::TreeModelColumn<std::string> text;
|
|
|
|
Gtk::TreeModelColumn<ARDOUR::RouteGroup*> group;
|
2005-09-28 12:22:43 -04:00
|
|
|
};
|
|
|
|
|
2015-12-21 22:43:26 -05:00
|
|
|
struct PluginsDisplayModelColumns : public Gtk::TreeModel::ColumnRecord {
|
2016-06-05 16:29:22 -04:00
|
|
|
PluginsDisplayModelColumns() {
|
|
|
|
add (name);
|
|
|
|
add (plugin);
|
|
|
|
}
|
|
|
|
Gtk::TreeModelColumn<std::string> name;
|
|
|
|
Gtk::TreeModelColumn<ARDOUR::PluginPresetPtr> plugin;
|
2015-12-21 22:43:26 -05:00
|
|
|
};
|
|
|
|
|
2015-12-22 17:06:08 -05:00
|
|
|
ARDOUR::PluginInfoList favorite_order;
|
2015-12-25 18:43:59 -05:00
|
|
|
std::map<std::string, bool> favorite_ui_state;
|
2015-12-21 22:43:26 -05:00
|
|
|
|
2016-06-05 16:29:22 -04:00
|
|
|
StripableDisplayModelColumns stripable_columns;
|
|
|
|
GroupDisplayModelColumns group_columns;
|
|
|
|
PluginsDisplayModelColumns favorite_plugins_columns;
|
2005-09-28 12:22:43 -04:00
|
|
|
|
|
|
|
Gtk::TreeView track_display;
|
|
|
|
Gtk::TreeView group_display;
|
2015-12-25 10:10:09 -05:00
|
|
|
Gtkmm2ext::DnDTreeView<ARDOUR::PluginPresetPtr> favorite_plugins_display;
|
2005-09-28 12:22:43 -04:00
|
|
|
|
2006-03-09 18:44:39 -05:00
|
|
|
Glib::RefPtr<Gtk::ListStore> track_model;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> group_model;
|
2015-12-25 10:10:09 -05:00
|
|
|
Glib::RefPtr<PluginTreeStore> favorite_plugins_model;
|
2005-09-28 12:22:43 -04:00
|
|
|
|
|
|
|
bool group_display_button_press (GdkEventButton*);
|
|
|
|
void group_display_selection_changed ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2006-01-04 22:18:44 -05:00
|
|
|
bool strip_button_release_event (GdkEventButton*, MixerStrip*);
|
2017-08-06 12:37:15 -04:00
|
|
|
bool vca_button_release_event (GdkEventButton*, VCAMasterStrip*);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
Width _strip_width;
|
2018-09-01 15:32:57 -04:00
|
|
|
double _spill_scroll_position;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2017-01-27 13:18:33 -05:00
|
|
|
void presentation_info_changed (PBD::PropertyChange const &);
|
|
|
|
void sync_treeview_from_presentation_info (PBD::PropertyChange const &);
|
2016-12-21 15:57:39 -05:00
|
|
|
void sync_presentation_info_from_treeview ();
|
2012-10-26 20:15:45 -04:00
|
|
|
|
2016-12-21 15:57:39 -05:00
|
|
|
bool ignore_reorder;
|
2007-10-11 18:07:47 -04:00
|
|
|
|
2009-06-20 13:15:33 -04:00
|
|
|
void parameter_changed (std::string const &);
|
2009-06-21 15:59:56 -04:00
|
|
|
void set_route_group_activation (ARDOUR::RouteGroup *, bool);
|
2009-06-20 13:15:33 -04:00
|
|
|
|
2011-01-09 14:09:49 -05:00
|
|
|
void setup_track_display ();
|
2011-01-09 14:09:56 -05:00
|
|
|
void new_track_or_bus ();
|
2011-01-09 14:09:49 -05:00
|
|
|
|
2006-05-19 13:29:05 -04:00
|
|
|
static const int32_t default_width = 478;
|
2005-09-25 14:42:24 -04:00
|
|
|
static const int32_t default_height = 765;
|
2009-06-20 13:15:33 -04:00
|
|
|
|
2011-04-19 21:24:40 -04:00
|
|
|
/** true if we are rebuilding the route group list, or clearing
|
2017-07-01 15:11:14 -04:00
|
|
|
* it during a session teardown.
|
|
|
|
*/
|
2011-04-19 21:24:40 -04:00
|
|
|
bool _in_group_rebuild_or_clear;
|
2016-12-21 15:57:39 -05:00
|
|
|
bool _route_deletion_in_progress;
|
2011-04-19 11:46:47 -04:00
|
|
|
|
2011-09-07 11:07:02 -04:00
|
|
|
void update_title ();
|
2011-11-04 13:53:21 -04:00
|
|
|
MixerStrip* strip_by_x (int x);
|
2011-09-07 11:07:02 -04:00
|
|
|
|
2009-06-20 13:15:33 -04:00
|
|
|
friend class MixerGroupTabs;
|
2011-11-15 14:33:09 -05:00
|
|
|
|
2012-01-17 20:30:44 -05:00
|
|
|
void monitor_section_going_away ();
|
2015-12-19 11:42:36 -05:00
|
|
|
void monitor_section_attached ();
|
|
|
|
void monitor_section_detached ();
|
|
|
|
|
2015-12-22 17:06:08 -05:00
|
|
|
void store_current_favorite_order();
|
|
|
|
void refiller (ARDOUR::PluginInfoList& result, const ARDOUR::PluginInfoList& plugs);
|
2018-01-29 18:45:42 -05:00
|
|
|
|
2018-02-02 20:25:01 -05:00
|
|
|
void plugin_list_changed ();
|
|
|
|
|
|
|
|
void refill_favorite_plugins ();
|
2018-01-29 18:45:42 -05:00
|
|
|
void refill_tag_combo ();
|
2018-02-02 20:25:01 -05:00
|
|
|
|
2018-01-29 18:45:42 -05:00
|
|
|
void tag_combo_changed ();
|
|
|
|
|
2015-12-22 17:06:08 -05:00
|
|
|
void sync_treeview_from_favorite_order ();
|
2016-01-09 18:00:07 -05:00
|
|
|
void sync_treeview_favorite_ui_state (const Gtk::TreeModel::Path&, const Gtk::TreeModel::iterator&);
|
|
|
|
void save_favorite_ui_state (const Gtk::TreeModel::iterator& iter, const Gtk::TreeModel::Path& path);
|
2015-12-21 22:43:26 -05:00
|
|
|
|
2014-03-21 08:45:00 -04:00
|
|
|
/// true if we are in fullscreen mode
|
|
|
|
bool _maximised;
|
2015-12-10 18:21:02 -05:00
|
|
|
|
2017-10-21 11:27:03 -04:00
|
|
|
bool _strip_selection_change_without_scroll;
|
|
|
|
|
2017-01-16 16:30:26 -05:00
|
|
|
mutable boost::weak_ptr<ARDOUR::Stripable> spilled_strip;
|
2016-05-21 08:34:09 -04:00
|
|
|
|
|
|
|
void escape ();
|
2016-07-06 15:20:42 -04:00
|
|
|
|
|
|
|
RouteProcessorSelection _selection;
|
|
|
|
AxisViewSelection _axis_targets;
|
|
|
|
|
|
|
|
void vca_assign (boost::shared_ptr<ARDOUR::VCA>);
|
|
|
|
void vca_unassign (boost::shared_ptr<ARDOUR::VCA>);
|
|
|
|
|
|
|
|
template<class T> void control_action (boost::shared_ptr<T> (ARDOUR::Stripable::*get_control)() const);
|
|
|
|
void solo_action ();
|
|
|
|
void mute_action ();
|
|
|
|
void rec_enable_action ();
|
|
|
|
void step_gain_up_action ();
|
|
|
|
void step_gain_down_action ();
|
|
|
|
void unity_gain_action ();
|
|
|
|
|
|
|
|
void copy_processors ();
|
|
|
|
void cut_processors ();
|
|
|
|
void paste_processors ();
|
|
|
|
void select_all_processors ();
|
|
|
|
void toggle_processors ();
|
|
|
|
void ab_plugins ();
|
2005-09-25 14:42:24 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __ardour_mixer_ui_h__ */
|