mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
triggerbox: move TriggerReference object into ARDOUR::Triggerbox
Also, change box handle to a pointer so that we can have a default (empty) constructor.
This commit is contained in:
parent
ce71ee010e
commit
4d15bf9f18
2 changed files with 14 additions and 11 deletions
|
|
@ -45,26 +45,17 @@ namespace ArdourCanvas
|
|||
class Polygon;
|
||||
}
|
||||
|
||||
class TriggerReference
|
||||
{
|
||||
public:
|
||||
TriggerReference (ARDOUR::TriggerBox& b, uint32_t s) : box (b), slot (s) {}
|
||||
boost::shared_ptr<ARDOUR::Trigger> trigger() const { return box.trigger (slot); }
|
||||
|
||||
ARDOUR::TriggerBox& box;
|
||||
uint32_t slot;
|
||||
};
|
||||
|
||||
class TriggerEntry : public ArdourCanvas::Rectangle
|
||||
{
|
||||
public:
|
||||
TriggerEntry (ArdourCanvas::Item* item, TriggerReference rf);
|
||||
TriggerEntry (ArdourCanvas::Item* item, ARDOUR::TriggerReference rf);
|
||||
~TriggerEntry ();
|
||||
|
||||
boost::shared_ptr<ARDOUR::Trigger> trigger () const
|
||||
{
|
||||
return tref.trigger();
|
||||
}
|
||||
ARDOUR::TriggerReference trigger_reference() const { return tref; }
|
||||
|
||||
ArdourCanvas::Rectangle* play_button;
|
||||
ArdourCanvas::Rectangle* name_button;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue