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.Project.ProjectResourcesBrowser</h1> |
23 <h1>eric6.Project.ProjectResourcesBrowser</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a class used to display the resources part of the project. |
26 Module implementing a class used to display the resources part of the project. |
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> |
31 <table> |
34 |
|
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#ProjectResourcesBrowser">ProjectResourcesBrowser</a></td> |
38 <td><a href="#ProjectResourcesBrowser">ProjectResourcesBrowser</a></td> |
34 <td>A class used to display the resources part of the project.</td> |
39 <td>A class used to display the resources part of the project.</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="ProjectResourcesBrowser" ID="ProjectResourcesBrowser"></a> |
49 <a NAME="ProjectResourcesBrowser" ID="ProjectResourcesBrowser"></a> |
43 <h2>ProjectResourcesBrowser</h2> |
50 <h2>ProjectResourcesBrowser</h2> |
|
51 |
44 <p> |
52 <p> |
45 A class used to display the resources part of the project. |
53 A class used to display the resources part of the project. |
46 </p><h3>Signals</h3> |
54 </p> |
47 <dl> |
55 <h3>Signals</h3> |
|
56 <dl> |
|
57 |
48 <dt>appendStderr(str)</dt> |
58 <dt>appendStderr(str)</dt> |
49 <dd> |
59 <dd> |
50 emitted after something was received from |
60 emitted after something was received from |
51 a QProcess on stderr |
61 a QProcess on stderr |
52 </dd><dt>showMenu(str, QMenu)</dt> |
62 </dd> |
|
63 <dt>showMenu(str, QMenu)</dt> |
53 <dd> |
64 <dd> |
54 emitted when a menu is about to be shown. |
65 emitted when a menu is about to be shown. |
55 The name of the menu and a reference to the menu are given. |
66 The name of the menu and a reference to the menu are given. |
56 </dd> |
67 </dd> |
57 </dl> |
68 </dl> |
58 <h3>Derived from</h3> |
69 <h3>Derived from</h3> |
59 ProjectBaseBrowser |
70 ProjectBaseBrowser |
60 <h3>Class Attributes</h3> |
71 <h3>Class Attributes</h3> |
|
72 |
61 <table> |
73 <table> |
62 <tr><td>RCFilenameFormatPython</td></tr><tr><td>RCFilenameFormatRuby</td></tr> |
74 <tr><td>RCFilenameFormatPython</td></tr><tr><td>RCFilenameFormatRuby</td></tr> |
63 </table> |
75 </table> |
64 <h3>Class Methods</h3> |
76 <h3>Class Methods</h3> |
|
77 |
65 <table> |
78 <table> |
66 <tr><td>None</td></tr> |
79 <tr><td>None</td></tr> |
67 </table> |
80 </table> |
68 <h3>Methods</h3> |
81 <h3>Methods</h3> |
69 <table> |
82 |
|
83 <table> |
|
84 |
70 <tr> |
85 <tr> |
71 <td><a href="#ProjectResourcesBrowser.__init__">ProjectResourcesBrowser</a></td> |
86 <td><a href="#ProjectResourcesBrowser.__init__">ProjectResourcesBrowser</a></td> |
72 <td>Constructor</td> |
87 <td>Constructor</td> |
73 </tr><tr> |
88 </tr> |
|
89 <tr> |
74 <td><a href="#ProjectResourcesBrowser.__addResourceFiles">__addResourceFiles</a></td> |
90 <td><a href="#ProjectResourcesBrowser.__addResourceFiles">__addResourceFiles</a></td> |
75 <td>Private method to add resource files to the project.</td> |
91 <td>Private method to add resource files to the project.</td> |
76 </tr><tr> |
92 </tr> |
|
93 <tr> |
77 <td><a href="#ProjectResourcesBrowser.__addResourcesDirectory">__addResourcesDirectory</a></td> |
94 <td><a href="#ProjectResourcesBrowser.__addResourcesDirectory">__addResourcesDirectory</a></td> |
78 <td>Private method to add resource files of a directory to the project.</td> |
95 <td>Private method to add resource files of a directory to the project.</td> |
79 </tr><tr> |
96 </tr> |
|
97 <tr> |
80 <td><a href="#ProjectResourcesBrowser.__checkResourcesNewer">__checkResourcesNewer</a></td> |
98 <td><a href="#ProjectResourcesBrowser.__checkResourcesNewer">__checkResourcesNewer</a></td> |
81 <td>Private method to check, if any file referenced in a resource file is newer than a given time.</td> |
99 <td>Private method to check, if any file referenced in a resource file is newer than a given time.</td> |
82 </tr><tr> |
100 </tr> |
|
101 <tr> |
83 <td><a href="#ProjectResourcesBrowser.__compileAllResources">__compileAllResources</a></td> |
102 <td><a href="#ProjectResourcesBrowser.__compileAllResources">__compileAllResources</a></td> |
84 <td>Private method to compile all resources to source files.</td> |
103 <td>Private method to compile all resources to source files.</td> |
85 </tr><tr> |
104 </tr> |
|
105 <tr> |
86 <td><a href="#ProjectResourcesBrowser.__compileQRC">__compileQRC</a></td> |
106 <td><a href="#ProjectResourcesBrowser.__compileQRC">__compileQRC</a></td> |
87 <td>Private method to compile a .qrc file to a .py file.</td> |
107 <td>Private method to compile a .qrc file to a .py file.</td> |
88 </tr><tr> |
108 </tr> |
|
109 <tr> |
89 <td><a href="#ProjectResourcesBrowser.__compileQRCDone">__compileQRCDone</a></td> |
110 <td><a href="#ProjectResourcesBrowser.__compileQRCDone">__compileQRCDone</a></td> |
90 <td>Private slot to handle the finished signal of the compile process.</td> |
111 <td>Private slot to handle the finished signal of the compile process.</td> |
91 </tr><tr> |
112 </tr> |
|
113 <tr> |
92 <td><a href="#ProjectResourcesBrowser.__compileResource">__compileResource</a></td> |
114 <td><a href="#ProjectResourcesBrowser.__compileResource">__compileResource</a></td> |
93 <td>Private method to compile a resource to a source file.</td> |
115 <td>Private method to compile a resource to a source file.</td> |
94 </tr><tr> |
116 </tr> |
|
117 <tr> |
95 <td><a href="#ProjectResourcesBrowser.__compileSelectedResources">__compileSelectedResources</a></td> |
118 <td><a href="#ProjectResourcesBrowser.__compileSelectedResources">__compileSelectedResources</a></td> |
96 <td>Private method to compile selected resources to source files.</td> |
119 <td>Private method to compile selected resources to source files.</td> |
97 </tr><tr> |
120 </tr> |
|
121 <tr> |
98 <td><a href="#ProjectResourcesBrowser.__configureRccCompiler">__configureRccCompiler</a></td> |
122 <td><a href="#ProjectResourcesBrowser.__configureRccCompiler">__configureRccCompiler</a></td> |
99 <td>Private slot to configure some non-common rcc compiler options.</td> |
123 <td>Private slot to configure some non-common rcc compiler options.</td> |
100 </tr><tr> |
124 </tr> |
|
125 <tr> |
101 <td><a href="#ProjectResourcesBrowser.__deleteFile">__deleteFile</a></td> |
126 <td><a href="#ProjectResourcesBrowser.__deleteFile">__deleteFile</a></td> |
102 <td>Private method to delete a resource file from the project.</td> |
127 <td>Private method to delete a resource file from the project.</td> |
103 </tr><tr> |
128 </tr> |
|
129 <tr> |
104 <td><a href="#ProjectResourcesBrowser.__newResource">__newResource</a></td> |
130 <td><a href="#ProjectResourcesBrowser.__newResource">__newResource</a></td> |
105 <td>Private slot to handle the New Resource menu action.</td> |
131 <td>Private slot to handle the New Resource menu action.</td> |
106 </tr><tr> |
132 </tr> |
|
133 <tr> |
107 <td><a href="#ProjectResourcesBrowser.__openFile">__openFile</a></td> |
134 <td><a href="#ProjectResourcesBrowser.__openFile">__openFile</a></td> |
108 <td>Private slot to handle the Open menu action.</td> |
135 <td>Private slot to handle the Open menu action.</td> |
109 </tr><tr> |
136 </tr> |
|
137 <tr> |
110 <td><a href="#ProjectResourcesBrowser.__readStderr">__readStderr</a></td> |
138 <td><a href="#ProjectResourcesBrowser.__readStderr">__readStderr</a></td> |
111 <td>Private slot to handle the readyReadStandardError signal of the pyrcc4/pyrcc5/pyside-rcc/pyside2-rcc/rbrcc process.</td> |
139 <td>Private slot to handle the readyReadStandardError signal of the pyrcc4/pyrcc5/pyside-rcc/pyside2-rcc/rbrcc process.</td> |
112 </tr><tr> |
140 </tr> |
|
141 <tr> |
113 <td><a href="#ProjectResourcesBrowser.__readStdout">__readStdout</a></td> |
142 <td><a href="#ProjectResourcesBrowser.__readStdout">__readStdout</a></td> |
114 <td>Private slot to handle the readyReadStandardOutput signal of the pyrcc4/pyrcc5/pyside-rcc/pyside2-rcc/rbrcc process.</td> |
143 <td>Private slot to handle the readyReadStandardOutput signal of the pyrcc4/pyrcc5/pyside-rcc/pyside2-rcc/rbrcc process.</td> |
115 </tr><tr> |
144 </tr> |
|
145 <tr> |
116 <td><a href="#ProjectResourcesBrowser.__showContextMenu">__showContextMenu</a></td> |
146 <td><a href="#ProjectResourcesBrowser.__showContextMenu">__showContextMenu</a></td> |
117 <td>Private slot called by the menu aboutToShow signal.</td> |
147 <td>Private slot called by the menu aboutToShow signal.</td> |
118 </tr><tr> |
148 </tr> |
|
149 <tr> |
119 <td><a href="#ProjectResourcesBrowser.__showContextMenuBack">__showContextMenuBack</a></td> |
150 <td><a href="#ProjectResourcesBrowser.__showContextMenuBack">__showContextMenuBack</a></td> |
120 <td>Private slot called by the backMenu aboutToShow signal.</td> |
151 <td>Private slot called by the backMenu aboutToShow signal.</td> |
121 </tr><tr> |
152 </tr> |
|
153 <tr> |
122 <td><a href="#ProjectResourcesBrowser.__showContextMenuDir">__showContextMenuDir</a></td> |
154 <td><a href="#ProjectResourcesBrowser.__showContextMenuDir">__showContextMenuDir</a></td> |
123 <td>Private slot called by the dirMenu aboutToShow signal.</td> |
155 <td>Private slot called by the dirMenu aboutToShow signal.</td> |
124 </tr><tr> |
156 </tr> |
|
157 <tr> |
125 <td><a href="#ProjectResourcesBrowser.__showContextMenuDirMulti">__showContextMenuDirMulti</a></td> |
158 <td><a href="#ProjectResourcesBrowser.__showContextMenuDirMulti">__showContextMenuDirMulti</a></td> |
126 <td>Private slot called by the dirMultiMenu aboutToShow signal.</td> |
159 <td>Private slot called by the dirMultiMenu aboutToShow signal.</td> |
127 </tr><tr> |
160 </tr> |
|
161 <tr> |
128 <td><a href="#ProjectResourcesBrowser.__showContextMenuMulti">__showContextMenuMulti</a></td> |
162 <td><a href="#ProjectResourcesBrowser.__showContextMenuMulti">__showContextMenuMulti</a></td> |
129 <td>Private slot called by the multiMenu aboutToShow signal.</td> |
163 <td>Private slot called by the multiMenu aboutToShow signal.</td> |
130 </tr><tr> |
164 </tr> |
|
165 <tr> |
131 <td><a href="#ProjectResourcesBrowser._contextMenuRequested">_contextMenuRequested</a></td> |
166 <td><a href="#ProjectResourcesBrowser._contextMenuRequested">_contextMenuRequested</a></td> |
132 <td>Protected slot to show the context menu.</td> |
167 <td>Protected slot to show the context menu.</td> |
133 </tr><tr> |
168 </tr> |
|
169 <tr> |
134 <td><a href="#ProjectResourcesBrowser._createPopupMenus">_createPopupMenus</a></td> |
170 <td><a href="#ProjectResourcesBrowser._createPopupMenus">_createPopupMenus</a></td> |
135 <td>Protected overloaded method to generate the popup menu.</td> |
171 <td>Protected overloaded method to generate the popup menu.</td> |
136 </tr><tr> |
172 </tr> |
|
173 <tr> |
137 <td><a href="#ProjectResourcesBrowser._initHookMethods">_initHookMethods</a></td> |
174 <td><a href="#ProjectResourcesBrowser._initHookMethods">_initHookMethods</a></td> |
138 <td>Protected method to initialize the hooks dictionary.</td> |
175 <td>Protected method to initialize the hooks dictionary.</td> |
139 </tr><tr> |
176 </tr> |
|
177 <tr> |
140 <td><a href="#ProjectResourcesBrowser._openItem">_openItem</a></td> |
178 <td><a href="#ProjectResourcesBrowser._openItem">_openItem</a></td> |
141 <td>Protected slot to handle the open popup menu entry.</td> |
179 <td>Protected slot to handle the open popup menu entry.</td> |
142 </tr><tr> |
180 </tr> |
|
181 <tr> |
143 <td><a href="#ProjectResourcesBrowser.compileChangedResources">compileChangedResources</a></td> |
182 <td><a href="#ProjectResourcesBrowser.compileChangedResources">compileChangedResources</a></td> |
144 <td>Public method to compile all changed resources to source files.</td> |
183 <td>Public method to compile all changed resources to source files.</td> |
145 </tr><tr> |
184 </tr> |
|
185 <tr> |
146 <td><a href="#ProjectResourcesBrowser.handlePreferencesChanged">handlePreferencesChanged</a></td> |
186 <td><a href="#ProjectResourcesBrowser.handlePreferencesChanged">handlePreferencesChanged</a></td> |
147 <td>Public slot used to handle the preferencesChanged signal.</td> |
187 <td>Public slot used to handle the preferencesChanged signal.</td> |
148 </tr> |
188 </tr> |
149 </table> |
189 </table> |
150 <h3>Static Methods</h3> |
190 <h3>Static Methods</h3> |
|
191 |
151 <table> |
192 <table> |
152 <tr><td>None</td></tr> |
193 <tr><td>None</td></tr> |
153 </table> |
194 </table> |
|
195 |
154 <a NAME="ProjectResourcesBrowser.__init__" ID="ProjectResourcesBrowser.__init__"></a> |
196 <a NAME="ProjectResourcesBrowser.__init__" ID="ProjectResourcesBrowser.__init__"></a> |
155 <h4>ProjectResourcesBrowser (Constructor)</h4> |
197 <h4>ProjectResourcesBrowser (Constructor)</h4> |
156 <b>ProjectResourcesBrowser</b>(<i>project, parent=None</i>) |
198 <b>ProjectResourcesBrowser</b>(<i>project, parent=None</i>) |
|
199 |
157 <p> |
200 <p> |
158 Constructor |
201 Constructor |
159 </p><dl> |
202 </p> |
|
203 <dl> |
|
204 |
160 <dt><i>project</i></dt> |
205 <dt><i>project</i></dt> |
161 <dd> |
206 <dd> |
162 reference to the project object |
207 reference to the project object |
163 </dd><dt><i>parent</i></dt> |
208 </dd> |
|
209 <dt><i>parent</i></dt> |
164 <dd> |
210 <dd> |
165 parent widget of this browser (QWidget) |
211 parent widget of this browser (QWidget) |
166 </dd> |
212 </dd> |
167 </dl><a NAME="ProjectResourcesBrowser.__addResourceFiles" ID="ProjectResourcesBrowser.__addResourceFiles"></a> |
213 </dl> |
|
214 <a NAME="ProjectResourcesBrowser.__addResourceFiles" ID="ProjectResourcesBrowser.__addResourceFiles"></a> |
168 <h4>ProjectResourcesBrowser.__addResourceFiles</h4> |
215 <h4>ProjectResourcesBrowser.__addResourceFiles</h4> |
169 <b>__addResourceFiles</b>(<i></i>) |
216 <b>__addResourceFiles</b>(<i></i>) |
|
217 |
170 <p> |
218 <p> |
171 Private method to add resource files to the project. |
219 Private method to add resource files to the project. |
172 </p><a NAME="ProjectResourcesBrowser.__addResourcesDirectory" ID="ProjectResourcesBrowser.__addResourcesDirectory"></a> |
220 </p> |
|
221 <a NAME="ProjectResourcesBrowser.__addResourcesDirectory" ID="ProjectResourcesBrowser.__addResourcesDirectory"></a> |
173 <h4>ProjectResourcesBrowser.__addResourcesDirectory</h4> |
222 <h4>ProjectResourcesBrowser.__addResourcesDirectory</h4> |
174 <b>__addResourcesDirectory</b>(<i></i>) |
223 <b>__addResourcesDirectory</b>(<i></i>) |
|
224 |
175 <p> |
225 <p> |
176 Private method to add resource files of a directory to the project. |
226 Private method to add resource files of a directory to the project. |
177 </p><a NAME="ProjectResourcesBrowser.__checkResourcesNewer" ID="ProjectResourcesBrowser.__checkResourcesNewer"></a> |
227 </p> |
|
228 <a NAME="ProjectResourcesBrowser.__checkResourcesNewer" ID="ProjectResourcesBrowser.__checkResourcesNewer"></a> |
178 <h4>ProjectResourcesBrowser.__checkResourcesNewer</h4> |
229 <h4>ProjectResourcesBrowser.__checkResourcesNewer</h4> |
179 <b>__checkResourcesNewer</b>(<i>filename, mtime</i>) |
230 <b>__checkResourcesNewer</b>(<i>filename, mtime</i>) |
|
231 |
180 <p> |
232 <p> |
181 Private method to check, if any file referenced in a resource |
233 Private method to check, if any file referenced in a resource |
182 file is newer than a given time. |
234 file is newer than a given time. |
183 </p><dl> |
235 </p> |
|
236 <dl> |
|
237 |
184 <dt><i>filename</i></dt> |
238 <dt><i>filename</i></dt> |
185 <dd> |
239 <dd> |
186 filename of the resource file (string) |
240 filename of the resource file (string) |
187 </dd><dt><i>mtime</i></dt> |
241 </dd> |
|
242 <dt><i>mtime</i></dt> |
188 <dd> |
243 <dd> |
189 modification time to check against |
244 modification time to check against |
190 </dd> |
245 </dd> |
191 </dl><dl> |
246 </dl> |
|
247 <dl> |
192 <dt>Returns:</dt> |
248 <dt>Returns:</dt> |
193 <dd> |
249 <dd> |
194 flag indicating some file is newer (boolean) |
250 flag indicating some file is newer (boolean) |
195 </dd> |
251 </dd> |
196 </dl><a NAME="ProjectResourcesBrowser.__compileAllResources" ID="ProjectResourcesBrowser.__compileAllResources"></a> |
252 </dl> |
|
253 <a NAME="ProjectResourcesBrowser.__compileAllResources" ID="ProjectResourcesBrowser.__compileAllResources"></a> |
197 <h4>ProjectResourcesBrowser.__compileAllResources</h4> |
254 <h4>ProjectResourcesBrowser.__compileAllResources</h4> |
198 <b>__compileAllResources</b>(<i></i>) |
255 <b>__compileAllResources</b>(<i></i>) |
|
256 |
199 <p> |
257 <p> |
200 Private method to compile all resources to source files. |
258 Private method to compile all resources to source files. |
201 </p><a NAME="ProjectResourcesBrowser.__compileQRC" ID="ProjectResourcesBrowser.__compileQRC"></a> |
259 </p> |
|
260 <a NAME="ProjectResourcesBrowser.__compileQRC" ID="ProjectResourcesBrowser.__compileQRC"></a> |
202 <h4>ProjectResourcesBrowser.__compileQRC</h4> |
261 <h4>ProjectResourcesBrowser.__compileQRC</h4> |
203 <b>__compileQRC</b>(<i>fn, noDialog=False, progress=None</i>) |
262 <b>__compileQRC</b>(<i>fn, noDialog=False, progress=None</i>) |
|
263 |
204 <p> |
264 <p> |
205 Private method to compile a .qrc file to a .py file. |
265 Private method to compile a .qrc file to a .py file. |
206 </p><dl> |
266 </p> |
|
267 <dl> |
|
268 |
207 <dt><i>fn</i></dt> |
269 <dt><i>fn</i></dt> |
208 <dd> |
270 <dd> |
209 filename of the .ui file to be compiled |
271 filename of the .ui file to be compiled |
210 </dd><dt><i>noDialog</i></dt> |
272 </dd> |
|
273 <dt><i>noDialog</i></dt> |
211 <dd> |
274 <dd> |
212 flag indicating silent operations |
275 flag indicating silent operations |
213 </dd><dt><i>progress</i></dt> |
276 </dd> |
|
277 <dt><i>progress</i></dt> |
214 <dd> |
278 <dd> |
215 reference to the progress dialog |
279 reference to the progress dialog |
216 </dd> |
280 </dd> |
217 </dl><dl> |
281 </dl> |
|
282 <dl> |
218 <dt>Returns:</dt> |
283 <dt>Returns:</dt> |
219 <dd> |
284 <dd> |
220 reference to the compile process (QProcess) |
285 reference to the compile process (QProcess) |
221 </dd> |
286 </dd> |
222 </dl><a NAME="ProjectResourcesBrowser.__compileQRCDone" ID="ProjectResourcesBrowser.__compileQRCDone"></a> |
287 </dl> |
|
288 <a NAME="ProjectResourcesBrowser.__compileQRCDone" ID="ProjectResourcesBrowser.__compileQRCDone"></a> |
223 <h4>ProjectResourcesBrowser.__compileQRCDone</h4> |
289 <h4>ProjectResourcesBrowser.__compileQRCDone</h4> |
224 <b>__compileQRCDone</b>(<i>exitCode, exitStatus</i>) |
290 <b>__compileQRCDone</b>(<i>exitCode, exitStatus</i>) |
|
291 |
225 <p> |
292 <p> |
226 Private slot to handle the finished signal of the compile process. |
293 Private slot to handle the finished signal of the compile process. |
227 </p><dl> |
294 </p> |
|
295 <dl> |
|
296 |
228 <dt><i>exitCode</i></dt> |
297 <dt><i>exitCode</i></dt> |
229 <dd> |
298 <dd> |
230 exit code of the process (integer) |
299 exit code of the process (integer) |
231 </dd><dt><i>exitStatus</i></dt> |
300 </dd> |
|
301 <dt><i>exitStatus</i></dt> |
232 <dd> |
302 <dd> |
233 exit status of the process (QProcess.ExitStatus) |
303 exit status of the process (QProcess.ExitStatus) |
234 </dd> |
304 </dd> |
235 </dl><a NAME="ProjectResourcesBrowser.__compileResource" ID="ProjectResourcesBrowser.__compileResource"></a> |
305 </dl> |
|
306 <a NAME="ProjectResourcesBrowser.__compileResource" ID="ProjectResourcesBrowser.__compileResource"></a> |
236 <h4>ProjectResourcesBrowser.__compileResource</h4> |
307 <h4>ProjectResourcesBrowser.__compileResource</h4> |
237 <b>__compileResource</b>(<i></i>) |
308 <b>__compileResource</b>(<i></i>) |
|
309 |
238 <p> |
310 <p> |
239 Private method to compile a resource to a source file. |
311 Private method to compile a resource to a source file. |
240 </p><a NAME="ProjectResourcesBrowser.__compileSelectedResources" ID="ProjectResourcesBrowser.__compileSelectedResources"></a> |
312 </p> |
|
313 <a NAME="ProjectResourcesBrowser.__compileSelectedResources" ID="ProjectResourcesBrowser.__compileSelectedResources"></a> |
241 <h4>ProjectResourcesBrowser.__compileSelectedResources</h4> |
314 <h4>ProjectResourcesBrowser.__compileSelectedResources</h4> |
242 <b>__compileSelectedResources</b>(<i></i>) |
315 <b>__compileSelectedResources</b>(<i></i>) |
|
316 |
243 <p> |
317 <p> |
244 Private method to compile selected resources to source files. |
318 Private method to compile selected resources to source files. |
245 </p><a NAME="ProjectResourcesBrowser.__configureRccCompiler" ID="ProjectResourcesBrowser.__configureRccCompiler"></a> |
319 </p> |
|
320 <a NAME="ProjectResourcesBrowser.__configureRccCompiler" ID="ProjectResourcesBrowser.__configureRccCompiler"></a> |
246 <h4>ProjectResourcesBrowser.__configureRccCompiler</h4> |
321 <h4>ProjectResourcesBrowser.__configureRccCompiler</h4> |
247 <b>__configureRccCompiler</b>(<i></i>) |
322 <b>__configureRccCompiler</b>(<i></i>) |
|
323 |
248 <p> |
324 <p> |
249 Private slot to configure some non-common rcc compiler options. |
325 Private slot to configure some non-common rcc compiler options. |
250 </p><a NAME="ProjectResourcesBrowser.__deleteFile" ID="ProjectResourcesBrowser.__deleteFile"></a> |
326 </p> |
|
327 <a NAME="ProjectResourcesBrowser.__deleteFile" ID="ProjectResourcesBrowser.__deleteFile"></a> |
251 <h4>ProjectResourcesBrowser.__deleteFile</h4> |
328 <h4>ProjectResourcesBrowser.__deleteFile</h4> |
252 <b>__deleteFile</b>(<i></i>) |
329 <b>__deleteFile</b>(<i></i>) |
|
330 |
253 <p> |
331 <p> |
254 Private method to delete a resource file from the project. |
332 Private method to delete a resource file from the project. |
255 </p><a NAME="ProjectResourcesBrowser.__newResource" ID="ProjectResourcesBrowser.__newResource"></a> |
333 </p> |
|
334 <a NAME="ProjectResourcesBrowser.__newResource" ID="ProjectResourcesBrowser.__newResource"></a> |
256 <h4>ProjectResourcesBrowser.__newResource</h4> |
335 <h4>ProjectResourcesBrowser.__newResource</h4> |
257 <b>__newResource</b>(<i></i>) |
336 <b>__newResource</b>(<i></i>) |
|
337 |
258 <p> |
338 <p> |
259 Private slot to handle the New Resource menu action. |
339 Private slot to handle the New Resource menu action. |
260 </p><a NAME="ProjectResourcesBrowser.__openFile" ID="ProjectResourcesBrowser.__openFile"></a> |
340 </p> |
|
341 <a NAME="ProjectResourcesBrowser.__openFile" ID="ProjectResourcesBrowser.__openFile"></a> |
261 <h4>ProjectResourcesBrowser.__openFile</h4> |
342 <h4>ProjectResourcesBrowser.__openFile</h4> |
262 <b>__openFile</b>(<i></i>) |
343 <b>__openFile</b>(<i></i>) |
|
344 |
263 <p> |
345 <p> |
264 Private slot to handle the Open menu action. |
346 Private slot to handle the Open menu action. |
265 </p><a NAME="ProjectResourcesBrowser.__readStderr" ID="ProjectResourcesBrowser.__readStderr"></a> |
347 </p> |
|
348 <a NAME="ProjectResourcesBrowser.__readStderr" ID="ProjectResourcesBrowser.__readStderr"></a> |
266 <h4>ProjectResourcesBrowser.__readStderr</h4> |
349 <h4>ProjectResourcesBrowser.__readStderr</h4> |
267 <b>__readStderr</b>(<i></i>) |
350 <b>__readStderr</b>(<i></i>) |
|
351 |
268 <p> |
352 <p> |
269 Private slot to handle the readyReadStandardError signal of the |
353 Private slot to handle the readyReadStandardError signal of the |
270 pyrcc4/pyrcc5/pyside-rcc/pyside2-rcc/rbrcc process. |
354 pyrcc4/pyrcc5/pyside-rcc/pyside2-rcc/rbrcc process. |
271 </p><a NAME="ProjectResourcesBrowser.__readStdout" ID="ProjectResourcesBrowser.__readStdout"></a> |
355 </p> |
|
356 <a NAME="ProjectResourcesBrowser.__readStdout" ID="ProjectResourcesBrowser.__readStdout"></a> |
272 <h4>ProjectResourcesBrowser.__readStdout</h4> |
357 <h4>ProjectResourcesBrowser.__readStdout</h4> |
273 <b>__readStdout</b>(<i></i>) |
358 <b>__readStdout</b>(<i></i>) |
|
359 |
274 <p> |
360 <p> |
275 Private slot to handle the readyReadStandardOutput signal of the |
361 Private slot to handle the readyReadStandardOutput signal of the |
276 pyrcc4/pyrcc5/pyside-rcc/pyside2-rcc/rbrcc process. |
362 pyrcc4/pyrcc5/pyside-rcc/pyside2-rcc/rbrcc process. |
277 </p><a NAME="ProjectResourcesBrowser.__showContextMenu" ID="ProjectResourcesBrowser.__showContextMenu"></a> |
363 </p> |
|
364 <a NAME="ProjectResourcesBrowser.__showContextMenu" ID="ProjectResourcesBrowser.__showContextMenu"></a> |
278 <h4>ProjectResourcesBrowser.__showContextMenu</h4> |
365 <h4>ProjectResourcesBrowser.__showContextMenu</h4> |
279 <b>__showContextMenu</b>(<i></i>) |
366 <b>__showContextMenu</b>(<i></i>) |
|
367 |
280 <p> |
368 <p> |
281 Private slot called by the menu aboutToShow signal. |
369 Private slot called by the menu aboutToShow signal. |
282 </p><a NAME="ProjectResourcesBrowser.__showContextMenuBack" ID="ProjectResourcesBrowser.__showContextMenuBack"></a> |
370 </p> |
|
371 <a NAME="ProjectResourcesBrowser.__showContextMenuBack" ID="ProjectResourcesBrowser.__showContextMenuBack"></a> |
283 <h4>ProjectResourcesBrowser.__showContextMenuBack</h4> |
372 <h4>ProjectResourcesBrowser.__showContextMenuBack</h4> |
284 <b>__showContextMenuBack</b>(<i></i>) |
373 <b>__showContextMenuBack</b>(<i></i>) |
|
374 |
285 <p> |
375 <p> |
286 Private slot called by the backMenu aboutToShow signal. |
376 Private slot called by the backMenu aboutToShow signal. |
287 </p><a NAME="ProjectResourcesBrowser.__showContextMenuDir" ID="ProjectResourcesBrowser.__showContextMenuDir"></a> |
377 </p> |
|
378 <a NAME="ProjectResourcesBrowser.__showContextMenuDir" ID="ProjectResourcesBrowser.__showContextMenuDir"></a> |
288 <h4>ProjectResourcesBrowser.__showContextMenuDir</h4> |
379 <h4>ProjectResourcesBrowser.__showContextMenuDir</h4> |
289 <b>__showContextMenuDir</b>(<i></i>) |
380 <b>__showContextMenuDir</b>(<i></i>) |
|
381 |
290 <p> |
382 <p> |
291 Private slot called by the dirMenu aboutToShow signal. |
383 Private slot called by the dirMenu aboutToShow signal. |
292 </p><a NAME="ProjectResourcesBrowser.__showContextMenuDirMulti" ID="ProjectResourcesBrowser.__showContextMenuDirMulti"></a> |
384 </p> |
|
385 <a NAME="ProjectResourcesBrowser.__showContextMenuDirMulti" ID="ProjectResourcesBrowser.__showContextMenuDirMulti"></a> |
293 <h4>ProjectResourcesBrowser.__showContextMenuDirMulti</h4> |
386 <h4>ProjectResourcesBrowser.__showContextMenuDirMulti</h4> |
294 <b>__showContextMenuDirMulti</b>(<i></i>) |
387 <b>__showContextMenuDirMulti</b>(<i></i>) |
|
388 |
295 <p> |
389 <p> |
296 Private slot called by the dirMultiMenu aboutToShow signal. |
390 Private slot called by the dirMultiMenu aboutToShow signal. |
297 </p><a NAME="ProjectResourcesBrowser.__showContextMenuMulti" ID="ProjectResourcesBrowser.__showContextMenuMulti"></a> |
391 </p> |
|
392 <a NAME="ProjectResourcesBrowser.__showContextMenuMulti" ID="ProjectResourcesBrowser.__showContextMenuMulti"></a> |
298 <h4>ProjectResourcesBrowser.__showContextMenuMulti</h4> |
393 <h4>ProjectResourcesBrowser.__showContextMenuMulti</h4> |
299 <b>__showContextMenuMulti</b>(<i></i>) |
394 <b>__showContextMenuMulti</b>(<i></i>) |
|
395 |
300 <p> |
396 <p> |
301 Private slot called by the multiMenu aboutToShow signal. |
397 Private slot called by the multiMenu aboutToShow signal. |
302 </p><a NAME="ProjectResourcesBrowser._contextMenuRequested" ID="ProjectResourcesBrowser._contextMenuRequested"></a> |
398 </p> |
|
399 <a NAME="ProjectResourcesBrowser._contextMenuRequested" ID="ProjectResourcesBrowser._contextMenuRequested"></a> |
303 <h4>ProjectResourcesBrowser._contextMenuRequested</h4> |
400 <h4>ProjectResourcesBrowser._contextMenuRequested</h4> |
304 <b>_contextMenuRequested</b>(<i>coord</i>) |
401 <b>_contextMenuRequested</b>(<i>coord</i>) |
|
402 |
305 <p> |
403 <p> |
306 Protected slot to show the context menu. |
404 Protected slot to show the context menu. |
307 </p><dl> |
405 </p> |
|
406 <dl> |
|
407 |
308 <dt><i>coord</i></dt> |
408 <dt><i>coord</i></dt> |
309 <dd> |
409 <dd> |
310 the position of the mouse pointer (QPoint) |
410 the position of the mouse pointer (QPoint) |
311 </dd> |
411 </dd> |
312 </dl><a NAME="ProjectResourcesBrowser._createPopupMenus" ID="ProjectResourcesBrowser._createPopupMenus"></a> |
412 </dl> |
|
413 <a NAME="ProjectResourcesBrowser._createPopupMenus" ID="ProjectResourcesBrowser._createPopupMenus"></a> |
313 <h4>ProjectResourcesBrowser._createPopupMenus</h4> |
414 <h4>ProjectResourcesBrowser._createPopupMenus</h4> |
314 <b>_createPopupMenus</b>(<i></i>) |
415 <b>_createPopupMenus</b>(<i></i>) |
|
416 |
315 <p> |
417 <p> |
316 Protected overloaded method to generate the popup menu. |
418 Protected overloaded method to generate the popup menu. |
317 </p><a NAME="ProjectResourcesBrowser._initHookMethods" ID="ProjectResourcesBrowser._initHookMethods"></a> |
419 </p> |
|
420 <a NAME="ProjectResourcesBrowser._initHookMethods" ID="ProjectResourcesBrowser._initHookMethods"></a> |
318 <h4>ProjectResourcesBrowser._initHookMethods</h4> |
421 <h4>ProjectResourcesBrowser._initHookMethods</h4> |
319 <b>_initHookMethods</b>(<i></i>) |
422 <b>_initHookMethods</b>(<i></i>) |
|
423 |
320 <p> |
424 <p> |
321 Protected method to initialize the hooks dictionary. |
425 Protected method to initialize the hooks dictionary. |
322 </p><p> |
426 </p> |
|
427 <p> |
323 Supported hook methods are: |
428 Supported hook methods are: |
324 <ul> |
429 <ul> |
325 <li>compileResource: takes filename as parameter</li> |
430 <li>compileResource: takes filename as parameter</li> |
326 <li>compileAllResources: takes list of filenames as parameter</li> |
431 <li>compileAllResources: takes list of filenames as parameter</li> |
327 <li>compileChangedResources: takes list of filenames as parameter</li> |
432 <li>compileChangedResources: takes list of filenames as parameter</li> |
328 <li>compileSelectedResources: takes list of all form filenames as |
433 <li>compileSelectedResources: takes list of all form filenames as |
329 parameter</li> |
434 parameter</li> |
330 <li>newResource: takes full directory path of new file as |
435 <li>newResource: takes full directory path of new file as |
331 parameter</li> |
436 parameter</li> |
332 </ul> |
437 </ul> |
333 </p><p> |
438 </p> |
|
439 <p> |
334 <b>Note</b>: Filenames are relative to the project directory, if not |
440 <b>Note</b>: Filenames are relative to the project directory, if not |
335 specified differently. |
441 specified differently. |
336 </p><a NAME="ProjectResourcesBrowser._openItem" ID="ProjectResourcesBrowser._openItem"></a> |
442 </p> |
|
443 <a NAME="ProjectResourcesBrowser._openItem" ID="ProjectResourcesBrowser._openItem"></a> |
337 <h4>ProjectResourcesBrowser._openItem</h4> |
444 <h4>ProjectResourcesBrowser._openItem</h4> |
338 <b>_openItem</b>(<i></i>) |
445 <b>_openItem</b>(<i></i>) |
|
446 |
339 <p> |
447 <p> |
340 Protected slot to handle the open popup menu entry. |
448 Protected slot to handle the open popup menu entry. |
341 </p><a NAME="ProjectResourcesBrowser.compileChangedResources" ID="ProjectResourcesBrowser.compileChangedResources"></a> |
449 </p> |
|
450 <a NAME="ProjectResourcesBrowser.compileChangedResources" ID="ProjectResourcesBrowser.compileChangedResources"></a> |
342 <h4>ProjectResourcesBrowser.compileChangedResources</h4> |
451 <h4>ProjectResourcesBrowser.compileChangedResources</h4> |
343 <b>compileChangedResources</b>(<i></i>) |
452 <b>compileChangedResources</b>(<i></i>) |
|
453 |
344 <p> |
454 <p> |
345 Public method to compile all changed resources to source files. |
455 Public method to compile all changed resources to source files. |
346 </p><a NAME="ProjectResourcesBrowser.handlePreferencesChanged" ID="ProjectResourcesBrowser.handlePreferencesChanged"></a> |
456 </p> |
|
457 <a NAME="ProjectResourcesBrowser.handlePreferencesChanged" ID="ProjectResourcesBrowser.handlePreferencesChanged"></a> |
347 <h4>ProjectResourcesBrowser.handlePreferencesChanged</h4> |
458 <h4>ProjectResourcesBrowser.handlePreferencesChanged</h4> |
348 <b>handlePreferencesChanged</b>(<i></i>) |
459 <b>handlePreferencesChanged</b>(<i></i>) |
|
460 |
349 <p> |
461 <p> |
350 Public slot used to handle the preferencesChanged signal. |
462 Public slot used to handle the preferencesChanged signal. |
351 </p> |
463 </p> |
352 <div align="right"><a href="#top">Up</a></div> |
464 <div align="right"><a href="#top">Up</a></div> |
353 <hr /> |
465 <hr /> |