source: trunk/tools/designer/editor/preferences.ui

Last change on this file was 197, checked in by rudi, 14 years ago

Added QtDesigner

File size: 21.2 KB
Line 
1<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
2<class>PreferencesBase</class>
3<comment>*********************************************************************
4** Copyright (C) 2000-2007 Trolltech ASA. All rights reserved.
5**
6** This file is part of Qt Designer.
7**
8** This file may be distributed and/or modified under the terms of the
9** GNU General Public License version 2 as published by the Free Software
10** Foundation and appearing in the file LICENSE.GPL included in the
11** packaging of this file.
12**
13** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
14** licenses may use this file in accordance with the Qt Commercial License
15** Agreement provided with the Software.
16**
17** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19**
20** See http://www.trolltech.com/gpl/ for GPL licensing information.
21** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
22** information about Qt Commercial License Agreements.
23**
24** Contact info@trolltech.com if any conditions of this licensing are
25** not clear to you.
26**
27*********************************************************************</comment>
28<widget class="QWidget">
29 <property name="name">
30 <cstring>PreferencesBase</cstring>
31 </property>
32 <property name="geometry">
33 <rect>
34 <x>0</x>
35 <y>0</y>
36 <width>362</width>
37 <height>396</height>
38 </rect>
39 </property>
40 <property name="caption">
41 <string>Form1</string>
42 </property>
43 <grid>
44 <property name="name">
45 <cstring>unnamed</cstring>
46 </property>
47 <property name="margin">
48 <number>6</number>
49 </property>
50 <property name="spacing">
51 <number>6</number>
52 </property>
53 <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="2">
54 <property name="name">
55 <cstring>GroupBox2</cstring>
56 </property>
57 <property name="frameShape">
58 <enum>Box</enum>
59 </property>
60 <property name="frameShadow">
61 <enum>Sunken</enum>
62 </property>
63 <property name="title">
64 <string>S&amp;yntax Highlighting</string>
65 </property>
66 <grid>
67 <property name="name">
68 <cstring>unnamed</cstring>
69 </property>
70 <property name="margin">
71 <number>11</number>
72 </property>
73 <property name="spacing">
74 <number>6</number>
75 </property>
76 <widget class="QLabel" row="0" column="0">
77 <property name="name">
78 <cstring>TextLabel1</cstring>
79 </property>
80 <property name="text">
81 <string>&amp;Element:</string>
82 </property>
83 <property name="buddy" stdset="0">
84 <cstring>listElements</cstring>
85 </property>
86 </widget>
87 <widget class="QLayoutWidget" row="1" column="1" rowspan="3" colspan="1">
88 <property name="name">
89 <cstring>Layout1</cstring>
90 </property>
91 <grid>
92 <property name="name">
93 <cstring>unnamed</cstring>
94 </property>
95 <property name="margin">
96 <number>0</number>
97 </property>
98 <property name="spacing">
99 <number>6</number>
100 </property>
101 <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="2">
102 <property name="name">
103 <cstring>checkBold</cstring>
104 </property>
105 <property name="text">
106 <string>&amp;Bold</string>
107 </property>
108 </widget>
109 <widget class="QToolButton" row="5" column="1">
110 <property name="name">
111 <cstring>buttonColor</cstring>
112 </property>
113 <property name="sizePolicy">
114 <sizepolicy>
115 <hsizetype>1</hsizetype>
116 <vsizetype>0</vsizetype>
117 <horstretch>0</horstretch>
118 <verstretch>0</verstretch>
119 </sizepolicy>
120 </property>
121 <property name="text">
122 <string>...</string>
123 </property>
124 </widget>
125 <widget class="QComboBox" row="0" column="1">
126 <property name="name">
127 <cstring>comboFamily</cstring>
128 </property>
129 <property name="editable">
130 <bool>true</bool>
131 </property>
132 </widget>
133 <widget class="QLabel" row="0" column="0">
134 <property name="name">
135 <cstring>TextLabel2</cstring>
136 </property>
137 <property name="text">
138 <string>&amp;Family:</string>
139 </property>
140 <property name="buddy" stdset="0">
141 <cstring>comboFamily</cstring>
142 </property>
143 </widget>
144 <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="2">
145 <property name="name">
146 <cstring>checkUnderline</cstring>
147 </property>
148 <property name="text">
149 <string>&amp;Underline</string>
150 </property>
151 </widget>
152 <widget class="QSpinBox" row="1" column="1">
153 <property name="name">
154 <cstring>spinSize</cstring>
155 </property>
156 <property name="minValue">
157 <number>1</number>
158 </property>
159 </widget>
160 <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2">
161 <property name="name">
162 <cstring>checkItalic</cstring>
163 </property>
164 <property name="text">
165 <string>&amp;Italic</string>
166 </property>
167 </widget>
168 <widget class="QLabel" row="5" column="0">
169 <property name="name">
170 <cstring>TextLabel4</cstring>
171 </property>
172 <property name="text">
173 <string>Change co&amp;lor:</string>
174 </property>
175 <property name="buddy" stdset="0">
176 <cstring>buttonColor</cstring>
177 </property>
178 </widget>
179 <widget class="QLabel" row="1" column="0">
180 <property name="name">
181 <cstring>TextLabel3</cstring>
182 </property>
183 <property name="text">
184 <string>&amp;Size:</string>
185 </property>
186 <property name="buddy" stdset="0">
187 <cstring>spinSize</cstring>
188 </property>
189 </widget>
190 </grid>
191 </widget>
192 <widget class="QListBox" row="1" column="0">
193 <item>
194 <property name="text">
195 <string>Comment</string>
196 </property>
197 </item>
198 <item>
199 <property name="text">
200 <string>Number</string>
201 </property>
202 </item>
203 <item>
204 <property name="text">
205 <string>String</string>
206 </property>
207 </item>
208 <item>
209 <property name="text">
210 <string>Type</string>
211 </property>
212 </item>
213 <item>
214 <property name="text">
215 <string>Keyword</string>
216 </property>
217 </item>
218 <item>
219 <property name="text">
220 <string>Preprocessor</string>
221 </property>
222 </item>
223 <item>
224 <property name="text">
225 <string>Label</string>
226 </property>
227 </item>
228 <item>
229 <property name="text">
230 <string>Standard</string>
231 </property>
232 </item>
233 <property name="name">
234 <cstring>listElements</cstring>
235 </property>
236 </widget>
237 <widget class="QLabel" row="2" column="0">
238 <property name="name">
239 <cstring>TextLabel2_2</cstring>
240 </property>
241 <property name="text">
242 <string>&amp;Preview:</string>
243 </property>
244 <property name="buddy" stdset="0">
245 <cstring>editPreview</cstring>
246 </property>
247 </widget>
248 <widget class="QLineEdit" row="3" column="0">
249 <property name="name">
250 <cstring>editPreview</cstring>
251 </property>
252 <property name="text">
253 <string>Some Text</string>
254 </property>
255 </widget>
256 <spacer row="4" column="1">
257 <property name="name">
258 <cstring>Spacer2</cstring>
259 </property>
260 <property name="orientation">
261 <enum>Vertical</enum>
262 </property>
263 <property name="sizeType">
264 <enum>Expanding</enum>
265 </property>
266 <property name="sizeHint">
267 <size>
268 <width>20</width>
269 <height>0</height>
270 </size>
271 </property>
272 </spacer>
273 </grid>
274 </widget>
275 <widget class="QGroupBox" row="1" column="0">
276 <property name="name">
277 <cstring>GroupBox3</cstring>
278 </property>
279 <property name="title">
280 <string>Optio&amp;ns</string>
281 </property>
282 <vbox>
283 <property name="name">
284 <cstring>unnamed</cstring>
285 </property>
286 <property name="margin">
287 <number>11</number>
288 </property>
289 <property name="spacing">
290 <number>6</number>
291 </property>
292 <widget class="QCheckBox">
293 <property name="name">
294 <cstring>checkWordWrap</cstring>
295 </property>
296 <property name="text">
297 <string>&amp;Word Wrap</string>
298 </property>
299 </widget>
300 <widget class="QCheckBox">
301 <property name="name">
302 <cstring>checkCompletion</cstring>
303 </property>
304 <property name="text">
305 <string>Comple&amp;tion</string>
306 </property>
307 </widget>
308 <widget class="QCheckBox">
309 <property name="name">
310 <cstring>checkParenMatching</cstring>
311 </property>
312 <property name="text">
313 <string>Parentheses &amp;Matching</string>
314 </property>
315 </widget>
316 </vbox>
317 </widget>
318 <widget class="QGroupBox" row="1" column="1">
319 <property name="name">
320 <cstring>GroupBox3_2</cstring>
321 </property>
322 <property name="title">
323 <string>Indentation</string>
324 </property>
325 <vbox>
326 <property name="name">
327 <cstring>unnamed</cstring>
328 </property>
329 <property name="margin">
330 <number>11</number>
331 </property>
332 <property name="spacing">
333 <number>6</number>
334 </property>
335 <widget class="QLayoutWidget">
336 <property name="name">
337 <cstring>Layout2</cstring>
338 </property>
339 <grid>
340 <property name="name">
341 <cstring>unnamed</cstring>
342 </property>
343 <property name="margin">
344 <number>0</number>
345 </property>
346 <property name="spacing">
347 <number>6</number>
348 </property>
349 <widget class="QSpinBox" row="0" column="1">
350 <property name="name">
351 <cstring>spinTabSize</cstring>
352 </property>
353 <property name="value">
354 <number>8</number>
355 </property>
356 </widget>
357 <widget class="QLabel" row="0" column="0">
358 <property name="name">
359 <cstring>TextLabel1_2</cstring>
360 </property>
361 <property name="text">
362 <string>Tab Size:</string>
363 </property>
364 </widget>
365 <widget class="QSpinBox" row="1" column="1">
366 <property name="name">
367 <cstring>spinIndentSize</cstring>
368 </property>
369 <property name="value">
370 <number>4</number>
371 </property>
372 </widget>
373 <widget class="QLabel" row="1" column="0">
374 <property name="name">
375 <cstring>TextLabel2_3</cstring>
376 </property>
377 <property name="text">
378 <string>Indent Size:</string>
379 </property>
380 </widget>
381 </grid>
382 </widget>
383 <widget class="QCheckBox">
384 <property name="name">
385 <cstring>checkKeepTabs</cstring>
386 </property>
387 <property name="text">
388 <string>Keep Tabs</string>
389 </property>
390 <property name="checked">
391 <bool>true</bool>
392 </property>
393 </widget>
394 <widget class="QCheckBox">
395 <property name="name">
396 <cstring>checkAutoIndent</cstring>
397 </property>
398 <property name="text">
399 <string>Auto Indent</string>
400 </property>
401 <property name="checked">
402 <bool>true</bool>
403 </property>
404 </widget>
405 </vbox>
406 </widget>
407 </grid>
408</widget>
409<connections>
410 <connection>
411 <sender>spinSize</sender>
412 <signal>valueChanged(int)</signal>
413 <receiver>PreferencesBase</receiver>
414 <slot>sizeChanged(int)</slot>
415 </connection>
416 <connection>
417 <sender>checkBold</sender>
418 <signal>toggled(bool)</signal>
419 <receiver>PreferencesBase</receiver>
420 <slot>boldChanged(bool)</slot>
421 </connection>
422 <connection>
423 <sender>checkItalic</sender>
424 <signal>toggled(bool)</signal>
425 <receiver>PreferencesBase</receiver>
426 <slot>italicChanged(bool)</slot>
427 </connection>
428 <connection>
429 <sender>checkUnderline</sender>
430 <signal>toggled(bool)</signal>
431 <receiver>PreferencesBase</receiver>
432 <slot>underlineChanged(bool)</slot>
433 </connection>
434 <connection>
435 <sender>buttonColor</sender>
436 <signal>clicked()</signal>
437 <receiver>PreferencesBase</receiver>
438 <slot>colorClicked()</slot>
439 </connection>
440 <connection>
441 <sender>comboFamily</sender>
442 <signal>activated(const QString&amp;)</signal>
443 <receiver>PreferencesBase</receiver>
444 <slot>familyChanged(const QString&amp;)</slot>
445 </connection>
446 <connection>
447 <sender>listElements</sender>
448 <signal>highlighted(const QString&amp;)</signal>
449 <receiver>PreferencesBase</receiver>
450 <slot>elementChanged(const QString&amp;)</slot>
451 </connection>
452</connections>
453<tabstops>
454 <tabstop>listElements</tabstop>
455 <tabstop>editPreview</tabstop>
456 <tabstop>comboFamily</tabstop>
457 <tabstop>spinSize</tabstop>
458 <tabstop>checkBold</tabstop>
459 <tabstop>checkItalic</tabstop>
460 <tabstop>checkUnderline</tabstop>
461 <tabstop>checkWordWrap</tabstop>
462 <tabstop>checkCompletion</tabstop>
463 <tabstop>checkParenMatching</tabstop>
464</tabstops>
465<includes>
466 <include location="global" impldecl="in declaration">qmap.h</include>
467 <include location="local" impldecl="in declaration">conf.h</include>
468 <include location="global" impldecl="in implementation">qpalette.h</include>
469 <include location="global" impldecl="in implementation">qlineedit.h</include>
470 <include location="global" impldecl="in implementation">qpixmap.h</include>
471 <include location="global" impldecl="in implementation">qcombobox.h</include>
472 <include location="global" impldecl="in implementation">qfontdatabase.h</include>
473 <include location="local" impldecl="in implementation">editor.h</include>
474 <include location="global" impldecl="in implementation">qpushbutton.h</include>
475 <include location="global" impldecl="in implementation">qcheckbox.h</include>
476 <include location="global" impldecl="in implementation">qcolordialog.h</include>
477 <include location="global" impldecl="in implementation">qsettings.h</include>
478 <include location="local" impldecl="in implementation">preferences.ui.h</include>
479</includes>
480<variables>
481 <variable>QString path;</variable>
482 <variable>QMap&lt;QString, ConfigStyle&gt; styles;</variable>
483 <variable>ConfigStyle currentStyle;</variable>
484 <variable>QString currentElement;</variable>
485</variables>
486<slots>
487 <slot>init()</slot>
488 <slot>destroy()</slot>
489 <slot>colorClicked()</slot>
490 <slot>reInit()</slot>
491 <slot>save()</slot>
492 <slot>updatePreview()</slot>
493 <slot>boldChanged( bool b )</slot>
494 <slot>elementChanged( const QString &amp; element )</slot>
495 <slot>familyChanged( const QString &amp; f )</slot>
496 <slot>italicChanged( bool b )</slot>
497 <slot>setColorPixmap( const QColor &amp; c )</slot>
498 <slot>setPath( const QString &amp; p )</slot>
499 <slot>sizeChanged( int s )</slot>
500 <slot>underlineChanged( bool b )</slot>
501</slots>
502<layoutdefaults spacing="6" margin="11"/>
503</UI>
Note: See TracBrowser for help on using the repository browser.