author | harlekin <harlekin> | 2002-05-15 17:37:35 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-05-15 17:37:35 (UTC) |
commit | ada6cebb46794cd25168690a9218bf8fe55eb858 (patch) (unidiff) | |
tree | 4c092da57556af2787c3986d8b9fa82334be7d64 | |
parent | 968718335dd546fcb0f7cd27094d151a247f6c48 (diff) | |
download | opie-ada6cebb46794cd25168690a9218bf8fe55eb858.zip opie-ada6cebb46794cd25168690a9218bf8fe55eb858.tar.gz opie-ada6cebb46794cd25168690a9218bf8fe55eb858.tar.bz2 |
image relocation
-rw-r--r-- | core/settings/citytime/zonemap.cpp | 2 | ||||
-rw-r--r-- | pics/simple_grid_400.png | bin | 4533 -> 0 bytes |
2 files changed, 1 insertions, 1 deletions
diff --git a/core/settings/citytime/zonemap.cpp b/core/settings/citytime/zonemap.cpp index 337f4d9..1d60aee 100644 --- a/core/settings/citytime/zonemap.cpp +++ b/core/settings/citytime/zonemap.cpp | |||
@@ -13,65 +13,65 @@ | |||
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "sun.h" | 21 | #include "sun.h" |
22 | #include "zonemap.h" | 22 | #include "zonemap.h" |
23 | 23 | ||
24 | #include <qpe/resource.h> | 24 | #include <qpe/resource.h> |
25 | #include <qpe/timestring.h> | 25 | #include <qpe/timestring.h> |
26 | #include <qpe/qpeapplication.h> | 26 | #include <qpe/qpeapplication.h> |
27 | 27 | ||
28 | #include <qdatetime.h> | 28 | #include <qdatetime.h> |
29 | #include <qfile.h> | 29 | #include <qfile.h> |
30 | #include <qimage.h> | 30 | #include <qimage.h> |
31 | #include <qlabel.h> | 31 | #include <qlabel.h> |
32 | #include <qlist.h> | 32 | #include <qlist.h> |
33 | #include <qmessagebox.h> | 33 | #include <qmessagebox.h> |
34 | #include <qpixmap.h> | 34 | #include <qpixmap.h> |
35 | #include <qpainter.h> | 35 | #include <qpainter.h> |
36 | #include <qregexp.h> | 36 | #include <qregexp.h> |
37 | #include <qtextstream.h> | 37 | #include <qtextstream.h> |
38 | #include <qtimer.h> | 38 | #include <qtimer.h> |
39 | #include <qtoolbutton.h> | 39 | #include <qtoolbutton.h> |
40 | 40 | ||
41 | #include <limits.h> | 41 | #include <limits.h> |
42 | 42 | ||
43 | // the map file... | 43 | // the map file... |
44 | static const char strZONEINFO[] = "/usr/share/zoneinfo/zone.tab"; | 44 | static const char strZONEINFO[] = "/usr/share/zoneinfo/zone.tab"; |
45 | static const char strMAP[] = "simple_grid_400"; | 45 | static const char strMAP[] = "citytime/simple_grid_400"; |
46 | 46 | ||
47 | // the maximum distance we'll allow the pointer to be away from a city | 47 | // the maximum distance we'll allow the pointer to be away from a city |
48 | // and still show the city's time | 48 | // and still show the city's time |
49 | static const int iTHRESHOLD = 50000; | 49 | static const int iTHRESHOLD = 50000; |
50 | 50 | ||
51 | // The label offset (how far away from pointer) | 51 | // The label offset (how far away from pointer) |
52 | static const int iLABELOFFSET = 8; | 52 | static const int iLABELOFFSET = 8; |
53 | 53 | ||
54 | // the size of the dot to draw, and where to start it | 54 | // the size of the dot to draw, and where to start it |
55 | static const int iCITYSIZE = 3; | 55 | static const int iCITYSIZE = 3; |
56 | const int iCITYOFFSET = 2; | 56 | const int iCITYOFFSET = 2; |
57 | 57 | ||
58 | // the darkening function | 58 | // the darkening function |
59 | static inline void darken( QImage *pImage, int start, int stop, int row ); | 59 | static inline void darken( QImage *pImage, int start, int stop, int row ); |
60 | static void dayNight( QImage *pImage ); | 60 | static void dayNight( QImage *pImage ); |
61 | 61 | ||
62 | ZoneField::ZoneField( const QString& strLine ) | 62 | ZoneField::ZoneField( const QString& strLine ) |
63 | { | 63 | { |
64 | // make a bunch of RegExp's to match the data from the line | 64 | // make a bunch of RegExp's to match the data from the line |
65 | QRegExp regCoord( "[-+][0-9]+" );// the latitude | 65 | QRegExp regCoord( "[-+][0-9]+" );// the latitude |
66 | QRegExp regCountry( "[A-Za-z]+/" ); // the country (not good enough) | 66 | QRegExp regCountry( "[A-Za-z]+/" ); // the country (not good enough) |
67 | QRegExp regCity( "[A-Za-z_-]*" ); // the city | 67 | QRegExp regCity( "[A-Za-z_-]*" ); // the city |
68 | 68 | ||
69 | int iStart, | 69 | int iStart, |
70 | iStop, | 70 | iStop, |
71 | iLen, | 71 | iLen, |
72 | tmp; | 72 | tmp; |
73 | QString strTmp; | 73 | QString strTmp; |
74 | // we should be able to assume that the country code is always the first | 74 | // we should be able to assume that the country code is always the first |
75 | // two chars, so just grap them and let it go... | 75 | // two chars, so just grap them and let it go... |
76 | strCountryCode = strLine.left( 2 ); | 76 | strCountryCode = strLine.left( 2 ); |
77 | iStart = regCoord.match( strLine, 0, &iLen ); | 77 | iStart = regCoord.match( strLine, 0, &iLen ); |
diff --git a/pics/simple_grid_400.png b/pics/simple_grid_400.png deleted file mode 100644 index 5e0e21d..0000000 --- a/pics/simple_grid_400.png +++ b/dev/null | |||
Binary files differ | |||