]> ToastFreeware Gitweb - toast/confclerk.git/blob - src/gui/settingsdialog.ui
Settings (dialog): add HTTP+SOCKS5 radio buttons and use them
[toast/confclerk.git] / src / gui / settingsdialog.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>SettingsDialog</class>
4  <widget class="QDialog" name="SettingsDialog">
5   <property name="geometry">
6    <rect>
7     <x>0</x>
8     <y>0</y>
9     <width>500</width>
10     <height>168</height>
11    </rect>
12   </property>
13   <property name="sizePolicy">
14    <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
15     <horstretch>0</horstretch>
16     <verstretch>0</verstretch>
17    </sizepolicy>
18   </property>
19   <property name="minimumSize">
20    <size>
21     <width>500</width>
22     <height>0</height>
23    </size>
24   </property>
25   <property name="windowTitle">
26    <string>Settings</string>
27   </property>
28   <layout class="QVBoxLayout" name="verticalLayout">
29    <item>
30     <widget class="QGroupBox" name="groupBox">
31      <property name="title">
32       <string>Proxy settings</string>
33      </property>
34      <layout class="QVBoxLayout" name="verticalLayout_2">
35       <item>
36        <widget class="QCheckBox" name="directConnection">
37         <property name="text">
38          <string>Direct connection</string>
39         </property>
40         <property name="checked">
41          <bool>true</bool>
42         </property>
43        </widget>
44       </item>
45       <item>
46        <widget class="QFrame" name="proxyWidget">
47         <layout class="QVBoxLayout" name="verticalLayout_3">
48          <item>
49           <layout class="QHBoxLayout" name="horizontalLayout">
50            <item>
51             <widget class="QLabel" name="label">
52              <property name="text">
53               <string>Address: </string>
54              </property>
55             </widget>
56            </item>
57            <item>
58             <widget class="QLineEdit" name="address"/>
59            </item>
60            <item>
61             <widget class="QLabel" name="label_2">
62              <property name="text">
63               <string>Port:</string>
64              </property>
65             </widget>
66            </item>
67            <item>
68             <widget class="QSpinBox" name="port">
69              <property name="alignment">
70               <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
71              </property>
72              <property name="minimum">
73               <number>1</number>
74              </property>
75              <property name="maximum">
76               <number>65535</number>
77              </property>
78              <property name="value">
79               <number>8080</number>
80              </property>
81             </widget>
82            </item>
83           </layout>
84          </item>
85          <item>
86           <layout class="QHBoxLayout" name="horizontalLayout_2">
87            <item>
88             <widget class="QLabel" name="label_3">
89              <property name="text">
90               <string>Proxy type:</string>
91              </property>
92             </widget>
93            </item>
94            <item>
95             <widget class="QRadioButton" name="proxyTypeHTTP">
96              <property name="text">
97               <string>HTTP proxy</string>
98              </property>
99             </widget>
100            </item>
101            <item>
102             <widget class="QRadioButton" name="proxyTypeSOCKS5">
103              <property name="text">
104               <string>SOCKS5 proxy</string>
105              </property>
106             </widget>
107            </item>
108           </layout>
109          </item>
110         </layout>
111        </widget>
112       </item>
113      </layout>
114     </widget>
115    </item>
116    <item>
117     <widget class="QDialogButtonBox" name="buttonBox">
118      <property name="orientation">
119       <enum>Qt::Horizontal</enum>
120      </property>
121      <property name="standardButtons">
122       <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
123      </property>
124     </widget>
125    </item>
126   </layout>
127  </widget>
128  <resources/>
129  <connections>
130   <connection>
131    <sender>buttonBox</sender>
132    <signal>accepted()</signal>
133    <receiver>SettingsDialog</receiver>
134    <slot>accept()</slot>
135    <hints>
136     <hint type="sourcelabel">
137      <x>288</x>
138      <y>128</y>
139     </hint>
140     <hint type="destinationlabel">
141      <x>325</x>
142      <y>147</y>
143     </hint>
144    </hints>
145   </connection>
146   <connection>
147    <sender>buttonBox</sender>
148    <signal>rejected()</signal>
149    <receiver>SettingsDialog</receiver>
150    <slot>reject()</slot>
151    <hints>
152     <hint type="sourcelabel">
153      <x>202</x>
154      <y>130</y>
155     </hint>
156     <hint type="destinationlabel">
157      <x>226</x>
158      <y>147</y>
159     </hint>
160    </hints>
161   </connection>
162  </connections>
163 </ui>