|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.IconEditor.IconEditorWindow</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.IconEditor.IconEditorWindow</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing the icon editor main window. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#IconEditorWindow">IconEditorWindow</a></td> |
|
25 <td>Class implementing the web browser main window.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="IconEditorWindow" ID="IconEditorWindow"></a> |
|
36 <h2>IconEditorWindow</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing the web browser main window. |
|
40 </p> |
|
41 <h3>Signals</h3> |
|
42 <dl> |
|
43 |
|
44 <dt>editorClosed()</dt> |
|
45 <dd> |
|
46 emitted after the window was requested to close down |
|
47 </dd> |
|
48 </dl> |
|
49 <h3>Derived from</h3> |
|
50 EricMainWindow |
|
51 <h3>Class Attributes</h3> |
|
52 |
|
53 <table> |
|
54 <tr><td>windows</td></tr> |
|
55 </table> |
|
56 <h3>Class Methods</h3> |
|
57 |
|
58 <table> |
|
59 <tr><td>None</td></tr> |
|
60 </table> |
|
61 <h3>Methods</h3> |
|
62 |
|
63 <table> |
|
64 |
|
65 <tr> |
|
66 <td><a href="#IconEditorWindow.__init__">IconEditorWindow</a></td> |
|
67 <td>Constructor</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#IconEditorWindow.__about">__about</a></td> |
|
71 <td>Private slot to show a little About message.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#IconEditorWindow.__aboutQt">__aboutQt</a></td> |
|
75 <td>Private slot to handle the About Qt dialog.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#IconEditorWindow.__checkActions">__checkActions</a></td> |
|
79 <td>Private slot to check some actions for their enable/disable status.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#IconEditorWindow.__closeAll">__closeAll</a></td> |
|
83 <td>Private slot to close all windows.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#IconEditorWindow.__closeOthers">__closeOthers</a></td> |
|
87 <td>Private slot to close all other windows.</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#IconEditorWindow.__createPaletteDock">__createPaletteDock</a></td> |
|
91 <td>Private method to initialize the palette dock widget.</td> |
|
92 </tr> |
|
93 <tr> |
|
94 <td><a href="#IconEditorWindow.__createStatusBar">__createStatusBar</a></td> |
|
95 <td>Private method to initialize the status bar.</td> |
|
96 </tr> |
|
97 <tr> |
|
98 <td><a href="#IconEditorWindow.__initActions">__initActions</a></td> |
|
99 <td>Private method to define the user interface actions.</td> |
|
100 </tr> |
|
101 <tr> |
|
102 <td><a href="#IconEditorWindow.__initEditActions">__initEditActions</a></td> |
|
103 <td>Private method to create the Edit actions.</td> |
|
104 </tr> |
|
105 <tr> |
|
106 <td><a href="#IconEditorWindow.__initFileActions">__initFileActions</a></td> |
|
107 <td>Private method to define the file related user interface actions.</td> |
|
108 </tr> |
|
109 <tr> |
|
110 <td><a href="#IconEditorWindow.__initFileFilters">__initFileFilters</a></td> |
|
111 <td>Private method to define the supported image file filters.</td> |
|
112 </tr> |
|
113 <tr> |
|
114 <td><a href="#IconEditorWindow.__initHelpActions">__initHelpActions</a></td> |
|
115 <td>Private method to create the Help actions.</td> |
|
116 </tr> |
|
117 <tr> |
|
118 <td><a href="#IconEditorWindow.__initMenus">__initMenus</a></td> |
|
119 <td>Private method to create the menus.</td> |
|
120 </tr> |
|
121 <tr> |
|
122 <td><a href="#IconEditorWindow.__initToolbars">__initToolbars</a></td> |
|
123 <td>Private method to create the toolbars.</td> |
|
124 </tr> |
|
125 <tr> |
|
126 <td><a href="#IconEditorWindow.__initToolsActions">__initToolsActions</a></td> |
|
127 <td>Private method to create the View actions.</td> |
|
128 </tr> |
|
129 <tr> |
|
130 <td><a href="#IconEditorWindow.__initViewActions">__initViewActions</a></td> |
|
131 <td>Private method to create the View actions.</td> |
|
132 </tr> |
|
133 <tr> |
|
134 <td><a href="#IconEditorWindow.__loadIconFile">__loadIconFile</a></td> |
|
135 <td>Private method to load an icon file.</td> |
|
136 </tr> |
|
137 <tr> |
|
138 <td><a href="#IconEditorWindow.__maybeSave">__maybeSave</a></td> |
|
139 <td>Private method to ask the user to save the file, if it was modified.</td> |
|
140 </tr> |
|
141 <tr> |
|
142 <td><a href="#IconEditorWindow.__modificationChanged">__modificationChanged</a></td> |
|
143 <td>Private slot to handle the modificationChanged signal.</td> |
|
144 </tr> |
|
145 <tr> |
|
146 <td><a href="#IconEditorWindow.__newIcon">__newIcon</a></td> |
|
147 <td>Private slot to create a new icon.</td> |
|
148 </tr> |
|
149 <tr> |
|
150 <td><a href="#IconEditorWindow.__newWindow">__newWindow</a></td> |
|
151 <td>Private slot called to open a new icon editor window.</td> |
|
152 </tr> |
|
153 <tr> |
|
154 <td><a href="#IconEditorWindow.__openIcon">__openIcon</a></td> |
|
155 <td>Private slot to open an icon file.</td> |
|
156 </tr> |
|
157 <tr> |
|
158 <td><a href="#IconEditorWindow.__saveIcon">__saveIcon</a></td> |
|
159 <td>Private slot to save the icon.</td> |
|
160 </tr> |
|
161 <tr> |
|
162 <td><a href="#IconEditorWindow.__saveIconAs">__saveIconAs</a></td> |
|
163 <td>Private slot to save the icon with a new name.</td> |
|
164 </tr> |
|
165 <tr> |
|
166 <td><a href="#IconEditorWindow.__saveIconFile">__saveIconFile</a></td> |
|
167 <td>Private method to save to the given file.</td> |
|
168 </tr> |
|
169 <tr> |
|
170 <td><a href="#IconEditorWindow.__setCurrentFile">__setCurrentFile</a></td> |
|
171 <td>Private method to register the file name of the current file.</td> |
|
172 </tr> |
|
173 <tr> |
|
174 <td><a href="#IconEditorWindow.__strippedName">__strippedName</a></td> |
|
175 <td>Private method to return the filename part of the given path.</td> |
|
176 </tr> |
|
177 <tr> |
|
178 <td><a href="#IconEditorWindow.__updatePosition">__updatePosition</a></td> |
|
179 <td>Private slot to show the current cursor position.</td> |
|
180 </tr> |
|
181 <tr> |
|
182 <td><a href="#IconEditorWindow.__updateSize">__updateSize</a></td> |
|
183 <td>Private slot to show the current icon size.</td> |
|
184 </tr> |
|
185 <tr> |
|
186 <td><a href="#IconEditorWindow.__updateZoom">__updateZoom</a></td> |
|
187 <td>Private slot to show the current zoom factor.</td> |
|
188 </tr> |
|
189 <tr> |
|
190 <td><a href="#IconEditorWindow.__whatsThis">__whatsThis</a></td> |
|
191 <td>Private slot called in to enter Whats This mode.</td> |
|
192 </tr> |
|
193 <tr> |
|
194 <td><a href="#IconEditorWindow.__zoomIn">__zoomIn</a></td> |
|
195 <td>Private slot called to handle the zoom in action.</td> |
|
196 </tr> |
|
197 <tr> |
|
198 <td><a href="#IconEditorWindow.__zoomOut">__zoomOut</a></td> |
|
199 <td>Private slot called to handle the zoom out action.</td> |
|
200 </tr> |
|
201 <tr> |
|
202 <td><a href="#IconEditorWindow.__zoomReset">__zoomReset</a></td> |
|
203 <td>Private slot called to handle the zoom reset action.</td> |
|
204 </tr> |
|
205 <tr> |
|
206 <td><a href="#IconEditorWindow.closeEvent">closeEvent</a></td> |
|
207 <td>Protected event handler for the close event.</td> |
|
208 </tr> |
|
209 <tr> |
|
210 <td><a href="#IconEditorWindow.event">event</a></td> |
|
211 <td>Public method handling events.</td> |
|
212 </tr> |
|
213 <tr> |
|
214 <td><a href="#IconEditorWindow.gestureEvent">gestureEvent</a></td> |
|
215 <td>Protected method handling gesture events.</td> |
|
216 </tr> |
|
217 <tr> |
|
218 <td><a href="#IconEditorWindow.setRecentPaths">setRecentPaths</a></td> |
|
219 <td>Public method to set the last open and save paths.</td> |
|
220 </tr> |
|
221 <tr> |
|
222 <td><a href="#IconEditorWindow.wheelEvent">wheelEvent</a></td> |
|
223 <td>Protected method to handle wheel events.</td> |
|
224 </tr> |
|
225 </table> |
|
226 <h3>Static Methods</h3> |
|
227 |
|
228 <table> |
|
229 <tr><td>None</td></tr> |
|
230 </table> |
|
231 |
|
232 <a NAME="IconEditorWindow.__init__" ID="IconEditorWindow.__init__"></a> |
|
233 <h4>IconEditorWindow (Constructor)</h4> |
|
234 <b>IconEditorWindow</b>(<i>fileName="", parent=None, fromEric=False, initShortcutsOnly=False, project=None</i>) |
|
235 |
|
236 <p> |
|
237 Constructor |
|
238 </p> |
|
239 <dl> |
|
240 |
|
241 <dt><i>fileName</i></dt> |
|
242 <dd> |
|
243 name of a file to load on startup (string) |
|
244 </dd> |
|
245 <dt><i>parent</i></dt> |
|
246 <dd> |
|
247 parent widget of this window (QWidget) |
|
248 </dd> |
|
249 <dt><i>fromEric</i></dt> |
|
250 <dd> |
|
251 flag indicating whether it was called from within |
|
252 eric (boolean) |
|
253 </dd> |
|
254 <dt><i>initShortcutsOnly</i></dt> |
|
255 <dd> |
|
256 flag indicating to just initialize the |
|
257 keyboard shortcuts (boolean) |
|
258 </dd> |
|
259 <dt><i>project</i></dt> |
|
260 <dd> |
|
261 reference to the project object (Project) |
|
262 </dd> |
|
263 </dl> |
|
264 <a NAME="IconEditorWindow.__about" ID="IconEditorWindow.__about"></a> |
|
265 <h4>IconEditorWindow.__about</h4> |
|
266 <b>__about</b>(<i></i>) |
|
267 |
|
268 <p> |
|
269 Private slot to show a little About message. |
|
270 </p> |
|
271 <a NAME="IconEditorWindow.__aboutQt" ID="IconEditorWindow.__aboutQt"></a> |
|
272 <h4>IconEditorWindow.__aboutQt</h4> |
|
273 <b>__aboutQt</b>(<i></i>) |
|
274 |
|
275 <p> |
|
276 Private slot to handle the About Qt dialog. |
|
277 </p> |
|
278 <a NAME="IconEditorWindow.__checkActions" ID="IconEditorWindow.__checkActions"></a> |
|
279 <h4>IconEditorWindow.__checkActions</h4> |
|
280 <b>__checkActions</b>(<i></i>) |
|
281 |
|
282 <p> |
|
283 Private slot to check some actions for their enable/disable status. |
|
284 </p> |
|
285 <a NAME="IconEditorWindow.__closeAll" ID="IconEditorWindow.__closeAll"></a> |
|
286 <h4>IconEditorWindow.__closeAll</h4> |
|
287 <b>__closeAll</b>(<i></i>) |
|
288 |
|
289 <p> |
|
290 Private slot to close all windows. |
|
291 </p> |
|
292 <a NAME="IconEditorWindow.__closeOthers" ID="IconEditorWindow.__closeOthers"></a> |
|
293 <h4>IconEditorWindow.__closeOthers</h4> |
|
294 <b>__closeOthers</b>(<i></i>) |
|
295 |
|
296 <p> |
|
297 Private slot to close all other windows. |
|
298 </p> |
|
299 <a NAME="IconEditorWindow.__createPaletteDock" ID="IconEditorWindow.__createPaletteDock"></a> |
|
300 <h4>IconEditorWindow.__createPaletteDock</h4> |
|
301 <b>__createPaletteDock</b>(<i></i>) |
|
302 |
|
303 <p> |
|
304 Private method to initialize the palette dock widget. |
|
305 </p> |
|
306 <a NAME="IconEditorWindow.__createStatusBar" ID="IconEditorWindow.__createStatusBar"></a> |
|
307 <h4>IconEditorWindow.__createStatusBar</h4> |
|
308 <b>__createStatusBar</b>(<i></i>) |
|
309 |
|
310 <p> |
|
311 Private method to initialize the status bar. |
|
312 </p> |
|
313 <a NAME="IconEditorWindow.__initActions" ID="IconEditorWindow.__initActions"></a> |
|
314 <h4>IconEditorWindow.__initActions</h4> |
|
315 <b>__initActions</b>(<i></i>) |
|
316 |
|
317 <p> |
|
318 Private method to define the user interface actions. |
|
319 </p> |
|
320 <a NAME="IconEditorWindow.__initEditActions" ID="IconEditorWindow.__initEditActions"></a> |
|
321 <h4>IconEditorWindow.__initEditActions</h4> |
|
322 <b>__initEditActions</b>(<i></i>) |
|
323 |
|
324 <p> |
|
325 Private method to create the Edit actions. |
|
326 </p> |
|
327 <a NAME="IconEditorWindow.__initFileActions" ID="IconEditorWindow.__initFileActions"></a> |
|
328 <h4>IconEditorWindow.__initFileActions</h4> |
|
329 <b>__initFileActions</b>(<i></i>) |
|
330 |
|
331 <p> |
|
332 Private method to define the file related user interface actions. |
|
333 </p> |
|
334 <a NAME="IconEditorWindow.__initFileFilters" ID="IconEditorWindow.__initFileFilters"></a> |
|
335 <h4>IconEditorWindow.__initFileFilters</h4> |
|
336 <b>__initFileFilters</b>(<i></i>) |
|
337 |
|
338 <p> |
|
339 Private method to define the supported image file filters. |
|
340 </p> |
|
341 <a NAME="IconEditorWindow.__initHelpActions" ID="IconEditorWindow.__initHelpActions"></a> |
|
342 <h4>IconEditorWindow.__initHelpActions</h4> |
|
343 <b>__initHelpActions</b>(<i></i>) |
|
344 |
|
345 <p> |
|
346 Private method to create the Help actions. |
|
347 </p> |
|
348 <a NAME="IconEditorWindow.__initMenus" ID="IconEditorWindow.__initMenus"></a> |
|
349 <h4>IconEditorWindow.__initMenus</h4> |
|
350 <b>__initMenus</b>(<i></i>) |
|
351 |
|
352 <p> |
|
353 Private method to create the menus. |
|
354 </p> |
|
355 <a NAME="IconEditorWindow.__initToolbars" ID="IconEditorWindow.__initToolbars"></a> |
|
356 <h4>IconEditorWindow.__initToolbars</h4> |
|
357 <b>__initToolbars</b>(<i></i>) |
|
358 |
|
359 <p> |
|
360 Private method to create the toolbars. |
|
361 </p> |
|
362 <a NAME="IconEditorWindow.__initToolsActions" ID="IconEditorWindow.__initToolsActions"></a> |
|
363 <h4>IconEditorWindow.__initToolsActions</h4> |
|
364 <b>__initToolsActions</b>(<i></i>) |
|
365 |
|
366 <p> |
|
367 Private method to create the View actions. |
|
368 </p> |
|
369 <a NAME="IconEditorWindow.__initViewActions" ID="IconEditorWindow.__initViewActions"></a> |
|
370 <h4>IconEditorWindow.__initViewActions</h4> |
|
371 <b>__initViewActions</b>(<i></i>) |
|
372 |
|
373 <p> |
|
374 Private method to create the View actions. |
|
375 </p> |
|
376 <a NAME="IconEditorWindow.__loadIconFile" ID="IconEditorWindow.__loadIconFile"></a> |
|
377 <h4>IconEditorWindow.__loadIconFile</h4> |
|
378 <b>__loadIconFile</b>(<i>fileName</i>) |
|
379 |
|
380 <p> |
|
381 Private method to load an icon file. |
|
382 </p> |
|
383 <dl> |
|
384 |
|
385 <dt><i>fileName</i></dt> |
|
386 <dd> |
|
387 name of the icon file to load (string). |
|
388 </dd> |
|
389 </dl> |
|
390 <a NAME="IconEditorWindow.__maybeSave" ID="IconEditorWindow.__maybeSave"></a> |
|
391 <h4>IconEditorWindow.__maybeSave</h4> |
|
392 <b>__maybeSave</b>(<i></i>) |
|
393 |
|
394 <p> |
|
395 Private method to ask the user to save the file, if it was modified. |
|
396 </p> |
|
397 <dl> |
|
398 <dt>Return:</dt> |
|
399 <dd> |
|
400 flag indicating, if it is ok to continue (boolean) |
|
401 </dd> |
|
402 </dl> |
|
403 <a NAME="IconEditorWindow.__modificationChanged" ID="IconEditorWindow.__modificationChanged"></a> |
|
404 <h4>IconEditorWindow.__modificationChanged</h4> |
|
405 <b>__modificationChanged</b>(<i>m</i>) |
|
406 |
|
407 <p> |
|
408 Private slot to handle the modificationChanged signal. |
|
409 </p> |
|
410 <dl> |
|
411 |
|
412 <dt><i>m</i></dt> |
|
413 <dd> |
|
414 modification status |
|
415 </dd> |
|
416 </dl> |
|
417 <a NAME="IconEditorWindow.__newIcon" ID="IconEditorWindow.__newIcon"></a> |
|
418 <h4>IconEditorWindow.__newIcon</h4> |
|
419 <b>__newIcon</b>(<i></i>) |
|
420 |
|
421 <p> |
|
422 Private slot to create a new icon. |
|
423 </p> |
|
424 <a NAME="IconEditorWindow.__newWindow" ID="IconEditorWindow.__newWindow"></a> |
|
425 <h4>IconEditorWindow.__newWindow</h4> |
|
426 <b>__newWindow</b>(<i></i>) |
|
427 |
|
428 <p> |
|
429 Private slot called to open a new icon editor window. |
|
430 </p> |
|
431 <a NAME="IconEditorWindow.__openIcon" ID="IconEditorWindow.__openIcon"></a> |
|
432 <h4>IconEditorWindow.__openIcon</h4> |
|
433 <b>__openIcon</b>(<i></i>) |
|
434 |
|
435 <p> |
|
436 Private slot to open an icon file. |
|
437 </p> |
|
438 <a NAME="IconEditorWindow.__saveIcon" ID="IconEditorWindow.__saveIcon"></a> |
|
439 <h4>IconEditorWindow.__saveIcon</h4> |
|
440 <b>__saveIcon</b>(<i></i>) |
|
441 |
|
442 <p> |
|
443 Private slot to save the icon. |
|
444 </p> |
|
445 <dl> |
|
446 <dt>Return:</dt> |
|
447 <dd> |
|
448 flag indicating success (boolean) |
|
449 </dd> |
|
450 </dl> |
|
451 <a NAME="IconEditorWindow.__saveIconAs" ID="IconEditorWindow.__saveIconAs"></a> |
|
452 <h4>IconEditorWindow.__saveIconAs</h4> |
|
453 <b>__saveIconAs</b>(<i></i>) |
|
454 |
|
455 <p> |
|
456 Private slot to save the icon with a new name. |
|
457 </p> |
|
458 <dl> |
|
459 <dt>Return:</dt> |
|
460 <dd> |
|
461 flag indicating success (boolean) |
|
462 </dd> |
|
463 </dl> |
|
464 <a NAME="IconEditorWindow.__saveIconFile" ID="IconEditorWindow.__saveIconFile"></a> |
|
465 <h4>IconEditorWindow.__saveIconFile</h4> |
|
466 <b>__saveIconFile</b>(<i>fileName</i>) |
|
467 |
|
468 <p> |
|
469 Private method to save to the given file. |
|
470 </p> |
|
471 <dl> |
|
472 |
|
473 <dt><i>fileName</i></dt> |
|
474 <dd> |
|
475 name of the file to save to (string) |
|
476 </dd> |
|
477 </dl> |
|
478 <dl> |
|
479 <dt>Return:</dt> |
|
480 <dd> |
|
481 flag indicating success (boolean) |
|
482 </dd> |
|
483 </dl> |
|
484 <a NAME="IconEditorWindow.__setCurrentFile" ID="IconEditorWindow.__setCurrentFile"></a> |
|
485 <h4>IconEditorWindow.__setCurrentFile</h4> |
|
486 <b>__setCurrentFile</b>(<i>fileName</i>) |
|
487 |
|
488 <p> |
|
489 Private method to register the file name of the current file. |
|
490 </p> |
|
491 <dl> |
|
492 |
|
493 <dt><i>fileName</i></dt> |
|
494 <dd> |
|
495 name of the file to register (string) |
|
496 </dd> |
|
497 </dl> |
|
498 <a NAME="IconEditorWindow.__strippedName" ID="IconEditorWindow.__strippedName"></a> |
|
499 <h4>IconEditorWindow.__strippedName</h4> |
|
500 <b>__strippedName</b>(<i>fullFileName</i>) |
|
501 |
|
502 <p> |
|
503 Private method to return the filename part of the given path. |
|
504 </p> |
|
505 <dl> |
|
506 |
|
507 <dt><i>fullFileName</i></dt> |
|
508 <dd> |
|
509 full pathname of the given file (string) |
|
510 </dd> |
|
511 </dl> |
|
512 <dl> |
|
513 <dt>Return:</dt> |
|
514 <dd> |
|
515 filename part (string) |
|
516 </dd> |
|
517 </dl> |
|
518 <a NAME="IconEditorWindow.__updatePosition" ID="IconEditorWindow.__updatePosition"></a> |
|
519 <h4>IconEditorWindow.__updatePosition</h4> |
|
520 <b>__updatePosition</b>(<i>x, y</i>) |
|
521 |
|
522 <p> |
|
523 Private slot to show the current cursor position. |
|
524 </p> |
|
525 <dl> |
|
526 |
|
527 <dt><i>x</i></dt> |
|
528 <dd> |
|
529 x-coordinate (integer) |
|
530 </dd> |
|
531 <dt><i>y</i></dt> |
|
532 <dd> |
|
533 y-coordinate (integer) |
|
534 </dd> |
|
535 </dl> |
|
536 <a NAME="IconEditorWindow.__updateSize" ID="IconEditorWindow.__updateSize"></a> |
|
537 <h4>IconEditorWindow.__updateSize</h4> |
|
538 <b>__updateSize</b>(<i>w, h</i>) |
|
539 |
|
540 <p> |
|
541 Private slot to show the current icon size. |
|
542 </p> |
|
543 <dl> |
|
544 |
|
545 <dt><i>w</i></dt> |
|
546 <dd> |
|
547 width of the icon (integer) |
|
548 </dd> |
|
549 <dt><i>h</i></dt> |
|
550 <dd> |
|
551 height of the icon (integer) |
|
552 </dd> |
|
553 </dl> |
|
554 <a NAME="IconEditorWindow.__updateZoom" ID="IconEditorWindow.__updateZoom"></a> |
|
555 <h4>IconEditorWindow.__updateZoom</h4> |
|
556 <b>__updateZoom</b>(<i></i>) |
|
557 |
|
558 <p> |
|
559 Private slot to show the current zoom factor. |
|
560 </p> |
|
561 <a NAME="IconEditorWindow.__whatsThis" ID="IconEditorWindow.__whatsThis"></a> |
|
562 <h4>IconEditorWindow.__whatsThis</h4> |
|
563 <b>__whatsThis</b>(<i></i>) |
|
564 |
|
565 <p> |
|
566 Private slot called in to enter Whats This mode. |
|
567 </p> |
|
568 <a NAME="IconEditorWindow.__zoomIn" ID="IconEditorWindow.__zoomIn"></a> |
|
569 <h4>IconEditorWindow.__zoomIn</h4> |
|
570 <b>__zoomIn</b>(<i></i>) |
|
571 |
|
572 <p> |
|
573 Private slot called to handle the zoom in action. |
|
574 </p> |
|
575 <a NAME="IconEditorWindow.__zoomOut" ID="IconEditorWindow.__zoomOut"></a> |
|
576 <h4>IconEditorWindow.__zoomOut</h4> |
|
577 <b>__zoomOut</b>(<i></i>) |
|
578 |
|
579 <p> |
|
580 Private slot called to handle the zoom out action. |
|
581 </p> |
|
582 <a NAME="IconEditorWindow.__zoomReset" ID="IconEditorWindow.__zoomReset"></a> |
|
583 <h4>IconEditorWindow.__zoomReset</h4> |
|
584 <b>__zoomReset</b>(<i></i>) |
|
585 |
|
586 <p> |
|
587 Private slot called to handle the zoom reset action. |
|
588 </p> |
|
589 <a NAME="IconEditorWindow.closeEvent" ID="IconEditorWindow.closeEvent"></a> |
|
590 <h4>IconEditorWindow.closeEvent</h4> |
|
591 <b>closeEvent</b>(<i>evt</i>) |
|
592 |
|
593 <p> |
|
594 Protected event handler for the close event. |
|
595 </p> |
|
596 <dl> |
|
597 |
|
598 <dt><i>evt</i></dt> |
|
599 <dd> |
|
600 the close event (QCloseEvent) |
|
601 <br />This event is simply accepted after the history has been |
|
602 saved and all window references have been deleted. |
|
603 </dd> |
|
604 </dl> |
|
605 <a NAME="IconEditorWindow.event" ID="IconEditorWindow.event"></a> |
|
606 <h4>IconEditorWindow.event</h4> |
|
607 <b>event</b>(<i>evt</i>) |
|
608 |
|
609 <p> |
|
610 Public method handling events. |
|
611 </p> |
|
612 <dl> |
|
613 |
|
614 <dt><i>evt</i></dt> |
|
615 <dd> |
|
616 reference to the event (QEvent) |
|
617 </dd> |
|
618 </dl> |
|
619 <dl> |
|
620 <dt>Return:</dt> |
|
621 <dd> |
|
622 flag indicating, if the event was handled (boolean) |
|
623 </dd> |
|
624 </dl> |
|
625 <a NAME="IconEditorWindow.gestureEvent" ID="IconEditorWindow.gestureEvent"></a> |
|
626 <h4>IconEditorWindow.gestureEvent</h4> |
|
627 <b>gestureEvent</b>(<i>evt</i>) |
|
628 |
|
629 <p> |
|
630 Protected method handling gesture events. |
|
631 </p> |
|
632 <dl> |
|
633 |
|
634 <dt><i>evt</i></dt> |
|
635 <dd> |
|
636 reference to the gesture event (QGestureEvent |
|
637 </dd> |
|
638 </dl> |
|
639 <a NAME="IconEditorWindow.setRecentPaths" ID="IconEditorWindow.setRecentPaths"></a> |
|
640 <h4>IconEditorWindow.setRecentPaths</h4> |
|
641 <b>setRecentPaths</b>(<i>openPath, savePath</i>) |
|
642 |
|
643 <p> |
|
644 Public method to set the last open and save paths. |
|
645 </p> |
|
646 <dl> |
|
647 |
|
648 <dt><i>openPath</i></dt> |
|
649 <dd> |
|
650 least recently used open path (string) |
|
651 </dd> |
|
652 <dt><i>savePath</i></dt> |
|
653 <dd> |
|
654 least recently used save path (string) |
|
655 </dd> |
|
656 </dl> |
|
657 <a NAME="IconEditorWindow.wheelEvent" ID="IconEditorWindow.wheelEvent"></a> |
|
658 <h4>IconEditorWindow.wheelEvent</h4> |
|
659 <b>wheelEvent</b>(<i>evt</i>) |
|
660 |
|
661 <p> |
|
662 Protected method to handle wheel events. |
|
663 </p> |
|
664 <dl> |
|
665 |
|
666 <dt><i>evt</i></dt> |
|
667 <dd> |
|
668 reference to the wheel event (QWheelEvent) |
|
669 </dd> |
|
670 </dl> |
|
671 <div align="right"><a href="#top">Up</a></div> |
|
672 <hr /> |
|
673 </body></html> |