triggerbox: add name, color and tempo to UIState; used for gui operations like d+d
This commit is contained in:
parent
37a5edb2cd
commit
742e3659ff
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user