summaryrefslogtreecommitdiff
path: root/libs/ardour/processor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-01 02:41:31 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-01 02:41:31 +0000
commitb78d036aa056af0ef4f5821c45dae5f70bc69231 (patch)
tree639a9169028c22d827b316bb26cf03d8b2ba4a1a /libs/ardour/processor.cc
parentdeee47bcaea08eb94d25bc3c308c6c199b8e0708 (diff)
store void pointers to processor UIs in Processors, and reset ProcessorWindowProxy objects to use them, so that we can never create 2 windows (UIs) for the same processor
git-svn-id: svn://localhost/ardour2/branches/3.0@8638 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/processor.cc')
-rw-r--r--libs/ardour/processor.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc
index 69d0f2408d..8ddc58735c 100644
--- a/libs/ardour/processor.cc
+++ b/libs/ardour/processor.cc
@@ -68,6 +68,20 @@ Processor::Processor(Session& session, const string& name)
, _configured(false)
, _display_to_user (true)
, _pre_fader (false)
+ , _ui_pointer (0)
+{
+}
+
+Processor::Processor (const Processor& other)
+ : SessionObject(other.session(), other.name())
+ , Automatable (other.session())
+ , _pending_active(other._pending_active)
+ , _active(other._active)
+ , _next_ab_is_active(false)
+ , _configured(false)
+ , _display_to_user (true)
+ , _pre_fader (false)
+ , _ui_pointer (0)
{
}
@@ -279,3 +293,9 @@ Processor::set_pre_fader (bool p)
{
_pre_fader = p;
}
+
+void
+Processor::set_ui (void* p)
+{
+ _ui_pointer = p;
+}