mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			408 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			408 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="UTF-8"?>
 | 
						|
<ui version="4.0">
 | 
						|
 <class>DbManagerDlgSqlLayerWindow</class>
 | 
						|
 <widget class="QDialog" name="DbManagerDlgSqlLayerWindow">
 | 
						|
  <property name="geometry">
 | 
						|
   <rect>
 | 
						|
    <x>0</x>
 | 
						|
    <y>0</y>
 | 
						|
    <width>662</width>
 | 
						|
    <height>525</height>
 | 
						|
   </rect>
 | 
						|
  </property>
 | 
						|
  <property name="windowTitle">
 | 
						|
   <string>SQL window</string>
 | 
						|
  </property>
 | 
						|
  <layout class="QGridLayout" name="gridLayout_2">
 | 
						|
   <item row="3" column="0">
 | 
						|
    <layout class="QHBoxLayout" name="horizontalLayout_2">
 | 
						|
     <item>
 | 
						|
      <widget class="QCheckBox" name="avoidSelectById">
 | 
						|
       <property name="toolTip">
 | 
						|
        <string><html><head/><body><p>Avoid selecting feature by id. Sometimes - especially when running expensive queries/views - fetching the data sequentially instead of fetching features by id can be much quicker.</p></body></html></string>
 | 
						|
       </property>
 | 
						|
       <property name="text">
 | 
						|
        <string>Avoid selecting by feature id</string>
 | 
						|
       </property>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
     <item>
 | 
						|
      <spacer name="horizontalSpacer_2">
 | 
						|
       <property name="orientation">
 | 
						|
        <enum>Qt::Horizontal</enum>
 | 
						|
       </property>
 | 
						|
       <property name="sizeHint" stdset="0">
 | 
						|
        <size>
 | 
						|
         <width>40</width>
 | 
						|
         <height>20</height>
 | 
						|
        </size>
 | 
						|
       </property>
 | 
						|
      </spacer>
 | 
						|
     </item>
 | 
						|
     <item>
 | 
						|
      <widget class="QPushButton" name="updateLayerBtn">
 | 
						|
       <property name="text">
 | 
						|
        <string>Update</string>
 | 
						|
       </property>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
    </layout>
 | 
						|
   </item>
 | 
						|
   <item row="0" column="0">
 | 
						|
    <widget class="QSplitter" name="splitter">
 | 
						|
     <property name="orientation">
 | 
						|
      <enum>Qt::Vertical</enum>
 | 
						|
     </property>
 | 
						|
     <widget class="QWidget" name="layoutWidget">
 | 
						|
      <layout class="QVBoxLayout" name="verticalLayout_2">
 | 
						|
       <item>
 | 
						|
        <layout class="QHBoxLayout" name="horizontalLayout">
 | 
						|
         <item>
 | 
						|
          <widget class="QToolButton" name="queryBuilderBtn">
 | 
						|
           <property name="text">
 | 
						|
            <string/>
 | 
						|
           </property>
 | 
						|
          </widget>
 | 
						|
         </item>
 | 
						|
         <item>
 | 
						|
          <spacer name="horizontalSpacer">
 | 
						|
           <property name="orientation">
 | 
						|
            <enum>Qt::Horizontal</enum>
 | 
						|
           </property>
 | 
						|
           <property name="sizeHint" stdset="0">
 | 
						|
            <size>
 | 
						|
             <width>40</width>
 | 
						|
             <height>20</height>
 | 
						|
            </size>
 | 
						|
           </property>
 | 
						|
          </spacer>
 | 
						|
         </item>
 | 
						|
         <item>
 | 
						|
          <widget class="QLabel" name="label">
 | 
						|
           <property name="text">
 | 
						|
            <string>Saved query:</string>
 | 
						|
           </property>
 | 
						|
          </widget>
 | 
						|
         </item>
 | 
						|
         <item>
 | 
						|
          <widget class="QComboBox" name="presetCombo"/>
 | 
						|
         </item>
 | 
						|
         <item>
 | 
						|
          <widget class="QLabel" name="label_2">
 | 
						|
           <property name="text">
 | 
						|
            <string>Name</string>
 | 
						|
           </property>
 | 
						|
          </widget>
 | 
						|
         </item>
 | 
						|
         <item>
 | 
						|
          <widget class="QLineEdit" name="presetName">
 | 
						|
           <property name="text">
 | 
						|
            <string notr="true"/>
 | 
						|
           </property>
 | 
						|
          </widget>
 | 
						|
         </item>
 | 
						|
         <item>
 | 
						|
          <widget class="QPushButton" name="presetStore">
 | 
						|
           <property name="text">
 | 
						|
            <string>Store</string>
 | 
						|
           </property>
 | 
						|
          </widget>
 | 
						|
         </item>
 | 
						|
         <item>
 | 
						|
          <widget class="QPushButton" name="presetDelete">
 | 
						|
           <property name="text">
 | 
						|
            <string>Delete</string>
 | 
						|
           </property>
 | 
						|
          </widget>
 | 
						|
         </item>
 | 
						|
        </layout>
 | 
						|
       </item>
 | 
						|
       <item>
 | 
						|
        <widget class="QgsCodeEditorSQL" name="editSql"/>
 | 
						|
       </item>
 | 
						|
       <item>
 | 
						|
        <layout class="QHBoxLayout">
 | 
						|
         <item>
 | 
						|
          <widget class="QPushButton" name="btnExecute">
 | 
						|
           <property name="text">
 | 
						|
            <string>&Execute (F5)</string>
 | 
						|
           </property>
 | 
						|
           <property name="shortcut">
 | 
						|
            <string>F5</string>
 | 
						|
           </property>
 | 
						|
          </widget>
 | 
						|
         </item>
 | 
						|
         <item>
 | 
						|
          <widget class="QLabel" name="lblResult">
 | 
						|
           <property name="text">
 | 
						|
            <string/>
 | 
						|
           </property>
 | 
						|
          </widget>
 | 
						|
         </item>
 | 
						|
         <item>
 | 
						|
          <spacer>
 | 
						|
           <property name="orientation">
 | 
						|
            <enum>Qt::Horizontal</enum>
 | 
						|
           </property>
 | 
						|
           <property name="sizeHint" stdset="0">
 | 
						|
            <size>
 | 
						|
             <width>40</width>
 | 
						|
             <height>20</height>
 | 
						|
            </size>
 | 
						|
           </property>
 | 
						|
          </spacer>
 | 
						|
         </item>
 | 
						|
         <item>
 | 
						|
          <widget class="QPushButton" name="btnClear">
 | 
						|
           <property name="text">
 | 
						|
            <string>&Clear</string>
 | 
						|
           </property>
 | 
						|
          </widget>
 | 
						|
         </item>
 | 
						|
        </layout>
 | 
						|
       </item>
 | 
						|
      </layout>
 | 
						|
     </widget>
 | 
						|
     <widget class="QWidget" name="layoutWidget">
 | 
						|
      <layout class="QVBoxLayout" name="verticalLayout">
 | 
						|
       <item>
 | 
						|
        <widget class="QTableView" name="viewResult">
 | 
						|
         <property name="sizePolicy">
 | 
						|
          <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
 | 
						|
           <horstretch>0</horstretch>
 | 
						|
           <verstretch>3</verstretch>
 | 
						|
          </sizepolicy>
 | 
						|
         </property>
 | 
						|
         <property name="selectionBehavior">
 | 
						|
          <enum>QAbstractItemView::SelectRows</enum>
 | 
						|
         </property>
 | 
						|
         <property name="horizontalScrollMode">
 | 
						|
          <enum>QAbstractItemView::ScrollPerPixel</enum>
 | 
						|
         </property>
 | 
						|
        </widget>
 | 
						|
       </item>
 | 
						|
      </layout>
 | 
						|
     </widget>
 | 
						|
    </widget>
 | 
						|
   </item>
 | 
						|
   <item row="1" column="0">
 | 
						|
    <layout class="QHBoxLayout" name="horizontalLayout_6">
 | 
						|
     <item>
 | 
						|
      <widget class="QCheckBox" name="uniqueColumnCheck">
 | 
						|
       <property name="text">
 | 
						|
        <string>Column(s) with
 | 
						|
