- Documentation
[qt_rdw125klib.git] / RFIDUserManager / userpreferences.ui
blobac4761e575536d905ddc60dcac842095febdec56
1 <ui version="4.0" >
2  <class>UserPreferences</class>
3  <widget class="QDialog" name="UserPreferences" >
4   <property name="geometry" >
5    <rect>
6     <x>0</x>
7     <y>0</y>
8     <width>450</width>
9     <height>425</height>
10    </rect>
11   </property>
12   <property name="windowTitle" >
13    <string>User preferences</string>
14   </property>
15   <property name="styleSheet" >
16    <string>     QPushButton {
17          border: 2px solid #8f8f82;
18          border-radius: 10px;
19          background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
20                                            stop: 0 #f0f0f0, stop: 1 #999999);
21          min-width: 100px;
22      }
24      QPushButton:pressed {
25          background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
26                                            stop: 0 #dadbde, stop: 1 #f6f7fa);
27      }
29      QPushButton:flat {
30          border: none; /* no border for a flat push button */
31      }
33      QPushButton:default {
34          border-color: navy; /* make the default button prominent */
35      } QLineEdit {
36      border: 2px solid gray;
37      border-radius: 10px;
38      padding: 0 8px;
39   selection-background-color: darkgray;
40  }</string>
41   </property>
42   <layout class="QGridLayout" >
43    <item row="0" column="0" >
44     <widget class="QLabel" name="label" >
45      <property name="text" >
46       <string>&amp;Card number:</string>
47      </property>
48      <property name="alignment" >
49       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
50      </property>
51      <property name="buddy" >
52       <cstring>cardNumber</cstring>
53      </property>
54     </widget>
55    </item>
56    <item row="0" column="1" colspan="3" >
57     <widget class="QLineEdit" name="cardNumber" >
58      <property name="toolTip" >
59       <string>This will be the user name, you can't modify it</string>
60      </property>
61      <property name="styleSheet" >
62       <string>QLineEdit {
63      border: 2px solid gray;
64      border-radius: 10px;
65      padding: 0 8px;
66      background: yellow;
67      selection-background-color: darkgray;
68  }</string>
69      </property>
70      <property name="readOnly" >
71       <bool>true</bool>
72      </property>
73     </widget>
74    </item>
75    <item row="1" column="0" >
76     <widget class="QLabel" name="label_2" >
77      <property name="text" >
78       <string>&amp;Real name:</string>
79      </property>
80      <property name="alignment" >
81       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
82      </property>
83      <property name="buddy" >
84       <cstring>realName</cstring>
85      </property>
86     </widget>
87    </item>
88    <item row="1" column="1" colspan="3" >
89     <widget class="QLineEdit" name="realName" >
90      <property name="toolTip" >
91       <string>The real name of this user</string>
92      </property>
93     </widget>
94    </item>
95    <item row="2" column="0" colspan="4" >
96     <widget class="QGroupBox" name="groupBox" >
97      <property name="title" >
98       <string>Password</string>
99      </property>
100      <layout class="QGridLayout" >
101       <item row="0" column="0" >
102        <widget class="QLabel" name="label_3" >
103         <property name="text" >
104          <string>&amp;Introduce</string>
105         </property>
106         <property name="alignment" >
107          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
108         </property>
109         <property name="buddy" >
110          <cstring>password1</cstring>
111         </property>
112        </widget>
113       </item>
114       <item row="0" column="1" >
115        <widget class="QLineEdit" name="password1" >
116         <property name="echoMode" >
117          <enum>QLineEdit::Password</enum>
118         </property>
119        </widget>
120       </item>
121       <item rowspan="2" row="0" column="2" >
122        <widget class="QLabel" name="labelOk" >
123         <property name="toolTip" >
124          <string>Passwords match</string>
125         </property>
126         <property name="text" >
127          <string/>
128         </property>
129         <property name="pixmap" >
130          <pixmap resource="iconos.qrc" >:/ok.png</pixmap>
131         </property>
132        </widget>
133       </item>
134       <item rowspan="2" row="0" column="3" >
135        <widget class="QLabel" name="labelNoOk" >
136         <property name="toolTip" >
137          <string>&lt;html>&lt;body>&lt;P>Passwords don't match, or are too short (minimun 4 characters&lt;/P>&lt;/body>&lt;/html></string>
138         </property>
139         <property name="text" >
140          <string/>
141         </property>
142         <property name="pixmap" >
143          <pixmap resource="iconos.qrc" >:/no_ok.png</pixmap>
144         </property>
145        </widget>
146       </item>
147       <item row="1" column="0" >
148        <widget class="QLabel" name="label_4" >
149         <property name="text" >
150          <string>R&amp;epeat</string>
151         </property>
152         <property name="alignment" >
153          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
154         </property>
155         <property name="buddy" >
156          <cstring>password2</cstring>
157         </property>
158        </widget>
159       </item>
160       <item row="1" column="1" >
161        <widget class="QLineEdit" name="password2" >
162         <property name="echoMode" >
163          <enum>QLineEdit::Password</enum>
164         </property>
165        </widget>
166       </item>
167      </layout>
168     </widget>
169    </item>
170    <item row="3" column="0" colspan="4" >
171     <widget class="QGroupBox" name="groupBox_2" >
172      <property name="minimumSize" >
173       <size>
174        <width>381</width>
175        <height>141</height>
176       </size>
177      </property>
178      <property name="title" >
179       <string>Groups</string>
180      </property>
181      <layout class="QGridLayout" >
182       <item rowspan="2" row="0" column="0" >
183        <widget class="QLabel" name="groupText" >
184         <property name="text" >
185          <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
186 p, li { white-space: pre-wrap; }
187 &lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
188 &lt;p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">By default card users belong to the &lt;span style=" font-weight:600;">{@}&lt;/span> group, choose any additional group you want :&lt;/p>&lt;/body>&lt;/html></string>
189         </property>
190         <property name="textFormat" >
191          <enum>Qt::RichText</enum>
192         </property>
193         <property name="alignment" >
194          <set>Qt::AlignJustify|Qt::AlignTop</set>
195         </property>
196         <property name="wordWrap" >
197          <bool>true</bool>
198         </property>
199         <property name="buddy" >
200          <cstring>groupList</cstring>
201         </property>
202        </widget>
203       </item>
204       <item row="0" column="1" colspan="2" >
205        <widget class="QListWidget" name="groupList" >
206         <property name="selectionMode" >
207          <enum>QAbstractItemView::MultiSelection</enum>
208         </property>
209        </widget>
210       </item>
211       <item row="1" column="1" >
212        <widget class="QPushButton" name="pushButton" >
213         <property name="toolTip" >
214          <string>Add to all groups (bad idea!)</string>
215         </property>
216         <property name="text" >
217          <string>&amp;All</string>
218         </property>
219        </widget>
220       </item>
221       <item row="1" column="2" >
222        <widget class="QPushButton" name="pushButton_2" >
223         <property name="toolTip" >
224          <string>Clear additional groups</string>
225         </property>
226         <property name="text" >
227          <string>&amp;None</string>
228         </property>
229        </widget>
230       </item>
231      </layout>
232     </widget>
233    </item>
234    <item row="4" column="0" colspan="2" >
235     <spacer>
236      <property name="orientation" >
237       <enum>Qt::Horizontal</enum>
238      </property>
239      <property name="sizeHint" >
240       <size>
241        <width>191</width>
242        <height>20</height>
243       </size>
244      </property>
245     </spacer>
246    </item>
247    <item row="4" column="2" >
248     <widget class="QPushButton" name="okButton" >
249      <property name="text" >
250       <string>&amp;Ok</string>
251      </property>
252      <property name="default" >
253       <bool>true</bool>
254      </property>
255     </widget>
256    </item>
257    <item row="4" column="3" >
258     <widget class="QPushButton" name="cancelButton" >
259      <property name="text" >
260       <string>Cance&amp;l</string>
261      </property>
262     </widget>
263    </item>
264   </layout>
265  </widget>
266  <tabstops>
267   <tabstop>realName</tabstop>
268   <tabstop>password1</tabstop>
269   <tabstop>password2</tabstop>
270   <tabstop>groupList</tabstop>
271   <tabstop>pushButton</tabstop>
272   <tabstop>pushButton_2</tabstop>
273   <tabstop>okButton</tabstop>
274   <tabstop>cancelButton</tabstop>
275   <tabstop>cardNumber</tabstop>
276  </tabstops>
277  <resources>
278   <include location="iconos.qrc" />
279  </resources>
280  <connections>
281   <connection>
282    <sender>pushButton</sender>
283    <signal>clicked()</signal>
284    <receiver>groupList</receiver>
285    <slot>selectAll()</slot>
286    <hints>
287     <hint type="sourcelabel" >
288      <x>255</x>
289      <y>354</y>
290     </hint>
291     <hint type="destinationlabel" >
292      <x>266</x>
293      <y>314</y>
294     </hint>
295    </hints>
296   </connection>
297   <connection>
298    <sender>pushButton_2</sender>
299    <signal>clicked()</signal>
300    <receiver>groupList</receiver>
301    <slot>clearSelection()</slot>
302    <hints>
303     <hint type="sourcelabel" >
304      <x>381</x>
305      <y>354</y>
306     </hint>
307     <hint type="destinationlabel" >
308      <x>369</x>
309      <y>311</y>
310     </hint>
311    </hints>
312   </connection>
313   <connection>
314    <sender>okButton</sender>
315    <signal>clicked()</signal>
316    <receiver>UserPreferences</receiver>
317    <slot>accept()</slot>
318    <hints>
319     <hint type="sourcelabel" >
320      <x>291</x>
321      <y>404</y>
322     </hint>
323     <hint type="destinationlabel" >
324      <x>183</x>
325      <y>411</y>
326     </hint>
327    </hints>
328   </connection>
329   <connection>
330    <sender>cancelButton</sender>
331    <signal>clicked()</signal>
332    <receiver>UserPreferences</receiver>
333    <slot>reject()</slot>
334    <hints>
335     <hint type="sourcelabel" >
336      <x>424</x>
337      <y>413</y>
338     </hint>
339     <hint type="destinationlabel" >
340      <x>450</x>
341      <y>410</y>
342     </hint>
343    </hints>
344   </connection>
345  </connections>
346 </ui>