From 8fc660e76e50920d744942c241275849b7b9720e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 Nov 2010 14:53:16 +0000 Subject: Move mouse cursor stuff out of Editor into its own class. git-svn-id: svn://localhost/ardour2/branches/3.0@8048 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_summary.cc | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'gtk2_ardour/editor_summary.cc') diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index dc25824a02..e55b53aeea 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -27,6 +27,8 @@ #include "rgb_macros.h" #include "keyboard.h" #include "editor_routes.h" +#include "editor_cursors.h" +#include "mouse_cursors.h" using namespace std; using namespace ARDOUR; @@ -412,37 +414,37 @@ EditorSummary::set_cursor (Position p) { switch (p) { case LEFT: - get_window()->set_cursor (*_editor->resize_left_cursor); + get_window()->set_cursor (*_editor->_cursors->resize_left); break; case LEFT_TOP: - get_window()->set_cursor (*_editor->resize_top_left_cursor); + get_window()->set_cursor (*_editor->_cursors->resize_top_left); break; case TOP: - get_window()->set_cursor (*_editor->resize_top_cursor); + get_window()->set_cursor (*_editor->_cursors->resize_top); break; case RIGHT_TOP: - get_window()->set_cursor (*_editor->resize_top_right_cursor); + get_window()->set_cursor (*_editor->_cursors->resize_top_right); break; case RIGHT: - get_window()->set_cursor (*_editor->resize_right_cursor); + get_window()->set_cursor (*_editor->_cursors->resize_right); break; case RIGHT_BOTTOM: - get_window()->set_cursor (*_editor->resize_bottom_right_cursor); + get_window()->set_cursor (*_editor->_cursors->resize_bottom_right); break; case BOTTOM: - get_window()->set_cursor (*_editor->resize_bottom_cursor); + get_window()->set_cursor (*_editor->_cursors->resize_bottom); break; case LEFT_BOTTOM: - get_window()->set_cursor (*_editor->resize_bottom_left_cursor); + get_window()->set_cursor (*_editor->_cursors->resize_bottom_left); break; case INSIDE: - get_window()->set_cursor (*_editor->move_cursor); + get_window()->set_cursor (*_editor->_cursors->move); break; case TO_LEFT_OR_RIGHT: - get_window()->set_cursor (*_editor->expand_left_right_cursor); + get_window()->set_cursor (*_editor->_cursors->expand_left_right); break; case BELOW_OR_ABOVE: - get_window()->set_cursor (*_editor->expand_up_down_cursor); + get_window()->set_cursor (*_editor->_cursors->expand_up_down); break; default: get_window()->set_cursor (); -- cgit v1.2.3