summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-03-12 16:54:18 +0100
committerRobin Gareus <robin@gareus.org>2017-03-12 16:54:18 +0100
commitbe6bfd12ebfa9b3c394fc67c8f3299fe0755c11b (patch)
tree73f987081d9319817ded39c8287e12dff07fcbe6 /libs/ardour/ardour
parent52b203ad36d07e50c704babb8b7f2e506b67137c (diff)
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,..)
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/stripable.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/ardour/stripable.h b/libs/ardour/ardour/stripable.h
index 92cf7bdced..099a048016 100644
--- a/libs/ardour/ardour/stripable.h
+++ b/libs/ardour/ardour/stripable.h
@@ -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;
};
}