From 5637bdd29b91b8953bf0b064364ade2d890869c6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 9 Sep 2017 15:19:50 +0200 Subject: [PATCH] Prepare for singleton patch-selector per midi-track UI (mixer, editor,..) --- libs/ardour/ardour/route.h | 5 +++++ libs/ardour/route.cc | 1 + 2 files changed, 6 insertions(+) diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h index e66e0784fe..2c668f6ed7 100644 --- a/libs/ardour/ardour/route.h +++ b/libs/ardour/ardour/route.h @@ -59,6 +59,7 @@ #include "ardour/slavable.h" class RoutePinWindowProxy; +class PatchChangeGridDialog; namespace ARDOUR { @@ -220,6 +221,9 @@ public: RoutePinWindowProxy * pinmgr_proxy () const { return _pinmgr_proxy; } void set_pingmgr_proxy (RoutePinWindowProxy* wp) { _pinmgr_proxy = wp ; } + PatchChangeGridDialog* patch_selector_dialog () const { return _patch_selector_dialog; } + void set_patch_selector_dialog (PatchChangeGridDialog* d) { _patch_selector_dialog = d; } + boost::shared_ptr automation_control_recurse (PBD::ID const & id) const; /* special processors */ @@ -773,6 +777,7 @@ private: */ boost::weak_ptr _processor_after_last_custom_meter; RoutePinWindowProxy *_pinmgr_proxy; + PatchChangeGridDialog* _patch_selector_dialog; void reset_instrument_info (); diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index e89b9b8b91..a4af694661 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -115,6 +115,7 @@ Route::Route (Session& sess, string name, PresentationInfo::Flag flag, DataType , _strict_io (false) , _custom_meter_position_noted (false) , _pinmgr_proxy (0) + , _patch_selector_dialog (0) { processor_max_streams.reset(); } -- 2.30.2