/* * This file is part of RawTherapee. * * Copyright (c) 2004-2010 Gabor Horvath * * RawTherapee is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * RawTherapee is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with RawTherapee. If not, see . */ #pragma once #include enum CursorShape { CSAddColPicker, CSArrow, CSCropSelect, CSCrosshair, CSEmpty, CSHandClosed, CSHandOpen, CSMove, CSMove1DH, CSMove1DV, CSMove2D, CSMoveLeft, CSMoveRight, CSMoveRotate, CSPlus, CSResizeBottomLeft, CSResizeBottomRight, CSResizeDiagonal, CSResizeHeight, CSResizeTopLeft, CSResizeTopRight, CSResizeWidth, CSSpotWB, CSStraighten, CSUndefined, CSWait }; class CursorManager { private: Glib::RefPtr cAdd; Glib::RefPtr cAddPicker; Glib::RefPtr cCropDraw; Glib::RefPtr cCrosshair; Glib::RefPtr cHandClosed; Glib::RefPtr cHandOpen; Glib::RefPtr cEmpty; Glib::RefPtr cMoveBL; Glib::RefPtr cMoveBR; Glib::RefPtr cMoveL; Glib::RefPtr cMoveR; Glib::RefPtr cMoveTL; Glib::RefPtr cMoveTR; Glib::RefPtr cMoveX; Glib::RefPtr cMoveY; Glib::RefPtr cMoveXY; Glib::RefPtr cRotate; Glib::RefPtr cWB; Glib::RefPtr cWait; Glib::RefPtr display; Glib::RefPtr window; void setCursor (CursorShape shape); void setCursor (Glib::RefPtr window, CursorShape shape); public: void init (Glib::RefPtr mainWindow); static void setWidgetCursor (Glib::RefPtr window, CursorShape shape); static void setCursorOfMainWindow (Glib::RefPtr window, CursorShape shape); }; extern CursorManager mainWindowCursorManager; extern CursorManager editWindowCursorManager;