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:
parent
52b203ad36
commit
be6bfd12eb
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user