Introduce settingspage for editing core accounts
[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             <property name="settingsKey" stdset="0">
164              <string notr="true"/>
165             </property>
166             <property name="defaultValue" stdset="0">
167              <number>0</number>
168             </property>
169            </widget>
170           </item>
171           <item>
172            <spacer name="horizontalSpacer">
173             <property name="orientation">
174              <enum>Qt::Horizontal</enum>
175             </property>
176             <property name="sizeHint" stdset="0">
177              <size>
178               <width>40</width>
179               <height>20</height>
180              </size>
181             </property>
182            </spacer>
183           </item>
184          </layout>
185         </item>
186        </layout>
187       </widget>
188      </item>
189     </layout>
190    </item>
191   </layout>
192  </widget>
193  <tabstops>
194   <tabstop>accountView</tabstop>
195   <tabstop>editAccountButton</tabstop>
196   <tabstop>addAccountButton</tabstop>
197   <tabstop>deleteAccountButton</tabstop>
198   <tabstop>autoConnectOnStartup</tabstop>
199   <tabstop>autoConnectToLast</tabstop>
200   <tabstop>autoConnectToFixedAccount</tabstop>
201   <tabstop>autoConnectAccount</tabstop>
202  </tabstops>
203  <resources/>
204  <connections>
205   <connection>
206    <sender>autoConnectOnStartup</sender>
207    <signal>toggled(bool)</signal>
208    <receiver>widget</receiver>
209    <slot>setEnabled(bool)</slot>
210    <hints>
211     <hint type="sourcelabel">
212      <x>94</x>
213      <y>390</y>
214     </hint>
215     <hint type="destinationlabel">
216      <x>391</x>
217      <y>450</y>
218     </hint>
219    </hints>
220   </connection>
221   <connection>
222    <sender>autoConnectToFixedAccount</sender>
223    <signal>toggled(bool)</signal>
224    <receiver>autoConnectAccount</receiver>
225    <slot>setEnabled(bool)</slot>
226    <hints>
227     <hint type="sourcelabel">
228      <x>154</x>
229      <y>445</y>
230     </hint>
231     <hint type="destinationlabel">
232      <x>256</x>
233      <y>449</y>
234     </hint>
235    </hints>
236   </connection>
237  </connections>
238 </ui>