QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
72 const unsigned char pan_bits[] =
73 {
74  0xf0, 0x00, 0xf8, 0x01, 0x28, 0x07, 0x28, 0x05, 0x28, 0x1d, 0x28, 0x15,
75  0x2f, 0x15, 0x0d, 0x14, 0x09, 0x10, 0x03, 0x18, 0x06, 0x08, 0x04, 0x08,
76  0x0c, 0x0c, 0x18, 0x04, 0x30, 0x04, 0xe0, 0x07
77 };
78 
79 const unsigned char pan_mask_bits[] =
80 {
81  0xf0, 0x00, 0xf8, 0x01, 0xf8, 0x07, 0xf8, 0x07, 0xf8, 0x1f, 0xf8, 0x1f,
82  0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xfe, 0x0f, 0xfc, 0x0f,
83  0xfc, 0x0f, 0xf8, 0x07, 0xf0, 0x07, 0xe0, 0x07
84 };
85 
86 
87 const char *capture_point_cursor[] =
88 {
89  "16 16 3 1",
90  " » c None",
91  ".» c #000000",
92  "+» c #FFFFFF",
93  " ",
94  " +.+ ",
95  " ++.++ ",
96  " +.....+ ",
97  " +. .+ ",
98  " +. . .+ ",
99  " +. . .+ ",
100  " ++. . .++",
101  " ... ...+... ...",
102  " ++. . .++",
103  " +. . .+ ",
104  " +. . .+ ",
105  " ++. .+ ",
106  " ++.....+ ",
107  " ++.++ ",
108  " +.+ "
109 };
110 
111 const char *select_cursor[] =
112 {
113  "16 16 3 1",
114  "# c None",
115  "a c #000000",
116  ". c #ffffff",
117  ".###############",
118  "...#############",
119  ".aa..###########",
120  "#.aaa..a.a.a.a.#",
121  "#.aaaaa..#####a#",
122  "#a.aaaaaa..###.#",
123  "#..aaaaaa...##a#",
124  "#a.aaaaa.#####.#",
125  "#.#.aaaaa.####a#",
126  "#a#.aa.aaa.###.#",
127  "#.##..#..aa.##a#",
128  "#a##.####.aa.#.#",
129  "#.########.aa.a#",
130  "#a#########.aa..",
131  "#.a.a.a.a.a..a.#",
132  "#############.##"
133 };
134 
135 const char *identify_cursor[] =
136 {
137  "16 16 3 1",
138  "# c None",
139  "a c #000000",
140  ". c #ffffff",
141  ".###########..##",
142  "...########.aa.#",
143  ".aa..######.aa.#",
144  "#.aaa..#####..##",
145  "#.aaaaa..##.aa.#",
146  "##.aaaaaa...aa.#",
147  "##.aaaaaa...aa.#",
148  "##.aaaaa.##.aa.#",
149  "###.aaaaa.#.aa.#",
150  "###.aa.aaa..aa.#",
151  "####..#..aa.aa.#",
152  "####.####.aa.a.#",
153  "##########.aa..#",
154  "###########.aa..",
155  "############.a.#",
156  "#############.##"
157 };
158 
159 const char *cross_hair_cursor[] =
160 {
161  "16 16 3 1",
162  " » c None",
163  ".» c #000000",
164  "+» c #FFFFFF",
165  " ",
166  " +.+ ",
167  " +.+ ",
168  " +.+ ",
169  " +.+ ",
170  " +.+ ",
171  " . ",
172  " +++++ +++++",
173  " ...... ......",
174  " +++++ +++++",
175  " . ",
176  " +.+ ",
177  " +.+ ",
178  " +.+ ",
179  " +.+ ",
180  " +.+ "
181 };
182