13
0

Preparations to keep track of stripable color-dialogs.

This follows the same concept as plugin-UIs (keep a pointer in the backend)
to prevent multiple instances to be created from various TAVs
and RouteUIs (mixer, editor-mixer, meterbridge,..)
This commit is contained in:
Robin Gareus 2017-03-12 16:54:18 +01:00
parent 52b203ad36
commit be6bfd12eb
2 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,8 @@
#include "ardour/session_object.h"
#include "ardour/libardour_visibility.h"
class StripableColorDialog;
namespace ARDOUR {
class AutomationControl;
@ -182,8 +184,13 @@ class LIBARDOUR_API Stripable : public SessionObject {
virtual boost::shared_ptr<MonitorProcessor> monitor_control() const = 0;
StripableColorDialog* active_color_picker() const { return _active_color_picker; }
void set_active_color_picker (StripableColorDialog* d) { _active_color_picker = d; }
protected:
PresentationInfo _presentation_info;
private:
StripableColorDialog* _active_color_picker;
};
}

View File

@ -35,6 +35,7 @@ using std::string;
Stripable::Stripable (Session& s, string const & name, PresentationInfo const & pi)
: SessionObject (s, name)
, _presentation_info (pi)
, _active_color_picker (0)
{
}