13
0

prepare Pin Management GUI

We need to store a pointer in the backend to allow to share the Proxy
between Mixer and Editor-Mixer.
This commit is contained in:
Robin Gareus 2016-03-27 21:34:32 +02:00
parent c444105710
commit 30e45fc28f
2 changed files with 8 additions and 7 deletions

View 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;
};

View 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)
{