unique values</string>
 | 
						|
       </property>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
     <item>
 | 
						|
      <widget class="QComboBox" name="uniqueCombo">
 | 
						|
       <property name="enabled">
 | 
						|
        <bool>false</bool>
 | 
						|
       </property>
 | 
						|
       <property name="sizePolicy">
 | 
						|
        <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 | 
						|
         <horstretch>0</horstretch>
 | 
						|
         <verstretch>0</verstretch>
 | 
						|
        </sizepolicy>
 | 
						|
       </property>
 | 
						|
       <property name="editable">
 | 
						|
        <bool>true</bool>
 | 
						|
       </property>
 | 
						|
       <property name="insertPolicy">
 | 
						|
        <enum>QComboBox::NoInsert</enum>
 | 
						|
       </property>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
     <item>
 | 
						|
      <widget class="QCheckBox" name="hasGeometryCol">
 | 
						|
       <property name="text">
 | 
						|
        <string>Geometry column</string>
 | 
						|
       </property>
 | 
						|
       <property name="checked">
 | 
						|
        <bool>true</bool>
 | 
						|
       </property>
 | 
						|
       <property name="tristate">
 | 
						|
        <bool>false</bool>
 | 
						|
       </property>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
     <item>
 | 
						|
      <widget class="QComboBox" name="geomCombo">
 | 
						|
       <property name="sizePolicy">
 | 
						|
        <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 | 
						|
         <horstretch>0</horstretch>
 | 
						|
         <verstretch>0</verstretch>
 | 
						|
        </sizepolicy>
 | 
						|
       </property>
 | 
						|
       <property name="editable">
 | 
						|
        <bool>true</bool>
 | 
						|
       </property>
 | 
						|
       <property name="insertPolicy">
 | 
						|
        <enum>QComboBox::NoInsert</enum>
 | 
						|
       </property>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
     <item>
 | 
						|
      <spacer name="horizontalSpacer_5">
 | 
						|
       <property name="orientation">
 | 
						|
        <enum>Qt::Horizontal</enum>
 | 
						|
       </property>
 | 
						|
       <property name="sizeType">
 | 
						|
        <enum>QSizePolicy::Fixed</enum>
 | 
						|
       </property>
 | 
						|
       <property name="sizeHint" stdset="0">
 | 
						|
        <size>
 | 
						|
         <width>40</width>
 | 
						|
         <height>20</height>
 | 
						|
        </size>
 | 
						|
       </property>
 | 
						|
      </spacer>
 | 
						|
     </item>
 | 
						|
     <item>
 | 
						|
      <widget class="QPushButton" name="getColumnsBtn">
 | 
						|
       <property name="text">
 | 
						|
        <string>Retrieve
 | 
						|
