2005-09-25 14:42:24 -04:00
|
|
|
/*
|
2009-10-14 12:10:01 -04:00
|
|
|
Copyright (C) 2000 Paul Davis
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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>
|
|
|
|
#include <gtkmm/button.h>
|
|
|
|
#include <gtkmm/frame.h>
|
|
|
|
#include <gtkmm/menu.h>
|
|
|
|
#include <gtkmm/treeview.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-05-26 10:46:28 -04:00
|
|
|
#include <gtkmm2ext/pane.h>
|
2015-07-07 22:12:21 -04:00
|
|
|
#include "gtkmm2ext/tabbable.h"
|
2016-07-06 15:20:42 -04:00
|
|
|
#include "gtkmm2ext/treeutils.h"
|
2015-07-07 22:12:21 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
#include "enums.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;
|
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;
|
|
|
|
};
|
|
|
|
|
2016-07-06 15:20:42 -04:00
|
|
|
class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, public ARDOUR::SessionHandlePtr
|
2005-09-25 14:42:24 -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
|
|
|
|
2015-12-10 18:21:02 -05:00
|
|
|
void show_mixer_list (bool yn);
|
2015-12-19 11:42:36 -05:00
|
|
|
void show_monitor_section (bool);
|
2015-07-07 22:12:21 -04:00
|
|
|
|
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();
|
|
|
|
|
2016-12-21 15:57:39 -05:00
|
|
|
MonitorSection* monitor_section() const { 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();
|
2016-03-02 12:13:45 -05:00
|
|
|
void select_strip (MixerStrip&, bool add=false);
|
2014-07-28 12:35:41 -04:00
|
|
|
void select_none ();
|
|
|
|
|
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 ();
|
|
|
|
|
|
|
|
void load_bindings ();
|
|
|
|
Gtkmm2ext::Bindings* bindings;
|
|
|
|
|
2011-11-04 13:53:21 -04:00
|
|
|
protected:
|
2016-07-06 13:37:30 -04:00
|
|
|
void set_axis_targets_for_operation ();
|
2011-11-04 13:53:21 -04:00
|
|
|
|
2005-09-25 14:42:24 -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::Button group_display_button;
|
|
|
|
Gtk::ScrolledWindow track_display_scroller;
|
|
|
|
Gtk::ScrolledWindow group_display_scroller;
|
|
|
|
Gtk::ScrolledWindow favorite_plugins_scroller;
|
|
|
|
Gtk::VBox group_display_vbox;
|
|
|
|
Gtk::Frame track_display_frame;
|
|
|
|
Gtk::Frame group_display_frame;
|
|
|
|
Gtk::Frame favorite_plugins_frame;
|
2016-05-26 10:46:28 -04:00
|
|
|
Gtkmm2ext::VPane rhs_pane1;
|
|
|
|
Gtkmm2ext::VPane rhs_pane2;
|
|
|
|
Gtkmm2ext::HPane inner_pane;
|
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;
|
2016-05-26 10:46:28 -04:00
|
|
|
Gtkmm2ext::HPane list_hpane;
|
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*);
|
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 ();
|
2016-12-21 15:57:39 -05:00
|
|
|
void toggle_midi_input_active (bool flip_others);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
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 *);
|
|
|
|
|
2016-02-27 22:16:37 -05:00
|
|
|
void add_masters (ARDOUR::VCAList&);
|
|
|
|
void remove_master (VCAMasterStrip*);
|
|
|
|
|
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;
|
2016-07-06 13:37:30 -04:00
|
|
|
AxisView* axis_by_stripable (boost::shared_ptr<ARDOUR::Stripable>) const;
|
2011-11-04 13:53:21 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
void hide_all_strips (bool with_select);
|
|
|
|
void unselect_all_strips();
|
|
|
|
void select_all_strips ();
|
|
|
|
void unselect_all_audiotrack_strips ();
|
|
|
|
void select_all_audiotrack_strips ();
|
|
|
|
void unselect_all_audiobus_strips ();
|
|
|
|
void select_all_audiobus_strips ();
|
|
|
|
|
2005-10-05 09:48:09 -04:00
|
|
|
void strip_select_op (bool audiotrack, bool select);
|
|
|
|
void select_strip_op (MixerStrip*, bool select);
|
2005-10-01 12:29:37 -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 ();
|
2016-05-18 17:36:06 -04:00
|
|
|
void spill_redisplay (boost::shared_ptr<ARDOUR::VCA>);
|
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 ();
|
|
|
|
|
2016-12-21 15:57:39 -05:00
|
|
|
MonitorSection* _monitor_section;
|
2005-09-25 14:42:24 -04:00
|
|
|
PluginSelector *_plugin_selector;
|
|
|
|
|
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*);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
Width _strip_width;
|
|
|
|
|
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
|
|
|
|
it during a session teardown.
|
|
|
|
*/
|
|
|
|
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 ();
|
2014-03-21 08:45:00 -04:00
|
|
|
|
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);
|
2015-12-21 22:43:26 -05:00
|
|
|
void refill_favorite_plugins ();
|
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
|
|
|
|
|
|
|
// true if mixer list is visible
|
|
|
|
bool _show_mixer_list;
|
2016-05-18 15:56:52 -04:00
|
|
|
|
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
|
|
|
|
|
|
|
Gtkmm2ext::ActionMap myactions;
|
|
|
|
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__ */
|