diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-13 17:15:23 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-13 18:43:53 -0400 |
commit | f7844f48937fbb3a7744c131304ab8dc8c305580 (patch) | |
tree | 3b021737f69ac53f6c82f491ea283177b602cbb1 /gtk2_ardour/mouse_cursors.cc | |
parent | f3121131632239c106058edc138ae95e847f1f6a (diff) |
do most of the work related to adding new anchored trim cursors (but debugging/analysis continues)
Diffstat (limited to 'gtk2_ardour/mouse_cursors.cc')
-rw-r--r-- | gtk2_ardour/mouse_cursors.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/mouse_cursors.cc b/gtk2_ardour/mouse_cursors.cc index 56a2eafac8..0aab542347 100644 --- a/gtk2_ardour/mouse_cursors.cc +++ b/gtk2_ardour/mouse_cursors.cc @@ -26,7 +26,9 @@ MouseCursors::MouseCursors () : cross_hair (0) , trimmer (0) , right_side_trim (0) + , anchored_right_side_trim (0) , left_side_trim (0) + , anchored_left_side_trim (0) , right_side_trim_left_only (0) , left_side_trim_right_only (0) , fade_in (0) @@ -68,7 +70,9 @@ MouseCursors::drop_all () delete cross_hair; cross_hair = 0; delete trimmer; trimmer = 0; delete right_side_trim; right_side_trim = 0; + delete anchored_right_side_trim; anchored_right_side_trim = 0; delete left_side_trim; left_side_trim = 0; + delete anchored_left_side_trim; anchored_left_side_trim = 0; delete right_side_trim_left_only; right_side_trim_left_only = 0; delete left_side_trim_right_only; left_side_trim_right_only = 0; delete fade_in; fade_in = 0; @@ -175,11 +179,21 @@ MouseCursors::set_cursor_set (const std::string& name) } { + RefPtr<Pixbuf> p (::get_icon ("anchored_trim_left_cursor", _cursor_set)); + anchored_left_side_trim = new Cursor (Display::get_default(), p, 5, 11); + } + + { RefPtr<Pixbuf> p (::get_icon ("trim_right_cursor", _cursor_set)); right_side_trim = new Cursor (Display::get_default(), p, 23, 11); } { + RefPtr<Pixbuf> p (::get_icon ("anchored_trim_right_cursor", _cursor_set)); + anchored_right_side_trim = new Cursor (Display::get_default(), p, 23, 11); + } + + { RefPtr<Pixbuf> p (::get_icon ("trim_left_cursor_right_only", _cursor_set)); left_side_trim_right_only = new Cursor (Display::get_default(), p, 5, 11); } |