From dba7421153db19ae15b0d2829ddc4f10ea07ed20 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 5 Jan 2020 19:22:14 +0100 Subject: [PATCH] Allow public access to the editor-mixer-strip This is currently used by Mixbus to sync visibility of switches on the editor-mixer-strip with the main mixer. --- gtk2_ardour/editor.h | 4 ++++ gtk2_ardour/public_editor.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 5dab984f38..39973eb9a3 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -489,6 +489,10 @@ public: void abort_reversible_command (); void commit_reversible_command (); + MixerStrip* get_current_mixer_strip () const { + return current_mixer_strip; + } + DragManager* drags () const { return _drags; } diff --git a/gtk2_ardour/public_editor.h b/gtk2_ardour/public_editor.h index 2723726850..bb546246b7 100644 --- a/gtk2_ardour/public_editor.h +++ b/gtk2_ardour/public_editor.h @@ -86,6 +86,7 @@ class DragManager; class Editor; class ArdourMarker; class MeterMarker; +class MixerStrip; class MouseCursors; class PlaylistSelector; class PluginSelector; @@ -446,6 +447,8 @@ public: virtual TrackViewList axis_views_from_routes (boost::shared_ptr) const = 0; virtual TrackViewList const & get_track_views () const = 0; + virtual MixerStrip* get_current_mixer_strip () const = 0; + virtual DragManager* drags () const = 0; virtual bool drag_active () const = 0; virtual bool preview_video_drag_active () const = 0;