59 </table> |
59 </table> |
60 <h3>Methods</h3> |
60 <h3>Methods</h3> |
61 <table> |
61 <table> |
62 <tr> |
62 <tr> |
63 <td><a href="#IconEditorWindow.__init__">IconEditorWindow</a></td> |
63 <td><a href="#IconEditorWindow.__init__">IconEditorWindow</a></td> |
64 <td>Constructor</td> |
64 <td>Constructor</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#IconEditorWindow.__about">__about</a></td> |
66 <td><a href="#IconEditorWindow.__about">__about</a></td> |
67 <td>Private slot to show a little About message.</td> |
67 <td>Private slot to show a little About message.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#IconEditorWindow.__aboutQt">__aboutQt</a></td> |
69 <td><a href="#IconEditorWindow.__aboutQt">__aboutQt</a></td> |
70 <td>Private slot to handle the About Qt dialog.</td> |
70 <td>Private slot to handle the About Qt dialog.</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#IconEditorWindow.__checkActions">__checkActions</a></td> |
72 <td><a href="#IconEditorWindow.__checkActions">__checkActions</a></td> |
73 <td>Private slot to check some actions for their enable/disable status.</td> |
73 <td>Private slot to check some actions for their enable/disable status.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#IconEditorWindow.__closeAll">__closeAll</a></td> |
75 <td><a href="#IconEditorWindow.__closeAll">__closeAll</a></td> |
76 <td>Private slot to close all other windows.</td> |
76 <td>Private slot to close all other windows.</td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#IconEditorWindow.__createPaletteDock">__createPaletteDock</a></td> |
78 <td><a href="#IconEditorWindow.__createPaletteDock">__createPaletteDock</a></td> |
79 <td>Private method to initialize the palette dock widget.</td> |
79 <td>Private method to initialize the palette dock widget.</td> |
80 </tr><tr> |
80 </tr><tr> |
81 <td><a href="#IconEditorWindow.__createStatusBar">__createStatusBar</a></td> |
81 <td><a href="#IconEditorWindow.__createStatusBar">__createStatusBar</a></td> |
82 <td>Private method to initialize the status bar.</td> |
82 <td>Private method to initialize the status bar.</td> |
83 </tr><tr> |
83 </tr><tr> |
84 <td><a href="#IconEditorWindow.__initActions">__initActions</a></td> |
84 <td><a href="#IconEditorWindow.__initActions">__initActions</a></td> |
85 <td>Private method to define the user interface actions.</td> |
85 <td>Private method to define the user interface actions.</td> |
86 </tr><tr> |
86 </tr><tr> |
87 <td><a href="#IconEditorWindow.__initEditActions">__initEditActions</a></td> |
87 <td><a href="#IconEditorWindow.__initEditActions">__initEditActions</a></td> |
88 <td>Private method to create the Edit actions.</td> |
88 <td>Private method to create the Edit actions.</td> |
89 </tr><tr> |
89 </tr><tr> |
90 <td><a href="#IconEditorWindow.__initFileActions">__initFileActions</a></td> |
90 <td><a href="#IconEditorWindow.__initFileActions">__initFileActions</a></td> |
91 <td>Private method to define the file related user interface actions.</td> |
91 <td>Private method to define the file related user interface actions.</td> |
92 </tr><tr> |
92 </tr><tr> |
93 <td><a href="#IconEditorWindow.__initFileFilters">__initFileFilters</a></td> |
93 <td><a href="#IconEditorWindow.__initFileFilters">__initFileFilters</a></td> |
94 <td>Private method to define the supported image file filters.</td> |
94 <td>Private method to define the supported image file filters.</td> |
95 </tr><tr> |
95 </tr><tr> |
96 <td><a href="#IconEditorWindow.__initHelpActions">__initHelpActions</a></td> |
96 <td><a href="#IconEditorWindow.__initHelpActions">__initHelpActions</a></td> |
97 <td>Private method to create the Help actions.</td> |
97 <td>Private method to create the Help actions.</td> |
98 </tr><tr> |
98 </tr><tr> |
99 <td><a href="#IconEditorWindow.__initMenus">__initMenus</a></td> |
99 <td><a href="#IconEditorWindow.__initMenus">__initMenus</a></td> |
100 <td>Private method to create the menus.</td> |
100 <td>Private method to create the menus.</td> |
101 </tr><tr> |
101 </tr><tr> |
102 <td><a href="#IconEditorWindow.__initToolbars">__initToolbars</a></td> |
102 <td><a href="#IconEditorWindow.__initToolbars">__initToolbars</a></td> |
103 <td>Private method to create the toolbars.</td> |
103 <td>Private method to create the toolbars.</td> |
104 </tr><tr> |
104 </tr><tr> |
105 <td><a href="#IconEditorWindow.__initToolsActions">__initToolsActions</a></td> |
105 <td><a href="#IconEditorWindow.__initToolsActions">__initToolsActions</a></td> |
106 <td>Private method to create the View actions.</td> |
106 <td>Private method to create the View actions.</td> |
107 </tr><tr> |
107 </tr><tr> |
108 <td><a href="#IconEditorWindow.__initViewActions">__initViewActions</a></td> |
108 <td><a href="#IconEditorWindow.__initViewActions">__initViewActions</a></td> |
109 <td>Private method to create the View actions.</td> |
109 <td>Private method to create the View actions.</td> |
110 </tr><tr> |
110 </tr><tr> |
111 <td><a href="#IconEditorWindow.__loadIconFile">__loadIconFile</a></td> |
111 <td><a href="#IconEditorWindow.__loadIconFile">__loadIconFile</a></td> |
112 <td>Private method to load an icon file.</td> |
112 <td>Private method to load an icon file.</td> |
113 </tr><tr> |
113 </tr><tr> |
114 <td><a href="#IconEditorWindow.__maybeSave">__maybeSave</a></td> |
114 <td><a href="#IconEditorWindow.__maybeSave">__maybeSave</a></td> |
115 <td>Private method to ask the user to save the file, if it was modified.</td> |
115 <td>Private method to ask the user to save the file, if it was modified.</td> |
116 </tr><tr> |
116 </tr><tr> |
117 <td><a href="#IconEditorWindow.__modificationChanged">__modificationChanged</a></td> |
117 <td><a href="#IconEditorWindow.__modificationChanged">__modificationChanged</a></td> |
118 <td>Private slot to handle the modificationChanged signal.</td> |
118 <td>Private slot to handle the modificationChanged signal.</td> |
119 </tr><tr> |
119 </tr><tr> |
120 <td><a href="#IconEditorWindow.__newIcon">__newIcon</a></td> |
120 <td><a href="#IconEditorWindow.__newIcon">__newIcon</a></td> |
121 <td>Private slot to create a new icon.</td> |
121 <td>Private slot to create a new icon.</td> |
122 </tr><tr> |
122 </tr><tr> |
123 <td><a href="#IconEditorWindow.__newWindow">__newWindow</a></td> |
123 <td><a href="#IconEditorWindow.__newWindow">__newWindow</a></td> |
124 <td>Public slot called to open a new icon editor window.</td> |
124 <td>Public slot called to open a new icon editor window.</td> |
125 </tr><tr> |
125 </tr><tr> |
126 <td><a href="#IconEditorWindow.__openIcon">__openIcon</a></td> |
126 <td><a href="#IconEditorWindow.__openIcon">__openIcon</a></td> |
127 <td>Private slot to open an icon file.</td> |
127 <td>Private slot to open an icon file.</td> |
128 </tr><tr> |
128 </tr><tr> |
129 <td><a href="#IconEditorWindow.__saveIcon">__saveIcon</a></td> |
129 <td><a href="#IconEditorWindow.__saveIcon">__saveIcon</a></td> |
130 <td>Private slot to save the icon.</td> |
130 <td>Private slot to save the icon.</td> |
131 </tr><tr> |
131 </tr><tr> |
132 <td><a href="#IconEditorWindow.__saveIconAs">__saveIconAs</a></td> |
132 <td><a href="#IconEditorWindow.__saveIconAs">__saveIconAs</a></td> |
133 <td>Private slot to save the icon with a new name.</td> |
133 <td>Private slot to save the icon with a new name.</td> |
134 </tr><tr> |
134 </tr><tr> |
135 <td><a href="#IconEditorWindow.__saveIconFile">__saveIconFile</a></td> |
135 <td><a href="#IconEditorWindow.__saveIconFile">__saveIconFile</a></td> |
136 <td>Private method to save to the given file.</td> |
136 <td>Private method to save to the given file.</td> |
137 </tr><tr> |
137 </tr><tr> |
138 <td><a href="#IconEditorWindow.__setCurrentFile">__setCurrentFile</a></td> |
138 <td><a href="#IconEditorWindow.__setCurrentFile">__setCurrentFile</a></td> |
139 <td>Private method to register the file name of the current file.</td> |
139 <td>Private method to register the file name of the current file.</td> |
140 </tr><tr> |
140 </tr><tr> |
141 <td><a href="#IconEditorWindow.__strippedName">__strippedName</a></td> |
141 <td><a href="#IconEditorWindow.__strippedName">__strippedName</a></td> |
142 <td>Private method to return the filename part of the given path.</td> |
142 <td>Private method to return the filename part of the given path.</td> |
143 </tr><tr> |
143 </tr><tr> |
144 <td><a href="#IconEditorWindow.__updatePosition">__updatePosition</a></td> |
144 <td><a href="#IconEditorWindow.__updatePosition">__updatePosition</a></td> |
145 <td>Private slot to show the current cursor position.</td> |
145 <td>Private slot to show the current cursor position.</td> |
146 </tr><tr> |
146 </tr><tr> |
147 <td><a href="#IconEditorWindow.__updateSize">__updateSize</a></td> |
147 <td><a href="#IconEditorWindow.__updateSize">__updateSize</a></td> |
148 <td>Private slot to show the current icon size.</td> |
148 <td>Private slot to show the current icon size.</td> |
149 </tr><tr> |
149 </tr><tr> |
150 <td><a href="#IconEditorWindow.__updateZoom">__updateZoom</a></td> |
150 <td><a href="#IconEditorWindow.__updateZoom">__updateZoom</a></td> |
151 <td>Private slot to show the current zoom factor.</td> |
151 <td>Private slot to show the current zoom factor.</td> |
152 </tr><tr> |
152 </tr><tr> |
153 <td><a href="#IconEditorWindow.__whatsThis">__whatsThis</a></td> |
153 <td><a href="#IconEditorWindow.__whatsThis">__whatsThis</a></td> |
154 <td>Private slot called in to enter Whats This mode.</td> |
154 <td>Private slot called in to enter Whats This mode.</td> |
155 </tr><tr> |
155 </tr><tr> |
156 <td><a href="#IconEditorWindow.__zoom">__zoom</a></td> |
156 <td><a href="#IconEditorWindow.__zoom">__zoom</a></td> |
157 <td>Private method to handle the zoom action.</td> |
157 <td>Private method to handle the zoom action.</td> |
158 </tr><tr> |
158 </tr><tr> |
159 <td><a href="#IconEditorWindow.__zoomIn">__zoomIn</a></td> |
159 <td><a href="#IconEditorWindow.__zoomIn">__zoomIn</a></td> |
160 <td>Private slot called to handle the zoom in action.</td> |
160 <td>Private slot called to handle the zoom in action.</td> |
161 </tr><tr> |
161 </tr><tr> |
162 <td><a href="#IconEditorWindow.__zoomOut">__zoomOut</a></td> |
162 <td><a href="#IconEditorWindow.__zoomOut">__zoomOut</a></td> |
163 <td>Private slot called to handle the zoom out action.</td> |
163 <td>Private slot called to handle the zoom out action.</td> |
164 </tr><tr> |
164 </tr><tr> |
165 <td><a href="#IconEditorWindow.__zoomReset">__zoomReset</a></td> |
165 <td><a href="#IconEditorWindow.__zoomReset">__zoomReset</a></td> |
166 <td>Private slot called to handle the zoom reset action.</td> |
166 <td>Private slot called to handle the zoom reset action.</td> |
167 </tr><tr> |
167 </tr><tr> |
168 <td><a href="#IconEditorWindow.closeEvent">closeEvent</a></td> |
168 <td><a href="#IconEditorWindow.closeEvent">closeEvent</a></td> |
169 <td>Private event handler for the close event.</td> |
169 <td>Private event handler for the close event.</td> |
170 </tr> |
170 </tr> |
171 </table> |
171 </table> |
172 <a NAME="IconEditorWindow.__init__" ID="IconEditorWindow.__init__"></a> |
172 <a NAME="IconEditorWindow.__init__" ID="IconEditorWindow.__init__"></a> |
173 <h4>IconEditorWindow (Constructor)</h4> |
173 <h4>IconEditorWindow (Constructor)</h4> |
174 <b>IconEditorWindow</b>(<i>fileName = "", parent = None, fromEric = False, initShortcutsOnly = False</i>) |
174 <b>IconEditorWindow</b>(<i>fileName = "", parent = None, fromEric = False, initShortcutsOnly = False</i>) |
175 <p> |
175 <p> |
176 Constructor |
176 Constructor |
177 </p><dl> |
177 </p><dl> |
178 <dt><i>fileName</i></dt> |
178 <dt><i>fileName</i></dt> |
179 <dd> |
179 <dd> |
180 name of a file to load on startup (string) |
180 name of a file to load on startup (string) |
181 </dd><dt><i>parent</i></dt> |
181 </dd><dt><i>parent</i></dt> |
182 <dd> |
182 <dd> |
183 parent widget of this window (QWidget) |
183 parent widget of this window (QWidget) |
184 </dd><dt><i>fromEric=</i></dt> |
184 </dd><dt><i>fromEric=</i></dt> |
185 <dd> |
185 <dd> |
186 flag indicating whether it was called from within eric5 (boolean) |
186 flag indicating whether it was called from within eric5 (boolean) |
187 </dd><dt><i>initShortcutsOnly=</i></dt> |
187 </dd><dt><i>initShortcutsOnly=</i></dt> |
188 <dd> |
188 <dd> |
189 flag indicating to just initialize the keyboard |
189 flag indicating to just initialize the keyboard |
190 shortcuts (boolean) |
190 shortcuts (boolean) |
191 </dd> |
191 </dd> |
192 </dl><a NAME="IconEditorWindow.__about" ID="IconEditorWindow.__about"></a> |
192 </dl><a NAME="IconEditorWindow.__about" ID="IconEditorWindow.__about"></a> |
193 <h4>IconEditorWindow.__about</h4> |
193 <h4>IconEditorWindow.__about</h4> |
194 <b>__about</b>(<i></i>) |
194 <b>__about</b>(<i></i>) |
195 <p> |
195 <p> |
196 Private slot to show a little About message. |
196 Private slot to show a little About message. |
197 </p><a NAME="IconEditorWindow.__aboutQt" ID="IconEditorWindow.__aboutQt"></a> |
197 </p><a NAME="IconEditorWindow.__aboutQt" ID="IconEditorWindow.__aboutQt"></a> |
198 <h4>IconEditorWindow.__aboutQt</h4> |
198 <h4>IconEditorWindow.__aboutQt</h4> |
199 <b>__aboutQt</b>(<i></i>) |
199 <b>__aboutQt</b>(<i></i>) |
200 <p> |
200 <p> |
201 Private slot to handle the About Qt dialog. |
201 Private slot to handle the About Qt dialog. |
202 </p><a NAME="IconEditorWindow.__checkActions" ID="IconEditorWindow.__checkActions"></a> |
202 </p><a NAME="IconEditorWindow.__checkActions" ID="IconEditorWindow.__checkActions"></a> |
203 <h4>IconEditorWindow.__checkActions</h4> |
203 <h4>IconEditorWindow.__checkActions</h4> |
204 <b>__checkActions</b>(<i></i>) |
204 <b>__checkActions</b>(<i></i>) |
205 <p> |
205 <p> |
206 Private slot to check some actions for their enable/disable status. |
206 Private slot to check some actions for their enable/disable status. |
207 </p><a NAME="IconEditorWindow.__closeAll" ID="IconEditorWindow.__closeAll"></a> |
207 </p><a NAME="IconEditorWindow.__closeAll" ID="IconEditorWindow.__closeAll"></a> |
208 <h4>IconEditorWindow.__closeAll</h4> |
208 <h4>IconEditorWindow.__closeAll</h4> |
209 <b>__closeAll</b>(<i></i>) |
209 <b>__closeAll</b>(<i></i>) |
210 <p> |
210 <p> |
211 Private slot to close all other windows. |
211 Private slot to close all other windows. |
212 </p><a NAME="IconEditorWindow.__createPaletteDock" ID="IconEditorWindow.__createPaletteDock"></a> |
212 </p><a NAME="IconEditorWindow.__createPaletteDock" ID="IconEditorWindow.__createPaletteDock"></a> |
213 <h4>IconEditorWindow.__createPaletteDock</h4> |
213 <h4>IconEditorWindow.__createPaletteDock</h4> |
214 <b>__createPaletteDock</b>(<i></i>) |
214 <b>__createPaletteDock</b>(<i></i>) |
215 <p> |
215 <p> |
216 Private method to initialize the palette dock widget. |
216 Private method to initialize the palette dock widget. |
217 </p><a NAME="IconEditorWindow.__createStatusBar" ID="IconEditorWindow.__createStatusBar"></a> |
217 </p><a NAME="IconEditorWindow.__createStatusBar" ID="IconEditorWindow.__createStatusBar"></a> |
218 <h4>IconEditorWindow.__createStatusBar</h4> |
218 <h4>IconEditorWindow.__createStatusBar</h4> |
219 <b>__createStatusBar</b>(<i></i>) |
219 <b>__createStatusBar</b>(<i></i>) |
220 <p> |
220 <p> |
221 Private method to initialize the status bar. |
221 Private method to initialize the status bar. |
222 </p><a NAME="IconEditorWindow.__initActions" ID="IconEditorWindow.__initActions"></a> |
222 </p><a NAME="IconEditorWindow.__initActions" ID="IconEditorWindow.__initActions"></a> |
223 <h4>IconEditorWindow.__initActions</h4> |
223 <h4>IconEditorWindow.__initActions</h4> |
224 <b>__initActions</b>(<i></i>) |
224 <b>__initActions</b>(<i></i>) |
225 <p> |
225 <p> |
226 Private method to define the user interface actions. |
226 Private method to define the user interface actions. |
227 </p><a NAME="IconEditorWindow.__initEditActions" ID="IconEditorWindow.__initEditActions"></a> |
227 </p><a NAME="IconEditorWindow.__initEditActions" ID="IconEditorWindow.__initEditActions"></a> |
228 <h4>IconEditorWindow.__initEditActions</h4> |
228 <h4>IconEditorWindow.__initEditActions</h4> |
229 <b>__initEditActions</b>(<i></i>) |
229 <b>__initEditActions</b>(<i></i>) |
230 <p> |
230 <p> |
231 Private method to create the Edit actions. |
231 Private method to create the Edit actions. |
232 </p><a NAME="IconEditorWindow.__initFileActions" ID="IconEditorWindow.__initFileActions"></a> |
232 </p><a NAME="IconEditorWindow.__initFileActions" ID="IconEditorWindow.__initFileActions"></a> |
233 <h4>IconEditorWindow.__initFileActions</h4> |
233 <h4>IconEditorWindow.__initFileActions</h4> |
234 <b>__initFileActions</b>(<i></i>) |
234 <b>__initFileActions</b>(<i></i>) |
235 <p> |
235 <p> |
236 Private method to define the file related user interface actions. |
236 Private method to define the file related user interface actions. |
237 </p><a NAME="IconEditorWindow.__initFileFilters" ID="IconEditorWindow.__initFileFilters"></a> |
237 </p><a NAME="IconEditorWindow.__initFileFilters" ID="IconEditorWindow.__initFileFilters"></a> |
238 <h4>IconEditorWindow.__initFileFilters</h4> |
238 <h4>IconEditorWindow.__initFileFilters</h4> |
239 <b>__initFileFilters</b>(<i></i>) |
239 <b>__initFileFilters</b>(<i></i>) |
240 <p> |
240 <p> |
241 Private method to define the supported image file filters. |
241 Private method to define the supported image file filters. |
242 </p><a NAME="IconEditorWindow.__initHelpActions" ID="IconEditorWindow.__initHelpActions"></a> |
242 </p><a NAME="IconEditorWindow.__initHelpActions" ID="IconEditorWindow.__initHelpActions"></a> |
243 <h4>IconEditorWindow.__initHelpActions</h4> |
243 <h4>IconEditorWindow.__initHelpActions</h4> |
244 <b>__initHelpActions</b>(<i></i>) |
244 <b>__initHelpActions</b>(<i></i>) |
245 <p> |
245 <p> |
246 Private method to create the Help actions. |
246 Private method to create the Help actions. |
247 </p><a NAME="IconEditorWindow.__initMenus" ID="IconEditorWindow.__initMenus"></a> |
247 </p><a NAME="IconEditorWindow.__initMenus" ID="IconEditorWindow.__initMenus"></a> |
248 <h4>IconEditorWindow.__initMenus</h4> |
248 <h4>IconEditorWindow.__initMenus</h4> |
249 <b>__initMenus</b>(<i></i>) |
249 <b>__initMenus</b>(<i></i>) |
250 <p> |
250 <p> |
251 Private method to create the menus. |
251 Private method to create the menus. |
252 </p><a NAME="IconEditorWindow.__initToolbars" ID="IconEditorWindow.__initToolbars"></a> |
252 </p><a NAME="IconEditorWindow.__initToolbars" ID="IconEditorWindow.__initToolbars"></a> |
253 <h4>IconEditorWindow.__initToolbars</h4> |
253 <h4>IconEditorWindow.__initToolbars</h4> |
254 <b>__initToolbars</b>(<i></i>) |
254 <b>__initToolbars</b>(<i></i>) |
255 <p> |
255 <p> |
256 Private method to create the toolbars. |
256 Private method to create the toolbars. |
257 </p><a NAME="IconEditorWindow.__initToolsActions" ID="IconEditorWindow.__initToolsActions"></a> |
257 </p><a NAME="IconEditorWindow.__initToolsActions" ID="IconEditorWindow.__initToolsActions"></a> |
258 <h4>IconEditorWindow.__initToolsActions</h4> |
258 <h4>IconEditorWindow.__initToolsActions</h4> |
259 <b>__initToolsActions</b>(<i></i>) |
259 <b>__initToolsActions</b>(<i></i>) |
260 <p> |
260 <p> |
261 Private method to create the View actions. |
261 Private method to create the View actions. |
262 </p><a NAME="IconEditorWindow.__initViewActions" ID="IconEditorWindow.__initViewActions"></a> |
262 </p><a NAME="IconEditorWindow.__initViewActions" ID="IconEditorWindow.__initViewActions"></a> |
263 <h4>IconEditorWindow.__initViewActions</h4> |
263 <h4>IconEditorWindow.__initViewActions</h4> |
264 <b>__initViewActions</b>(<i></i>) |
264 <b>__initViewActions</b>(<i></i>) |
265 <p> |
265 <p> |
266 Private method to create the View actions. |
266 Private method to create the View actions. |
267 </p><a NAME="IconEditorWindow.__loadIconFile" ID="IconEditorWindow.__loadIconFile"></a> |
267 </p><a NAME="IconEditorWindow.__loadIconFile" ID="IconEditorWindow.__loadIconFile"></a> |
268 <h4>IconEditorWindow.__loadIconFile</h4> |
268 <h4>IconEditorWindow.__loadIconFile</h4> |
269 <b>__loadIconFile</b>(<i>fileName</i>) |
269 <b>__loadIconFile</b>(<i>fileName</i>) |
270 <p> |
270 <p> |
271 Private method to load an icon file. |
271 Private method to load an icon file. |
272 </p><dl> |
272 </p><dl> |
273 <dt><i>fileName</i></dt> |
273 <dt><i>fileName</i></dt> |
274 <dd> |
274 <dd> |
275 name of the icon file to load (string). |
275 name of the icon file to load (string). |
276 </dd> |
276 </dd> |
277 </dl><a NAME="IconEditorWindow.__maybeSave" ID="IconEditorWindow.__maybeSave"></a> |
277 </dl><a NAME="IconEditorWindow.__maybeSave" ID="IconEditorWindow.__maybeSave"></a> |
278 <h4>IconEditorWindow.__maybeSave</h4> |
278 <h4>IconEditorWindow.__maybeSave</h4> |
279 <b>__maybeSave</b>(<i></i>) |
279 <b>__maybeSave</b>(<i></i>) |
280 <p> |
280 <p> |
281 Private method to ask the user to save the file, if it was modified. |
281 Private method to ask the user to save the file, if it was modified. |
282 </p><dl> |
282 </p><dl> |
283 <dt>Returns:</dt> |
283 <dt>Returns:</dt> |
284 <dd> |
284 <dd> |
285 flag indicating, if it is ok to continue (boolean) |
285 flag indicating, if it is ok to continue (boolean) |
286 </dd> |
286 </dd> |
287 </dl><a NAME="IconEditorWindow.__modificationChanged" ID="IconEditorWindow.__modificationChanged"></a> |
287 </dl><a NAME="IconEditorWindow.__modificationChanged" ID="IconEditorWindow.__modificationChanged"></a> |
288 <h4>IconEditorWindow.__modificationChanged</h4> |
288 <h4>IconEditorWindow.__modificationChanged</h4> |
289 <b>__modificationChanged</b>(<i>m</i>) |
289 <b>__modificationChanged</b>(<i>m</i>) |
290 <p> |
290 <p> |
291 Private slot to handle the modificationChanged signal. |
291 Private slot to handle the modificationChanged signal. |
292 </p><dl> |
292 </p><dl> |
293 <dt><i>m</i></dt> |
293 <dt><i>m</i></dt> |
294 <dd> |
294 <dd> |
295 modification status |
295 modification status |
296 </dd> |
296 </dd> |
297 </dl><a NAME="IconEditorWindow.__newIcon" ID="IconEditorWindow.__newIcon"></a> |
297 </dl><a NAME="IconEditorWindow.__newIcon" ID="IconEditorWindow.__newIcon"></a> |
298 <h4>IconEditorWindow.__newIcon</h4> |
298 <h4>IconEditorWindow.__newIcon</h4> |
299 <b>__newIcon</b>(<i></i>) |
299 <b>__newIcon</b>(<i></i>) |
300 <p> |
300 <p> |
301 Private slot to create a new icon. |
301 Private slot to create a new icon. |
302 </p><a NAME="IconEditorWindow.__newWindow" ID="IconEditorWindow.__newWindow"></a> |
302 </p><a NAME="IconEditorWindow.__newWindow" ID="IconEditorWindow.__newWindow"></a> |
303 <h4>IconEditorWindow.__newWindow</h4> |
303 <h4>IconEditorWindow.__newWindow</h4> |
304 <b>__newWindow</b>(<i></i>) |
304 <b>__newWindow</b>(<i></i>) |
305 <p> |
305 <p> |
306 Public slot called to open a new icon editor window. |
306 Public slot called to open a new icon editor window. |
307 </p><a NAME="IconEditorWindow.__openIcon" ID="IconEditorWindow.__openIcon"></a> |
307 </p><a NAME="IconEditorWindow.__openIcon" ID="IconEditorWindow.__openIcon"></a> |
308 <h4>IconEditorWindow.__openIcon</h4> |
308 <h4>IconEditorWindow.__openIcon</h4> |
309 <b>__openIcon</b>(<i></i>) |
309 <b>__openIcon</b>(<i></i>) |
310 <p> |
310 <p> |
311 Private slot to open an icon file. |
311 Private slot to open an icon file. |
312 </p><a NAME="IconEditorWindow.__saveIcon" ID="IconEditorWindow.__saveIcon"></a> |
312 </p><a NAME="IconEditorWindow.__saveIcon" ID="IconEditorWindow.__saveIcon"></a> |
313 <h4>IconEditorWindow.__saveIcon</h4> |
313 <h4>IconEditorWindow.__saveIcon</h4> |
314 <b>__saveIcon</b>(<i></i>) |
314 <b>__saveIcon</b>(<i></i>) |
315 <p> |
315 <p> |
316 Private slot to save the icon. |
316 Private slot to save the icon. |
317 </p><a NAME="IconEditorWindow.__saveIconAs" ID="IconEditorWindow.__saveIconAs"></a> |
317 </p><a NAME="IconEditorWindow.__saveIconAs" ID="IconEditorWindow.__saveIconAs"></a> |
318 <h4>IconEditorWindow.__saveIconAs</h4> |
318 <h4>IconEditorWindow.__saveIconAs</h4> |
319 <b>__saveIconAs</b>(<i></i>) |
319 <b>__saveIconAs</b>(<i></i>) |
320 <p> |
320 <p> |
321 Private slot to save the icon with a new name. |
321 Private slot to save the icon with a new name. |
322 </p><a NAME="IconEditorWindow.__saveIconFile" ID="IconEditorWindow.__saveIconFile"></a> |
322 </p><a NAME="IconEditorWindow.__saveIconFile" ID="IconEditorWindow.__saveIconFile"></a> |
323 <h4>IconEditorWindow.__saveIconFile</h4> |
323 <h4>IconEditorWindow.__saveIconFile</h4> |
324 <b>__saveIconFile</b>(<i>fileName</i>) |
324 <b>__saveIconFile</b>(<i>fileName</i>) |
325 <p> |
325 <p> |
326 Private method to save to the given file. |
326 Private method to save to the given file. |
327 </p><dl> |
327 </p><dl> |
328 <dt><i>fileName</i></dt> |
328 <dt><i>fileName</i></dt> |
329 <dd> |
329 <dd> |
330 name of the file to save to (string) |
330 name of the file to save to (string) |
331 </dd> |
331 </dd> |
332 </dl><dl> |
332 </dl><dl> |
333 <dt>Returns:</dt> |
333 <dt>Returns:</dt> |
334 <dd> |
334 <dd> |
335 flag indicating success (boolean) |
335 flag indicating success (boolean) |
336 </dd> |
336 </dd> |
337 </dl><a NAME="IconEditorWindow.__setCurrentFile" ID="IconEditorWindow.__setCurrentFile"></a> |
337 </dl><a NAME="IconEditorWindow.__setCurrentFile" ID="IconEditorWindow.__setCurrentFile"></a> |
338 <h4>IconEditorWindow.__setCurrentFile</h4> |
338 <h4>IconEditorWindow.__setCurrentFile</h4> |
339 <b>__setCurrentFile</b>(<i>fileName</i>) |
339 <b>__setCurrentFile</b>(<i>fileName</i>) |
340 <p> |
340 <p> |
341 Private method to register the file name of the current file. |
341 Private method to register the file name of the current file. |
342 </p><dl> |
342 </p><dl> |
343 <dt><i>fileName</i></dt> |
343 <dt><i>fileName</i></dt> |
344 <dd> |
344 <dd> |
345 name of the file to register (string) |
345 name of the file to register (string) |
346 </dd> |
346 </dd> |
347 </dl><a NAME="IconEditorWindow.__strippedName" ID="IconEditorWindow.__strippedName"></a> |
347 </dl><a NAME="IconEditorWindow.__strippedName" ID="IconEditorWindow.__strippedName"></a> |
348 <h4>IconEditorWindow.__strippedName</h4> |
348 <h4>IconEditorWindow.__strippedName</h4> |
349 <b>__strippedName</b>(<i>fullFileName</i>) |
349 <b>__strippedName</b>(<i>fullFileName</i>) |
350 <p> |
350 <p> |
351 Private method to return the filename part of the given path. |
351 Private method to return the filename part of the given path. |
352 </p><dl> |
352 </p><dl> |
353 <dt><i>fullFileName</i></dt> |
353 <dt><i>fullFileName</i></dt> |
354 <dd> |
354 <dd> |
355 full pathname of the given file (string) |
355 full pathname of the given file (string) |
356 </dd> |
356 </dd> |
357 </dl><dl> |
357 </dl><dl> |
358 <dt>Returns:</dt> |
358 <dt>Returns:</dt> |
359 <dd> |
359 <dd> |
360 filename part (string) |
360 filename part (string) |
361 </dd> |
361 </dd> |
362 </dl><a NAME="IconEditorWindow.__updatePosition" ID="IconEditorWindow.__updatePosition"></a> |
362 </dl><a NAME="IconEditorWindow.__updatePosition" ID="IconEditorWindow.__updatePosition"></a> |
363 <h4>IconEditorWindow.__updatePosition</h4> |
363 <h4>IconEditorWindow.__updatePosition</h4> |
364 <b>__updatePosition</b>(<i>x, y</i>) |
364 <b>__updatePosition</b>(<i>x, y</i>) |
365 <p> |
365 <p> |
366 Private slot to show the current cursor position. |
366 Private slot to show the current cursor position. |
367 </p><dl> |
367 </p><dl> |
368 <dt><i>x</i></dt> |
368 <dt><i>x</i></dt> |
369 <dd> |
369 <dd> |
370 x-coordinate (integer) |
370 x-coordinate (integer) |
371 </dd><dt><i>y</i></dt> |
371 </dd><dt><i>y</i></dt> |
372 <dd> |
372 <dd> |
373 y-coordinate (integer) |
373 y-coordinate (integer) |
374 </dd> |
374 </dd> |
375 </dl><a NAME="IconEditorWindow.__updateSize" ID="IconEditorWindow.__updateSize"></a> |
375 </dl><a NAME="IconEditorWindow.__updateSize" ID="IconEditorWindow.__updateSize"></a> |
376 <h4>IconEditorWindow.__updateSize</h4> |
376 <h4>IconEditorWindow.__updateSize</h4> |
377 <b>__updateSize</b>(<i>w, h</i>) |
377 <b>__updateSize</b>(<i>w, h</i>) |
378 <p> |
378 <p> |
379 Private slot to show the current icon size. |
379 Private slot to show the current icon size. |
380 </p><dl> |
380 </p><dl> |
381 <dt><i>w</i></dt> |
381 <dt><i>w</i></dt> |
382 <dd> |
382 <dd> |
383 width of the icon (integer) |
383 width of the icon (integer) |
384 </dd><dt><i>h</i></dt> |
384 </dd><dt><i>h</i></dt> |
385 <dd> |
385 <dd> |
386 height of the icon (integer) |
386 height of the icon (integer) |
387 </dd> |
387 </dd> |
388 </dl><a NAME="IconEditorWindow.__updateZoom" ID="IconEditorWindow.__updateZoom"></a> |
388 </dl><a NAME="IconEditorWindow.__updateZoom" ID="IconEditorWindow.__updateZoom"></a> |
389 <h4>IconEditorWindow.__updateZoom</h4> |
389 <h4>IconEditorWindow.__updateZoom</h4> |
390 <b>__updateZoom</b>(<i></i>) |
390 <b>__updateZoom</b>(<i></i>) |
391 <p> |
391 <p> |
392 Private slot to show the current zoom factor. |
392 Private slot to show the current zoom factor. |
393 </p><a NAME="IconEditorWindow.__whatsThis" ID="IconEditorWindow.__whatsThis"></a> |
393 </p><a NAME="IconEditorWindow.__whatsThis" ID="IconEditorWindow.__whatsThis"></a> |
394 <h4>IconEditorWindow.__whatsThis</h4> |
394 <h4>IconEditorWindow.__whatsThis</h4> |
395 <b>__whatsThis</b>(<i></i>) |
395 <b>__whatsThis</b>(<i></i>) |
396 <p> |
396 <p> |
397 Private slot called in to enter Whats This mode. |
397 Private slot called in to enter Whats This mode. |
398 </p><a NAME="IconEditorWindow.__zoom" ID="IconEditorWindow.__zoom"></a> |
398 </p><a NAME="IconEditorWindow.__zoom" ID="IconEditorWindow.__zoom"></a> |
399 <h4>IconEditorWindow.__zoom</h4> |
399 <h4>IconEditorWindow.__zoom</h4> |
400 <b>__zoom</b>(<i></i>) |
400 <b>__zoom</b>(<i></i>) |
401 <p> |
401 <p> |
402 Private method to handle the zoom action. |
402 Private method to handle the zoom action. |
403 </p><a NAME="IconEditorWindow.__zoomIn" ID="IconEditorWindow.__zoomIn"></a> |
403 </p><a NAME="IconEditorWindow.__zoomIn" ID="IconEditorWindow.__zoomIn"></a> |
404 <h4>IconEditorWindow.__zoomIn</h4> |
404 <h4>IconEditorWindow.__zoomIn</h4> |
405 <b>__zoomIn</b>(<i></i>) |
405 <b>__zoomIn</b>(<i></i>) |
406 <p> |
406 <p> |
407 Private slot called to handle the zoom in action. |
407 Private slot called to handle the zoom in action. |
408 </p><a NAME="IconEditorWindow.__zoomOut" ID="IconEditorWindow.__zoomOut"></a> |
408 </p><a NAME="IconEditorWindow.__zoomOut" ID="IconEditorWindow.__zoomOut"></a> |
409 <h4>IconEditorWindow.__zoomOut</h4> |
409 <h4>IconEditorWindow.__zoomOut</h4> |
410 <b>__zoomOut</b>(<i></i>) |
410 <b>__zoomOut</b>(<i></i>) |
411 <p> |
411 <p> |
412 Private slot called to handle the zoom out action. |
412 Private slot called to handle the zoom out action. |
413 </p><a NAME="IconEditorWindow.__zoomReset" ID="IconEditorWindow.__zoomReset"></a> |
413 </p><a NAME="IconEditorWindow.__zoomReset" ID="IconEditorWindow.__zoomReset"></a> |
414 <h4>IconEditorWindow.__zoomReset</h4> |
414 <h4>IconEditorWindow.__zoomReset</h4> |
415 <b>__zoomReset</b>(<i></i>) |
415 <b>__zoomReset</b>(<i></i>) |
416 <p> |
416 <p> |
417 Private slot called to handle the zoom reset action. |
417 Private slot called to handle the zoom reset action. |
418 </p><a NAME="IconEditorWindow.closeEvent" ID="IconEditorWindow.closeEvent"></a> |
418 </p><a NAME="IconEditorWindow.closeEvent" ID="IconEditorWindow.closeEvent"></a> |
419 <h4>IconEditorWindow.closeEvent</h4> |
419 <h4>IconEditorWindow.closeEvent</h4> |
420 <b>closeEvent</b>(<i>evt</i>) |
420 <b>closeEvent</b>(<i>evt</i>) |
421 <p> |
421 <p> |
422 Private event handler for the close event. |
422 Private event handler for the close event. |
423 </p><dl> |
423 </p><dl> |
424 <dt><i>evt</i></dt> |
424 <dt><i>evt</i></dt> |
425 <dd> |
425 <dd> |
426 the close event (QCloseEvent) |
426 the close event (QCloseEvent) |
427 <br />This event is simply accepted after the history has been |
427 <br />This event is simply accepted after the history has been |
428 saved and all window references have been deleted. |
428 saved and all window references have been deleted. |
429 </dd> |
429 </dd> |
430 </dl> |
430 </dl> |
431 <div align="right"><a href="#top">Up</a></div> |
431 <div align="right"><a href="#top">Up</a></div> |
432 <hr /> |
432 <hr /> |
433 </body></html> |
433 </body></html> |