chalk

kis_cursor.h
1/*
2 * kis_cursor.h - part of KImageShop
3 *
4 * Copyright (c) 1999 Matthias Elter <elter@kde.org>
5 * Copyright (c) 2004 Adrian Page <adrian@pagenet.plus.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 */
21
22#ifndef __kis_cursor_h__
23#define __kis_cursor_h__
24#include <koffice_export.h>
25class TQCursor;
26
27class KRITACORE_EXPORT KisCursor
28{
29
30public:
31
32 KisCursor();
33
34 // Predefined TQt cursors.
35 static TQCursor arrowCursor(); // standard arrow cursor
36 static TQCursor upArrowCursor(); // upwards arrow
37 static TQCursor crossCursor(); // crosshair
38 static TQCursor waitCursor(); // hourglass/watch
39 static TQCursor ibeamCursor(); // ibeam/text entry
40 static TQCursor sizeVerCursor(); // vertical resize
41 static TQCursor sizeHorCursor(); // horizontal resize
42 static TQCursor sizeBDiagCursor(); // diagonal resize (/)
43 static TQCursor sizeFDiagCursor(); // diagonal resize (\‍)
44 static TQCursor sizeAllCursor(); // all directions resize
45 static TQCursor blankCursor(); // blank/invisible cursor
46 static TQCursor splitVCursor(); // vertical splitting
47 static TQCursor splitHCursor(); // horziontal splitting
48 static TQCursor pointingHandCursor(); // a pointing hand
49
50 // Existing custom KimageShop cursors. Use the 'load' function for all new cursors.
51 static TQCursor moveCursor(); // move tool cursor
52 static TQCursor penCursor(); // pen tool cursor
53 static TQCursor brushCursor(); // brush tool cursor
54 static TQCursor airbrushCursor(); // airbrush tool cursor
55 static TQCursor eraserCursor(); // eraser tool cursor
56 static TQCursor fillerCursor(); // filler tool cursor
57 static TQCursor pickerCursor(); // color picker cursor
58 static TQCursor pickerPlusCursor(); // color picker cursor
59 static TQCursor pickerMinusCursor(); // color picker cursor
60 static TQCursor colorChangerCursor(); // color changer tool cursor
61 static TQCursor selectCursor(); // select cursor
62 static TQCursor zoomCursor(); // zoom tool cursor
63 static TQCursor handCursor(); // hand tool cursor
64 static TQCursor openHandCursor(); // Pan tool cursor
65 static TQCursor closedHandCursor(); // Pan tool cursor
66 static TQCursor rotateCursor(); // Transform tool cursor
67
68 // Load a cursor from an image file. The image should have an alpha channel
69 // and will be converted to black and white on loading. Any format loadable by
70 // TQImage can be used.
71 static TQCursor load(const TQString & imageFilename, int hotspotX = -1, int hotspotY = -1);
72};
73#endif // __kis_cursor_h__