mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
Updated mapserver export tool to support context help. git-svn-id: http://svn.osgeo.org/qgis/trunk@6124 c8812cc2-4d05-0410-92ff-de0c093fc19c
547 lines
15 KiB
XML
547 lines
15 KiB
XML
<ui version="4.0" >
|
|
<author>Gary Sherman</author>
|
|
<comment></comment>
|
|
<exportmacro></exportmacro>
|
|
<class>QgsMapserverExportBase</class>
|
|
<widget class="QDialog" name="QgsMapserverExportBase" >
|
|
<property name="geometry" >
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>485</width>
|
|
<height>438</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle" >
|
|
<string>Export to Mapserver</string>
|
|
</property>
|
|
<property name="sizeGripEnabled" >
|
|
<bool>true</bool>
|
|
</property>
|
|
<layout class="QGridLayout" >
|
|
<property name="margin" >
|
|
<number>9</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item row="5" column="0" colspan="3" >
|
|
<layout class="QHBoxLayout" >
|
|
<property name="margin" >
|
|
<number>0</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QPushButton" name="buttonHelp" >
|
|
<property name="text" >
|
|
<string>&Help</string>
|
|
</property>
|
|
<property name="shortcut" >
|
|
<string>F1</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer>
|
|
<property name="orientation" >
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeType" >
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
</property>
|
|
<property name="sizeHint" >
|
|
<size>
|
|
<width>20</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="buttonOk" >
|
|
<property name="text" >
|
|
<string>&OK</string>
|
|
</property>
|
|
<property name="shortcut" >
|
|
<string/>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="default" >
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="buttonCancel" >
|
|
<property name="text" >
|
|
<string>&Cancel</string>
|
|
</property>
|
|
<property name="shortcut" >
|
|
<string/>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="4" column="0" colspan="3" >
|
|
<widget class="Q3GroupBox" name="grpWeb" >
|
|
<property name="title" >
|
|
<string>Web Interface Definition</string>
|
|
</property>
|
|
<property name="orientation" >
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<layout class="QGridLayout" >
|
|
<property name="margin" >
|
|
<number>0</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>0</number>
|
|
</property>
|
|
<item row="0" column="0" >
|
|
<layout class="QHBoxLayout" >
|
|
<property name="margin" >
|
|
<number>4</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="textLabel5_2" >
|
|
<property name="minimumSize" >
|
|
<size>
|
|
<width>60</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="text" >
|
|
<string>Template</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>txtWebTemplate</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="txtWebTemplate" >
|
|
<property name="toolTip" >
|
|
<string>Path to the MapServer template file</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnChooseTemplateFile" >
|
|
<property name="text" >
|
|
<string>...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="1" column="0" >
|
|
<layout class="QHBoxLayout" >
|
|
<property name="margin" >
|
|
<number>4</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="textLabel5" >
|
|
<property name="minimumSize" >
|
|
<size>
|
|
<width>60</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="text" >
|
|
<string>Header</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>txtWebHeader</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="txtWebHeader" />
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnChooseHeaderFile" >
|
|
<property name="text" >
|
|
<string>...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="2" column="0" >
|
|
<layout class="QHBoxLayout" >
|
|
<property name="margin" >
|
|
<number>4</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="textLabel5_3" >
|
|
<property name="minimumSize" >
|
|
<size>
|
|
<width>60</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="text" >
|
|
<string>Footer</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>txtWebFooter</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="txtWebFooter" />
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnChooseFooterFile" >
|
|
<property name="text" >
|
|
<string>...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0" colspan="3" >
|
|
<widget class="Q3GroupBox" name="grpMap" >
|
|
<property name="title" >
|
|
<string>Map</string>
|
|
</property>
|
|
<property name="orientation" >
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<layout class="QGridLayout" >
|
|
<property name="margin" >
|
|
<number>0</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>0</number>
|
|
</property>
|
|
<item row="2" column="0" >
|
|
<layout class="QHBoxLayout" >
|
|
<property name="margin" >
|
|
<number>4</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="textLabel3" >
|
|
<property name="text" >
|
|
<string>Units</string>
|
|
</property>
|
|
<property name="alignment" >
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>cmbMapUnits</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="cmbMapUnits" >
|
|
<item>
|
|
<property name="text" >
|
|
<string>dd</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text" >
|
|
<string>feet</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text" >
|
|
<string>meters</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text" >
|
|
<string>miles</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text" >
|
|
<string>inches</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text" >
|
|
<string>kilometers</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="textLabel4" >
|
|
<property name="text" >
|
|
<string>Image type</string>
|
|
</property>
|
|
<property name="alignment" >
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>cmbMapImageType</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<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>
|
|
</layout>
|
|
</item>
|
|
<item row="1" column="0" >
|
|
<layout class="QHBoxLayout" >
|
|
<property name="margin" >
|
|
<number>4</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="textLabel2" >
|
|
<property name="text" >
|
|
<string>Width</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>txtMapWidth</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="txtMapWidth" />
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="textLabel2_2" >
|
|
<property name="text" >
|
|
<string>Height</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>txtMapHeight</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="txtMapHeight" />
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="0" column="0" >
|
|
<layout class="QHBoxLayout" >
|
|
<property name="margin" >
|
|
<number>4</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<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>
|
|
<widget class="QLineEdit" name="txtMapName" >
|
|
<property name="toolTip" >
|
|
<string>Prefix attached to map, scalebar and legend GIF filenames created using this MapFile</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<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="0" column="1" >
|
|
<widget class="QLineEdit" name="txtMapFilePath" >
|
|
<property name="toolTip" >
|
|
<string>Name for the map file to be created from the QGIS project file</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="2" >
|
|
<widget class="QPushButton" name="btnChooseProjectFile" >
|
|
<property name="text" >
|
|
<string>...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1" >
|
|
<widget class="QLineEdit" name="txtQgisFilePath" >
|
|
<property name="toolTip" >
|
|
<string>Full path to the QGIS project file to export to MapServer map format</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0" >
|
|
<widget class="QLabel" name="textLabel7_2" >
|
|
<property name="text" >
|
|
<string>QGIS project file</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>txtQgisFilePath</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="2" >
|
|
<widget class="QPushButton" name="btnChooseFile" >
|
|
<property name="text" >
|
|
<string>...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1" colspan="2" >
|
|
<widget class="QCheckBox" name="chkExpLayersOnly" >
|
|
<property name="toolTip" >
|
|
<string>If checked, only the layer information will be processed</string>
|
|
</property>
|
|
<property name="text" >
|
|
<string>Export LAYER information only</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<layoutdefault spacing="6" margin="11" />
|
|
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>Q3GroupBox</class>
|
|
<extends></extends>
|
|
<header>Qt3Support/Q3GroupBox</header>
|
|
<container>1</container>
|
|
<pixmap></pixmap>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<tabstops>
|
|
<tabstop>txtMapFilePath</tabstop>
|
|
<tabstop>btnChooseFile</tabstop>
|
|
<tabstop>txtQgisFilePath</tabstop>
|
|
<tabstop>btnChooseProjectFile</tabstop>
|
|
<tabstop>chkExpLayersOnly</tabstop>
|
|
<tabstop>txtMapName</tabstop>
|
|
<tabstop>txtMapWidth</tabstop>
|
|
<tabstop>txtMapHeight</tabstop>
|
|
<tabstop>cmbMapUnits</tabstop>
|
|
<tabstop>cmbMapImageType</tabstop>
|
|
<tabstop>txtWebTemplate</tabstop>
|
|
<tabstop>btnChooseTemplateFile</tabstop>
|
|
<tabstop>txtWebHeader</tabstop>
|
|
<tabstop>btnChooseHeaderFile</tabstop>
|
|
<tabstop>txtWebFooter</tabstop>
|
|
<tabstop>btnChooseFooterFile</tabstop>
|
|
<tabstop>buttonHelp</tabstop>
|
|
<tabstop>buttonOk</tabstop>
|
|
<tabstop>buttonCancel</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>buttonCancel</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>QgsMapserverExportBase</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel" >
|
|
<x>426</x>
|
|
<y>422</y>
|
|
</hint>
|
|
<hint type="destinationlabel" >
|
|
<x>240</x>
|
|
<y>223</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonOk</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>QgsMapserverExportBase</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel" >
|
|
<x>335</x>
|
|
<y>422</y>
|
|
</hint>
|
|
<hint type="destinationlabel" >
|
|
<x>240</x>
|
|
<y>223</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|