mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
271 lines
7.4 KiB
XML
271 lines
7.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>FieldsCalculator</class>
|
|
<widget class="QDialog" name="FieldsCalculator">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>681</width>
|
|
<height>681</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Field calculator</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="2" column="0">
|
|
<widget class="QGroupBox" name="mNewFieldGroupBox">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="title">
|
|
<string>Create a new field</string>
|
|
</property>
|
|
<property name="flat">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
<layout class="QGridLayout">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetMinimumSize</enum>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>3</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>3</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>3</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="verticalSpacing">
|
|
<number>3</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="mFieldNameLabel">
|
|
<property name="text">
|
|
<string>Output field name</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>mOutputFieldNameLineEdit</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1" colspan="3">
|
|
<widget class="QLineEdit" name="mOutputFieldNameLineEdit"/>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="mOutputFieldTypeLabel">
|
|
<property name="text">
|
|
<string>Output field type</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>mOutputFieldTypeComboBox</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1" colspan="3">
|
|
<widget class="QComboBox" name="mOutputFieldTypeComboBox"/>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="mOutputFieldWidthLabel">
|
|
<property name="text">
|
|
<string>Output field width</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>mOutputFieldWidthSpinBox</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QSpinBox" name="mOutputFieldWidthSpinBox">
|
|
<property name="toolTip">
|
|
<string>Width of complete output. For example 123,456 means 6 as field width.</string>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>15</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="2">
|
|
<widget class="QLabel" name="mOutputFieldPrecisionLabel">
|
|
<property name="text">
|
|
<string>Precision</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>mOutputFieldPrecisionSpinBox</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="3">
|
|
<widget class="QSpinBox" name="mOutputFieldPrecisionSpinBox">
|
|
<property name="value">
|
|
<number>2</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0" colspan="2">
|
|
<widget class="QDialogButtonBox" name="mButtonBox">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>3</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0" colspan="2">
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>Input layer</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="cmbInputLayer">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QGroupBox" name="mUpdateExistingGroupBox">
|
|
<property name="title">
|
|
<string>Update existing field</string>
|
|
</property>
|
|
<property name="flat">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>false</bool>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QComboBox" name="mExistingFieldComboBox"/>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0" colspan="2">
|
|
<widget class="QgsExpressionBuilderWidget" name="builder" native="true">
|
|
<property name="autoFillBackground">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0" colspan="2">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="text">
|
|
<string>Output file</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="leOutputFile"/>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="btnBrowse">
|
|
<property name="text">
|
|
<string>...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="4" column="0" colspan="2">
|
|
<widget class="QProgressBar" name="progressBar">
|
|
<property name="value">
|
|
<number>0</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>QgsExpressionBuilderWidget</class>
|
|
<extends>QWidget</extends>
|
|
<header>qgis.gui</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<tabstops>
|
|
<tabstop>mOutputFieldNameLineEdit</tabstop>
|
|
<tabstop>mOutputFieldTypeComboBox</tabstop>
|
|
<tabstop>mOutputFieldWidthSpinBox</tabstop>
|
|
<tabstop>mOutputFieldPrecisionSpinBox</tabstop>
|
|
<tabstop>mButtonBox</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>mButtonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>FieldsCalculator</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>679</x>
|
|
<y>559</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>157</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>mButtonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>FieldsCalculator</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>679</x>
|
|
<y>559</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>286</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|