mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
much craziness with canvas cursors; fix 0 beat cursor text when shortening notes; fix crash when trimming locked regions; don't show trim cursors when region is locked; partial version of enumwriter validation fix from 2.X (less necessary with 3.0; probably more ...
git-svn-id: svn://localhost/ardour2/branches/3.0@7831 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d4aaa9c10c
commit
ded4a143db
20 changed files with 298 additions and 83 deletions
|
|
@ -325,6 +325,7 @@ Editor::Editor ()
|
|||
clicked_crossfadeview = 0;
|
||||
clicked_control_point = 0;
|
||||
last_update_frame = 0;
|
||||
pre_press_cursor = 0;
|
||||
_drags = new DragManager (this);
|
||||
current_mixer_strip = 0;
|
||||
current_bbt_points = 0;
|
||||
|
|
@ -1240,8 +1241,10 @@ Editor::build_cursors ()
|
|||
transparent_cursor = new Gdk::Cursor (bits, bits, c, c, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
grabber_cursor = new Gdk::Cursor (HAND2);
|
||||
{
|
||||
Glib::RefPtr<Gdk::Pixbuf> grabber_pixbuf (::get_icon ("grabber"));
|
||||
grabber_cursor = new Gdk::Cursor (Gdk::Display::get_default(), grabber_pixbuf, 5, 0);
|
||||
}
|
||||
|
||||
{
|
||||
Glib::RefPtr<Gdk::Pixbuf> grabber_note_pixbuf (::get_icon ("grabber_note"));
|
||||
|
|
@ -3626,7 +3629,7 @@ Editor::clamp_verbose_cursor_y (double y)
|
|||
}
|
||||
|
||||
void
|
||||
Editor::show_verbose_canvas_cursor_with (const string & txt)
|
||||
Editor::show_verbose_canvas_cursor_with (const string & txt, int32_t xoffset, int32_t yoffset)
|
||||
{
|
||||
verbose_canvas_cursor->property_text() = txt.c_str();
|
||||
|
||||
|
|
@ -3636,6 +3639,9 @@ Editor::show_verbose_canvas_cursor_with (const string & txt)
|
|||
track_canvas->get_pointer (x, y);
|
||||
track_canvas->window_to_world (x, y, wx, wy);
|
||||
|
||||
wx += xoffset;
|
||||
wy += yoffset;
|
||||
|
||||
/* 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue