<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>QgsPgNewConnectionBase</class>
 <widget class="QDialog" name="QgsPgNewConnectionBase">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>448</width>
    <height>575</height>
   </rect>
  </property>
  <property name="sizePolicy">
   <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
    <horstretch>0</horstretch>
    <verstretch>0</verstretch>
   </sizepolicy>
  </property>
  <property name="windowTitle">
   <string>Create a New Snowflake Connection</string>
  </property>
  <property name="sizeGripEnabled">
   <bool>true</bool>
  </property>
  <property name="modal">
   <bool>true</bool>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_2">
   <item>
    <widget class="QgsMessageBar" name="bar" native="true"/>
   </item>
   <item>
    <widget class="QGroupBox" name="GroupBox1">
     <property name="title">
      <string>Connection Information</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout">
      <item>
       <layout class="QGridLayout" name="gridLayout_2">
        <item row="4" column="0">
         <widget class="QLabel" name="TextLabel_connection_type">
          <property name="text">
           <string>Connection Type</string>
          </property>
          <property name="buddy">
           <cstring>cbxConnectionType</cstring>
          </property>
         </widget>
        </item>
        <item row="4" column="1">
         <widget class="QComboBox" name="cbxConnectionType"/>
        </item>
        <item row="1" column="0">
         <widget class="QLabel" name="TextLabel_warehouse">
          <property name="text">
           <string>Warehouse</string>
          </property>
          <property name="buddy">
           <cstring>txtWarehouse</cstring>
          </property>
         </widget>
        </item>
         <item row="5" column="0">
         <widget class="QLabel" name="TextLabel_role">
          <property name="text">
           <string>Role</string>
          </property>
          <property name="buddy">
           <cstring>txtRole</cstring>
          </property>
         </widget>
        </item>
        <item row="5" column="1">
         <widget class="QLineEdit" name="txtRole"/>
        </item>
        <item row="0" column="0">
         <widget class="QLabel" name="TextLabel_name">
          <property name="text">
           <string>&amp;Name</string>
          </property>
          <property name="buddy">
           <cstring>txtName</cstring>
          </property>
         </widget>
        </item>
        <item row="3" column="1">
         <widget class="QLineEdit" name="txtDatabase"/>
        </item>
        <item row="2" column="1">
         <widget class="QLineEdit" name="txtAccount"/>
        </item>
        <item row="0" column="1">
         <widget class="QLineEdit" name="txtName">
          <property name="toolTip">
           <string>Name of the new connection</string>
          </property>
         </widget>
        </item>
        <item row="3" column="0">
         <widget class="QLabel" name="TextLabel_database">
          <property name="text">
           <string>&amp;Database</string>
          </property>
          <property name="buddy">
           <cstring>txtDatabase</cstring>
          </property>
         </widget>
        </item>
        <item row="2" column="0">
         <widget class="QLabel" name="TextLabel_Account">
          <property name="text">
           <string>Account</string>
          </property>
          <property name="buddy">
           <cstring>txtAccount</cstring>
          </property>
         </widget>
        </item>
        <item row="1" column="1">
         <widget class="QLineEdit" name="txtWarehouse"/>
        </item>
       </layout>
      </item>
      <item>
       <widget class="QGroupBox" name="mAuthGroupBox">
        <property name="title">
         <string>Authentication</string>
        </property>
        <layout class="QGridLayout" name="gridLayout">
         <property name="leftMargin">
          <number>6</number>
         </property>
         <property name="topMargin">
          <number>6</number>
         </property>
         <property name="rightMargin">
          <number>6</number>
         </property>
         <property name="bottomMargin">
          <number>6</number>
         </property>
         <item row="0" column="0">
          <widget class="QgsAuthSettingsWidget" name="mAuthSettings" native="true"/>
         </item>
        </layout>
       </widget>
      </item>
      <item>
       <widget class="QPushButton" name="btnConnect">
        <property name="text">
         <string>&amp;Test Connection</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="cb_geometryColumnsOnly">
        <property name="toolTip">
         <string>Restrict the displayed tables to those that are in the layer registries.</string>
        </property>
        <property name="whatsThis">
         <string>Restricts the displayed tables to those that are found in the layer registries (geometry_columns, geography_columns, topology.layer). This can speed up the initial display of spatial tables.</string>
        </property>
        <property name="text">
         <string>Only show layers in the layer registries</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="cb_dontResolveType">
        <property name="text">
         <string>Don't resolve type of unrestricted columns (GEOMETRY)</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="cb_publicSchemaOnly">
        <property name="toolTip">
         <string>Restrict the search to the public schema for spatial tables not in the geometry_columns table</string>
        </property>
        <property name="whatsThis">
         <string>When searching for spatial tables that are not in the geometry_columns tables, restrict the search to tables that are in the public schema (for some databases this can save lots of time)</string>
        </property>
        <property name="text">
         <string>Only look in the 'public' schema</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="cb_allowGeometrylessTables">
        <property name="text">
         <string>Also list tables with no geometry</string>
        </property>
        <property name="checked">
         <bool>false</bool>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="cb_useEstimatedMetadata">
        <property name="toolTip">
         <string>Use estimated table statistics for the layer metadata.</string>
        </property>
        <property name="whatsThis">
         <string>&lt;html&gt;
