summaryrefslogtreecommitdiff
path: root/core/settings/citytime/zonemap.h
Side-by-side diff
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 @@
** not clear to you.
**
-**********************************************************************/
+**********************************************************************/
#ifndef ZONEMAP_H
@@ -35,5 +35,6 @@ class QLabel;
class QTimer;
class QToolButton;
-
+class QListViewItem;
+class QListView;
@@ -64,4 +65,5 @@ public:
~ZoneMap();
void showZones( void ) const;
+ QWidget* selectionWidget( QWidget* parent );
// convert between the pixels on the image and the coordinates in the
// database
@@ -88,4 +90,7 @@ protected:
virtual void drawContents( QPainter *p, int cx, int cy, int cw, int ch );
+private slots:
+ void slotGetCities( QListViewItem * );
+ void slotCitySelected( QListViewItem * );
private:
ZoneField *findCityNear( ZoneField *city, int key );
@@ -105,4 +110,7 @@ private:
StylusNormalizer norm;
+ QListView *cityView;
+ QString selectedCont;
+
//the True width and height of the map...
int wImg;
@@ -144,6 +152,6 @@ inline bool ZoneMap::zoneToWin( int zoneX, int zoneY,
return true;
}
-
-inline bool ZoneMap::winToZone( int winX, int winY,
+
+inline bool ZoneMap::winToZone( int winX, int winY,
int &zoneX, int &zoneY ) const
{
@@ -153,5 +161,5 @@ inline bool ZoneMap::winToZone( int winX, int winY,
// for now just return true...
return true;
-}
+}
#endif