00001 #ifndef MAPVIEWER_H 00002 #define MAPVIEWER_H 00003 00004 #include <QtGui> 00005 #include "../../../qmapcontrol.h" 00006 using namespace qmapcontrol; 00007 class Mapviewer : public QMainWindow 00008 { 00009 Q_OBJECT 00010 00011 public: 00012 Mapviewer(QWidget *parent = 0); 00013 00014 ~Mapviewer(); 00015 00016 private: 00017 MapControl* mc; 00018 MapAdapter* mapadapter; 00019 Layer* mainlayer; 00020 00021 void addZoomButtons(); 00022 00023 public slots: 00024 void coordinateClicked(const QMouseEvent* evnt, const QPointF coordinate); 00025 00026 protected: 00027 virtual void resizeEvent ( QResizeEvent * event ); 00028 }; 00029 00030 #endif