QGIS API Documentation  2.99.0-Master (8ec3eaf)
qgscursors.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgscursors.cpp
3 
4  -------------------
5  begin : 2007
6  copyright : (C) 2007 by Gary E. Sherman
7  email : [email protected]
8 ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 #include "qgscursors.h"
19 
20 // cursors
21 const char *zoom_in[] =
22 {
23  "16 16 3 1",
24  ". c None",
25  "a c #000000",
26  "# c #ffffff",
27  ".....#####......",
28  "...##aaaaa##....",
29  "..#.a.....a.#...",
30  ".#.a...a...a.#..",
31  ".#a....a....a#..",
32  "#a.....a.....a#.",
33  "#a.....a.....a#.",
34  "#a.aaaa#aaaa.a#.",
35  "#a.....a.....a#.",
36  "#a.....a.....a#.",
37  ".#a....a....a#..",
38  ".#.a...a...aaa#.",
39  "..#.a.....a#aaa#",
40  "...##aaaaa###aa#",
41  ".....#####...###",
42  "..............#."
43 };
44 
45 const char *zoom_out[] =
46 {
47  "16 16 4 1",
48  "b c None",
49  ". c None",
50  "a c #000000",
51  "# c #ffffff",
52  ".....#####......",
53  "...##aaaaa##....",
54  "..#.a.....a.#...",
55  ".#.a.......a.#..",
56  ".#a.........a#..",
57  "#a...........a#.",
58  "#a...........a#.",
59  "#a.aaaa#aaaa.a#.",
60  "#a...........a#.",
61  "#a...........a#.",
62  ".#a.........a#..",
63  ".#.a.......aaa#.",
64  "..#.a.....a#aaa#",
65  "...##aaaaa###aa#",
66  ".....#####...###",
67  "..............#."
68 };
69 
70 
71 const char *capture_point_cursor[] =
72 {
73  "16 16 3 1",
74  " » c None",
75  ".» c #000000",
76  "+» c #FFFFFF",
77  " ",
78  " +.+ ",
79  " ++.++ ",
80  " +.....+ ",
81  " +. .+ ",
82  " +. . .+ ",
83  " +. . .+ ",
84  " ++. . .++",
85  " ... ...+... ...",
86  " ++. . .++",
87  " +. . .+ ",
88  " +. . .+ ",
89  " ++. .+ ",
90  " ++.....+ ",
91  " ++.++ ",
92  " +.+ "
93 };
94 
95 const char *select_cursor[] =
96 {
97  "16 16 3 1",
98  "# c None",
99  "a c #000000",
100  ". c #ffffff",
101  ".###############",
102  "...#############",
103  ".aa..###########",
104  "#.aaa..a.a.a.a.#",
105  "#.aaaaa..#####a#",
106  "#a.aaaaaa..###.#",
107  "#..aaaaaa...##a#",
108  "#a.aaaaa.#####.#",
109  "#.#.aaaaa.####a#",
110  "#a#.aa.aaa.###.#",
111  "#.##..#..aa.##a#",
112  "#a##.####.aa.#.#",
113  "#.########.aa.a#",
114  "#a#########.aa..",
115  "#.a.a.a.a.a..a.#",
116  "#############.##"
117 };
118 
119 const char *identify_cursor[] =
120 {
121  "16 16 3 1",
122  "# c None",
123  "a c #000000",
124  ". c #ffffff",
125  ".###########..##",
126  "...########.aa.#",
127  ".aa..######.aa.#",
128  "#.aaa..#####..##",
129  "#.aaaaa..##.aa.#",
130  "##.aaaaaa...aa.#",
131  "##.aaaaaa...aa.#",
132  "##.aaaaa.##.aa.#",
133  "###.aaaaa.#.aa.#",
134  "###.aa.aaa..aa.#",
135  "####..#..aa.aa.#",
136  "####.####.aa.a.#",
137  "##########.aa..#",
138  "###########.aa..",
139  "############.a.#",
140  "#############.##"
141 };
142 
143 const char *cross_hair_cursor[] =
144 {
145  "16 16 3 1",
146  " » c None",
147  ".» c #000000",
148  "+» c #FFFFFF",
149  " ",
150  " +.+ ",
151  " +.+ ",
152  " +.+ ",
153  " +.+ ",
154  " +.+ ",
155  " . ",
156  " +++++ +++++",
157  " ...... ......",
158  " +++++ +++++",
159  " . ",
160  " +.+ ",
161  " +.+ ",
162  " +.+ ",
163  " +.+ ",
164  " +.+ "
165 };
166 
167 const char *sampler_cursor[] =
168 {
169  "16 16 3 1",
170  " » c None",
171  ".» c #000000",
172  "+» c #FFFFFF",
173  ".. ",
174  ".+. ",
175  " .+.. ",
176  " .++. ",
177  " .+++. ",
178  " .+++. ",
179  " .+++. ",
180  " .+++... ",
181  " .++... ",
182  " ...... ",
183  " ....... ",
184  " ........ ",
185  " .......",
186  " ......",
187  " .....",
188  " ... "
189 };
const char * select_cursor[]
Definition: qgscursors.cpp:95
const char * zoom_in[]
Bitmap cursors for map operations.
Definition: qgscursors.cpp:21
const char * zoom_out[]
Definition: qgscursors.cpp:45
const char * capture_point_cursor[]
Definition: qgscursors.cpp:71
const char * sampler_cursor[]
Definition: qgscursors.cpp:167
const char * identify_cursor[]
Definition: qgscursors.cpp:119
const char * cross_hair_cursor[]
Definition: qgscursors.cpp:143