|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <ui version="4.0" stdsetdef="1"> |
|
3 <author></author> |
|
4 <comment></comment> |
|
5 <exportmacro></exportmacro> |
|
6 <class>EditorForm</class> |
|
7 <widget class="Q3MainWindow" name="EditorForm"> |
|
8 <property name="geometry"> |
|
9 <rect> |
|
10 <x>0</x> |
|
11 <y>0</y> |
|
12 <width>646</width> |
|
13 <height>436</height> |
|
14 </rect> |
|
15 </property> |
|
16 <property name="windowTitle"> |
|
17 <string>Rich Edit</string> |
|
18 </property> |
|
19 <widget class="QWidget"> |
|
20 <layout class="QHBoxLayout"> |
|
21 <property name="margin"> |
|
22 <number>11</number> |
|
23 </property> |
|
24 <property name="spacing"> |
|
25 <number>6</number> |
|
26 </property> |
|
27 <item> |
|
28 <widget class="Q3TextEdit" name="textEdit"> |
|
29 <property name="sizePolicy"> |
|
30 <sizepolicy> |
|
31 <hsizetype>7</hsizetype> |
|
32 <vsizetype>7</vsizetype> |
|
33 <horstretch>0</horstretch> |
|
34 <verstretch>0</verstretch> |
|
35 </sizepolicy> |
|
36 </property> |
|
37 <property name="textFormat"> |
|
38 <enum>Qt::RichText</enum> |
|
39 </property> |
|
40 </widget> |
|
41 </item> |
|
42 </layout> |
|
43 </widget> |
|
44 <widget class="Q3ToolBar" name="toolBar"> |
|
45 <property name="label"> |
|
46 <string>Tools</string> |
|
47 </property> |
|
48 <addaction name="fileNewAction"/> |
|
49 <addaction name="fileOpenAction"/> |
|
50 <addaction name="fileSaveAction"/> |
|
51 <addaction name="separator"/> |
|
52 <addaction name="editUndoAction"/> |
|
53 <addaction name="editRedoAction"/> |
|
54 <addaction name="editCutAction"/> |
|
55 <addaction name="editCopyAction"/> |
|
56 <addaction name="editPasteAction"/> |
|
57 </widget> |
|
58 <widget class="Q3ToolBar" name="Toolbar"> |
|
59 <property name="label"> |
|
60 <string>Toolbar</string> |
|
61 </property> |
|
62 <widget class="QComboBox" name="fontComboBox"/> |
|
63 <widget class="QSpinBox" name="SpinBox2"> |
|
64 <property name="minimum"> |
|
65 <number>6</number> |
|
66 </property> |
|
67 <property name="value"> |
|
68 <number>10</number> |
|
69 </property> |
|
70 </widget> |
|
71 <addaction name="leftAlignAction"/> |
|
72 <addaction name="centerAlignAction"/> |
|
73 <addaction name="rightAlignAction"/> |
|
74 <addaction name="separator"/> |
|
75 <addaction name="boldAction"/> |
|
76 <addaction name="italicAction"/> |
|
77 <addaction name="underlineAction"/> |
|
78 <addaction name="separator"/> |
|
79 <addaction name="fontComboBox"/> |
|
80 <addaction name="SpinBox2"/> |
|
81 </widget> |
|
82 <widget class="QMenuBar" name="menubar"> |
|
83 <widget class="QMenu" name="fileMenu"> |
|
84 <property name="title"> |
|
85 <string>&File</string> |
|
86 </property> |
|
87 <addaction name="fileNewAction"/> |
|
88 <addaction name="fileOpenAction"/> |
|
89 <addaction name="fileSaveAction"/> |
|
90 <addaction name="fileSaveAsAction"/> |
|
91 <addaction name="separator"/> |
|
92 <addaction name="fileExitAction"/> |
|
93 </widget> |
|
94 <widget class="QMenu" name="editMenu"> |
|
95 <property name="title"> |
|
96 <string>&Edit</string> |
|
97 </property> |
|
98 <addaction name="editUndoAction"/> |
|
99 <addaction name="editRedoAction"/> |
|
100 <addaction name="separator"/> |
|
101 <addaction name="editCutAction"/> |
|
102 <addaction name="editCopyAction"/> |
|
103 <addaction name="editPasteAction"/> |
|
104 </widget> |
|
105 <widget class="QMenu" name="PopupMenu_2"> |
|
106 <property name="title"> |
|
107 <string>F&ormat</string> |
|
108 </property> |
|
109 <addaction name="leftAlignAction"/> |
|
110 <addaction name="rightAlignAction"/> |
|
111 <addaction name="centerAlignAction"/> |
|
112 <addaction name="separator"/> |
|
113 <addaction name="boldAction"/> |
|
114 <addaction name="italicAction"/> |
|
115 <addaction name="underlineAction"/> |
|
116 </widget> |
|
117 <widget class="QMenu" name="helpMenu"> |
|
118 <property name="title"> |
|
119 <string>&Help</string> |
|
120 </property> |
|
121 <addaction name="helpContentsAction"/> |
|
122 <addaction name="helpIndexAction"/> |
|
123 <addaction name="separator"/> |
|
124 <addaction name="helpAboutAction"/> |
|
125 </widget> |
|
126 <addaction name="fileMenu"/> |
|
127 <addaction name="editMenu"/> |
|
128 <addaction name="PopupMenu_2"/> |
|
129 <addaction name="helpMenu"/> |
|
130 </widget> |
|
131 <action name="fileNewAction"> |
|
132 <property name="name"> |
|
133 <cstring>fileNewAction</cstring> |
|
134 </property> |
|
135 <property name="icon"> |
|
136 <iconset>filenew.png</iconset> |
|
137 </property> |
|
138 <property name="iconText"> |
|
139 <string>New</string> |
|
140 </property> |
|
141 <property name="text"> |
|
142 <string>&New</string> |
|
143 </property> |
|
144 <property name="shortcut"> |
|
145 <number>4194382</number> |
|
146 </property> |
|
147 </action> |
|
148 <action name="fileOpenAction"> |
|
149 <property name="name"> |
|
150 <cstring>fileOpenAction</cstring> |
|
151 </property> |
|
152 <property name="icon"> |
|
153 <iconset>fileopen.png</iconset> |
|
154 </property> |
|
155 <property name="iconText"> |
|
156 <string>Open</string> |
|
157 </property> |
|
158 <property name="text"> |
|
159 <string>&Open...</string> |
|
160 </property> |
|
161 <property name="shortcut"> |
|
162 <number>4194383</number> |
|
163 </property> |
|
164 </action> |
|
165 <action name="fileSaveAction"> |
|
166 <property name="name"> |
|
167 <cstring>fileSaveAction</cstring> |
|
168 </property> |
|
169 <property name="icon"> |
|
170 <iconset>filesave.png</iconset> |
|
171 </property> |
|
172 <property name="iconText"> |
|
173 <string>Save</string> |
|
174 </property> |
|
175 <property name="text"> |
|
176 <string>&Save</string> |
|
177 </property> |
|
178 <property name="shortcut"> |
|
179 <number>4194387</number> |
|
180 </property> |
|
181 </action> |
|
182 <action name="fileSaveAsAction"> |
|
183 <property name="name"> |
|
184 <cstring>fileSaveAsAction</cstring> |
|
185 </property> |
|
186 <property name="iconText"> |
|
187 <string>Save As</string> |
|
188 </property> |
|
189 <property name="text"> |
|
190 <string>Save &As...</string> |
|
191 </property> |
|
192 <property name="shortcut"> |
|
193 <number>0</number> |
|
194 </property> |
|
195 </action> |
|
196 <action name="fileExitAction"> |
|
197 <property name="name"> |
|
198 <cstring>fileExitAction</cstring> |
|
199 </property> |
|
200 <property name="iconText"> |
|
201 <string>Exit</string> |
|
202 </property> |
|
203 <property name="text"> |
|
204 <string>E&xit</string> |
|
205 </property> |
|
206 <property name="shortcut"> |
|
207 <number>0</number> |
|
208 </property> |
|
209 </action> |
|
210 <action name="editUndoAction"> |
|
211 <property name="name"> |
|
212 <cstring>editUndoAction</cstring> |
|
213 </property> |
|
214 <property name="icon"> |
|
215 <iconset>undo.png</iconset> |
|
216 </property> |
|
217 <property name="iconText"> |
|
218 <string>Undo</string> |
|
219 </property> |
|
220 <property name="text"> |
|
221 <string>&Undo</string> |
|
222 </property> |
|
223 <property name="shortcut"> |
|
224 <number>4194394</number> |
|
225 </property> |
|
226 </action> |
|
227 <action name="editRedoAction"> |
|
228 <property name="name"> |
|
229 <cstring>editRedoAction</cstring> |
|
230 </property> |
|
231 <property name="icon"> |
|
232 <iconset>redo.png</iconset> |
|
233 </property> |
|
234 <property name="iconText"> |
|
235 <string>Redo</string> |
|
236 </property> |
|
237 <property name="text"> |
|
238 <string>&Redo</string> |
|
239 </property> |
|
240 <property name="shortcut"> |
|
241 <number>4194393</number> |
|
242 </property> |
|
243 </action> |
|
244 <action name="editCutAction"> |
|
245 <property name="name"> |
|
246 <cstring>editCutAction</cstring> |
|
247 </property> |
|
248 <property name="icon"> |
|
249 <iconset>editcut.png</iconset> |
|
250 </property> |
|
251 <property name="iconText"> |
|
252 <string>Cut</string> |
|
253 </property> |
|
254 <property name="text"> |
|
255 <string>&Cut</string> |
|
256 </property> |
|
257 <property name="shortcut"> |
|
258 <number>4194392</number> |
|
259 </property> |
|
260 </action> |
|
261 <action name="editCopyAction"> |
|
262 <property name="name"> |
|
263 <cstring>editCopyAction</cstring> |
|
264 </property> |
|
265 <property name="icon"> |
|
266 <iconset>editcopy.png</iconset> |
|
267 </property> |
|
268 <property name="iconText"> |
|
269 <string>Copy</string> |
|
270 </property> |
|
271 <property name="text"> |
|
272 <string>C&opy</string> |
|
273 </property> |
|
274 <property name="shortcut"> |
|
275 <number>4194371</number> |
|
276 </property> |
|
277 </action> |
|
278 <action name="editPasteAction"> |
|
279 <property name="name"> |
|
280 <cstring>editPasteAction</cstring> |
|
281 </property> |
|
282 <property name="icon"> |
|
283 <iconset>editpaste.png</iconset> |
|
284 </property> |
|
285 <property name="iconText"> |
|
286 <string>Paste</string> |
|
287 </property> |
|
288 <property name="text"> |
|
289 <string>&Paste</string> |
|
290 </property> |
|
291 <property name="shortcut"> |
|
292 <number>4194390</number> |
|
293 </property> |
|
294 </action> |
|
295 <action name="helpContentsAction"> |
|
296 <property name="name"> |
|
297 <cstring>helpContentsAction</cstring> |
|
298 </property> |
|
299 <property name="iconText"> |
|
300 <string>Contents</string> |
|
301 </property> |
|
302 <property name="text"> |
|
303 <string>&Contents...</string> |
|
304 </property> |
|
305 <property name="shortcut"> |
|
306 <number>0</number> |
|
307 </property> |
|
308 </action> |
|
309 <action name="helpIndexAction"> |
|
310 <property name="name"> |
|
311 <cstring>helpIndexAction</cstring> |
|
312 </property> |
|
313 <property name="iconText"> |
|
314 <string>Index</string> |
|
315 </property> |
|
316 <property name="text"> |
|
317 <string>&Index...</string> |
|
318 </property> |
|
319 <property name="shortcut"> |
|
320 <number>0</number> |
|
321 </property> |
|
322 </action> |
|
323 <action name="helpAboutAction"> |
|
324 <property name="name"> |
|
325 <cstring>helpAboutAction</cstring> |
|
326 </property> |
|
327 <property name="iconText"> |
|
328 <string>About</string> |
|
329 </property> |
|
330 <property name="text"> |
|
331 <string>&About</string> |
|
332 </property> |
|
333 <property name="shortcut"> |
|
334 <number>0</number> |
|
335 </property> |
|
336 </action> |
|
337 <action name="boldAction"> |
|
338 <property name="name"> |
|
339 <cstring>boldAction</cstring> |
|
340 </property> |
|
341 <property name="checkable"> |
|
342 <bool>true</bool> |
|
343 </property> |
|
344 <property name="icon"> |
|
345 <iconset>textbold.png</iconset> |
|
346 </property> |
|
347 <property name="iconText"> |
|
348 <string>bold</string> |
|
349 </property> |
|
350 <property name="text"> |
|
351 <string>&Bold</string> |
|
352 </property> |
|
353 <property name="shortcut"> |
|
354 <number>272629826</number> |
|
355 </property> |
|
356 </action> |
|
357 <action name="italicAction"> |
|
358 <property name="name"> |
|
359 <cstring>italicAction</cstring> |
|
360 </property> |
|
361 <property name="checkable"> |
|
362 <bool>true</bool> |
|
363 </property> |
|
364 <property name="icon"> |
|
365 <iconset>textitalic.png</iconset> |
|
366 </property> |
|
367 <property name="iconText"> |
|
368 <string>italic</string> |
|
369 </property> |
|
370 <property name="text"> |
|
371 <string>&Italic</string> |
|
372 </property> |
|
373 <property name="shortcut"> |
|
374 <number>272629833</number> |
|
375 </property> |
|
376 </action> |
|
377 <action name="underlineAction"> |
|
378 <property name="name"> |
|
379 <cstring>underlineAction</cstring> |
|
380 </property> |
|
381 <property name="checkable"> |
|
382 <bool>true</bool> |
|
383 </property> |
|
384 <property name="icon"> |
|
385 <iconset>textunder.png</iconset> |
|
386 </property> |
|
387 <property name="iconText"> |
|
388 <string>underline</string> |
|
389 </property> |
|
390 <property name="text"> |
|
391 <string>&Underline</string> |
|
392 </property> |
|
393 <property name="shortcut"> |
|
394 <number>272629845</number> |
|
395 </property> |
|
396 </action> |
|
397 <actiongroup name="alignActionGroup"> |
|
398 <action name="leftAlignAction"> |
|
399 <property name="name"> |
|
400 <cstring>leftAlignAction</cstring> |
|
401 </property> |
|
402 <property name="checkable"> |
|
403 <bool>true</bool> |
|
404 </property> |
|
405 <property name="icon"> |
|
406 <iconset>textleft.png</iconset> |
|
407 </property> |
|
408 <property name="iconText"> |
|
409 <string>left</string> |
|
410 </property> |
|
411 <property name="text"> |
|
412 <string>&Left</string> |
|
413 </property> |
|
414 <property name="shortcut"> |
|
415 <number>272629836</number> |
|
416 </property> |
|
417 </action> |
|
418 <action name="rightAlignAction"> |
|
419 <property name="name"> |
|
420 <cstring>rightAlignAction</cstring> |
|
421 </property> |
|
422 <property name="checkable"> |
|
423 <bool>true</bool> |
|
424 </property> |
|
425 <property name="icon"> |
|
426 <iconset>textright.png</iconset> |
|
427 </property> |
|
428 <property name="iconText"> |
|
429 <string>right</string> |
|
430 </property> |
|
431 <property name="text"> |
|
432 <string>&Right</string> |
|
433 </property> |
|
434 <property name="shortcut"> |
|
435 <number>272629842</number> |
|
436 </property> |
|
437 </action> |
|
438 <action name="centerAlignAction"> |
|
439 <property name="name"> |
|
440 <cstring>centerAlignAction</cstring> |
|
441 </property> |
|
442 <property name="checkable"> |
|
443 <bool>true</bool> |
|
444 </property> |
|
445 <property name="icon"> |
|
446 <iconset>textcenter.png</iconset> |
|
447 </property> |
|
448 <property name="iconText"> |
|
449 <string>center</string> |
|
450 </property> |
|
451 <property name="text"> |
|
452 <string>&Center</string> |
|
453 </property> |
|
454 </action> |
|
455 <property name="name"> |
|
456 <cstring>alignActionGroup</cstring> |
|
457 </property> |
|
458 </actiongroup> |
|
459 </widget> |
|
460 <layoutdefault spacing="6" margin="11"/> |
|
461 <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> |
|
462 <connections> |
|
463 <connection> |
|
464 <sender>fileNewAction</sender> |
|
465 <signal>activated()</signal> |
|
466 <receiver>EditorForm</receiver> |
|
467 <slot>fileNew()</slot> |
|
468 </connection> |
|
469 <connection> |
|
470 <sender>fileOpenAction</sender> |
|
471 <signal>activated()</signal> |
|
472 <receiver>EditorForm</receiver> |
|
473 <slot>fileOpen()</slot> |
|
474 </connection> |
|
475 <connection> |
|
476 <sender>fileSaveAction</sender> |
|
477 <signal>activated()</signal> |
|
478 <receiver>EditorForm</receiver> |
|
479 <slot>fileSave()</slot> |
|
480 </connection> |
|
481 <connection> |
|
482 <sender>fileSaveAsAction</sender> |
|
483 <signal>activated()</signal> |
|
484 <receiver>EditorForm</receiver> |
|
485 <slot>fileSaveAs()</slot> |
|
486 </connection> |
|
487 <connection> |
|
488 <sender>fileExitAction</sender> |
|
489 <signal>activated()</signal> |
|
490 <receiver>EditorForm</receiver> |
|
491 <slot>fileExit()</slot> |
|
492 </connection> |
|
493 <connection> |
|
494 <sender>helpIndexAction</sender> |
|
495 <signal>activated()</signal> |
|
496 <receiver>EditorForm</receiver> |
|
497 <slot>helpIndex()</slot> |
|
498 </connection> |
|
499 <connection> |
|
500 <sender>helpContentsAction</sender> |
|
501 <signal>activated()</signal> |
|
502 <receiver>EditorForm</receiver> |
|
503 <slot>helpContents()</slot> |
|
504 </connection> |
|
505 <connection> |
|
506 <sender>helpAboutAction</sender> |
|
507 <signal>activated()</signal> |
|
508 <receiver>EditorForm</receiver> |
|
509 <slot>helpAbout()</slot> |
|
510 </connection> |
|
511 <connection> |
|
512 <sender>SpinBox2</sender> |
|
513 <signal>valueChanged(int)</signal> |
|
514 <receiver>textEdit</receiver> |
|
515 <slot>setPointSize(int)</slot> |
|
516 </connection> |
|
517 <connection> |
|
518 <sender>editCutAction</sender> |
|
519 <signal>activated()</signal> |
|
520 <receiver>textEdit</receiver> |
|
521 <slot>cut()</slot> |
|
522 </connection> |
|
523 <connection> |
|
524 <sender>editPasteAction</sender> |
|
525 <signal>activated()</signal> |
|
526 <receiver>textEdit</receiver> |
|
527 <slot>paste()</slot> |
|
528 </connection> |
|
529 <connection> |
|
530 <sender>editCopyAction</sender> |
|
531 <signal>activated()</signal> |
|
532 <receiver>textEdit</receiver> |
|
533 <slot>copy()</slot> |
|
534 </connection> |
|
535 <connection> |
|
536 <sender>editRedoAction</sender> |
|
537 <signal>activated()</signal> |
|
538 <receiver>textEdit</receiver> |
|
539 <slot>redo()</slot> |
|
540 </connection> |
|
541 <connection> |
|
542 <sender>editUndoAction</sender> |
|
543 <signal>activated()</signal> |
|
544 <receiver>textEdit</receiver> |
|
545 <slot>undo()</slot> |
|
546 </connection> |
|
547 <connection> |
|
548 <sender>alignActionGroup</sender> |
|
549 <signal>selected(QAction*)</signal> |
|
550 <receiver>EditorForm</receiver> |
|
551 <slot>changeAlignment(QAction*)</slot> |
|
552 </connection> |
|
553 <connection> |
|
554 <sender>underlineAction</sender> |
|
555 <signal>toggled(bool)</signal> |
|
556 <receiver>textEdit</receiver> |
|
557 <slot>setUnderline(bool)</slot> |
|
558 </connection> |
|
559 <connection> |
|
560 <sender>italicAction</sender> |
|
561 <signal>toggled(bool)</signal> |
|
562 <receiver>textEdit</receiver> |
|
563 <slot>setItalic(bool)</slot> |
|
564 </connection> |
|
565 <connection> |
|
566 <sender>boldAction</sender> |
|
567 <signal>toggled(bool)</signal> |
|
568 <receiver>textEdit</receiver> |
|
569 <slot>setBold(bool)</slot> |
|
570 </connection> |
|
571 <connection> |
|
572 <sender>fontComboBox</sender> |
|
573 <signal>activated(QString)</signal> |
|
574 <receiver>textEdit</receiver> |
|
575 <slot>setFamily(QString)</slot> |
|
576 </connection> |
|
577 <connection> |
|
578 <sender>fontComboBox</sender> |
|
579 <signal>activated(QString)</signal> |
|
580 <receiver>textEdit</receiver> |
|
581 <slot>setFocus()</slot> |
|
582 </connection> |
|
583 </connections> |
|
584 </ui> |