some incredibly hasic functionality for the triggerbox UI

This commit is contained in:
Paul Davis 2021-07-27 20:39:55 -06:00
parent 33fed0f689
commit ccf1c4fb57
2 changed files with 60 additions and 16 deletions

View file

@ -32,6 +32,11 @@ namespace ARDOUR {
class TriggerBox;
}
namespace ArdourCanvas {
class Text;
class Polygon;
};
class TriggerEntry : public ArdourCanvas::Rectangle
{
public:
@ -39,7 +44,9 @@ class TriggerEntry : public ArdourCanvas::Rectangle
~TriggerEntry ();
ARDOUR::Trigger& trigger() const { return _trigger; }
void render (ArdourCanvas::Rect const &, Cairo::RefPtr<Cairo::Context>) const;
ArdourCanvas::Polygon* play_button;
ArdourCanvas::Text* name_text;
private:
ARDOUR::Trigger& _trigger;
@ -53,7 +60,10 @@ class TriggerBoxUI : public ArdourCanvas::Box
private:
ARDOUR::TriggerBox& _triggerbox;
typedef std::vector<TriggerEntry*> Slots;
Slots _slots;
bool bang (GdkEvent*, size_t);
void build ();
};