mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
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:
parent
710ba02c70
commit
e7e071db1a
14 changed files with 218 additions and 91 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue