summaryrefslogtreecommitdiff
path: root/core/settings/citytime
Unidiff
Diffstat (limited to 'core/settings/citytime') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/citytime/zonemap.cpp2
1 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
@@ -21,49 +21,49 @@
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...
44static const char strZONEINFO[] = "/usr/share/zoneinfo/zone.tab"; 44static const char strZONEINFO[] = "/usr/share/zoneinfo/zone.tab";
45static const char strMAP[] = "simple_grid_400"; 45static 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
49static const int iTHRESHOLD = 50000; 49static const int iTHRESHOLD = 50000;
50 50
51// The label offset (how far away from pointer) 51// The label offset (how far away from pointer)
52static const int iLABELOFFSET = 8; 52static 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
55static const int iCITYSIZE = 3; 55static const int iCITYSIZE = 3;
56const int iCITYOFFSET = 2; 56const int iCITYOFFSET = 2;
57 57
58// the darkening function 58// the darkening function
59static inline void darken( QImage *pImage, int start, int stop, int row ); 59static inline void darken( QImage *pImage, int start, int stop, int row );
60static void dayNight( QImage *pImage ); 60static void dayNight( QImage *pImage );
61 61
62ZoneField::ZoneField( const QString& strLine ) 62ZoneField::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,