prepare Pin Management GUI
authorRobin Gareus <robin@gareus.org>
Sun, 27 Mar 2016 19:34:32 +0000 (21:34 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 27 Mar 2016 19:34:32 +0000 (21:34 +0200)
We need to store a pointer in the backend to allow to share the Proxy
between Mixer and Editor-Mixer.

libs/ardour/ardour/processor.h
libs/ardour/processor.cc

index c7d3608b5eb7cc77db6043209bef1370c5156a8f..914ddb904fca0f24bda07fc4c2c2430e152701c9 100644 (file)
@@ -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;
 };
 
index 315fb6662e1ac2bcf944f103943ff74b97683354..e55d31ce52fa9d3270b6ac1ea08a6e974b34a364 100644 (file)
@@ -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)
 {
 }
@@ -277,12 +279,6 @@ Processor::set_ui (void* p)
        _ui_pointer = p;
 }
 
-void
-Processor::set_window_proxy (ProcessorWindowProxy* wp)
-{
-       _window_proxy = wp;
-}
-
 void
 Processor::set_owner (SessionObject* o)
 {