OK button does no longer discard a settings dialog if settings are not valid.
[quassel.git] / src / qtui / ui / coreaccounteditdlg.ui
1 <ui version="4.0" >
2  <class>CoreAccountEditDlg</class>
3  <widget class="QDialog" name="CoreAccountEditDlg" >
4   <property name="geometry" >
5    <rect>
6     <x>0</x>
7     <y>0</y>
8     <width>395</width>
9     <height>242</height>
10    </rect>
11   </property>
12   <property name="windowTitle" >
13    <string>Edit Core Account</string>
14   </property>
15   <layout class="QVBoxLayout" >
16    <item>
17     <layout class="QVBoxLayout" >
18      <item>
19       <widget class="QGroupBox" name="groupBox" >
20        <property name="title" >
21         <string>Account Details</string>
22        </property>
23        <layout class="QVBoxLayout" >
24         <item>
25          <layout class="QHBoxLayout" >
26           <item>
27            <widget class="QLabel" name="label" >
28             <property name="text" >
29              <string>Account Name:</string>
30             </property>
31            </widget>
32           </item>
33           <item>
34            <widget class="QLineEdit" name="accountName" />
35           </item>
36          </layout>
37         </item>
38         <item>
39          <layout class="QGridLayout" >
40           <item row="0" column="0" >
41            <widget class="QRadioButton" name="useInternal" >
42             <property name="enabled" >
43              <bool>false</bool>
44             </property>
45             <property name="text" >
46              <string/>
47             </property>
48            </widget>
49           </item>
50           <item row="0" column="1" colspan="2" >
51            <widget class="QLabel" name="label_4" >
52             <property name="enabled" >
53              <bool>false</bool>
54             </property>
55             <property name="text" >
56              <string>Use built-in Quassel Core</string>
57             </property>
58             <property name="buddy" >
59              <cstring>useInternal</cstring>
60             </property>
61            </widget>
62           </item>
63           <item row="1" column="0" >
64            <widget class="QRadioButton" name="useRemote" >
65             <property name="text" >
66              <string/>
67             </property>
68             <property name="checked" >
69              <bool>true</bool>
70             </property>
71            </widget>
72           </item>
73           <item row="1" column="1" >
74            <widget class="QLabel" name="label_2" >
75             <property name="text" >
76              <string>Remote host:</string>
77             </property>
78             <property name="buddy" >
79              <cstring>useRemote</cstring>
80             </property>
81            </widget>
82           </item>
83           <item row="1" column="2" >
84            <widget class="QLabel" name="label_3" >
85             <property name="text" >
86              <string>Port:</string>
87             </property>
88            </widget>
89           </item>
90           <item row="2" column="1" >
91            <widget class="QLineEdit" name="host" />
92           </item>
93           <item row="2" column="2" >
94            <widget class="QSpinBox" name="port" >
95             <property name="minimum" >
96              <number>1</number>
97             </property>
98             <property name="maximum" >
99              <number>65535</number>
100             </property>
101             <property name="value" >
102              <number>4242</number>
103             </property>
104            </widget>
105           </item>
106           <item row="3" column="1" colspan="2" >
107            <widget class="QCheckBox" name="useSSL" >
108             <property name="enabled" >
109              <bool>false</bool>
110             </property>
111             <property name="text" >
112              <string>Use secure connection (SSL)</string>
113             </property>
114             <property name="icon" >
115              <iconset resource="../../icons/icons.qrc" >:/16x16/actions/oxygen/16x16/actions/document-encrypt.png</iconset>
116             </property>
117             <property name="checked" >
118              <bool>false</bool>
119             </property>
120            </widget>
121           </item>
122          </layout>
123         </item>
124         <item>
125          <spacer>
126           <property name="orientation" >
127            <enum>Qt::Vertical</enum>
128           </property>
129           <property name="sizeHint" >
130            <size>
131             <width>20</width>
132             <height>40</height>
133            </size>
134           </property>
135          </spacer>
136         </item>
137        </layout>
138       </widget>
139      </item>
140      <item>
141       <widget class="QDialogButtonBox" name="buttonBox" >
142        <property name="orientation" >
143         <enum>Qt::Horizontal</enum>
144        </property>
145        <property name="standardButtons" >
146         <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
147        </property>
148       </widget>
149      </item>
150     </layout>
151    </item>
152   </layout>
153  </widget>
154  <resources>
155   <include location="../../icons/icons.qrc" />
156  </resources>
157  <connections>
158   <connection>
159    <sender>buttonBox</sender>
160    <signal>accepted()</signal>
161    <receiver>CoreAccountEditDlg</receiver>
162    <slot>accept()</slot>
163    <hints>
164     <hint type="sourcelabel" >
165      <x>263</x>
166      <y>230</y>
167     </hint>
168     <hint type="destinationlabel" >
169      <x>157</x>
170      <y>207</y>
171     </hint>
172    </hints>
173   </connection>
174   <connection>
175    <sender>buttonBox</sender>
176    <signal>rejected()</signal>
177    <receiver>CoreAccountEditDlg</receiver>
178    <slot>reject()</slot>
179    <hints>
180     <hint type="sourcelabel" >
181      <x>331</x>
182      <y>230</y>
183     </hint>
184     <hint type="destinationlabel" >
185      <x>286</x>
186      <y>207</y>
187     </hint>
188    </hints>
189   </connection>
190   <connection>
191    <sender>useInternal</sender>
192    <signal>toggled(bool)</signal>
193    <receiver>host</receiver>
194    <slot>setDisabled(bool)</slot>
195    <hints>
196     <hint type="sourcelabel" >
197      <x>30</x>
198      <y>79</y>
199     </hint>
200     <hint type="destinationlabel" >
201      <x>92</x>
202      <y>143</y>
203     </hint>
204    </hints>
205   </connection>
206   <connection>
207    <sender>useInternal</sender>
208    <signal>toggled(bool)</signal>
209    <receiver>port</receiver>
210    <slot>setDisabled(bool)</slot>
211    <hints>
212     <hint type="sourcelabel" >
213      <x>39</x>
214      <y>78</y>
215     </hint>
216     <hint type="destinationlabel" >
217      <x>331</x>
218      <y>144</y>
219     </hint>
220    </hints>
221   </connection>
222   <connection>
223    <sender>useRemote</sender>
224    <signal>clicked(bool)</signal>
225    <receiver>host</receiver>
226    <slot>setFocus()</slot>
227    <hints>
228     <hint type="sourcelabel" >
229      <x>26</x>
230      <y>113</y>
231     </hint>
232     <hint type="destinationlabel" >
233      <x>184</x>
234      <y>146</y>
235     </hint>
236    </hints>
237   </connection>
238  </connections>
239 </ui>