1
/***************************************************************************
2
qgsmapserverexport.h - Export QGIS MapCanvas to MapServer
3
--------------------------------------
5
Copyright : (C) 2003 by Gary E.Sherman
6
email : sherman at mrcc.com
7
***************************************************************************
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
14
***************************************************************************
20
#ifndef QGSMAPSERVEREXPORT_H
21
#define QGSMAPSERVEREXPORT_H
22
#include "ui_qgsmapserverexportbase.h"
26
/*! \class QgsMapServerExport
27
* \brief Class to handle reading and writing a Qgis project file
29
class QgsMapserverExport: public QDialog, private Ui::QgsMapserverExportBase
33
QgsMapserverExport( QgsMapCanvas *map = 0, QWidget* parent = 0,
34
Qt::WFlags fl = QgisGui::ModalDialogFlags );
35
~QgsMapserverExport();
36
//! Read the file and create the map
38
//! Write the contents of the map to a file
40
void setMapCanvas( QgsMapCanvas *map );
41
//! Open a file dialog, the type determined by action (SAVE AS or OPEN)
42
QString selectFileName();
43
//! get the basename of the file (no path, just the file name)
45
//! get the full path name of the map file
46
QString fullPathName();
47
//! Set the full path to the file
48
void setFileName( QString fileName );
56
void on_chkExpLayersOnly_clicked();
57
void on_btnChooseFile_clicked();
61
void writeMapFile( void );
67
static const int context_id = 0;
70
#endif //QGSMAPSERVEREXPORT_H