triggerbox: add name, color and tempo to UIState; used for gui operations like d+d

This commit is contained in:
Ben Loftis 2022-02-11 07:28:10 -06:00
parent 37a5edb2cd
commit 742e3659ff

View File

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