mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
initial extensions for TriggerBox UI
This commit is contained in:
parent
a63ec8afa2
commit
e68c60b407
3 changed files with 72 additions and 3 deletions
|
|
@ -22,10 +22,12 @@
|
|||
#include <map>
|
||||
|
||||
#include "canvas/box.h"
|
||||
#include "canvas/canvas.h"
|
||||
#include "canvas/rectangle.h"
|
||||
|
||||
namespace ARDOUR {
|
||||
class Trigger;
|
||||
class TriggerBox;
|
||||
}
|
||||
|
||||
class TriggerEntry : public ArdourCanvas::Rectangle
|
||||
|
|
@ -35,6 +37,7 @@ class TriggerEntry : public ArdourCanvas::Rectangle
|
|||
~TriggerEntry ();
|
||||
|
||||
ARDOUR::Trigger& trigger() const { return _trigger; }
|
||||
void render (ArdourCanvas::Rect const &, Cairo::RefPtr<Cairo::Context>) const;
|
||||
|
||||
private:
|
||||
ARDOUR::Trigger& _trigger;
|
||||
|
|
@ -43,11 +46,23 @@ class TriggerEntry : public ArdourCanvas::Rectangle
|
|||
class TriggerBoxUI : public ArdourCanvas::Box
|
||||
{
|
||||
public:
|
||||
TriggerBoxUI (ArdourCanvas::Item* parent);
|
||||
TriggerBoxUI (ArdourCanvas::Item* parent, ARDOUR::TriggerBox&);
|
||||
~TriggerBoxUI ();
|
||||
|
||||
private:
|
||||
ARDOUR::TriggerBox& _triggerbox;
|
||||
|
||||
void build ();
|
||||
};
|
||||
|
||||
|
||||
class TriggerBoxWidget : public ArdourCanvas::GtkCanvas
|
||||
{
|
||||
public:
|
||||
TriggerBoxWidget (ARDOUR::TriggerBox& tb);
|
||||
|
||||
private:
|
||||
TriggerBoxUI* ui;
|
||||
};
|
||||
|
||||
#endif /* __ardour_gtk_triggerbox_ui_h__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue