QGIS/plugins/delimited_text/qgsdelimitedtextpluginguibase.ui
gsherman 676633b932 Added Parse button to reparse the header row if the delimiter is changed
Added layer name field to specify the name as it will appear in the legend
Added WhatsThis help and tooltips for all widgets on the dialog


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1034 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-13 17:00:37 +00:00

387 lines
16 KiB
XML

<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>QgsDelimitedTextPluginGuiBase</class>
<widget class="QDialog">
<property name="name">
<cstring>QgsDelimitedTextPluginGuiBase</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>383</width>
<height>161</height>
</rect>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="caption">
<string>Create a Layer from a Delimited Text File</string>
</property>
<property name="icon">
<pixmap>image0</pixmap>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="1" column="0">
<property name="name">
<cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Delimited text file</string>
</property>
</widget>
<widget class="QLineEdit">
<property name="name">
<cstring>txtFilePath</cstring>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="toolTip" stdset="0">
<string>Full path to the delimited text file</string>
</property>
<property name="whatsThis" stdset="0">
<string>Full path to the delimited text file. In order to properly parse the fields in the file, the delimiter must be defined prior to entering the file name. Use the Browse button to the right of this field to choose the input file.</string>
</property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>btnBrowseForFile</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>32767</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
<property name="toolTip" stdset="0">
<string>Browse to find the delimited text file to be processed</string>
</property>
<property name="whatsThis" stdset="0">
<string>Use this button to browse to the location of the delimited text file. This button will not be enabled until a delimiter has been entered in the &lt;i&gt;Delimiter&lt;/i&gt; box. Once a file is chosen, the X and Y field drop-down boxes will be populated with the fields from the delimited text file.</string>
</property>
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget" row="2" column="0">
<property name="name">
<cstring>layout6</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
<property name="text">
<string>&lt;p align="right"&gt;X field&lt;/p&gt;</string>
</property>
</widget>
<widget class="QComboBox">
<property name="name">
<cstring>cmbXField</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>120</width>
<height>0</height>
</size>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="toolTip" stdset="0">
<string>Name of the field containing x values</string>
</property>
<property name="whatsThis" stdset="0">
<string>Name of the field containing x values. Choose a field from the list. The list is generated by parsing the header row of the delimited text file.</string>
</property>
</widget>
<widget class="QLabel">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
<property name="text">
<string>&lt;p align="right"&gt;Y field&lt;/p&gt;</string>
</property>
</widget>
<widget class="QComboBox">
<property name="name">
<cstring>cmbYField</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>120</width>
<height>0</height>
</size>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="toolTip" stdset="0">
<string>Name of the field containing y values</string>
</property>
<property name="whatsThis" stdset="0">
<string>Name of the field containing y values. Choose a field from the list. The list is generated by parsing the header row of the delimited text file.</string>
</property>
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget" row="3" column="0">
<property name="name">
<cstring>layout5</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QPushButton">
<property name="name">
<cstring>pbnHelp</cstring>
</property>
<property name="text">
<string>Help</string>
</property>
<property name="toolTip" stdset="0">
<string>Help on using the plugin</string>
</property>
<property name="whatsThis" stdset="0">
<string>Opens the Delimited Text Plugin help in your configured browser</string>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer2</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>16</width>
<height>21</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<property name="name">
<cstring>pbnParse</cstring>
</property>
<property name="text">
<string>Parse</string>
</property>
<property name="toolTip" stdset="0">
<string>Parse the header row and update the X and Y field lists</string>
</property>
<property name="whatsThis" stdset="0">
<string>Parse the header row of the input file and refresh the fields in the X and Y field drop-down lists. Use this button to refresh the field lists if you change the delimiter after selecting the delimited text file.</string>
</property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>pbnOK</cstring>
</property>
<property name="text">
<string>Add Layer</string>
</property>
<property name="toolTip" stdset="0">
<string>Add layer using the deimiter, file, and x/y fields specifed</string>
</property>
<property name="whatsThis" stdset="0">
<string>Creates a layer using the specified parameters and adds it to the map. The dialog remains open to allow adding of additional layers.</string>
</property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>pbnCancel</cstring>
</property>
<property name="text">
<string>Close</string>
</property>
<property name="toolTip" stdset="0">
<string>Close the dialog</string>
</property>
<property name="whatsThis" stdset="0">
<string>Close the dialog without adding anything to the map.</string>
</property>
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout5</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
<property name="text">
<string>Layer name</string>
</property>
</widget>
<widget class="QLineEdit">
<property name="name">
<cstring>txtLayerName</cstring>
</property>
<property name="toolTip" stdset="0">
<string>Name to display in the map legend</string>
</property>
<property name="whatsThis" stdset="0">
<string>Name displayed in the map legend</string>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer2_2</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>21</height>
</size>
</property>
</spacer>
<widget class="QLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
<property name="text">
<string>Delimiter</string>
</property>
</widget>
<widget class="QLineEdit">
<property name="name">
<cstring>txtDelimiter</cstring>
</property>
<property name="maximumSize">
<size>
<width>25</width>
<height>32767</height>
</size>
</property>
<property name="toolTip" stdset="0">
<string>Delimiter to use when splitting fields in the text file. The delimiter can be more than one character.</string>
</property>
<property name="whatsThis" stdset="0">
<string>Delimiter to use when splitting fields in the delimited text file. The delimiter can be 1 or more characters in length.</string>
</property>
</widget>
</hbox>
</widget>
</grid>
</widget>
<images>
<image name="image0">
<data format="XPM.GZ" length="1301">789cd5d1dd0a82301407f0fb3dc5d03b89cc0c12a24728ba0ca28bb94deac282b28b88de3df7fd650515450791fddd8fb3c34c13b85ccc60928263839a2d8678830e3021a7ba3eafd6d30b88f2216c9f31cca21e88fa10c3f97e47d93a6ed7f180178b58c4918ca58845262265b1c815262c566d898854ac2a7eca93fa9989ed7ac748a8d7f7e6715abc6ed017cda7e6f1eeafd3945e611498f62bb1abc4411f412825f2cd886b54136d38718c7f8e24b6719a58c418de84ed6ba388304835d1fb7a166382492835c498e0eefc7bc61df5e05f74d45f9aeb04dc00195d148b</data>
</image>
</images>
<connections>
<connection>
<sender>pbnOK</sender>
<signal>clicked()</signal>
<receiver>QgsDelimitedTextPluginGuiBase</receiver>
<slot>pbnOK_clicked()</slot>
</connection>
<connection>
<sender>pbnCancel</sender>
<signal>clicked()</signal>
<receiver>QgsDelimitedTextPluginGuiBase</receiver>
<slot>reject()</slot>
</connection>
<connection>
<sender>btnBrowseForFile</sender>
<signal>clicked()</signal>
<receiver>QgsDelimitedTextPluginGuiBase</receiver>
<slot>getOpenFileName()</slot>
</connection>
<connection>
<sender>txtDelimiter</sender>
<signal>textChanged(const QString&amp;)</signal>
<receiver>QgsDelimitedTextPluginGuiBase</receiver>
<slot>enableBrowseButton(const QString&amp;)</slot>
</connection>
<connection>
<sender>pbnHelp</sender>
<signal>clicked()</signal>
<receiver>QgsDelimitedTextPluginGuiBase</receiver>
<slot>help()</slot>
</connection>
<connection>
<sender>pbnParse</sender>
<signal>clicked()</signal>
<receiver>QgsDelimitedTextPluginGuiBase</receiver>
<slot>updateFieldLists()</slot>
</connection>
</connections>
<tabstops>
<tabstop>txtDelimiter</tabstop>
<tabstop>txtFilePath</tabstop>
<tabstop>btnBrowseForFile</tabstop>
<tabstop>cmbXField</tabstop>
<tabstop>cmbYField</tabstop>
<tabstop>pbnCancel</tabstop>
<tabstop>pbnOK</tabstop>
</tabstops>
<slots>
<slot>pbnOK_clicked()</slot>
<slot>updateFieldLists( const QString &amp; )</slot>
<slot>getOpenFileName()</slot>
<slot>enableBrowseButton(const QString &amp;)</slot>
<slot>help()</slot>
<slot>updateFieldLists()</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>