QGIS/src/qgsmapserverexport.h
mcoletti 71b0638251 qgsgrassedit.h:
- added include for <vector>

qgis.h:

  - added WKBUnknown to enumerated list to be used as error state

qgisapp.cpp:

  - fixed a for loop

qgisapp.h, qgisiface.h, qgslegend.h, qgslegenditem.h, qgsmapcanvs.h, qgsvectorlayer.h:

  - made copy ctor and assignment operator private since we won't be copying
    any of these

qgsattributetable.cpp, qgsrasterlayer.cpp, qgssymbologyutils.cpp:

  - functions that say they return something should actually return something

*renderer.h:

  - made dtors virtual

qgscoordinatetransform.h:

  - added initializer for xMax

qgsgeomtypedialog.cpp:

  - added return of WKBUnknown when given bad data

qgslabel.cpp, qgslabeldialog.cpp:

  - used static_cast to stomp compiler warning

qgsmapcanvas.cpp:

  - made CanvasProperties a class form struct, partly to find work-around for
    gcc bug and partly to ensure that ctor and assignment operator were
    disabled

  - ensured that members were in the same order in initializer list as they
    were declared

  - now use QgsScaleCalculator::units

qgsproject.cpp:

  - now read and write map units; still need to tie it in with more code

qgsprojectproperties.cpp:

  - now use canonical map units stored in QgsProject singleton object

qgsscalecalculator:

  - now prefer to use QgsScaleCalculator::units instead of int


And many minor formatting changes.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2175 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-26 17:28:03 +00:00

71 lines
2.1 KiB
C++

/***************************************************************************
qgsmapserverexport.h - Export QGIS MapCanvas to MapServer
--------------------------------------
Date : 08-Nov-2003
Copyright : (C) 2003 by Gary E.Sherman
email : sherman at mrcc.com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
$Id$
*/
#ifndef QGSMAPSERVEREXPORT_H
#define QGSMAPSERVEREXPORT_H
#ifdef WIN32
#include "qgsmapserverexportbase.h"
#else
#include "qgsmapserverexportbase.uic.h"
#endif
class QgsMapCanvas;
/*! \class QgsMapServerExport
* \brief Class to handle reading and writing a Qgis project file
*/
class QgsMapserverExport:public QgsMapserverExportBase
{
Q_OBJECT
public:
QgsMapserverExport(QgsMapCanvas *map=0, QWidget* parent = 0,
const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~QgsMapserverExport();
//! Read the file and create the map
bool read();
//! Write the contents of the map to a file
bool write();
void setMapCanvas(QgsMapCanvas *map);
//! Open a file dialog, the type determined by action (SAVE AS or OPEN)
QString selectFileName();
//! get the basename of the file (no path, just the file name)
QString baseName();
//! get the full path name of the map file
QString fullPathName();
//! Set the full path to the file
void setFileName(QString filename);
enum ACTION {
SAVE,
SAVEAS,
OPEN
};
public slots:
void showHelp();
private:
void writeMapFile(void);
QString fileName;
QString fullPath;
bool neverSaved;
QgsMapCanvas *map;
int action;
};
#endif //QGSMAPSERVEREXPORT_H