columns</string>
 | 
						|
       </property>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
    </layout>
 | 
						|
   </item>
 | 
						|
   <item row="2" column="0">
 | 
						|
    <layout class="QHBoxLayout" name="horizontalLayout_7">
 | 
						|
     <item>
 | 
						|
      <widget class="QLabel" name="label_5">
 | 
						|
       <property name="text">
 | 
						|
        <string>Layer name (prefix)</string>
 | 
						|
       </property>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
     <item>
 | 
						|
      <widget class="QLineEdit" name="layerNameEdit">
 | 
						|
       <property name="enabled">
 | 
						|
        <bool>true</bool>
 | 
						|
       </property>
 | 
						|
       <property name="text">
 | 
						|
        <string notr="true"/>
 | 
						|
       </property>
 | 
						|
       <property name="readOnly">
 | 
						|
        <bool>true</bool>
 | 
						|
       </property>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
     <item>
 | 
						|
      <widget class="QWidget" name="layerTypeWidget" native="true">
 | 
						|
       <layout class="QHBoxLayout" name="horizontalLayout_3">
 | 
						|
        <property name="margin">
 | 
						|
         <number>0</number>
 | 
						|
        </property>
 | 
						|
        <item>
 | 
						|
         <widget class="QLabel" name="label_6">
 | 
						|
          <property name="text">
 | 
						|
           <string>Type</string>
 | 
						|
          </property>
 | 
						|
          <property name="indent">
 | 
						|
           <number>40</number>
 | 
						|
          </property>
 | 
						|
         </widget>
 | 
						|
        </item>
 | 
						|
        <item>
 | 
						|
         <widget class="QRadioButton" name="vectorRadio">
 | 
						|
          <property name="text">
 | 
						|
           <string>Vector</string>
 | 
						|
          </property>
 | 
						|
          <property name="checked">
 | 
						|
           <bool>true</bool>
 | 
						|
          </property>
 | 
						|
         </widget>
 | 
						|
        </item>
 | 
						|
        <item>
 | 
						|
         <widget class="QRadioButton" name="rasterRadio">
 | 
						|
          <property name="text">
 | 
						|
           <string>Raster</string>
 | 
						|
          </property>
 | 
						|
         </widget>
 | 
						|
        </item>
 | 
						|
        <item>
 | 
						|
         <spacer name="horizontalSpacer_6">
 | 
						|
          <property name="orientation">
 | 
						|
           <enum>Qt::Horizontal</enum>
 | 
						|
          </property>
 | 
						|
          <property name="sizeType">
 | 
						|
           <enum>QSizePolicy::Fixed</enum>
 | 
						|
          </property>
 | 
						|
          <property name="sizeHint" stdset="0">
 | 
						|
           <size>
 | 
						|
            <width>40</width>
 | 
						|
            <height>20</height>
 | 
						|
           </size>
 | 
						|
          </property>
 | 
						|
         </spacer>
 | 
						|
        </item>
 | 
						|
       </layout>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
     <item>
 | 
						|
      <widget class="QPushButton" name="btnSetFilter">
 | 
						|
       <property name="text">
 | 
						|
        <string>Set filter</string>
 | 
						|
       </property>
 | 
						|
       <property name="autoDefault">
 | 
						|
        <bool>false</bool>
 | 
						|
       </property>
 | 
						|
      </widget>
 | 
						|
     </item>
 | 
						|
    </layout>
 | 
						|
   </item>
 | 
						|
  </layout>
 | 
						|
 </widget>
 | 
						|
 <customwidgets>
 | 
						|
  <customwidget>
 | 
						|
   <class>QgsCodeEditorSQL</class>
 | 
						|
   <extends>QTextEdit</extends>
 | 
						|
   <header>qgis.gui</header>
 | 
						|
  </customwidget>
 | 
						|
 </customwidgets>
 | 
						|
 <tabstops>
 | 
						|
  <tabstop>btnExecute</tabstop>
 | 
						|
  <tabstop>btnClear</tabstop>
 | 
						|
  <tabstop>viewResult</tabstop>
 | 
						|
 </tabstops>
 | 
						|
 <resources/>
 | 
						|
 <connections>
 | 
						|
  <connection>
 | 
						|
   <sender>hasGeometryCol</sender>
 | 
						|
   <signal>toggled(bool)</signal>
 | 
						|
   <receiver>geomCombo</receiver>
 | 
						|
   <slot>setEnabled(bool)</slot>
 | 
						|
   <hints>
 | 
						|
    <hint type="sourcelabel">
 | 
						|
     <x>379</x>
 | 
						|
     <y>385</y>
 | 
						|
    </hint>
 | 
						|
    <hint type="destinationlabel">
 | 
						|
     <x>525</x>
 | 
						|
     <y>385</y>
 | 
						|
    </hint>
 | 
						|
   </hints>
 | 
						|
  </connection>
 | 
						|
  <connection>
 | 
						|
   <sender>uniqueColumnCheck</sender>
 | 
						|
   <signal>toggled(bool)</signal>
 | 
						|
   <receiver>uniqueCombo</receiver>
 | 
						|
   <slot>setEnabled(bool)</slot>
 | 
						|
   <hints>
 | 
						|
    <hint type="sourcelabel">
 | 
						|
     <x>109</x>
 | 
						|
     <y>385</y>
 | 
						|
    </hint>
 | 
						|
    <hint type="destinationlabel">
 | 
						|
     <x>274</x>
 | 
						|
     <y>385</y>
 | 
						|
    </hint>
 | 
						|
   </hints>
 | 
						|
  </connection>
 | 
						|
 </connections>
 | 
						|
</ui>
 |