Preferences/ConfigurationPages/NetworkPage.ui

Thu, 27 May 2010 20:27:46 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 27 May 2010 20:27:46 +0200
changeset 289
baf4c1354c6a
parent 270
41505c92ac31
child 668
b0061a6f7484
permissions
-rw-r--r--

Extended the proxy handling to HTTPS and FTP.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>NetworkPage</class>
 <widget class="QWidget" name="NetworkPage">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>589</width>
    <height>563</height>
   </rect>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_2">
   <item>
    <widget class="QLabel" name="headerLabel">
     <property name="text">
      <string>&lt;b&gt;Configure Network&lt;/b&gt;</string>
     </property>
    </widget>
   </item>
   <item>
    <widget class="Line" name="line9_3">
     <property name="frameShape">
      <enum>QFrame::HLine</enum>
     </property>
     <property name="frameShadow">
      <enum>QFrame::Sunken</enum>
     </property>
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
    </widget>
   </item>
   <item>
    <layout class="QHBoxLayout" name="horizontalLayout">
     <item>
      <widget class="QLabel" name="label_6">
       <property name="text">
        <string>Download directory:</string>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QLineEdit" name="downloadDirEdit">
       <property name="toolTip">
        <string>Enter the download directory (leave empty to use the default location)</string>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QPushButton" name="downloadDirButton">
       <property name="toolTip">
        <string>Select the download directory via a directory selection dialog</string>
       </property>
       <property name="text">
        <string>...</string>
       </property>
      </widget>
     </item>
    </layout>
   </item>
   <item>
    <widget class="QCheckBox" name="requestFilenameCheckBox">
     <property name="toolTip">
      <string>Select to ask the user for a download filename</string>
     </property>
     <property name="text">
      <string>Request name of downloaded file</string>
     </property>
    </widget>
   </item>
   <item>
    <widget class="QGroupBox" name="proxyGroup">
     <property name="toolTip">
      <string>Select to use a web proxy</string>
     </property>
     <property name="title">
      <string>Use network proxy</string>
     </property>
     <property name="checkable">
      <bool>true</bool>
     </property>
     <property name="checked">
      <bool>false</bool>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout">
      <item>
       <widget class="QRadioButton" name="systemProxyButton">
        <property name="toolTip">
         <string>Select to use the system proxy configuration</string>
        </property>
        <property name="text">
         <string>Use system proxy configuration</string>
        </property>
        <property name="checked">
         <bool>true</bool>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QRadioButton" name="manualProxyButton">
        <property name="toolTip">
         <string>Select to use an application specific proxy configuration</string>
        </property>
        <property name="text">
         <string>Manual proxy configuration:</string>
        </property>
        <property name="checked">
         <bool>false</bool>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QGroupBox" name="groupBox">
        <property name="enabled">
         <bool>false</bool>
        </property>
        <property name="title">
         <string>Manual proxy settings</string>
        </property>
        <property name="flat">
         <bool>false</bool>
        </property>
        <layout class="QGridLayout" name="gridLayout">
         <item row="0" column="0">
          <widget class="QLabel" name="label">
           <property name="text">
            <string>Http-Proxy:</string>
           </property>
          </widget>
         </item>
         <item row="0" column="1">
          <widget class="QLineEdit" name="httpProxyHostEdit">
           <property name="toolTip">
            <string>Enter the name of the HTTP proxy host</string>
           </property>
          </widget>
         </item>
         <item row="0" column="2">
          <widget class="QLabel" name="label_2">
           <property name="text">
            <string>Port:</string>
           </property>
          </widget>
         </item>
         <item row="0" column="3">
          <widget class="QSpinBox" name="httpProxyPortSpin">
           <property name="toolTip">
            <string>Enter the HTTP proxy port</string>
           </property>
           <property name="alignment">
            <set>Qt::AlignRight</set>
           </property>
           <property name="minimum">
            <number>1</number>
           </property>
           <property name="maximum">
            <number>65535</number>
           </property>
           <property name="value">
            <number>80</number>
           </property>
          </widget>
         </item>
         <item row="1" column="1" colspan="3">
          <widget class="QCheckBox" name="httpProxyForAllCheckBox">
           <property name="toolTip">
            <string>Select to use the HTTP proxy for all</string>
           </property>
           <property name="text">
            <string>Use this proxy for all protocols</string>
           </property>
          </widget>
         </item>
         <item row="2" column="0">
          <widget class="QLabel" name="label_4">
           <property name="text">
            <string>Https-Proxy:</string>
           </property>
          </widget>
         </item>
         <item row="2" column="1">
          <widget class="QLineEdit" name="httpsProxyHostEdit">
           <property name="toolTip">
            <string>Enter the name of the HTTPS proxy host</string>
           </property>
          </widget>
         </item>
         <item row="2" column="2">
          <widget class="QLabel" name="label_5">
           <property name="text">
            <string>Port:</string>
           </property>
          </widget>
         </item>
         <item row="2" column="3">
          <widget class="QSpinBox" name="httpsProxyPortSpin">
           <property name="toolTip">
            <string>Enter the HTTPS proxy port</string>
           </property>
           <property name="alignment">
            <set>Qt::AlignRight</set>
           </property>
           <property name="minimum">
            <number>1</number>
           </property>
           <property name="maximum">
            <number>65535</number>
           </property>
           <property name="value">
            <number>80</number>
           </property>
          </widget>
         </item>
         <item row="3" column="0">
          <widget class="QLabel" name="label_3">
           <property name="text">
            <string>Ftp-Proxy:</string>
           </property>
          </widget>
         </item>
         <item row="3" column="1">
          <widget class="QLineEdit" name="ftpProxyHostEdit">
           <property name="toolTip">
            <string>Enter the name of the FTP proxy host</string>
           </property>
          </widget>
         </item>
         <item row="3" column="2">
          <widget class="QLabel" name="label_7">
           <property name="text">
            <string>Port:</string>
           </property>
          </widget>
         </item>
         <item row="3" column="3">
          <widget class="QSpinBox" name="ftpProxyPortSpin">
           <property name="toolTip">
            <string>Enter the FTP proxy port</string>
           </property>
           <property name="alignment">
            <set>Qt::AlignRight</set>
           </property>
           <property name="minimum">
            <number>1</number>
           </property>
           <property name="maximum">
            <number>65535</number>
           </property>
           <property name="value">
            <number>80</number>
           </property>
          </widget>
         </item>
        </layout>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <spacer>
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>571</width>
       <height>21</height>
      </size>
     </property>
    </spacer>
   </item>
  </layout>
 </widget>
 <tabstops>
  <tabstop>downloadDirEdit</tabstop>
  <tabstop>downloadDirButton</tabstop>
  <tabstop>requestFilenameCheckBox</tabstop>
  <tabstop>proxyGroup</tabstop>
  <tabstop>systemProxyButton</tabstop>
  <tabstop>manualProxyButton</tabstop>
  <tabstop>httpProxyHostEdit</tabstop>
  <tabstop>httpProxyPortSpin</tabstop>
  <tabstop>httpProxyForAllCheckBox</tabstop>
  <tabstop>httpsProxyHostEdit</tabstop>
  <tabstop>httpsProxyPortSpin</tabstop>
  <tabstop>ftpProxyHostEdit</tabstop>
  <tabstop>ftpProxyPortSpin</tabstop>
 </tabstops>
 <resources/>
 <connections>
  <connection>
   <sender>manualProxyButton</sender>
   <signal>toggled(bool)</signal>
   <receiver>groupBox</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>57</x>
     <y>161</y>
    </hint>
    <hint type="destinationlabel">
     <x>63</x>
     <y>190</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>httpProxyForAllCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>label_4</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>113</x>
     <y>240</y>
    </hint>
    <hint type="destinationlabel">
     <x>83</x>
     <y>265</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>httpProxyForAllCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>label_3</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>129</x>
     <y>240</y>
    </hint>
    <hint type="destinationlabel">
     <x>64</x>
     <y>291</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>httpProxyForAllCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>httpsProxyHostEdit</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>195</x>
     <y>236</y>
    </hint>
    <hint type="destinationlabel">
     <x>153</x>
     <y>267</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>httpProxyForAllCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>ftpProxyHostEdit</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>191</x>
     <y>240</y>
    </hint>
    <hint type="destinationlabel">
     <x>183</x>
     <y>295</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>httpProxyForAllCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>label_5</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>401</x>
     <y>240</y>
    </hint>
    <hint type="destinationlabel">
     <x>480</x>
     <y>265</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>httpProxyForAllCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>label_7</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>366</x>
     <y>238</y>
    </hint>
    <hint type="destinationlabel">
     <x>474</x>
     <y>290</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>httpProxyForAllCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>httpsProxyPortSpin</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>465</x>
     <y>239</y>
    </hint>
    <hint type="destinationlabel">
     <x>522</x>
     <y>268</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>httpProxyForAllCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>ftpProxyPortSpin</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>438</x>
     <y>237</y>
    </hint>
    <hint type="destinationlabel">
     <x>516</x>
     <y>293</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>

eric ide

mercurial