diff options
author | Robin Gareus <robin@gareus.org> | 2016-03-27 21:34:32 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-03-27 21:34:32 +0200 |
commit | 30e45fc28f080da62bbb511b7920c931d6508a1f (patch) | |
tree | a4d25426361944d6c6f6bce2fa788d9ffdb51f76 /libs/ardour | |
parent | c444105710cc540d3d6a14c9cf710f1e14fdbe26 (diff) |
prepare Pin Management GUI
We need to store a pointer in the backend to allow to share the Proxy
between Mixer and Editor-Mixer.
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/ardour/processor.h | 7 | ||||
-rw-r--r-- | libs/ardour/processor.cc | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/libs/ardour/ardour/processor.h b/libs/ardour/ardour/processor.h index c7d3608b5e..914ddb904f 100644 --- a/libs/ardour/ardour/processor.h +++ b/libs/ardour/ardour/processor.h @@ -36,6 +36,7 @@ class XMLNode; class ProcessorWindowProxy; +class PluginPinWindowProxy; namespace ARDOUR { @@ -116,7 +117,10 @@ class LIBARDOUR_API Processor : public SessionObject, public Automatable, public void* get_ui () const { return _ui_pointer; } ProcessorWindowProxy * window_proxy () const { return _window_proxy; } - void set_window_proxy (ProcessorWindowProxy* wp); + void set_window_proxy (ProcessorWindowProxy* wp) { _window_proxy = wp; } + + PluginPinWindowProxy * pinmgr_proxy () const { return _pinmgr_proxy; } + void set_pingmgr_proxy (PluginPinWindowProxy* wp) { _pinmgr_proxy = wp ; } void set_owner (SessionObject*); SessionObject* owner() const; @@ -134,6 +138,7 @@ protected: bool _pre_fader; ///< true if this processor is currently placed before the Amp, otherwise false void* _ui_pointer; ProcessorWindowProxy *_window_proxy; + PluginPinWindowProxy *_pinmgr_proxy; SessionObject* _owner; }; diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc index 315fb6662e..e55d31ce52 100644 --- a/libs/ardour/processor.cc +++ b/libs/ardour/processor.cc @@ -64,6 +64,7 @@ Processor::Processor(Session& session, const string& name) , _pre_fader (false) , _ui_pointer (0) , _window_proxy (0) + , _pinmgr_proxy (0) , _owner (0) { } @@ -81,6 +82,7 @@ Processor::Processor (const Processor& other) , _pre_fader (false) , _ui_pointer (0) , _window_proxy (0) + , _pinmgr_proxy (0) , _owner (0) { } @@ -278,12 +280,6 @@ Processor::set_ui (void* p) } void -Processor::set_window_proxy (ProcessorWindowProxy* wp) -{ - _window_proxy = wp; -} - -void Processor::set_owner (SessionObject* o) { _owner = o; |