Use a couple more cursors in the summary.
authorCarl Hetherington <carl@carlh.net>
Sun, 14 Nov 2010 22:03:57 +0000 (22:03 +0000)
committerCarl Hetherington <carl@carlh.net>
Sun, 14 Nov 2010 22:03:57 +0000 (22:03 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8036 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor.cc
gtk2_ardour/editor.h
gtk2_ardour/editor_summary.cc

index 568afc0e35330b605f884c80d1f701b511db8a4a..27cd0421a4bd7ffe410a9ff91b8c2cc9af2e72d4 100644 (file)
@@ -241,6 +241,8 @@ Gdk::Cursor* Editor::resize_bottom_right_cursor = 0;
 Gdk::Cursor* Editor::resize_bottom_cursor = 0;
 Gdk::Cursor* Editor::resize_bottom_left_cursor = 0;
 Gdk::Cursor* Editor::move_cursor = 0;
+Gdk::Cursor* Editor::expand_left_right_cursor = 0;
+Gdk::Cursor* Editor::expand_up_down_cursor = 0;
 
 void
 show_me_the_size (Requisition* r, const char* what)
@@ -1363,6 +1365,16 @@ Editor::build_cursors ()
                move_cursor = new Gdk::Cursor (Gdk::Display::get_default(), p, 11, 11);
        }
 
+       {
+               Glib::RefPtr<Gdk::Pixbuf> p (::get_icon ("expand_left_right_cursor"));
+               expand_left_right_cursor = new Gdk::Cursor (Gdk::Display::get_default(), p, 11, 4);
+       }
+
+       {
+               Glib::RefPtr<Gdk::Pixbuf> p (::get_icon ("expand_up_down_cursor"));
+               expand_up_down_cursor = new Gdk::Cursor (Gdk::Display::get_default(), p, 4, 11);
+       }
+       
        selector_cursor = new Gdk::Cursor (XTERM);
        time_fx_cursor = new Gdk::Cursor (SIZING);
        wait_cursor = new Gdk::Cursor (WATCH);
index a528b76954675637d3667c307a0097123cbba7a6..a8c5fa3db5606c87aed8e8981a930021374aba09 100644 (file)
@@ -484,6 +484,8 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        static Gdk::Cursor* resize_bottom_cursor;
        static Gdk::Cursor* resize_bottom_left_cursor;
        static Gdk::Cursor* move_cursor;
+       static Gdk::Cursor* expand_left_right_cursor;
+       static Gdk::Cursor* expand_up_down_cursor;
 
         Gdk::Cursor* get_canvas_cursor () const { return current_canvas_cursor; }
         void set_canvas_cursor (Gdk::Cursor*, bool save=false);
index 5b0902a2f6a59c80ab7acc98d191572020dd7244..dc25824a02ad5d3badb21bcc57ff51aa6efb4d71 100644 (file)
@@ -438,6 +438,12 @@ EditorSummary::set_cursor (Position p)
        case INSIDE:
                get_window()->set_cursor (*_editor->move_cursor);
                break;
+       case TO_LEFT_OR_RIGHT:
+               get_window()->set_cursor (*_editor->expand_left_right_cursor);
+               break;
+       case BELOW_OR_ABOVE:
+               get_window()->set_cursor (*_editor->expand_up_down_cursor);
+               break;
        default:
                get_window()->set_cursor ();
                break;
@@ -476,7 +482,7 @@ EditorSummary::on_motion_notify_event (GdkEventMotion* ev)
                }
 
                set_editor (xr, y);
-               set_cursor (INSIDE);
+               set_cursor (_start_position);
 
        } else if (_zoom_dragging) {