Fix changed state detection in CoreAccountSettingsPage
[quassel.git] / src / qtui / settingspages / coreaccountsettingspage.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>CoreAccountSettingsPage</class>
4  <widget class="QWidget" name="CoreAccountSettingsPage">
5   <property name="geometry">
6    <rect>
7     <x>0</x>
8     <y>0</y>
9     <width>388</width>
10     <height>464</height>
11    </rect>
12   </property>
13   <property name="sizePolicy">
14    <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
15     <horstretch>0</horstretch>
16     <verstretch>0</verstretch>
17    </sizepolicy>
18   </property>
19   <property name="windowTitle">
20    <string>Connect to Quassel Core</string>
21   </property>
22   <property name="windowIcon">
23    <iconset>
24     <normaloff>:/16x16/actions/network-disconnect</normaloff>:/16x16/actions/network-disconnect</iconset>
25   </property>
26   <layout class="QVBoxLayout" name="verticalLayout_2">
27    <item>
28     <widget class="QGroupBox" name="groupBox">
29      <property name="title">
30       <string>Core Accounts</string>
31      </property>
32      <layout class="QHBoxLayout">
33       <item>
34        <widget class="QListView" name="accountView">
35         <property name="selectionBehavior">
36          <enum>QAbstractItemView::SelectRows</enum>
37         </property>
38        </widget>
39       </item>
40       <item>
41        <layout class="QVBoxLayout">
42         <item>
43          <widget class="QPushButton" name="editAccountButton">
44           <property name="text">
45            <string>Edit...</string>
46           </property>
47           <property name="icon">
48            <iconset>
49             <normaloff>:/16x16/actions/oxygen/16x16/actions/document-properties.png</normaloff>:/16x16/actions/oxygen/16x16/actions/document-properties.png</iconset>
50           </property>
51          </widget>
52         </item>
53         <item>
54          <widget class="QPushButton" name="addAccountButton">
55           <property name="text">
56            <string>Add...</string>
57           </property>
58           <property name="icon">
59            <iconset>
60             <normaloff>:/16x16/actions/oxygen/16x16/actions/list-add.png</normaloff>:/16x16/actions/oxygen/16x16/actions/list-add.png</iconset>
61           </property>
62          </widget>
63         </item>
64         <item>
65          <widget class="QPushButton" name="deleteAccountButton">
66           <property name="text">
67            <string>Delete</string>
68           </property>
69           <property name="icon">
70            <iconset>
71             <normaloff>:/16x16/actions/oxygen/16x16/actions/list-remove.png</normaloff>:/16x16/actions/oxygen/16x16/actions/list-remove.png</iconset>
72           </property>
73          </widget>
74         </item>
75         <item>
76          <spacer>
77           <property name="orientation">
78            <enum>Qt::Vertical</enum>
79           </property>
80           <property name="sizeHint" stdset="0">
81            <size>
82             <width>20</width>
83             <height>40</height>
84            </size>
85           </property>
86          </spacer>
87         </item>
88        </layout>
89       </item>
90      </layout>
91     </widget>
92    </item>
93    <item>
94     <widget class="QCheckBox" name="autoConnectOnStartup">
95      <property name="text">
96       <string>Automatically connect on startup</string>
97      </property>
98      <property name="checked">
99       <bool>true</bool>
100      </property>
101      <property name="settingsKey" stdset="0">
102       <string notr="true">AutoConnectOnStartup</string>
103      </property>
104      <property name="defaultValue" stdset="0">
105       <bool>true</bool>
106      </property>
107     </widget>
108    </item>
109    <item>
110     <layout class="QHBoxLayout" name="horizontalLayout_4">
111      <item>
112       <spacer name="horizontalSpacer_3">
113        <property name="orientation">
114         <enum>Qt::Horizontal</enum>
115        </property>
116        <property name="sizeType">
117         <enum>QSizePolicy::Fixed</enum>
118        </property>
119        <property name="sizeHint" stdset="0">
120         <size>
121          <width>20</width>
122          <height>20</height>
123         </size>
124        </property>
125       </spacer>
126      </item>
127      <item>
128       <widget class="QWidget" name="widget" native="true">
129        <layout class="QVBoxLayout" name="verticalLayout">
130         <property name="margin">
131          <number>0</number>
132         </property>
133         <item>
134          <widget class="QRadioButton" name="autoConnectToLast">
135           <property name="text">
136            <string>Connect to last account used</string>
137           </property>
138           <property name="checked">
139            <bool>true</bool>
140           </property>
141          </widget>
142         </item>
143         <item>
144          <layout class="QHBoxLayout" name="horizontalLayout_3">
145           <item>
146            <widget class="QRadioButton" name="autoConnectToFixedAccount">
147             <property name="text">
148              <string>Always connect to</string>
149             </property>
150             <property name="settingsKey" stdset="0">
151              <string notr="true">AutoConnectToFixedAccount</string>
152             </property>
153             <property name="defaultValue" stdset="0">
154              <bool>false</bool>
155             </property>
156            </widget>
157           </item>
158           <item>
159            <widget class="QComboBox" name="autoConnectAccount">
160             <property name="enabled">
161              <bool>false</bool>
162             </property>
163            </widget>
164           </item>
165           <item>
166            <spacer name="horizontalSpacer">
167             <property name="orientation">
168              <enum>Qt::Horizontal</enum>
169             </property>
170             <property name="sizeHint" stdset="0">
171              <size>
172               <width>40</width>
173               <height>20</height>
174              </size>
175             </property>
176            </spacer>
177           </item>
178          </layout>
179         </item>
180        </layout>
181       </widget>
182      </item>
183     </layout>
184    </item>
185   </layout>
186  </widget>
187  <tabstops>
188   <tabstop>accountView</tabstop>
189   <tabstop>editAccountButton</tabstop>
190   <tabstop>addAccountButton</tabstop>
191   <tabstop>deleteAccountButton</tabstop>
192   <tabstop>autoConnectOnStartup</tabstop>
193   <tabstop>autoConnectToLast</tabstop>
194   <tabstop>autoConnectToFixedAccount</tabstop>
195   <tabstop>autoConnectAccount</tabstop>
196  </tabstops>
197  <resources/>
198  <connections>
199   <connection>
200    <sender>autoConnectOnStartup</sender>
201    <signal>toggled(bool)</signal>
202    <receiver>widget</receiver>
203    <slot>setEnabled(bool)</slot>
204    <hints>
205     <hint type="sourcelabel">
206      <x>94</x>
207      <y>390</y>
208     </hint>
209     <hint type="destinationlabel">
210      <x>391</x>
211      <y>450</y>
212     </hint>
213    </hints>
214   </connection>
215   <connection>
216    <sender>autoConnectToFixedAccount</sender>
217    <signal>toggled(bool)</signal>
218    <receiver>autoConnectAccount</receiver>
219    <slot>setEnabled(bool)</slot>
220    <hints>
221     <hint type="sourcelabel">
222      <x>154</x>
223      <y>445</y>
224     </hint>
225     <hint type="destinationlabel">
226      <x>256</x>
227      <y>449</y>
228     </hint>
229    </hints>
230   </connection>
231  </connections>
232 </ui>