Quantum GIS API Documentation  1.7.4
src/gui/qgscursors.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                              qgscursors.cpp
00003 
00004                              -------------------
00005     begin                : 2007
00006     copyright            : (C) 2007 by Gary E. Sherman
00007     email                : sherman@mrcc.com
00008 ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 #include "qgscursors.h"
00019 
00020 // cursors
00021 const char *zoom_in[] =
00022 {
00023   "16 16 3 1",
00024   ". c None",
00025   "a c #000000",
00026   "# c #ffffff",
00027   ".....#####......",
00028   "...##aaaaa##....",
00029   "..#.a.....a.#...",
00030   ".#.a...a...a.#..",
00031   ".#a....a....a#..",
00032   "#a.....a.....a#.",
00033   "#a.....a.....a#.",
00034   "#a.aaaa#aaaa.a#.",
00035   "#a.....a.....a#.",
00036   "#a.....a.....a#.",
00037   ".#a....a....a#..",
00038   ".#.a...a...aaa#.",
00039   "..#.a.....a#aaa#",
00040   "...##aaaaa###aa#",
00041   ".....#####...###",
00042   "..............#."
00043 };
00044 
00045 const char *zoom_out[] =
00046 {
00047   "16 16 4 1",
00048   "b c None",
00049   ". c None",
00050   "a c #000000",
00051   "# c #ffffff",
00052   ".....#####......",
00053   "...##aaaaa##....",
00054   "..#.a.....a.#...",
00055   ".#.a.......a.#..",
00056   ".#a.........a#..",
00057   "#a...........a#.",
00058   "#a...........a#.",
00059   "#a.aaaa#aaaa.a#.",
00060   "#a...........a#.",
00061   "#a...........a#.",
00062   ".#a.........a#..",
00063   ".#.a.......aaa#.",
00064   "..#.a.....a#aaa#",
00065   "...##aaaaa###aa#",
00066   ".....#####...###",
00067   "..............#."
00068 };
00069 
00070 
00071 
00072 const unsigned char pan_bits[] =
00073 {
00074   0xf0, 0x00, 0xf8, 0x01, 0x28, 0x07, 0x28, 0x05, 0x28, 0x1d, 0x28, 0x15,
00075   0x2f, 0x15, 0x0d, 0x14, 0x09, 0x10, 0x03, 0x18, 0x06, 0x08, 0x04, 0x08,
00076   0x0c, 0x0c, 0x18, 0x04, 0x30, 0x04, 0xe0, 0x07
00077 };
00078 
00079 const unsigned char pan_mask_bits[] =
00080 {
00081   0xf0, 0x00, 0xf8, 0x01, 0xf8, 0x07, 0xf8, 0x07, 0xf8, 0x1f, 0xf8, 0x1f,
00082   0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xfe, 0x0f, 0xfc, 0x0f,
00083   0xfc, 0x0f, 0xf8, 0x07, 0xf0, 0x07, 0xe0, 0x07
00084 };
00085 
00086 
00087 const char *capture_point_cursor[] =
00088 {
00089   "16 16 3 1",
00090   " »     c None",
00091   ".»     c #000000",
00092   "+»     c #FFFFFF",
00093   "                ",
00094   "       +.+      ",
00095   "      ++.++     ",
00096   "     +.....+    ",
00097   "    +.     .+   ",
00098   "   +.   .   .+  ",
00099   "  +.    .    .+ ",
00100   " ++.    .    .++",
00101   " ... ...+... ...",
00102   " ++.    .    .++",
00103   "  +.    .    .+ ",
00104   "   +.   .   .+  ",
00105   "   ++.     .+   ",
00106   "    ++.....+    ",
00107   "      ++.++     ",
00108   "       +.+      "
00109 };
00110 
00111 const char *select_cursor[] =
00112 {
00113   "16 16 3 1",
00114   "# c None",
00115   "a c #000000",
00116   ". c #ffffff",
00117   ".###############",
00118   "...#############",
00119   ".aa..###########",
00120   "#.aaa..a.a.a.a.#",
00121   "#.aaaaa..#####a#",
00122   "#a.aaaaaa..###.#",
00123   "#..aaaaaa...##a#",
00124   "#a.aaaaa.#####.#",
00125   "#.#.aaaaa.####a#",
00126   "#a#.aa.aaa.###.#",
00127   "#.##..#..aa.##a#",
00128   "#a##.####.aa.#.#",
00129   "#.########.aa.a#",
00130   "#a#########.aa..",
00131   "#.a.a.a.a.a..a.#",
00132   "#############.##"
00133 };
00134 
00135 const char *identify_cursor[] =
00136 {
00137   "16 16 3 1",
00138   "# c None",
00139   "a c #000000",
00140   ". c #ffffff",
00141   ".###########..##",
00142   "...########.aa.#",
00143   ".aa..######.aa.#",
00144   "#.aaa..#####..##",
00145   "#.aaaaa..##.aa.#",
00146   "##.aaaaaa...aa.#",
00147   "##.aaaaaa...aa.#",
00148   "##.aaaaa.##.aa.#",
00149   "###.aaaaa.#.aa.#",
00150   "###.aa.aaa..aa.#",
00151   "####..#..aa.aa.#",
00152   "####.####.aa.a.#",
00153   "##########.aa..#",
00154   "###########.aa..",
00155   "############.a.#",
00156   "#############.##"
00157 };
00158 
00159 const char *cross_hair_cursor[] =
00160 {
00161   "16 16 3 1",
00162   " »     c None",
00163   ".»     c #000000",
00164   "+»     c #FFFFFF",
00165   "                ",
00166   "       +.+      ",
00167   "       +.+      ",
00168   "       +.+      ",
00169   "       +.+      ",
00170   "       +.+      ",
00171   "        .       ",
00172   " +++++     +++++",
00173   " ......   ......",
00174   " +++++     +++++",
00175   "        .       ",
00176   "       +.+      ",
00177   "       +.+      ",
00178   "       +.+      ",
00179   "       +.+      ",
00180   "       +.+      "
00181 };
00182 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines