Subversion Repositories public

Rev

Rev 283 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 283 Rev 284
Line 104... Line 104...
104
	QString city;
104
	QString city;
105
	double  lon;
105
	double  lon;
106
	double  lat;
106
	double  lat;
107
}CITIES;
107
}CITIES;
108
 
108
 
-
 
109
typedef struct
-
 
110
{
-
 
111
	double x;
-
 
112
	double y;
-
 
113
}ZOOM;
-
 
114
 
109
class wmsSelectorWidget : public QDialog,
115
class wmsSelectorWidget : public QDialog,
110
			  public QXmlDefaultHandler,
116
			  public QXmlDefaultHandler,
111
			  private Ui::wmsSelectorWidgetBase
117
			  private Ui::wmsSelectorWidgetBase
112
{
118
{
113
	Q_OBJECT
119
	Q_OBJECT
Line 200... Line 206...
200
	   // Functions to parse the XML file
206
	   // Functions to parse the XML file
201
	   bool startDocument ();
207
	   bool startDocument ();
202
	   bool startElement (const QString&, const QString&, const QString& , const QXmlAttributes&);
208
	   bool startElement (const QString&, const QString&, const QString& , const QXmlAttributes&);
203
	   bool endElement (const QString&, const QString&, const QString&);
209
	   bool endElement (const QString&, const QString&, const QString&);
204
	   bool characters (const QString&);
210
	   bool characters (const QString&);
-
 
211
	   QString getServer() { return urlWMS->url().url(); };
-
 
212
	   QString getLayers();
-
 
213
	   int getBands() { return edBands->value(); };
-
 
214
	   QString getStyles();
205
 
215
 
206
 
216
 
207
	public slots:
217
	public slots:
208
	   /*$PUBLIC_SLOTS$*/
218
	   /*$PUBLIC_SLOTS$*/
-
 
219
	   virtual void slotValueChanged(int);
-
 
220
	   virtual void slotSliderPressed();
-
 
221
	   virtual void slotSliderReleased();
209
	   virtual void slotGetCapabilities();
222
	   virtual void slotGetCapabilities();
210
	   virtual void slotDetails();
223
	   virtual void slotDetails();
211
	   virtual void slotAdded(QListWidgetItem *);
224
	   virtual void slotAdded(QListWidgetItem *);
212
	   virtual void slotRemoved(QListWidgetItem *);
225
	   virtual void slotRemoved(QListWidgetItem *);
213
	   virtual void slotUp(QListWidgetItem *);
226
	   virtual void slotUp(QListWidgetItem *);
Line 240... Line 253...
240
	   bool writeWMSTag(double, double, double, double, int, int);
253
	   bool writeWMSTag(double, double, double, double, int, int);
241
	   void setDimension(double &, double &, double &, double &, QListWidgetItem *);
254
	   void setDimension(double &, double &, double &, double &, QListWidgetItem *);
242
 
255
 
243
	private:
256
	private:
244
	   int id;			// ID used during download
257
	   int id;			// ID used during download
245
	   QString Data, MAP;
258
	   QString Data, MAP, Layers;
246
	   QHttp *http;
259
	   QHttp *http;
247
	   bool httpRequestAborted;
260
	   bool httpRequestAborted;
248
	   bool StyleCommas;
261
	   bool StyleCommas, Init;
249
	   QFile file;
262
	   QFile file;
250
	   KProgressDialog *progressDialog;
263
	   KProgressDialog *progressDialog;
251
	   ELEMENT element, el2;
264
	   ELEMENT element, el2;
252
	   ATTRIBUTE attribute;
265
	   ATTRIBUTE attribute;
253
	   QStringList Exception;	// List of exceptions of WMS server
266
	   QStringList Exception;	// List of exceptions of WMS server
254
	   QString WMSVersion;		// Version, WMS server supports
267
	   QString WMSVersion;		// Version, WMS server supports
255
	   SERVICE Service;
268
	   SERVICE Service;
256
	   REQUEST Request;
269
	   REQUEST Request;
257
	   LAYER *Layer, *firstLayer;
270
	   LAYER *Layer, *firstLayer;
-
 
271
	   int zLevel;			// zoom level
258
	   int line;			// actual line number during parsing
272
	   int line;			// actual line number during parsing
259
	   int lcount;			// counts the deepnes of layers
273
	   int lcount;			// counts the deepnes of layers
-
 
274
	   bool sliderPressed;
260
};
275
};
261
 
276
 
262
#endif
277
#endif
263
 
278