00001 #ifndef FORM_H 00002 #define FORM_H 00003 00004 #include <QWidget> 00005 #include "geocode_data_manager.h" 00006 00007 namespace Ui { 00008 class Form; 00009 } 00010 00011 00012 //structure for save markers data 00013 struct SMarker 00014 { 00015 SMarker() 00016 { 00017 east = 0; 00018 north = 0; 00019 caption = ""; 00020 }; 00021 SMarker(double _east, double _north, QString _caption) 00022 { 00023 east = _east; north = _north; caption = _caption; 00024 }; 00025 00026 double east; 00027 double north; 00028 QString caption; 00029 }; 00030 00031 00032 class Form : public QWidget 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 explicit Form(QWidget *parent = 0); 00038 ~Form(); 00039 00040 00041 00042 private slots: 00043 void goClicked(); 00044 00045 void showCoordinates(double east, double north, bool saveMarker = true); 00046 //set marker to map and save marker in markers list 00047 void setMarker(double east, double north, QString caption); 00048 void errorOccured(const QString&); 00049 00050 00051 00052 void on_lwMarkers_currentRowChanged(int currentRow); 00053 00054 void on_pbRemoveMarker_clicked(); 00055 00056 void on_zoomSpinBox_valueChanged(int arg1); 00057 00058 private: 00059 void getCoordinates(const QString& address); 00060 00061 00062 private: 00063 Ui::Form *ui; 00064 //GeocodeDataManager m_geocodeDataManager; 00065 //markers list 00066 QList <SMarker*> m_markers; 00067 }; 00068 00069 #endif // FORM_H