summaryrefslogtreecommitdiff
path: root/core/settings/citytime/zonemap.h
Side-by-side diff
Diffstat (limited to 'core/settings/citytime/zonemap.h') (more/less context) (show whitespace changes)
-rw-r--r--core/settings/citytime/zonemap.h10
1 files changed, 9 insertions, 1 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
@@ -34,7 +34,8 @@ class QComboBox;
class QLabel;
class QTimer;
class QToolButton;
-
+class QListViewItem;
+class QListView;
class ZoneField
@@ -63,6 +64,7 @@ public:
ZoneMap( QWidget *parent = 0, const char *name = 0 );
~ZoneMap();
void showZones( void ) const;
+ QWidget* selectionWidget( QWidget* parent );
// convert between the pixels on the image and the coordinates in the
// database
inline bool zoneToWin( int zoneX, int zoneY, int &winX, int &winY ) const;
@@ -87,6 +89,9 @@ protected:
virtual void resizeEvent( QResizeEvent *);
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 );
void showCity( ZoneField *city );
@@ -104,6 +109,9 @@ private:
QList<ZoneField> zones; // a linked list to hold all this information
StylusNormalizer norm;
+ QListView *cityView;
+ QString selectedCont;
+
//the True width and height of the map...
int wImg;
int hImg;