summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-06-17 22:09:07 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-06-17 22:09:07 +0000
commit1ee298a2354dd14faf925383ec765048a089c0e6 (patch)
tree8ef52f138454a359b1b6409d6ef72842ddca63ac /gtk2_ardour/editor_mouse.cc
parentfe85a922ec4a3e0cf1107adadfa50ad7b8417aa3 (diff)
new fade in/out handle cursors from chrisg (maybe to be improved); show MIDI note velocities; try to show note length while dragging notes (in progress); some debugging output
git-svn-id: svn://localhost/ardour2/branches/3.0@7271 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r--gtk2_ardour/editor_mouse.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index 3bf0b3d352..ea9cce3047 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -325,6 +325,8 @@ Editor::mouse_mode_toggled (MouseMode m)
instant_save ();
+ cerr << "Mouse mode toggled to " << m << endl;
+
if (!internal_editing()) {
if (mouse_mode != MouseRange && _join_object_range_state == JOIN_OBJECT_RANGE_NONE) {
@@ -1592,7 +1594,18 @@ Editor::enter_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_
track_canvas->get_window()->set_cursor (*timebar_cursor);
}
break;
+
case FadeInHandleItem:
+ if (mouse_mode == MouseObject) {
+ ArdourCanvas::SimpleRect *rect = dynamic_cast<ArdourCanvas::SimpleRect *> (item);
+ if (rect) {
+ rect->property_fill_color_rgba() = 0;
+ rect->property_outline_pixels() = 1;
+ }
+ track_canvas->get_window()->set_cursor (*fade_in_cursor);
+ }
+ break;
+
case FadeOutHandleItem:
if (mouse_mode == MouseObject) {
ArdourCanvas::SimpleRect *rect = dynamic_cast<ArdourCanvas::SimpleRect *> (item);
@@ -1600,7 +1613,7 @@ Editor::enter_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_
rect->property_fill_color_rgba() = 0;
rect->property_outline_pixels() = 1;
}
- track_canvas->get_window()->set_cursor (*grabber_cursor);
+ track_canvas->get_window()->set_cursor (*fade_out_cursor);
}
break;