mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 01:26:31 +01:00
triggerbox: add void* pointer to hold reference to anonymous UI object
This commit is contained in:
parent
00d4765b57
commit
e777acb7f9
2 changed files with 11 additions and 0 deletions
|
|
@ -167,6 +167,9 @@ class LIBARDOUR_API Trigger : public PBD::Stateful {
|
||||||
virtual void jump_start ();
|
virtual void jump_start ();
|
||||||
virtual void jump_stop ();
|
virtual void jump_stop ();
|
||||||
|
|
||||||
|
void set_ui (void*);
|
||||||
|
void* ui () const { return _ui; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
TriggerBox& _box;
|
TriggerBox& _box;
|
||||||
State _state;
|
State _state;
|
||||||
|
|
@ -182,6 +185,7 @@ class LIBARDOUR_API Trigger : public PBD::Stateful {
|
||||||
Temporal::BBT_Offset _quantization;
|
Temporal::BBT_Offset _quantization;
|
||||||
bool _legato;
|
bool _legato;
|
||||||
std::string _name;
|
std::string _name;
|
||||||
|
void* _ui;
|
||||||
|
|
||||||
void set_region_internal (boost::shared_ptr<Region>);
|
void set_region_internal (boost::shared_ptr<Region>);
|
||||||
void request_state (State s);
|
void request_state (State s);
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ Trigger::Trigger (size_t n, TriggerBox& b)
|
||||||
, _follow_action_probability (100)
|
, _follow_action_probability (100)
|
||||||
, _quantization (Temporal::BBT_Offset (0, 1, 0))
|
, _quantization (Temporal::BBT_Offset (0, 1, 0))
|
||||||
, _legato (true)
|
, _legato (true)
|
||||||
|
, _ui (0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -57,6 +58,12 @@ Trigger::set_name (std::string const & str)
|
||||||
_name = str;
|
_name = str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Trigger::set_ui (void* p)
|
||||||
|
{
|
||||||
|
_ui = p;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Trigger::bang ()
|
Trigger::bang ()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue