somewhat active lollipop event handling
This commit is contained in:
parent
f7e97be115
commit
60628a62be
@ -1701,6 +1701,7 @@ private:
|
|||||||
|
|
||||||
bool canvas_scroll_event (GdkEventScroll* event, bool from_canvas);
|
bool canvas_scroll_event (GdkEventScroll* event, bool from_canvas);
|
||||||
bool canvas_control_point_event (GdkEvent* event,ArdourCanvas::Item*, ControlPoint*);
|
bool canvas_control_point_event (GdkEvent* event,ArdourCanvas::Item*, ControlPoint*);
|
||||||
|
bool canvas_velocity_event (GdkEvent* event,ArdourCanvas::Item*);
|
||||||
bool canvas_line_event (GdkEvent* event,ArdourCanvas::Item*, AutomationLine*);
|
bool canvas_line_event (GdkEvent* event,ArdourCanvas::Item*, AutomationLine*);
|
||||||
bool canvas_selection_rect_event (GdkEvent* event,ArdourCanvas::Item*, SelectionRect*);
|
bool canvas_selection_rect_event (GdkEvent* event,ArdourCanvas::Item*, SelectionRect*);
|
||||||
bool canvas_selection_start_trim_event (GdkEvent* event,ArdourCanvas::Item*, SelectionRect*);
|
bool canvas_selection_start_trim_event (GdkEvent* event,ArdourCanvas::Item*, SelectionRect*);
|
||||||
|
@ -671,6 +671,13 @@ Editor::canvas_control_point_event (GdkEvent *event, ArdourCanvas::Item* item, C
|
|||||||
return typed_event (item, event, ControlPointItem);
|
return typed_event (item, event, ControlPointItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
Editor::canvas_velocity_event (GdkEvent *event, ArdourCanvas::Item* item)
|
||||||
|
{
|
||||||
|
std::cerr << "Velocity event: " << Gtkmm2ext::event_type_string (event->type) << std::endl;
|
||||||
|
return typed_event (item, event, VelocityItem);
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Editor::canvas_line_event (GdkEvent *event, ArdourCanvas::Item* item, AutomationLine* al)
|
Editor::canvas_line_event (GdkEvent *event, ArdourCanvas::Item* item, AutomationLine* al)
|
||||||
{
|
{
|
||||||
|
@ -68,6 +68,7 @@ enum ItemType {
|
|||||||
SamplesRulerItem,
|
SamplesRulerItem,
|
||||||
SelectionMarkerItem,
|
SelectionMarkerItem,
|
||||||
DropZoneItem,
|
DropZoneItem,
|
||||||
|
VelocityItem,
|
||||||
|
|
||||||
/* don't remove this */
|
/* don't remove this */
|
||||||
|
|
||||||
|
@ -184,6 +184,7 @@ setup_gtk_ardour_enums ()
|
|||||||
REGISTER_ENUM (MinsecRulerItem);
|
REGISTER_ENUM (MinsecRulerItem);
|
||||||
REGISTER_ENUM (BBTRulerItem);
|
REGISTER_ENUM (BBTRulerItem);
|
||||||
REGISTER_ENUM (SamplesRulerItem);
|
REGISTER_ENUM (SamplesRulerItem);
|
||||||
|
REGISTER_ENUM (VelocityItem);
|
||||||
REGISTER (item_type);
|
REGISTER (item_type);
|
||||||
|
|
||||||
REGISTER_ENUM(MouseObject);
|
REGISTER_ENUM(MouseObject);
|
||||||
|
@ -450,6 +450,7 @@ public:
|
|||||||
|
|
||||||
virtual bool canvas_scroll_event (GdkEventScroll* event, bool from_canvas) = 0;
|
virtual bool canvas_scroll_event (GdkEventScroll* event, bool from_canvas) = 0;
|
||||||
virtual bool canvas_control_point_event (GdkEvent* event, ArdourCanvas::Item*, ControlPoint*) = 0;
|
virtual bool canvas_control_point_event (GdkEvent* event, ArdourCanvas::Item*, ControlPoint*) = 0;
|
||||||
|
virtual bool canvas_velocity_event (GdkEvent* event, ArdourCanvas::Item*) = 0;
|
||||||
virtual bool canvas_line_event (GdkEvent* event, ArdourCanvas::Item*, AutomationLine*) = 0;
|
virtual bool canvas_line_event (GdkEvent* event, ArdourCanvas::Item*, AutomationLine*) = 0;
|
||||||
virtual bool canvas_selection_rect_event (GdkEvent* event, ArdourCanvas::Item*, SelectionRect*) = 0;
|
virtual bool canvas_selection_rect_event (GdkEvent* event, ArdourCanvas::Item*, SelectionRect*) = 0;
|
||||||
virtual bool canvas_selection_start_trim_event (GdkEvent* event, ArdourCanvas::Item*, SelectionRect*) = 0;
|
virtual bool canvas_selection_start_trim_event (GdkEvent* event, ArdourCanvas::Item*, SelectionRect*) = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user