From 9f9cbba5a85f9fc0b7c2ee0da72e06b3a30477f6 Mon Sep 17 00:00:00 2001 From: Hombre Date: Thu, 30 Jun 2011 18:31:34 +0200 Subject: [PATCH] Adding "Wait" cursor in the cursor list, developpers can now use it where needed. --- rtgui/cursormanager.cc | 3 +++ rtgui/cursormanager.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rtgui/cursormanager.cc b/rtgui/cursormanager.cc index dd6a754e6..b3a42d8a4 100644 --- a/rtgui/cursormanager.cc +++ b/rtgui/cursormanager.cc @@ -33,6 +33,7 @@ void CursorManager::init (Glib::RefPtr mainWin) { cLeftTanMove = new Gdk::Cursor (Gdk::SB_LEFT_ARROW); cRightTanMove = new Gdk::Cursor (Gdk::SB_RIGHT_ARROW); cAdd = new Gdk::Cursor (Gdk::PLUS); + cWait = new Gdk::Cursor (Gdk::CLOCK); Glib::RefPtr hand = safe_create_from_file(argv0+"/images/openhand22.png"); Glib::RefPtr close_hand = safe_create_from_file(argv0+"/images/closedhand22.png"); @@ -75,6 +76,8 @@ void CursorManager::setCursor (Glib::RefPtr window, CursorShape sha window->set_cursor (*cRightTanMove); else if (shape==CSStraighten) window->set_cursor (*cCropSelection); + else if (shape==CSWait) + window->set_cursor (*cWait); else if (shape==CSPlus) window->set_cursor (*cAdd); else if (shape==CSEmpty) diff --git a/rtgui/cursormanager.h b/rtgui/cursormanager.h index 25038cd6d..3f2f853f1 100644 --- a/rtgui/cursormanager.h +++ b/rtgui/cursormanager.h @@ -21,7 +21,7 @@ #include -enum CursorShape {CSArrow, CSOpenHand, CSClosedHand, CSMove, CSMoveLeft, CSMoveRight, CSResizeWidth, CSResizeHeight, CSResizeDiagonal, CSSpotWB, CSCropSelect, CSStraighten, CSPlus, CSEmpty}; +enum CursorShape {CSArrow, CSOpenHand, CSClosedHand, CSMove, CSMoveLeft, CSMoveRight, CSResizeWidth, CSResizeHeight, CSResizeDiagonal, CSSpotWB, CSCropSelect, CSStraighten, CSPlus, CSWait, CSEmpty}; class CursorManager { @@ -36,6 +36,7 @@ class CursorManager { Gdk::Cursor* cNormal; Gdk::Cursor* cCropSelection; Gdk::Cursor* cAdd; + Gdk::Cursor* cWait; Gdk::Cursor* cHand; Gdk::Cursor* cClosedHand; Gdk::Cursor* cWB;