&lt;body&gt;
&lt;p&gt;When the layer is setup various metadata is required for the PostGIS table. This includes information such as the table row count, geometry type and spatial extents of the data in the geometry column. If the table contains a large number of rows determining this metadata is time consuming.&lt;/p&gt;
&lt;p&gt;By activating this option the following fast table metadata operations are done:&lt;/p&gt;
&lt;p&gt;1) Row count is determined from results of running the PostgreSQL Analyze function on the table.&lt;/p&gt;
&lt;p&gt;2) Table extents are always determined with the estimated_extent PostGIS function even if a layer filter is applied.&lt;/p&gt;
&lt;p&gt;3) If the table geometry type is unknown and is not exclusively taken from the geometry_columns table, then it is determined from the first 100 non-null geometry rows in the table.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</string>
        </property>
        <property name="text">
         <string>Use estimated table metadata</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="cb_projectsInDatabase">
        <property name="text">
         <string>Allow saving/loading QGIS projects in the database</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="cb_metadataInDatabase">
        <property name="text">
         <string>Allow saving/loading QGIS layer metadata in the database</string>
        </property>
       </widget>
      </item>
      <item>
       <spacer name="verticalSpacer">
        <property name="orientation">
         <enum>Qt::Vertical</enum>
        </property>
        <property name="sizeHint" stdset="0">
         <size>
          <width>20</width>
          <height>0</height>
         </size>
        </property>
       </spacer>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QDialogButtonBox" name="buttonBox">
     <property name="standardButtons">
      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
     </property>
    </widget>
   </item>
  </layout>
 </widget>
 <layoutdefault spacing="6" margin="11"/>
 <customwidgets>
  <customwidget>
   <class>QgsAuthSettingsWidget</class>
   <extends>QWidget</extends>
   <header>qgsauthsettingswidget.h</header>
   <container>1</container>
  </customwidget>
  <customwidget>
   <class>QgsMessageBar</class>
   <extends>QWidget</extends>
   <header>qgsmessagebar.h</header>
   <container>1</container>
  </customwidget>
 </customwidgets>
 <tabstops>
  <tabstop>txtName</tabstop>
  <tabstop>txtWarehouse</tabstop>
  <tabstop>txtAccount</tabstop>
  <tabstop>txtDatabase</tabstop>
  <tabstop>btnConnect</tabstop>
  <tabstop>cb_geometryColumnsOnly</tabstop>
  <tabstop>cb_dontResolveType</tabstop>
  <tabstop>cb_publicSchemaOnly</tabstop>
  <tabstop>cb_allowGeometrylessTables</tabstop>
  <tabstop>cb_useEstimatedMetadata</tabstop>
  <tabstop>cb_projectsInDatabase</tabstop>
 </tabstops>
 <resources/>
 <connections>
  <connection>
   <sender>buttonBox</sender>
   <signal>rejected()</signal>
   <receiver>QgsPgNewConnectionBase</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>313</x>
     <y>501</y>
    </hint>
    <hint type="destinationlabel">
     <x>451</x>
     <y>312</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>
