more MIDI editing tweaks ; flip mouse mode buttons around for MIDI so that "object" mode is the most likely mode for both region \& region editing ; frame handle events (from lincoln's region trimming patch) are now handled more explicitly

git-svn-id: svn://localhost/ardour2/branches/3.0@5600 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-08-28 16:06:08 +00:00
parent 710ba02c70
commit e7e071db1a
14 changed files with 218 additions and 91 deletions

View file

@ -3366,6 +3366,31 @@ Editor::clamp_verbose_cursor_y (double y)
return y;
}
void
Editor::show_verbose_canvas_cursor_with (const string & txt)
{
verbose_canvas_cursor->property_text() = txt.c_str();
int x, y;
double wx, wy;
track_canvas->get_pointer (x, y);
track_canvas->window_to_world (x, y, wx, wy);
/* move it away from the mouse pointer to avoid an
infinite loop of enter/leave events.
*/
wx += 20;
wy += 20;
/* don't get too close to the edge */
verbose_canvas_cursor->property_x() = clamp_verbose_cursor_x (wx);
verbose_canvas_cursor->property_y() = clamp_verbose_cursor_y (wy);
show_verbose_canvas_cursor ();
}
void
Editor::set_verbose_canvas_cursor (const string & txt, double x, double y)
{