From 742e3659fff9816778fd9b1c4eb3ead96990ef72 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Fri, 11 Feb 2022 07:28:10 -0600 Subject: [PATCH] triggerbox: add name, color and tempo to UIState; used for gui operations like d+d --- libs/ardour/ardour/triggerbox.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/ardour/ardour/triggerbox.h b/libs/ardour/ardour/triggerbox.h index ebafd74557..e2d4c3d42c 100644 --- a/libs/ardour/ardour/triggerbox.h +++ b/libs/ardour/ardour/triggerbox.h @@ -172,6 +172,9 @@ class LIBARDOUR_API Trigger : public PBD::Stateful { bool cue_isolated = false; StretchMode stretch_mode = Trigger::Crisp; + std::string name = ""; + color_t color = 0xBEBEBEFF; + double tempo = 0; //unset UIState() : generation (0) {} @@ -196,6 +199,10 @@ class LIBARDOUR_API Trigger : public PBD::Stateful { cue_isolated = other.cue_isolated; stretch_mode = other.stretch_mode; + name = other.name; + color = other.color; + tempo = other.tempo; + return *this; } };