triggerboxUI: start adding per-slot event handling
This commit is contained in:
parent
6daf0f0451
commit
3ddfdbc790
@ -57,6 +57,8 @@ TriggerEntry::TriggerEntry (Canvas* canvas, ARDOUR::Trigger& t)
|
||||
const double width = 150. * scale;
|
||||
const double height = 20. * scale;
|
||||
|
||||
Event.connect (sigc::mem_fun (*this, &TriggerEntry::event_handler));
|
||||
|
||||
poly_margin = 2. * scale;
|
||||
poly_size = height - (poly_margin * 2.);
|
||||
|
||||
@ -82,6 +84,7 @@ TriggerEntry::TriggerEntry (Canvas* canvas, ARDOUR::Trigger& t)
|
||||
name_text->set_font_description (UIConfiguration::instance().get_SmallerFont());
|
||||
name_text->set_color (Gtkmm2ext::contrasting_text_color (fill_color()));
|
||||
name_text->set_position (Duple (play_button->get().width() + (2. * scale), poly_margin));
|
||||
name_text->set_ignore_events (true);
|
||||
|
||||
_trigger.PropertyChanged.connect (trigger_prop_connection, MISSING_INVALIDATOR, boost::bind (&TriggerEntry::prop_change, this, _1), gui_context());
|
||||
|
||||
|
@ -60,6 +60,7 @@ class TriggerEntry : public ArdourCanvas::Rectangle
|
||||
void _size_allocate (ArdourCanvas::Rect const &);
|
||||
void render (ArdourCanvas::Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
|
||||
void maybe_update ();
|
||||
bool event_handler (GdkEvent*);
|
||||
|
||||
private:
|
||||
ARDOUR::Trigger& _trigger;
|
||||
|
Loading…
Reference in New Issue
Block a user