summaryrefslogtreecommitdiff
path: root/core/settings/citytime/zonemap.h
Unidiff
Diffstat (limited to 'core/settings/citytime/zonemap.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/citytime/zonemap.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/core/settings/citytime/zonemap.h b/core/settings/citytime/zonemap.h
index c9c2035..ea0142b 100644
--- a/core/settings/citytime/zonemap.h
+++ b/core/settings/citytime/zonemap.h
@@ -17,5 +17,5 @@
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#ifndef ZONEMAP_H 21#ifndef ZONEMAP_H
@@ -35,5 +35,6 @@ class QLabel;
35class QTimer; 35class QTimer;
36class QToolButton; 36class QToolButton;
37 37class QListViewItem;
38class QListView;
38 39
39 40
@@ -64,4 +65,5 @@ public:
64 ~ZoneMap(); 65 ~ZoneMap();
65 void showZones( void ) const; 66 void showZones( void ) const;
67 QWidget* selectionWidget( QWidget* parent );
66 // convert between the pixels on the image and the coordinates in the 68 // convert between the pixels on the image and the coordinates in the
67 // database 69 // database
@@ -88,4 +90,7 @@ protected:
88 virtual void drawContents( QPainter *p, int cx, int cy, int cw, int ch ); 90 virtual void drawContents( QPainter *p, int cx, int cy, int cw, int ch );
89 91
92private slots:
93 void slotGetCities( QListViewItem * );
94 void slotCitySelected( QListViewItem * );
90private: 95private:
91 ZoneField *findCityNear( ZoneField *city, int key ); 96 ZoneField *findCityNear( ZoneField *city, int key );
@@ -105,4 +110,7 @@ private:
105 StylusNormalizer norm; 110 StylusNormalizer norm;
106 111
112 QListView *cityView;
113 QString selectedCont;
114
107 //the True width and height of the map... 115 //the True width and height of the map...
108 int wImg; 116 int wImg;
@@ -144,6 +152,6 @@ inline bool ZoneMap::zoneToWin( int zoneX, int zoneY,
144 return true; 152 return true;
145} 153}
146 154
147inline bool ZoneMap::winToZone( int winX, int winY, 155inline bool ZoneMap::winToZone( int winX, int winY,
148 int &zoneX, int &zoneY ) const 156 int &zoneX, int &zoneY ) const
149{ 157{
@@ -153,5 +161,5 @@ inline bool ZoneMap::winToZone( int winX, int winY,
153 // for now just return true... 161 // for now just return true...
154 return true; 162 return true;
155} 163}
156 164
157#endif 165#endif