view src/UiGuiSettingsDialog.ui @ 726:1c5ff048dfaa

Added a network settings tab to the settings dialog, where a proxy can be defined. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1000 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Sun, 21 Mar 2010 09:21:51 +0000
parents b4aee13bc733
children d1493c2ffca1
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>SettingsDialog</class>
 <widget class="QDialog" name="SettingsDialog">
  <property name="windowModality">
   <enum>Qt::ApplicationModal</enum>
  </property>
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>503</width>
    <height>336</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Settings</string>
  </property>
  <property name="windowIcon">
   <iconset resource="../resources/Icons.qrc">
    <normaloff>:/mainWindow/preferences-system.png</normaloff>:/mainWindow/preferences-system.png</iconset>
  </property>
  <layout class="QVBoxLayout">
   <item>
    <widget class="QTabWidget" name="tabWidget">
     <property name="currentIndex">
      <number>0</number>
     </property>
     <widget class="QWidget" name="tab">
      <attribute name="icon">
       <iconset resource="../resources/Icons.qrc">
        <normaloff>:/settingsDialog/applications-system.png</normaloff>:/settingsDialog/applications-system.png</iconset>
      </attribute>
      <attribute name="title">
       <string>Common</string>
      </attribute>
      <layout class="QVBoxLayout">
       <item>
        <layout class="QHBoxLayout">
         <item>
          <widget class="QLabel" name="label">
           <property name="toolTip">
            <string>Displays all available translations for UniversalIndentGui and lets you choose one.</string>
           </property>
           <property name="text">
            <string>Application language</string>
           </property>
           <property name="buddy">
            <cstring>uiGuiLanguageSelectionComboBox</cstring>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QComboBox" name="uiGuiLanguageSelectionComboBox">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="toolTip">
            <string>Displays all available translations for UniversalIndentGui and lets you choose one.</string>
           </property>
           <property name="connectedSettingName" stdset="0">
            <string>DONOTTRANSLATE:Language</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>
        </layout>
       </item>
       <item>
        <widget class="QCheckBox" name="uiGuiLoadLastOpenedFileOnStartupComboBox">
         <property name="toolTip">
          <string>If selected opens the source code file on startup that was opened last time.</string>
         </property>
         <property name="text">
          <string>Automatically open last file on startup</string>
         </property>
         <property name="connectedSettingName" stdset="0">
          <string>DONOTTRANSLATE:LoadLastOpenedFileOnStartup</string>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QCheckBox" name="uiGuiEnableIndenterParameterTooltipsCheckBox">
         <property name="toolTip">
          <string>If checked, tool tips will show up if the mouse cursor remains over an indenter parameter for a while.</string>
         </property>
         <property name="text">
          <string>Enable Parameter Tooltips</string>
         </property>
         <property name="connectedSettingName" stdset="0">
          <string>DONOTTRANSLATE:IndenterParameterTooltipsEnabled</string>
         </property>
        </widget>
       </item>
       <item>
        <layout class="QHBoxLayout">
         <item>
          <widget class="QLabel" name="labelRecentlyOpenedListSize">
           <property name="toolTip">
            <string>Sets how many files should be remembered in the list of recently opened files.</string>
           </property>
           <property name="text">
            <string>Number of files in recently opened list</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QSpinBox" name="uiGuiRecentlyOpenedListSizeSpinBox">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="toolTip">
            <string>Sets how many files should be remembered in the list of recently opened files.</string>
           </property>
           <property name="minimum">
            <number>1</number>
           </property>
           <property name="maximum">
            <number>30</number>
           </property>
           <property name="value">
            <number>1</number>
           </property>
           <property name="connectedSettingName" stdset="0">
            <string>DONOTTRANSLATE:RecentlyOpenedListSize</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>
        </layout>
       </item>
       <item>
        <spacer>
         <property name="orientation">
          <enum>Qt::Vertical</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>20</width>
           <height>40</height>
          </size>
         </property>
        </spacer>
       </item>
      </layout>
     </widget>
     <widget class="QWidget" name="tab_2">
      <attribute name="icon">
       <iconset resource="../resources/Icons.qrc">
        <normaloff>:/settingsDialog/accessories-text-editor.png</normaloff>:/settingsDialog/accessories-text-editor.png</iconset>
      </attribute>
      <attribute name="title">
       <string>Editor</string>
      </attribute>
      <layout class="QVBoxLayout">
       <item>
        <widget class="QCheckBox" name="uiGuiWhiteSpaceIsVisibleCheckBox">
         <property name="toolTip">
          <string>Enables or disables displaying of white space characters in the editor.</string>
         </property>
         <property name="text">
          <string>Display white space character (tabs, spaces, etc.)</string>
         </property>
         <property name="connectedSettingName" stdset="0">
          <string>DONOTTRANSLATE:WhiteSpaceIsVisible</string>
         </property>
        </widget>
       </item>
       <item>
        <layout class="QHBoxLayout">
         <item>
          <widget class="QLabel" name="labelTabWidth">
           <property name="toolTip">
            <string>Sets width in single spaces used for tabs</string>
           </property>
           <property name="statusTip">
            <string>Defines how many spaces should be displayed in the editor for one tab.</string>
           </property>
           <property name="text">
            <string>Displayed width of tabs</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QSpinBox" name="uiGuiTabWidthSpinBox">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="toolTip">
            <string>Defines how many spaces should be displayed in the editor for one tab character.</string>
           </property>
           <property name="minimum">
            <number>1</number>
           </property>
           <property name="maximum">
            <number>99</number>
           </property>
           <property name="value">
            <number>1</number>
           </property>
           <property name="connectedSettingName" stdset="0">
            <string>DONOTTRANSLATE:TabWidth</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>
        </layout>
       </item>
       <item>
        <spacer>
         <property name="orientation">
          <enum>Qt::Vertical</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>20</width>
           <height>40</height>
          </size>
         </property>
        </spacer>
       </item>
      </layout>
     </widget>
     <widget class="QWidget" name="tab_4">
      <attribute name="icon">
       <iconset resource="../resources/Icons.qrc">
        <normaloff>:/mainWindow/system-software-update.png</normaloff>:/mainWindow/system-software-update.png</iconset>
      </attribute>
      <attribute name="title">
       <string>Network</string>
      </attribute>
      <layout class="QVBoxLayout" name="verticalLayout">
       <item>
        <widget class="QCheckBox" name="uiGuiCheckForUpdateCheckBox">
         <property name="toolTip">
          <string>Checks whether a new version of UniversalIndentGUI exists on program start, but only once a day.</string>
         </property>
         <property name="text">
          <string>Check online for update on program start</string>
         </property>
         <property name="connectedSettingName" stdset="0">
          <string>DONOTTRANSLATE:CheckForUpdate</string>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QGroupBox" name="groupBox">
         <property name="title">
          <string/>
         </property>
         <layout class="QVBoxLayout" name="verticalLayout_5">
          <item>
           <widget class="QCheckBox" name="uiGuiEnableProxyCheckBox">
            <property name="toolTip">
             <string>If checked, the made proxy settings will be applied for all network connections. Type of the used proxy is SOCKS5.</string>
            </property>
            <property name="text">
             <string>Enable proxy</string>
            </property>
            <property name="connectedSettingName" stdset="0">
             <string>DONOTTRANSLATE:ProxyEnabled</string>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QWidget" name="widget" native="true">
            <property name="enabled">
             <bool>false</bool>
            </property>
            <layout class="QGridLayout" name="gridLayout">
             <item row="0" column="0">
              <widget class="QLabel" name="label_2">
               <property name="text">
                <string>Host name:</string>
               </property>
               <property name="buddy">
                <cstring>uiGuiProxyHostNameLineEdit</cstring>
               </property>
              </widget>
             </item>
             <item row="0" column="1">
              <widget class="QLineEdit" name="uiGuiProxyHostNameLineEdit">
               <property name="toolTip">
                <string>Host name of the to be used proxy. E.g.: proxy.example.com</string>
               </property>
               <property name="connectedSettingName" stdset="0">
                <string>DONOTTRANSLATE:ProxyHostName</string>
               </property>
              </widget>
             </item>
             <item row="1" column="0">
              <widget class="QLabel" name="label_3">
               <property name="text">
                <string>Port:</string>
               </property>
               <property name="buddy">
                <cstring>uiGuiProxyPortSpinBox</cstring>
               </property>
              </widget>
             </item>
             <item row="1" column="1">
              <widget class="QSpinBox" name="uiGuiProxyPortSpinBox">
               <property name="toolTip">
                <string>Port number to connect to the before named proxy.</string>
               </property>
               <property name="alignment">
                <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
               </property>
               <property name="buttonSymbols">
                <enum>QAbstractSpinBox::NoButtons</enum>
               </property>
               <property name="connectedSettingName" stdset="0">
                <string>DONOTTRANSLATE:ProxyPort</string>
               </property>
              </widget>
             </item>
             <item row="2" column="0">
              <widget class="QLabel" name="label_4">
               <property name="text">
                <string>User name:</string>
               </property>
               <property name="buddy">
                <cstring>uiGuiProxyUserNameLineEdit</cstring>
               </property>
              </widget>
             </item>
             <item row="2" column="1">
              <widget class="QLineEdit" name="uiGuiProxyUserNameLineEdit">
               <property name="toolTip">
                <string>If the proxy needs authentification, enter the login name here.</string>
               </property>
               <property name="connectedSettingName" stdset="0">
                <string>DONOTTRANSLATE:ProxyUserName</string>
               </property>
              </widget>
             </item>
             <item row="3" column="0">
              <widget class="QLabel" name="label_6">
               <property name="text">
                <string>Password:</string>
               </property>
               <property name="buddy">
                <cstring>uiGuiProxyPasswordLineEdit</cstring>
               </property>
              </widget>
             </item>
             <item row="3" column="1">
              <widget class="QLineEdit" name="uiGuiProxyPasswordLineEdit">
               <property name="toolTip">
                <string>If the proxy needs authentification, enter the password here.</string>
               </property>
               <property name="echoMode">
                <enum>QLineEdit::Password</enum>
               </property>
               <property name="connectedSettingName" stdset="0">
                <string>DONOTTRANSLATE:ProxyPassword</string>
               </property>
              </widget>
             </item>
            </layout>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
      </layout>
     </widget>
     <widget class="QWidget" name="tab_3">
      <attribute name="icon">
       <iconset resource="../resources/Icons.qrc">
        <normaloff>:/settingsDialog/syntax-highlight.png</normaloff>:/settingsDialog/syntax-highlight.png</iconset>
      </attribute>
      <attribute name="title">
       <string>Syntax Highlighting</string>
      </attribute>
      <layout class="QVBoxLayout">
       <item>
        <widget class="QCheckBox" name="uiGuiEnableSyntaxHighlightningCheckBox">
         <property name="toolTip">
          <string>By enabling special key words of the source code are highlighted.</string>
         </property>
         <property name="text">
          <string>Enable syntax highlighting</string>
         </property>
         <property name="connectedSettingName" stdset="0">
          <string>DONOTTRANSLATE:SyntaxHighlightningEnabled</string>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QGroupBox" name="groupBoxSyntaxHighlighterProperties">
         <property name="enabled">
          <bool>false</bool>
         </property>
         <property name="toolTip">
          <string>Lets you make settings for all properties of the available syntax highlighters, like font and color.</string>
         </property>
         <property name="title">
          <string>Highlighter settings</string>
         </property>
         <layout class="QHBoxLayout">
          <item>
           <widget class="QListWidget" name="listWidget">
            <property name="currentRow">
             <number>-1</number>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QListWidget" name="listWidget_2">
            <property name="currentRow">
             <number>-1</number>
            </property>
           </widget>
          </item>
          <item>
           <layout class="QVBoxLayout">
            <item>
             <widget class="QPushButton" name="pushButton_2">
              <property name="toolTip">
               <string>Set the font for the current selected highlighter property.</string>
              </property>
              <property name="text">
               <string>Set Font</string>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QPushButton" name="pushButton">
              <property name="toolTip">
               <string>Set the color for the current selected highlighter property.</string>
              </property>
              <property name="text">
               <string>Set Color</string>
              </property>
             </widget>
            </item>
            <item>
             <spacer>
              <property name="orientation">
               <enum>Qt::Vertical</enum>
              </property>
              <property name="sizeHint" stdset="0">
               <size>
                <width>20</width>
                <height>40</height>
               </size>
              </property>
             </spacer>
            </item>
           </layout>
          </item>
         </layout>
        </widget>
       </item>
       <item>
        <spacer>
         <property name="orientation">
          <enum>Qt::Vertical</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>20</width>
           <height>40</height>
          </size>
         </property>
        </spacer>
       </item>
      </layout>
     </widget>
    </widget>
   </item>
   <item>
    <widget class="QDialogButtonBox" name="buttonBox">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
     <property name="standardButtons">
      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
     </property>
    </widget>
   </item>
  </layout>
 </widget>
 <resources>
  <include location="../resources/Icons.qrc"/>
 </resources>
 <connections>
  <connection>
   <sender>buttonBox</sender>
   <signal>accepted()</signal>
   <receiver>SettingsDialog</receiver>
   <slot>accept()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>250</x>
     <y>316</y>
    </hint>
    <hint type="destinationlabel">
     <x>153</x>
     <y>236</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>buttonBox</sender>
   <signal>rejected()</signal>
   <receiver>SettingsDialog</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>327</x>
     <y>316</y>
    </hint>
    <hint type="destinationlabel">
     <x>282</x>
     <y>236</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>uiGuiEnableProxyCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>widget</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>73</x>
     <y>68</y>
    </hint>
    <hint type="destinationlabel">
     <x>76</x>
     <y>95</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>