Subversion Repositories public

Rev

Rev 276 | Rev 280 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 276 Rev 278
Line 20... Line 20...
20
#include <mapnik/color_factory.hpp>
20
#include <mapnik/color_factory.hpp>
21
#include <mapnik/image_util.hpp>
21
#include <mapnik/image_util.hpp>
22
#include <mapnik/config_error.hpp>
22
#include <mapnik/config_error.hpp>
23
#include <mapnik/load_map.hpp>
23
#include <mapnik/load_map.hpp>
24
#include <mapnik/save_map.hpp>
24
#include <mapnik/save_map.hpp>
-
 
25
#include <mapnik/version.hpp>
25
 
26
 
26
/* conversions */
27
/* conversions */
27
 
28
 
28
#define DEGREES      180.0
29
#define DEGREES      180.0
29
#define SEMICIRCLES  0x80000000
30
#define SEMICIRCLES  0x80000000
Line 260... Line 261...
260
 
261
 
261
	   void setDrawArea(const QLabel &lb) { label = (QLabel *)&lb; };
262
	   void setDrawArea(const QLabel &lb) { label = (QLabel *)&lb; };
262
	   void setShapePath(const QString &str) { if (str.isNull()) return; shapePath = str; };
263
	   void setShapePath(const QString &str) { if (str.isNull()) return; shapePath = str; };
263
	   void setXmlPath(const QString &path) { if (path.isNull()) return; XmlPath = path; };
264
	   void setXmlPath(const QString &path) { if (path.isNull()) return; XmlPath = path; };
264
	   bool getMap(double lx, double ly, double rx, double ry);
265
	   bool getMap(double lx, double ly, double rx, double ry);
265
	   QString getOutBuf () { return OutBuf; };
-
 
266
	   inline void setMapType(map_type mt) { __map_type = mt; }
266
	   inline void setMapType(map_type mt) { __map_type = mt; }
267
	   inline map_type getMapType() { return __map_type; }
267
	   inline map_type getMapType() { return __map_type; }
268
 
268
 
269
	   // Functions to parse the XML file
269
	   // Functions to parse the XML file
270
	   bool startDocument ();
270
	   bool startDocument ();
Line 280... Line 280...
280
	   QString getKey (int pos);
280
	   QString getKey (int pos);
281
	   TYPES getType(QString ty);
281
	   TYPES getType(QString ty);
282
	   char *getTypeText(TYPES type);
282
	   char *getTypeText(TYPES type);
283
	   bool getBool(QString b);
283
	   bool getBool(QString b);
284
	   unsigned colorToUInt(QString col);
284
	   unsigned colorToUInt(QString col);
-
 
285
	   color setColor(unsigned);
285
	   STYLE *findStyle(QString name);
286
	   STYLE *findStyle(QString name);
286
	   RULE *getLastRule(RULE *first);
287
	   RULE *getLastRule(RULE *first);
287
	   POINTSYMBOLIZER *getLastPointSymbolizer(POINTSYMBOLIZER *first);
288
	   POINTSYMBOLIZER *getLastPointSymbolizer(POINTSYMBOLIZER *first);
288
	   LINESYMBOLIZER *getLastLineSymbolizer(LINESYMBOLIZER *first);
289
	   LINESYMBOLIZER *getLastLineSymbolizer(LINESYMBOLIZER *first);
289
	   POLYGONSYMBOLIZER *getLastPolygonSymbolizer(POLYGONSYMBOLIZER *first);
290
	   POLYGONSYMBOLIZER *getLastPolygonSymbolizer(POLYGONSYMBOLIZER *first);
Line 307... Line 308...
307
	   QLabel *label;
308
	   QLabel *label;
308
	   QString shapePath;
309
	   QString shapePath;
309
	   QString pluginPath;
310
	   QString pluginPath;
310
	   QString fontPath;
311
	   QString fontPath;
311
	   QString XmlPath;
312
	   QString XmlPath;
312
	   QString OutBuf;
313
	   bool geographic;
313
	   map_type __map_type;
314
	   map_type __map_type;
314
	   CONTAINER Container;
315
	   CONTAINER Container;
315
	   bool ControlSet;
316
	   bool ControlSet;
316
	   int Field;
317
	   int Field;
317
	   int XmlLine;	// Line number of the current position in XML file
318
	   int XmlLine;	// Line number of the current position in XML file