[QGIS Commit] r13216 - in trunk/qgis/src: app ui
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Mar 31 18:48:27 EDT 2010
Author: jef
Date: 2010-03-31 18:48:26 -0400 (Wed, 31 Mar 2010)
New Revision: 13216
Removed:
trunk/qgis/src/app/qgsmapserverexport.cpp
trunk/qgis/src/app/qgsmapserverexport.h
trunk/qgis/src/ui/qgsmapserverexportbase.ui
Modified:
trunk/qgis/src/ui/CMakeLists.txt
Log:
remove unused c++ mapserver export (and Qt3 dependency in UI)
Deleted: trunk/qgis/src/app/qgsmapserverexport.cpp
===================================================================
--- trunk/qgis/src/app/qgsmapserverexport.cpp 2010-03-31 21:09:08 UTC (rev 13215)
+++ trunk/qgis/src/app/qgsmapserverexport.cpp 2010-03-31 22:48:26 UTC (rev 13216)
@@ -1,373 +0,0 @@
-/***************************************************************************
- qgsmapserverexport.cpp - Export QGIS MapCanvas to MapServer
- --------------------------------------
-Date : 8-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$ */
-
-#include "qgsmapserverexport.h"
-
-#include "qgis.h"
-#include "qgsdatasourceuri.h"
-#include "qgshelpviewer.h"
-#include "qgscontexthelp.h"
-#include "qgsmapcanvas.h"
-#include "qgsmaplayer.h"
-#include "qgsrectangle.h"
-#include "qgsvectorlayer.h"
-#include "qgsvectordataprovider.h"
-
-#include <QFileDialog>
-#include <QFileInfo>
-#include <QMessageBox>
-
-#include <fstream>
-#include "qgslogger.h"
-
-// constructor
-QgsMapserverExport::QgsMapserverExport( QgsMapCanvas * _map, QWidget * parent, Qt::WFlags fl )
- : QDialog( parent, fl ), map( _map )
-{
- setupUi( this );
- connect( buttonBox, SIGNAL( helpRequested() ), this, SLOT( help() ) );
- connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
- connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
- // These values shouldn't be translated, the units should be in english in the map file
- // Qt designer adds translate() by default
- cmbMapUnits->addItem( QString::fromUtf8( "dd" ) );
- cmbMapUnits->addItem( QString::fromUtf8( "feet" ) );
- cmbMapUnits->addItem( QString::fromUtf8( "meters" ) );
- cmbMapUnits->addItem( QString::fromUtf8( "miles" ) );
- cmbMapUnits->addItem( QString::fromUtf8( "inches" ) );
- cmbMapUnits->addItem( QString::fromUtf8( "kilometers" ) );
-}
-
-// Default destructor
-QgsMapserverExport::~QgsMapserverExport()
-{
-}
-
-// Get the base name for the map file
-QString QgsMapserverExport::baseName()
-{
- QFileInfo fi( txtMapFilePath->text() );
- return fi.baseName( true );
-}
-
-// Write the map file
-bool QgsMapserverExport::write()
-{
-
- //QMessageBox::information(0,"Full Path",fullPath);
- QMessageBox::StandardButton okToSave = QMessageBox::Ok;
- // Check for file and prompt for overwrite if it exists
- if ( QFile::exists( txtMapFilePath->text() ) )
- {
- okToSave = QMessageBox::warning( this, tr( "Overwrite File?" ),
- tr( "%1 exists.\nDo you want to overwrite it?" ).arg( txtMapFilePath->text() ),
- QMessageBox::Ok | QMessageBox::Cancel );
- }
- if ( okToSave == QMessageBox::Ok )
- {
- // write the project information to the selected file
- writeMapFile();
- return true;
- }
- else
- {
- return false;
- }
-}
-
-
-void QgsMapserverExport::setFileName( QString fn )
-{
- fullPath = fn;
-}
-
-QString QgsMapserverExport::fullPathName()
-{
- return fullPath;
-}
-
-void QgsMapserverExport::writeMapFile()
-{
- // write the map file, making massive assumptions about default values
- QgsDebugMsg( QString( "Opening map file %1" ).arg( txtMapFilePath->text() ) );
- std::ofstream mapFile( txtMapFilePath->text().toLocal8Bit().data() );
- if ( !mapFile.fail() )
- {
- // XXX So, what encoding should we use here???
- mapFile << "# Map file generated by QGIS version " << QGis::QGIS_VERSION << std::endl;
- mapFile << "# Edit this file to customize for your interface" << std::endl;
- mapFile << "# Not all sections are complete. See comments for details." << std::endl;
- if ( !chkExpLayersOnly->isChecked() )
- {
- // header
- mapFile << "NAME " << txtMapName->text().toLocal8Bit().data() << std::endl;
- mapFile << "STATUS ON" << std::endl;
- mapFile << "\n# Map image size. Change size as desired" << std::endl;
- mapFile << "SIZE " << txtMapWidth->text().toLocal8Bit().data() << " " << txtMapHeight->text().toLocal8Bit().data() << std::endl;
- // web interface definition - this is minimal!
- mapFile << "#" << std::endl;
- mapFile << "# Start of web interface definition. Only the TEMPLATE parameter" << std::endl;
- mapFile << "# must be specified to display a map. See Mapserver documentation" << std::endl;
- mapFile << "#" << std::endl;
- mapFile << "WEB" << std::endl;
- // if no header is supplied, write the header line but comment it out
- if ( txtWebHeader->text().isEmpty() )
- {
- mapFile << " # HEADER" << std::endl;
- }
- else
- {
- // header provided - write it
- mapFile << " HEADER " << txtWebHeader->text().toLocal8Bit().data() << std::endl;
- }
- // if no template provided, write the template line but comment it out
- if ( txtWebTemplate->text().isEmpty() )
- {
- mapFile << " # TEMPLATE" << std::endl;
- }
- else
- {
- // template provided - write it
- mapFile << " TEMPLATE " << txtWebTemplate->text().toLocal8Bit().data() << std::endl;
- }
- // if no footer provided, write the footer line but comment it out
- if ( txtWebFooter->text().isEmpty() )
- {
- mapFile << " # FOOTER" << std::endl;
- }
- else
- {
- mapFile << " FOOTER " << txtWebFooter->text().toLocal8Bit().data() << std::endl;
- }
- QString minimumScale = txtMinScale->text().isEmpty() ? "#MINSCALE" : "MINSCALE";
- QString maximumScale = txtMinScale->text().isEmpty() ? " #MAXSCALE " : " MAXSCALE ";
- // write min and maxscale
- mapFile << minimumScale.toLocal8Bit().data() << txtMinScale->text().toLocal8Bit().data() << std::endl;
- mapFile << maximumScale.toLocal8Bit().data() << txtMaxScale->text().toLocal8Bit().data() << std::endl;
- // write comments about the imagepath and image url
- mapFile << "# Set IMAGEPATH to the path where mapserver should\n" <<
- "# write its output\n" <<
- " IMAGEPATH '/tmp/'" << std::endl;
- mapFile << "# Set IMAGEURL to the url that points to IMAGEPATH" << std::endl;
- mapFile << " #IMAGEURL '/map_output/'" << std::endl;
- // end of web section
- mapFile << "END" << std::endl;
-
- // extent
- mapFile << "\n# Extent based on full extent of QGIS view" << std::endl;
- mapFile << "EXTENT ";
- QgsRectangle extent = map->extent();
- mapFile << extent.xMinimum() << " " << extent.yMinimum() << " ";
- mapFile << extent.xMaximum() << " " << extent.yMaximum() << std::endl;
- // units
- mapFile << "UNITS " << cmbMapUnits->currentText().toLocal8Bit().data() << std::endl;
- // image info
- mapFile << "IMAGECOLOR 255 255 255" << std::endl;
- mapFile << "IMAGETYPE " << cmbMapImageType->currentText().toLocal8Bit().data() << std::endl;
- // projection information TODO: support projections :)
- mapFile << "# Projection definition" << std::endl;
- mapFile << "# Projections are not currenlty supported. If desired, add your own" << std::endl;
- mapFile << "# projection information based on Mapserver documentation." << std::endl;
- mapFile << "#" << std::endl;
-
- }
- else
- {
- mapFile << " # This file contains layer definitions only and is not a complete" << std::endl;
- mapFile << " # Mapserver map file." << std::endl;
- }
-
- // write layer definitions
- for ( int i = 0; i < map->layerCount(); i++ )
- {
- bool isPolygon = false;
- bool isLine = false;
- QgsMapLayer *lyr = map->layer( i );
- QgsDebugMsg( "Mapsrver Export Processing Layer" );
- mapFile << "LAYER" << std::endl;
- QString name = lyr->name().lower();
- // MapServer NAME must be < 20 char and unique
- name.replace( QRegExp( " " ), "_" );
- name.replace( QRegExp( "\\." ), "_" );
- name.replace( QRegExp( "\\(" ), "_" );
- name.replace( QRegExp( "\\)" ), "_" );
- mapFile << " NAME " << name.toLocal8Bit().data() << std::endl;
- // feature type
- QgsDebugMsg( "\tMapsrver Export checking feature type" );
- mapFile << " TYPE ";
- if ( lyr->type() == QgsMapLayer::VectorLayer )
- {
- QgsVectorLayer* vlayer = qobject_cast<QgsVectorLayer *>( lyr );
- switch ( vlayer->wkbType() )
- {
- case QGis::WKBPoint:
- case QGis::WKBMultiPoint:
- mapFile << "POINT";
- break;
- case QGis::WKBLineString:
- case QGis::WKBMultiLineString:
- mapFile << "LINE";
- isLine = true;
- break;
- case QGis::WKBPolygon:
- case QGis::WKBMultiPolygon:
- mapFile << "POLYGON";
- isPolygon = true;
- break;
-
- }
- }
- if ( lyr->type() == QgsMapLayer::RasterLayer )
- {
- mapFile << "RASTER";
- }
- mapFile << std::endl;
-
- QgsDebugMsg( "\tMapsrver Export checking visibility" );
- // set visibility (STATUS)
- mapFile << " STATUS ";
-
- // TODO: what to do with visibility
- //if (lyr->isVisible())
- //{
- mapFile << "ON";
- //} else
- //{
- // mapFile << "OFF";
- //}
- mapFile << std::endl;
-
- // data source (DATA)
- // Data source spec depends on layer type
- QgsDebugMsg( "\tMapsrver Export checking layer type" );
- switch ( lyr->type() )
- {
- case QgsMapLayer::VectorLayer:
- // get the provider type
- {
- QgsVectorLayer* vlyr = qobject_cast<QgsVectorLayer *>( lyr );
- QString providerType = vlyr->providerType();
- if ( providerType == "postgres" )
- {
- QgsDataSourceURI dUri( vlyr->dataProvider()->dataSourceUri() );
- mapFile << "CONNECTION \"user=" << dUri.username.toLocal8Bit().data();
- if ( dUri.password.length() > 0 )
- {
- mapFile << " password=" << dUri.password.toLocal8Bit().data();
- }
- mapFile << " dbname=" << dUri.database.toLocal8Bit().data()
- << " host=" << dUri.host.toLocal8Bit().data()
- << " port=" << dUri.port.toLocal8Bit().data()
- << "\"" << std::endl;
- mapFile << "CONNECTIONTYPE postgis" << std::endl;
- mapFile << "DATA \"" << dUri.geometryColumn.toLocal8Bit().data() << " from "
- << dUri.table.toLocal8Bit().data() << "\"" << std::endl;
- if ( dUri.sql.length() > 0 )
- {
- mapFile << "FILTER \"" << dUri.sql.toLocal8Bit().data() << "\"" << std::endl;
- }
-
- }
- else
- {
-
- // must be an ogr
- mapFile << " DATA " << lyr->source().toLocal8Bit().data() << std::endl;
- }
- }
- break;
- case QgsMapLayer::RasterLayer:
- mapFile << " DATA " << lyr->source().toLocal8Bit().data() << std::endl;
-
- break;
- }
- QgsDebugMsg( "\tMapserver Export creating symbol entries" );
- // create a simple class entry based on red fill color and black outline color
- //TODO: adapt the following section to the new symbology
-
- mapFile << " CLASS" << std::endl;
- //QListViewItem *li = map->getLegend()->currentItem();
- // return li->text(0);
- QgsDebugMsg( "\tMapsrver Export symbol name" );
- mapFile << " NAME \"" << lyr->name().toLocal8Bit().data() << "\"" << std::endl;
- mapFile << " # TEMPLATE" << std::endl;
- if ( isPolygon )
- {
- QgsDebugMsg( "\tMapsrver Export symbol fill color" );
- // use random fill colors
- // TODO Get fill color from the renderer
- // TODO Figure out what to do for layers that are
- // rendered with other than the simple symbol
- // renderer.
- int red = 1 + ( int )( 255.0 * rand() / ( RAND_MAX + 1.0 ) );
- int green = 1 + ( int )( 255.0 * rand() / ( RAND_MAX + 1.0 ) );
- int blue = 1 + ( int )( 255.0 * rand() / ( RAND_MAX + 1.0 ) );
-
- mapFile << " COLOR " << red << " " << green << " " << blue << std::endl;
- }
- QgsDebugMsg( "\tMapsrver Export checking for line symbol " );
- if ( isPolygon || isLine )
- {
- // use line color
- // TODO Get line color from the renderer
- int red = 1 + ( int )( 255.0 * rand() / ( RAND_MAX + 1.0 ) );
- int green = 1 + ( int )( 255.0 * rand() / ( RAND_MAX + 1.0 ) );
- int blue = 1 + ( int )( 255.0 * rand() / ( RAND_MAX + 1.0 ) );
- mapFile << " OUTLINECOLOR " << red << " "
- << green << " " << blue << std::endl;
- }
- mapFile << " END" << std::endl;
- mapFile << "END" << std::endl;
- QgsDebugMsg( "\tMapsrver Export layer definition done..." );
- }
- if ( !chkExpLayersOnly->isChecked() )
- {
- mapFile << "END # Map File";
- }
- mapFile.flush();
- mapFile.close();
- }
- else
- {
- }
-}
-
-void QgsMapserverExport::on_chkExpLayersOnly_clicked()
-{
- // disable inputs if only layer objects are being written
- grpMap->setEnabled( !chkExpLayersOnly->isChecked() );
- grpWeb->setEnabled( !chkExpLayersOnly->isChecked() );
-}
-
-void QgsMapserverExport::on_btnChooseFile_clicked()
-{
- QString s = QFileDialog::getSaveFileName(
- this,
- "Choose a file name for the exported map file",
- "./",
- "Mapserver files (*.map)" );
- txtMapFilePath->setText( s );
-}
-
-void QgsMapserverExport::help()
-{
- QgsContextHelp::run( context_id );
- //QMessageBox::information(this, "Help","Help");
- //QgsHelpViewer *hv = new QgsHelpViewer( this );
- // causes problems in qt3.1.x: hv->setModal(false);
- //hv->setCaption( "QGIS Help - Mapserver Export" );
- //hv->show();
-}
Deleted: trunk/qgis/src/app/qgsmapserverexport.h
===================================================================
--- trunk/qgis/src/app/qgsmapserverexport.h 2010-03-31 21:09:08 UTC (rev 13215)
+++ trunk/qgis/src/app/qgsmapserverexport.h 2010-03-31 22:48:26 UTC (rev 13216)
@@ -1,71 +0,0 @@
-/***************************************************************************
- 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
-#include "ui_qgsmapserverexportbase.h"
-#include "qgisgui.h"
-class QgsMapCanvas;
-
-/*! \class QgsMapServerExport
-* \brief Class to handle reading and writing a Qgis project file
-*/
-class QgsMapserverExport: public QDialog, private Ui::QgsMapserverExportBase
-{
- Q_OBJECT
- public:
- QgsMapserverExport( QgsMapCanvas *map = 0, QWidget* parent = 0,
- Qt::WFlags fl = QgisGui::ModalDialogFlags );
- ~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 on_chkExpLayersOnly_clicked();
- void on_btnChooseFile_clicked();
- void help();
-
- private:
- void writeMapFile( void );
- QString fileName;
- QString fullPath;
- bool neverSaved;
- QgsMapCanvas *map;
- int action;
- static const int context_id = 0;
-};
-
-#endif //QGSMAPSERVEREXPORT_H
-
Modified: trunk/qgis/src/ui/CMakeLists.txt
===================================================================
--- trunk/qgis/src/ui/CMakeLists.txt 2010-03-31 21:09:08 UTC (rev 13215)
+++ trunk/qgis/src/ui/CMakeLists.txt 2010-03-31 22:48:26 UTC (rev 13216)
@@ -1,3 +1,4 @@
+#
FILE(GLOB QGIS_UIS "${CMAKE_CURRENT_SOURCE_DIR}/*.ui")
FILE(GLOB SYMBOLLAYER_UIS "${CMAKE_CURRENT_SOURCE_DIR}/symbollayer/*.ui")
Deleted: trunk/qgis/src/ui/qgsmapserverexportbase.ui
===================================================================
--- trunk/qgis/src/ui/qgsmapserverexportbase.ui 2010-03-31 21:09:08 UTC (rev 13215)
+++ trunk/qgis/src/ui/qgsmapserverexportbase.ui 2010-03-31 22:48:26 UTC (rev 13216)
@@ -1,328 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>QgsMapserverExportBase</class>
- <widget class="QDialog" name="QgsMapserverExportBase">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>410</width>
- <height>416</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>Export to Mapserver</string>
- </property>
- <property name="sizeGripEnabled">
- <bool>true</bool>
- </property>
- <property name="modal">
- <bool>true</bool>
- </property>
- <layout class="QGridLayout">
- <property name="margin">
- <number>10</number>
- </property>
- <property name="spacing">
- <number>6</number>
- </property>
- <item row="0" column="0">
- <widget class="QLabel" name="textLabel7">
- <property name="text">
- <string>Map file</string>
- </property>
- <property name="buddy">
- <cstring>txtMapFilePath</cstring>
- </property>
- </widget>
- </item>
- <item row="1" column="0" colspan="2">
- <widget class="QCheckBox" name="chkExpLayersOnly">
- <property name="text">
- <string>Export LAYER information only</string>
- </property>
- </widget>
- </item>
- <item row="0" column="2">
- <widget class="QPushButton" name="btnChooseFile">
- <property name="text">
- <string>...</string>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QLineEdit" name="txtMapFilePath"/>
- </item>
- <item row="2" column="0" colspan="3">
- <widget class="Q3GroupBox" name="grpMap">
- <property name="title">
- <string>Map</string>
- </property>
- <layout class="QGridLayout">
- <property name="margin">
- <number>10</number>
- </property>
- <property name="spacing">
- <number>6</number>
- </property>
- <item row="0" column="0">
- <widget class="QLabel" name="textLabel1">
- <property name="toolTip">
- <string/>
- </property>
- <property name="text">
- <string>Name</string>
- </property>
- <property name="buddy">
- <cstring>txtMapName</cstring>
- </property>
- </widget>
- </item>
- <item row="0" column="7">
- <widget class="QLabel" name="textLabel2_2">
- <property name="text">
- <string>Height</string>
- </property>
- <property name="buddy">
- <cstring>txtMapHeight</cstring>
- </property>
- </widget>
- </item>
- <item row="1" column="1" colspan="2">
- <widget class="QComboBox" name="cmbMapUnits"/>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="textLabel3">
- <property name="text">
- <string>Units</string>
- </property>
- <property name="buddy">
- <cstring>cmbMapUnits</cstring>
- </property>
- </widget>
- </item>
- <item row="1" column="3" colspan="2">
- <widget class="QLabel" name="textLabel4">
- <property name="text">
- <string>Image type</string>
- </property>
- <property name="buddy">
- <cstring>cmbMapImageType</cstring>
- </property>
- </widget>
- </item>
- <item row="1" column="5" colspan="3">
- <widget class="QComboBox" name="cmbMapImageType">
- <item>
- <property name="text">
- <string>gif</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>gtiff</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>jpeg</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>png</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>swf</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>userdefined</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>wbmp</string>
- </property>
- </item>
- </widget>
- </item>
- <item row="2" column="0" colspan="2">
- <widget class="QLabel" name="textLabel6">
- <property name="text">
- <string>MinScale</string>
- </property>
- <property name="buddy">
- <cstring>txtMinScale</cstring>
- </property>
- </widget>
- </item>
- <item row="2" column="5" colspan="2">
- <widget class="QLabel" name="textLabel6_2">
- <property name="text">
- <string>MaxScale</string>
- </property>
- <property name="buddy">
- <cstring>txtMaxScale</cstring>
- </property>
- </widget>
- </item>
- <item row="2" column="2" colspan="2">
- <widget class="QLineEdit" name="txtMinScale"/>
- </item>
- <item row="2" column="7" colspan="2">
- <widget class="QLineEdit" name="txtMaxScale"/>
- </item>
- <item row="0" column="1" colspan="3">
- <widget class="QLineEdit" name="txtMapName">
- <property name="toolTip">
- <string>Prefix attached to map, scalebar and legend GIF filenames created using this MapFile. It should be kept short.</string>
- </property>
- </widget>
- </item>
- <item row="0" column="6">
- <widget class="QLineEdit" name="txtMapWidth"/>
- </item>
- <item row="0" column="8">
- <widget class="QLineEdit" name="txtMapHeight"/>
- </item>
- <item row="0" column="4" colspan="2">
- <widget class="QLabel" name="textLabel2">
- <property name="text">
- <string>Width</string>
- </property>
- <property name="buddy">
- <cstring>txtMapWidth</cstring>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item row="3" column="0" colspan="3">
- <widget class="Q3GroupBox" name="grpWeb">
- <property name="title">
- <string>Web Interface Definition</string>
- </property>
- <layout class="QGridLayout">
- <property name="margin">
- <number>10</number>
- </property>
- <property name="spacing">
- <number>6</number>
- </property>
- <item row="0" column="0">
- <widget class="QLabel" name="textLabel5">
- <property name="text">
- <string>Header</string>
- </property>
- <property name="buddy">
- <cstring>txtWebHeader</cstring>
- </property>
- </widget>
- </item>
- <item row="2" column="0">
- <widget class="QLabel" name="textLabel5_3">
- <property name="text">
- <string>Footer</string>
- </property>
- <property name="buddy">
- <cstring>txtWebFooter</cstring>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="textLabel5_2">
- <property name="text">
- <string>Template</string>
- </property>
- <property name="buddy">
- <cstring>txtWebTemplate</cstring>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QLineEdit" name="txtWebHeader"/>
- </item>
- <item row="1" column="1">
- <widget class="QLineEdit" name="txtWebTemplate"/>
- </item>
- <item row="2" column="1">
- <widget class="QLineEdit" name="txtWebFooter"/>
- </item>
- </layout>
- </widget>
- </item>
- <item row="4" column="0" colspan="3">
- <widget class="QDialogButtonBox" name="buttonBox">
- <property name="standardButtons">
- <set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <layoutdefault spacing="6" margin="11"/>
- <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
- <customwidgets>
- <customwidget>
- <class>Q3GroupBox</class>
- <extends>QGroupBox</extends>
- <header>Qt3Support/Q3GroupBox</header>
- <container>1</container>
- </customwidget>
- </customwidgets>
- <tabstops>
- <tabstop>txtMapFilePath</tabstop>
- <tabstop>btnChooseFile</tabstop>
- <tabstop>chkExpLayersOnly</tabstop>
- <tabstop>txtMapName</tabstop>
- <tabstop>txtMapWidth</tabstop>
- <tabstop>txtMapHeight</tabstop>
- <tabstop>cmbMapUnits</tabstop>
- <tabstop>cmbMapImageType</tabstop>
- <tabstop>txtMinScale</tabstop>
- <tabstop>txtMaxScale</tabstop>
- <tabstop>txtWebHeader</tabstop>
- <tabstop>txtWebTemplate</tabstop>
- <tabstop>txtWebFooter</tabstop>
- </tabstops>
- <resources/>
- <connections>
- <connection>
- <sender>buttonBox</sender>
- <signal>accepted()</signal>
- <receiver>QgsMapserverExportBase</receiver>
- <slot>accept()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>349</x>
- <y>393</y>
- </hint>
- <hint type="destinationlabel">
- <x>404</x>
- <y>317</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>buttonBox</sender>
- <signal>rejected()</signal>
- <receiver>QgsMapserverExportBase</receiver>
- <slot>reject()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>280</x>
- <y>386</y>
- </hint>
- <hint type="destinationlabel">
- <x>404</x>
- <y>282</y>
- </hint>
- </hints>
- </connection>
- </connections>
-</ui>
More information about the QGIS-commit
mailing list