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