eric6/Documentation/Source/eric6.IconEditor.IconEditorWindow.html

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

eric ide

mercurial