eric6/Documentation/Source/eric6.Project.ProjectFormsBrowser.html

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7635
0cdead130a81
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.Project.ProjectFormsBrowser</h1> 23 <h1>eric6.Project.ProjectFormsBrowser</h1>
24
23 <p> 25 <p>
24 Module implementing a class used to display the forms part of the project. 26 Module implementing a class used to display the forms 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="#ProjectFormsBrowser">ProjectFormsBrowser</a></td> 38 <td><a href="#ProjectFormsBrowser">ProjectFormsBrowser</a></td>
34 <td>A class used to display the forms part of the project.</td> 39 <td>A class used to display the forms 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="ProjectFormsBrowser" ID="ProjectFormsBrowser"></a> 49 <a NAME="ProjectFormsBrowser" ID="ProjectFormsBrowser"></a>
43 <h2>ProjectFormsBrowser</h2> 50 <h2>ProjectFormsBrowser</h2>
51
44 <p> 52 <p>
45 A class used to display the forms part of the project. 53 A class used to display the forms 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>menusAboutToBeCreated()</dt> 62 </dd>
63 <dt>menusAboutToBeCreated()</dt>
53 <dd> 64 <dd>
54 emitted when the context menus are about to 65 emitted when the context menus are about to
55 be created. This is the right moment to add or remove hook methods. 66 be created. This is the right moment to add or remove hook methods.
56 </dd><dt>showMenu(str, QMenu)</dt> 67 </dd>
68 <dt>showMenu(str, QMenu)</dt>
57 <dd> 69 <dd>
58 emitted when a menu is about to be shown. The 70 emitted when a menu is about to be shown. The
59 name of the menu and a reference to the menu are given. 71 name of the menu and a reference to the menu are given.
60 </dd><dt>uipreview(str)</dt> 72 </dd>
73 <dt>uipreview(str)</dt>
61 <dd> 74 <dd>
62 emitted to preview a forms file 75 emitted to preview a forms file
63 </dd> 76 </dd>
64 </dl> 77 </dl>
65 <h3>Derived from</h3> 78 <h3>Derived from</h3>
66 ProjectBaseBrowser 79 ProjectBaseBrowser
67 <h3>Class Attributes</h3> 80 <h3>Class Attributes</h3>
81
68 <table> 82 <table>
69 <tr><td>PyuicIndentDefault</td></tr> 83 <tr><td>PyuicIndentDefault</td></tr>
70 </table> 84 </table>
71 <h3>Class Methods</h3> 85 <h3>Class Methods</h3>
86
72 <table> 87 <table>
73 <tr><td>None</td></tr> 88 <tr><td>None</td></tr>
74 </table> 89 </table>
75 <h3>Methods</h3> 90 <h3>Methods</h3>
76 <table> 91
92 <table>
93
77 <tr> 94 <tr>
78 <td><a href="#ProjectFormsBrowser.__init__">ProjectFormsBrowser</a></td> 95 <td><a href="#ProjectFormsBrowser.__init__">ProjectFormsBrowser</a></td>
79 <td>Constructor</td> 96 <td>Constructor</td>
80 </tr><tr> 97 </tr>
98 <tr>
81 <td><a href="#ProjectFormsBrowser.__TRPreview">__TRPreview</a></td> 99 <td><a href="#ProjectFormsBrowser.__TRPreview">__TRPreview</a></td>
82 <td>Private slot to handle the Preview translations action.</td> 100 <td>Private slot to handle the Preview translations action.</td>
83 </tr><tr> 101 </tr>
102 <tr>
84 <td><a href="#ProjectFormsBrowser.__UIPreview">__UIPreview</a></td> 103 <td><a href="#ProjectFormsBrowser.__UIPreview">__UIPreview</a></td>
85 <td>Private slot to handle the Preview menu action.</td> 104 <td>Private slot to handle the Preview menu action.</td>
86 </tr><tr> 105 </tr>
106 <tr>
87 <td><a href="#ProjectFormsBrowser.__addFormFiles">__addFormFiles</a></td> 107 <td><a href="#ProjectFormsBrowser.__addFormFiles">__addFormFiles</a></td>
88 <td>Private method to add form files to the project.</td> 108 <td>Private method to add form files to the project.</td>
89 </tr><tr> 109 </tr>
110 <tr>
90 <td><a href="#ProjectFormsBrowser.__addFormsDirectory">__addFormsDirectory</a></td> 111 <td><a href="#ProjectFormsBrowser.__addFormsDirectory">__addFormsDirectory</a></td>
91 <td>Private method to add form files of a directory to the project.</td> 112 <td>Private method to add form files of a directory to the project.</td>
92 </tr><tr> 113 </tr>
114 <tr>
93 <td><a href="#ProjectFormsBrowser.__compileAllForms">__compileAllForms</a></td> 115 <td><a href="#ProjectFormsBrowser.__compileAllForms">__compileAllForms</a></td>
94 <td>Private method to compile all forms to source files.</td> 116 <td>Private method to compile all forms to source files.</td>
95 </tr><tr> 117 </tr>
118 <tr>
96 <td><a href="#ProjectFormsBrowser.__compileForm">__compileForm</a></td> 119 <td><a href="#ProjectFormsBrowser.__compileForm">__compileForm</a></td>
97 <td>Private method to compile a form to a source file.</td> 120 <td>Private method to compile a form to a source file.</td>
98 </tr><tr> 121 </tr>
122 <tr>
99 <td><a href="#ProjectFormsBrowser.__compileSelectedForms">__compileSelectedForms</a></td> 123 <td><a href="#ProjectFormsBrowser.__compileSelectedForms">__compileSelectedForms</a></td>
100 <td>Private method to compile selected forms to source files.</td> 124 <td>Private method to compile selected forms to source files.</td>
101 </tr><tr> 125 </tr>
126 <tr>
102 <td><a href="#ProjectFormsBrowser.__compileUI">__compileUI</a></td> 127 <td><a href="#ProjectFormsBrowser.__compileUI">__compileUI</a></td>
103 <td>Private method to compile a .ui file to a .py/.rb file.</td> 128 <td>Private method to compile a .ui file to a .py/.rb file.</td>
104 </tr><tr> 129 </tr>
130 <tr>
105 <td><a href="#ProjectFormsBrowser.__compileUIDone">__compileUIDone</a></td> 131 <td><a href="#ProjectFormsBrowser.__compileUIDone">__compileUIDone</a></td>
106 <td>Private slot to handle the finished signal of the pyuic/rbuic process.</td> 132 <td>Private slot to handle the finished signal of the pyuic/rbuic process.</td>
107 </tr><tr> 133 </tr>
134 <tr>
108 <td><a href="#ProjectFormsBrowser.__configureUicCompiler">__configureUicCompiler</a></td> 135 <td><a href="#ProjectFormsBrowser.__configureUicCompiler">__configureUicCompiler</a></td>
109 <td>Private slot to configure some non-common uic compiler options.</td> 136 <td>Private slot to configure some non-common uic compiler options.</td>
110 </tr><tr> 137 </tr>
138 <tr>
111 <td><a href="#ProjectFormsBrowser.__deleteFile">__deleteFile</a></td> 139 <td><a href="#ProjectFormsBrowser.__deleteFile">__deleteFile</a></td>
112 <td>Private method to delete a form file from the project.</td> 140 <td>Private method to delete a form file from the project.</td>
113 </tr><tr> 141 </tr>
142 <tr>
114 <td><a href="#ProjectFormsBrowser.__determineUiCompiler">__determineUiCompiler</a></td> 143 <td><a href="#ProjectFormsBrowser.__determineUiCompiler">__determineUiCompiler</a></td>
115 <td>Private method to determine the UI compiler for the project.</td> 144 <td>Private method to determine the UI compiler for the project.</td>
116 </tr><tr> 145 </tr>
146 <tr>
117 <td><a href="#ProjectFormsBrowser.__generateDialogCode">__generateDialogCode</a></td> 147 <td><a href="#ProjectFormsBrowser.__generateDialogCode">__generateDialogCode</a></td>
118 <td>Private method to generate dialog code for the form (Qt4 only).</td> 148 <td>Private method to generate dialog code for the form (Qt4 only).</td>
119 </tr><tr> 149 </tr>
150 <tr>
120 <td><a href="#ProjectFormsBrowser.__newForm">__newForm</a></td> 151 <td><a href="#ProjectFormsBrowser.__newForm">__newForm</a></td>
121 <td>Private slot to handle the New Form menu action.</td> 152 <td>Private slot to handle the New Form menu action.</td>
122 </tr><tr> 153 </tr>
154 <tr>
123 <td><a href="#ProjectFormsBrowser.__newUiForm">__newUiForm</a></td> 155 <td><a href="#ProjectFormsBrowser.__newUiForm">__newUiForm</a></td>
124 <td>Private slot to handle the New Form menu action for Qt-related projects.</td> 156 <td>Private slot to handle the New Form menu action for Qt-related projects.</td>
125 </tr><tr> 157 </tr>
158 <tr>
126 <td><a href="#ProjectFormsBrowser.__openFile">__openFile</a></td> 159 <td><a href="#ProjectFormsBrowser.__openFile">__openFile</a></td>
127 <td>Private slot to handle the Open menu action.</td> 160 <td>Private slot to handle the Open menu action.</td>
128 </tr><tr> 161 </tr>
162 <tr>
129 <td><a href="#ProjectFormsBrowser.__openFileInEditor">__openFileInEditor</a></td> 163 <td><a href="#ProjectFormsBrowser.__openFileInEditor">__openFileInEditor</a></td>
130 <td>Private slot to handle the Open in Editor menu action.</td> 164 <td>Private slot to handle the Open in Editor menu action.</td>
131 </tr><tr> 165 </tr>
166 <tr>
132 <td><a href="#ProjectFormsBrowser.__readStderr">__readStderr</a></td> 167 <td><a href="#ProjectFormsBrowser.__readStderr">__readStderr</a></td>
133 <td>Private slot to handle the readyReadStandardError signal of the pyuic4/pyuic5/pyside-uic/pyside2-uic/rbuic4 process.</td> 168 <td>Private slot to handle the readyReadStandardError signal of the pyuic4/pyuic5/pyside-uic/pyside2-uic/rbuic4 process.</td>
134 </tr><tr> 169 </tr>
170 <tr>
135 <td><a href="#ProjectFormsBrowser.__readStdout">__readStdout</a></td> 171 <td><a href="#ProjectFormsBrowser.__readStdout">__readStdout</a></td>
136 <td>Private slot to handle the readyReadStandardOutput signal of the pyuic4/pyuic5/pyside-uic/pyside2-uic/rbuic4 process.</td> 172 <td>Private slot to handle the readyReadStandardOutput signal of the pyuic4/pyuic5/pyside-uic/pyside2-uic/rbuic4 process.</td>
137 </tr><tr> 173 </tr>
174 <tr>
138 <td><a href="#ProjectFormsBrowser.__resetUiCompiler">__resetUiCompiler</a></td> 175 <td><a href="#ProjectFormsBrowser.__resetUiCompiler">__resetUiCompiler</a></td>
139 <td>Private slot to reset the determined UI compiler executable.</td> 176 <td>Private slot to reset the determined UI compiler executable.</td>
140 </tr><tr> 177 </tr>
178 <tr>
141 <td><a href="#ProjectFormsBrowser.__showContextMenu">__showContextMenu</a></td> 179 <td><a href="#ProjectFormsBrowser.__showContextMenu">__showContextMenu</a></td>
142 <td>Private slot called by the menu aboutToShow signal.</td> 180 <td>Private slot called by the menu aboutToShow signal.</td>
143 </tr><tr> 181 </tr>
182 <tr>
144 <td><a href="#ProjectFormsBrowser.__showContextMenuBack">__showContextMenuBack</a></td> 183 <td><a href="#ProjectFormsBrowser.__showContextMenuBack">__showContextMenuBack</a></td>
145 <td>Private slot called by the backMenu aboutToShow signal.</td> 184 <td>Private slot called by the backMenu aboutToShow signal.</td>
146 </tr><tr> 185 </tr>
186 <tr>
147 <td><a href="#ProjectFormsBrowser.__showContextMenuDir">__showContextMenuDir</a></td> 187 <td><a href="#ProjectFormsBrowser.__showContextMenuDir">__showContextMenuDir</a></td>
148 <td>Private slot called by the dirMenu aboutToShow signal.</td> 188 <td>Private slot called by the dirMenu aboutToShow signal.</td>
149 </tr><tr> 189 </tr>
190 <tr>
150 <td><a href="#ProjectFormsBrowser.__showContextMenuDirMulti">__showContextMenuDirMulti</a></td> 191 <td><a href="#ProjectFormsBrowser.__showContextMenuDirMulti">__showContextMenuDirMulti</a></td>
151 <td>Private slot called by the dirMultiMenu aboutToShow signal.</td> 192 <td>Private slot called by the dirMultiMenu aboutToShow signal.</td>
152 </tr><tr> 193 </tr>
194 <tr>
153 <td><a href="#ProjectFormsBrowser.__showContextMenuMulti">__showContextMenuMulti</a></td> 195 <td><a href="#ProjectFormsBrowser.__showContextMenuMulti">__showContextMenuMulti</a></td>
154 <td>Private slot called by the multiMenu aboutToShow signal.</td> 196 <td>Private slot called by the multiMenu aboutToShow signal.</td>
155 </tr><tr> 197 </tr>
198 <tr>
156 <td><a href="#ProjectFormsBrowser._contextMenuRequested">_contextMenuRequested</a></td> 199 <td><a href="#ProjectFormsBrowser._contextMenuRequested">_contextMenuRequested</a></td>
157 <td>Protected slot to show the context menu.</td> 200 <td>Protected slot to show the context menu.</td>
158 </tr><tr> 201 </tr>
202 <tr>
159 <td><a href="#ProjectFormsBrowser._createPopupMenus">_createPopupMenus</a></td> 203 <td><a href="#ProjectFormsBrowser._createPopupMenus">_createPopupMenus</a></td>
160 <td>Protected overloaded method to generate the popup menu.</td> 204 <td>Protected overloaded method to generate the popup menu.</td>
161 </tr><tr> 205 </tr>
206 <tr>
162 <td><a href="#ProjectFormsBrowser._initHookMethods">_initHookMethods</a></td> 207 <td><a href="#ProjectFormsBrowser._initHookMethods">_initHookMethods</a></td>
163 <td>Protected method to initialize the hooks dictionary.</td> 208 <td>Protected method to initialize the hooks dictionary.</td>
164 </tr><tr> 209 </tr>
210 <tr>
165 <td><a href="#ProjectFormsBrowser._openItem">_openItem</a></td> 211 <td><a href="#ProjectFormsBrowser._openItem">_openItem</a></td>
166 <td>Protected slot to handle the open popup menu entry.</td> 212 <td>Protected slot to handle the open popup menu entry.</td>
167 </tr><tr> 213 </tr>
214 <tr>
168 <td><a href="#ProjectFormsBrowser.compileChangedForms">compileChangedForms</a></td> 215 <td><a href="#ProjectFormsBrowser.compileChangedForms">compileChangedForms</a></td>
169 <td>Public method to compile all changed forms to source files.</td> 216 <td>Public method to compile all changed forms to source files.</td>
170 </tr><tr> 217 </tr>
218 <tr>
171 <td><a href="#ProjectFormsBrowser.getUiCompiler">getUiCompiler</a></td> 219 <td><a href="#ProjectFormsBrowser.getUiCompiler">getUiCompiler</a></td>
172 <td>Public method to get the UI compiler executable of the project.</td> 220 <td>Public method to get the UI compiler executable of the project.</td>
173 </tr><tr> 221 </tr>
222 <tr>
174 <td><a href="#ProjectFormsBrowser.handlePreferencesChanged">handlePreferencesChanged</a></td> 223 <td><a href="#ProjectFormsBrowser.handlePreferencesChanged">handlePreferencesChanged</a></td>
175 <td>Public slot used to handle the preferencesChanged signal.</td> 224 <td>Public slot used to handle the preferencesChanged signal.</td>
176 </tr> 225 </tr>
177 </table> 226 </table>
178 <h3>Static Methods</h3> 227 <h3>Static Methods</h3>
228
179 <table> 229 <table>
180 <tr><td>None</td></tr> 230 <tr><td>None</td></tr>
181 </table> 231 </table>
232
182 <a NAME="ProjectFormsBrowser.__init__" ID="ProjectFormsBrowser.__init__"></a> 233 <a NAME="ProjectFormsBrowser.__init__" ID="ProjectFormsBrowser.__init__"></a>
183 <h4>ProjectFormsBrowser (Constructor)</h4> 234 <h4>ProjectFormsBrowser (Constructor)</h4>
184 <b>ProjectFormsBrowser</b>(<i>project, parent=None</i>) 235 <b>ProjectFormsBrowser</b>(<i>project, parent=None</i>)
236
185 <p> 237 <p>
186 Constructor 238 Constructor
187 </p><dl> 239 </p>
240 <dl>
241
188 <dt><i>project</i></dt> 242 <dt><i>project</i></dt>
189 <dd> 243 <dd>
190 reference to the project object 244 reference to the project object
191 </dd><dt><i>parent</i></dt> 245 </dd>
246 <dt><i>parent</i></dt>
192 <dd> 247 <dd>
193 parent widget of this browser (QWidget) 248 parent widget of this browser (QWidget)
194 </dd> 249 </dd>
195 </dl><a NAME="ProjectFormsBrowser.__TRPreview" ID="ProjectFormsBrowser.__TRPreview"></a> 250 </dl>
251 <a NAME="ProjectFormsBrowser.__TRPreview" ID="ProjectFormsBrowser.__TRPreview"></a>
196 <h4>ProjectFormsBrowser.__TRPreview</h4> 252 <h4>ProjectFormsBrowser.__TRPreview</h4>
197 <b>__TRPreview</b>(<i></i>) 253 <b>__TRPreview</b>(<i></i>)
254
198 <p> 255 <p>
199 Private slot to handle the Preview translations action. 256 Private slot to handle the Preview translations action.
200 </p><a NAME="ProjectFormsBrowser.__UIPreview" ID="ProjectFormsBrowser.__UIPreview"></a> 257 </p>
258 <a NAME="ProjectFormsBrowser.__UIPreview" ID="ProjectFormsBrowser.__UIPreview"></a>
201 <h4>ProjectFormsBrowser.__UIPreview</h4> 259 <h4>ProjectFormsBrowser.__UIPreview</h4>
202 <b>__UIPreview</b>(<i></i>) 260 <b>__UIPreview</b>(<i></i>)
261
203 <p> 262 <p>
204 Private slot to handle the Preview menu action. 263 Private slot to handle the Preview menu action.
205 </p><a NAME="ProjectFormsBrowser.__addFormFiles" ID="ProjectFormsBrowser.__addFormFiles"></a> 264 </p>
265 <a NAME="ProjectFormsBrowser.__addFormFiles" ID="ProjectFormsBrowser.__addFormFiles"></a>
206 <h4>ProjectFormsBrowser.__addFormFiles</h4> 266 <h4>ProjectFormsBrowser.__addFormFiles</h4>
207 <b>__addFormFiles</b>(<i></i>) 267 <b>__addFormFiles</b>(<i></i>)
268
208 <p> 269 <p>
209 Private method to add form files to the project. 270 Private method to add form files to the project.
210 </p><a NAME="ProjectFormsBrowser.__addFormsDirectory" ID="ProjectFormsBrowser.__addFormsDirectory"></a> 271 </p>
272 <a NAME="ProjectFormsBrowser.__addFormsDirectory" ID="ProjectFormsBrowser.__addFormsDirectory"></a>
211 <h4>ProjectFormsBrowser.__addFormsDirectory</h4> 273 <h4>ProjectFormsBrowser.__addFormsDirectory</h4>
212 <b>__addFormsDirectory</b>(<i></i>) 274 <b>__addFormsDirectory</b>(<i></i>)
275
213 <p> 276 <p>
214 Private method to add form files of a directory to the project. 277 Private method to add form files of a directory to the project.
215 </p><a NAME="ProjectFormsBrowser.__compileAllForms" ID="ProjectFormsBrowser.__compileAllForms"></a> 278 </p>
279 <a NAME="ProjectFormsBrowser.__compileAllForms" ID="ProjectFormsBrowser.__compileAllForms"></a>
216 <h4>ProjectFormsBrowser.__compileAllForms</h4> 280 <h4>ProjectFormsBrowser.__compileAllForms</h4>
217 <b>__compileAllForms</b>(<i></i>) 281 <b>__compileAllForms</b>(<i></i>)
282
218 <p> 283 <p>
219 Private method to compile all forms to source files. 284 Private method to compile all forms to source files.
220 </p><a NAME="ProjectFormsBrowser.__compileForm" ID="ProjectFormsBrowser.__compileForm"></a> 285 </p>
286 <a NAME="ProjectFormsBrowser.__compileForm" ID="ProjectFormsBrowser.__compileForm"></a>
221 <h4>ProjectFormsBrowser.__compileForm</h4> 287 <h4>ProjectFormsBrowser.__compileForm</h4>
222 <b>__compileForm</b>(<i></i>) 288 <b>__compileForm</b>(<i></i>)
289
223 <p> 290 <p>
224 Private method to compile a form to a source file. 291 Private method to compile a form to a source file.
225 </p><a NAME="ProjectFormsBrowser.__compileSelectedForms" ID="ProjectFormsBrowser.__compileSelectedForms"></a> 292 </p>
293 <a NAME="ProjectFormsBrowser.__compileSelectedForms" ID="ProjectFormsBrowser.__compileSelectedForms"></a>
226 <h4>ProjectFormsBrowser.__compileSelectedForms</h4> 294 <h4>ProjectFormsBrowser.__compileSelectedForms</h4>
227 <b>__compileSelectedForms</b>(<i></i>) 295 <b>__compileSelectedForms</b>(<i></i>)
296
228 <p> 297 <p>
229 Private method to compile selected forms to source files. 298 Private method to compile selected forms to source files.
230 </p><a NAME="ProjectFormsBrowser.__compileUI" ID="ProjectFormsBrowser.__compileUI"></a> 299 </p>
300 <a NAME="ProjectFormsBrowser.__compileUI" ID="ProjectFormsBrowser.__compileUI"></a>
231 <h4>ProjectFormsBrowser.__compileUI</h4> 301 <h4>ProjectFormsBrowser.__compileUI</h4>
232 <b>__compileUI</b>(<i>fn, noDialog=False, progress=None</i>) 302 <b>__compileUI</b>(<i>fn, noDialog=False, progress=None</i>)
303
233 <p> 304 <p>
234 Private method to compile a .ui file to a .py/.rb file. 305 Private method to compile a .ui file to a .py/.rb file.
235 </p><dl> 306 </p>
307 <dl>
308
236 <dt><i>fn</i></dt> 309 <dt><i>fn</i></dt>
237 <dd> 310 <dd>
238 filename of the .ui file to be compiled 311 filename of the .ui file to be compiled
239 </dd><dt><i>noDialog</i></dt> 312 </dd>
313 <dt><i>noDialog</i></dt>
240 <dd> 314 <dd>
241 flag indicating silent operations 315 flag indicating silent operations
242 </dd><dt><i>progress</i></dt> 316 </dd>
317 <dt><i>progress</i></dt>
243 <dd> 318 <dd>
244 reference to the progress dialog 319 reference to the progress dialog
245 </dd> 320 </dd>
246 </dl><dl> 321 </dl>
322 <dl>
247 <dt>Returns:</dt> 323 <dt>Returns:</dt>
248 <dd> 324 <dd>
249 reference to the compile process (QProcess) 325 reference to the compile process (QProcess)
250 </dd> 326 </dd>
251 </dl><a NAME="ProjectFormsBrowser.__compileUIDone" ID="ProjectFormsBrowser.__compileUIDone"></a> 327 </dl>
328 <a NAME="ProjectFormsBrowser.__compileUIDone" ID="ProjectFormsBrowser.__compileUIDone"></a>
252 <h4>ProjectFormsBrowser.__compileUIDone</h4> 329 <h4>ProjectFormsBrowser.__compileUIDone</h4>
253 <b>__compileUIDone</b>(<i>exitCode, exitStatus</i>) 330 <b>__compileUIDone</b>(<i>exitCode, exitStatus</i>)
331
254 <p> 332 <p>
255 Private slot to handle the finished signal of the pyuic/rbuic process. 333 Private slot to handle the finished signal of the pyuic/rbuic process.
256 </p><dl> 334 </p>
335 <dl>
336
257 <dt><i>exitCode</i></dt> 337 <dt><i>exitCode</i></dt>
258 <dd> 338 <dd>
259 exit code of the process (integer) 339 exit code of the process (integer)
260 </dd><dt><i>exitStatus</i></dt> 340 </dd>
341 <dt><i>exitStatus</i></dt>
261 <dd> 342 <dd>
262 exit status of the process (QProcess.ExitStatus) 343 exit status of the process (QProcess.ExitStatus)
263 </dd> 344 </dd>
264 </dl><a NAME="ProjectFormsBrowser.__configureUicCompiler" ID="ProjectFormsBrowser.__configureUicCompiler"></a> 345 </dl>
346 <a NAME="ProjectFormsBrowser.__configureUicCompiler" ID="ProjectFormsBrowser.__configureUicCompiler"></a>
265 <h4>ProjectFormsBrowser.__configureUicCompiler</h4> 347 <h4>ProjectFormsBrowser.__configureUicCompiler</h4>
266 <b>__configureUicCompiler</b>(<i></i>) 348 <b>__configureUicCompiler</b>(<i></i>)
349
267 <p> 350 <p>
268 Private slot to configure some non-common uic compiler options. 351 Private slot to configure some non-common uic compiler options.
269 </p><a NAME="ProjectFormsBrowser.__deleteFile" ID="ProjectFormsBrowser.__deleteFile"></a> 352 </p>
353 <a NAME="ProjectFormsBrowser.__deleteFile" ID="ProjectFormsBrowser.__deleteFile"></a>
270 <h4>ProjectFormsBrowser.__deleteFile</h4> 354 <h4>ProjectFormsBrowser.__deleteFile</h4>
271 <b>__deleteFile</b>(<i></i>) 355 <b>__deleteFile</b>(<i></i>)
356
272 <p> 357 <p>
273 Private method to delete a form file from the project. 358 Private method to delete a form file from the project.
274 </p><a NAME="ProjectFormsBrowser.__determineUiCompiler" ID="ProjectFormsBrowser.__determineUiCompiler"></a> 359 </p>
360 <a NAME="ProjectFormsBrowser.__determineUiCompiler" ID="ProjectFormsBrowser.__determineUiCompiler"></a>
275 <h4>ProjectFormsBrowser.__determineUiCompiler</h4> 361 <h4>ProjectFormsBrowser.__determineUiCompiler</h4>
276 <b>__determineUiCompiler</b>(<i></i>) 362 <b>__determineUiCompiler</b>(<i></i>)
363
277 <p> 364 <p>
278 Private method to determine the UI compiler for the project. 365 Private method to determine the UI compiler for the project.
279 </p><a NAME="ProjectFormsBrowser.__generateDialogCode" ID="ProjectFormsBrowser.__generateDialogCode"></a> 366 </p>
367 <a NAME="ProjectFormsBrowser.__generateDialogCode" ID="ProjectFormsBrowser.__generateDialogCode"></a>
280 <h4>ProjectFormsBrowser.__generateDialogCode</h4> 368 <h4>ProjectFormsBrowser.__generateDialogCode</h4>
281 <b>__generateDialogCode</b>(<i></i>) 369 <b>__generateDialogCode</b>(<i></i>)
370
282 <p> 371 <p>
283 Private method to generate dialog code for the form (Qt4 only). 372 Private method to generate dialog code for the form (Qt4 only).
284 </p><a NAME="ProjectFormsBrowser.__newForm" ID="ProjectFormsBrowser.__newForm"></a> 373 </p>
374 <a NAME="ProjectFormsBrowser.__newForm" ID="ProjectFormsBrowser.__newForm"></a>
285 <h4>ProjectFormsBrowser.__newForm</h4> 375 <h4>ProjectFormsBrowser.__newForm</h4>
286 <b>__newForm</b>(<i></i>) 376 <b>__newForm</b>(<i></i>)
377
287 <p> 378 <p>
288 Private slot to handle the New Form menu action. 379 Private slot to handle the New Form menu action.
289 </p><a NAME="ProjectFormsBrowser.__newUiForm" ID="ProjectFormsBrowser.__newUiForm"></a> 380 </p>
381 <a NAME="ProjectFormsBrowser.__newUiForm" ID="ProjectFormsBrowser.__newUiForm"></a>
290 <h4>ProjectFormsBrowser.__newUiForm</h4> 382 <h4>ProjectFormsBrowser.__newUiForm</h4>
291 <b>__newUiForm</b>(<i>path</i>) 383 <b>__newUiForm</b>(<i>path</i>)
384
292 <p> 385 <p>
293 Private slot to handle the New Form menu action for Qt-related 386 Private slot to handle the New Form menu action for Qt-related
294 projects. 387 projects.
295 </p><dl> 388 </p>
389 <dl>
390
296 <dt><i>path</i></dt> 391 <dt><i>path</i></dt>
297 <dd> 392 <dd>
298 full directory path for the new form file (string) 393 full directory path for the new form file (string)
299 </dd> 394 </dd>
300 </dl><a NAME="ProjectFormsBrowser.__openFile" ID="ProjectFormsBrowser.__openFile"></a> 395 </dl>
396 <a NAME="ProjectFormsBrowser.__openFile" ID="ProjectFormsBrowser.__openFile"></a>
301 <h4>ProjectFormsBrowser.__openFile</h4> 397 <h4>ProjectFormsBrowser.__openFile</h4>
302 <b>__openFile</b>(<i></i>) 398 <b>__openFile</b>(<i></i>)
399
303 <p> 400 <p>
304 Private slot to handle the Open menu action. 401 Private slot to handle the Open menu action.
305 </p><a NAME="ProjectFormsBrowser.__openFileInEditor" ID="ProjectFormsBrowser.__openFileInEditor"></a> 402 </p>
403 <a NAME="ProjectFormsBrowser.__openFileInEditor" ID="ProjectFormsBrowser.__openFileInEditor"></a>
306 <h4>ProjectFormsBrowser.__openFileInEditor</h4> 404 <h4>ProjectFormsBrowser.__openFileInEditor</h4>
307 <b>__openFileInEditor</b>(<i></i>) 405 <b>__openFileInEditor</b>(<i></i>)
406
308 <p> 407 <p>
309 Private slot to handle the Open in Editor menu action. 408 Private slot to handle the Open in Editor menu action.
310 </p><a NAME="ProjectFormsBrowser.__readStderr" ID="ProjectFormsBrowser.__readStderr"></a> 409 </p>
410 <a NAME="ProjectFormsBrowser.__readStderr" ID="ProjectFormsBrowser.__readStderr"></a>
311 <h4>ProjectFormsBrowser.__readStderr</h4> 411 <h4>ProjectFormsBrowser.__readStderr</h4>
312 <b>__readStderr</b>(<i></i>) 412 <b>__readStderr</b>(<i></i>)
413
313 <p> 414 <p>
314 Private slot to handle the readyReadStandardError signal of the 415 Private slot to handle the readyReadStandardError signal of the
315 pyuic4/pyuic5/pyside-uic/pyside2-uic/rbuic4 process. 416 pyuic4/pyuic5/pyside-uic/pyside2-uic/rbuic4 process.
316 </p><a NAME="ProjectFormsBrowser.__readStdout" ID="ProjectFormsBrowser.__readStdout"></a> 417 </p>
418 <a NAME="ProjectFormsBrowser.__readStdout" ID="ProjectFormsBrowser.__readStdout"></a>
317 <h4>ProjectFormsBrowser.__readStdout</h4> 419 <h4>ProjectFormsBrowser.__readStdout</h4>
318 <b>__readStdout</b>(<i></i>) 420 <b>__readStdout</b>(<i></i>)
421
319 <p> 422 <p>
320 Private slot to handle the readyReadStandardOutput signal of the 423 Private slot to handle the readyReadStandardOutput signal of the
321 pyuic4/pyuic5/pyside-uic/pyside2-uic/rbuic4 process. 424 pyuic4/pyuic5/pyside-uic/pyside2-uic/rbuic4 process.
322 </p><a NAME="ProjectFormsBrowser.__resetUiCompiler" ID="ProjectFormsBrowser.__resetUiCompiler"></a> 425 </p>
426 <a NAME="ProjectFormsBrowser.__resetUiCompiler" ID="ProjectFormsBrowser.__resetUiCompiler"></a>
323 <h4>ProjectFormsBrowser.__resetUiCompiler</h4> 427 <h4>ProjectFormsBrowser.__resetUiCompiler</h4>
324 <b>__resetUiCompiler</b>(<i></i>) 428 <b>__resetUiCompiler</b>(<i></i>)
429
325 <p> 430 <p>
326 Private slot to reset the determined UI compiler executable. 431 Private slot to reset the determined UI compiler executable.
327 </p><a NAME="ProjectFormsBrowser.__showContextMenu" ID="ProjectFormsBrowser.__showContextMenu"></a> 432 </p>
433 <a NAME="ProjectFormsBrowser.__showContextMenu" ID="ProjectFormsBrowser.__showContextMenu"></a>
328 <h4>ProjectFormsBrowser.__showContextMenu</h4> 434 <h4>ProjectFormsBrowser.__showContextMenu</h4>
329 <b>__showContextMenu</b>(<i></i>) 435 <b>__showContextMenu</b>(<i></i>)
436
330 <p> 437 <p>
331 Private slot called by the menu aboutToShow signal. 438 Private slot called by the menu aboutToShow signal.
332 </p><a NAME="ProjectFormsBrowser.__showContextMenuBack" ID="ProjectFormsBrowser.__showContextMenuBack"></a> 439 </p>
440 <a NAME="ProjectFormsBrowser.__showContextMenuBack" ID="ProjectFormsBrowser.__showContextMenuBack"></a>
333 <h4>ProjectFormsBrowser.__showContextMenuBack</h4> 441 <h4>ProjectFormsBrowser.__showContextMenuBack</h4>
334 <b>__showContextMenuBack</b>(<i></i>) 442 <b>__showContextMenuBack</b>(<i></i>)
443
335 <p> 444 <p>
336 Private slot called by the backMenu aboutToShow signal. 445 Private slot called by the backMenu aboutToShow signal.
337 </p><a NAME="ProjectFormsBrowser.__showContextMenuDir" ID="ProjectFormsBrowser.__showContextMenuDir"></a> 446 </p>
447 <a NAME="ProjectFormsBrowser.__showContextMenuDir" ID="ProjectFormsBrowser.__showContextMenuDir"></a>
338 <h4>ProjectFormsBrowser.__showContextMenuDir</h4> 448 <h4>ProjectFormsBrowser.__showContextMenuDir</h4>
339 <b>__showContextMenuDir</b>(<i></i>) 449 <b>__showContextMenuDir</b>(<i></i>)
450
340 <p> 451 <p>
341 Private slot called by the dirMenu aboutToShow signal. 452 Private slot called by the dirMenu aboutToShow signal.
342 </p><a NAME="ProjectFormsBrowser.__showContextMenuDirMulti" ID="ProjectFormsBrowser.__showContextMenuDirMulti"></a> 453 </p>
454 <a NAME="ProjectFormsBrowser.__showContextMenuDirMulti" ID="ProjectFormsBrowser.__showContextMenuDirMulti"></a>
343 <h4>ProjectFormsBrowser.__showContextMenuDirMulti</h4> 455 <h4>ProjectFormsBrowser.__showContextMenuDirMulti</h4>
344 <b>__showContextMenuDirMulti</b>(<i></i>) 456 <b>__showContextMenuDirMulti</b>(<i></i>)
457
345 <p> 458 <p>
346 Private slot called by the dirMultiMenu aboutToShow signal. 459 Private slot called by the dirMultiMenu aboutToShow signal.
347 </p><a NAME="ProjectFormsBrowser.__showContextMenuMulti" ID="ProjectFormsBrowser.__showContextMenuMulti"></a> 460 </p>
461 <a NAME="ProjectFormsBrowser.__showContextMenuMulti" ID="ProjectFormsBrowser.__showContextMenuMulti"></a>
348 <h4>ProjectFormsBrowser.__showContextMenuMulti</h4> 462 <h4>ProjectFormsBrowser.__showContextMenuMulti</h4>
349 <b>__showContextMenuMulti</b>(<i></i>) 463 <b>__showContextMenuMulti</b>(<i></i>)
464
350 <p> 465 <p>
351 Private slot called by the multiMenu aboutToShow signal. 466 Private slot called by the multiMenu aboutToShow signal.
352 </p><a NAME="ProjectFormsBrowser._contextMenuRequested" ID="ProjectFormsBrowser._contextMenuRequested"></a> 467 </p>
468 <a NAME="ProjectFormsBrowser._contextMenuRequested" ID="ProjectFormsBrowser._contextMenuRequested"></a>
353 <h4>ProjectFormsBrowser._contextMenuRequested</h4> 469 <h4>ProjectFormsBrowser._contextMenuRequested</h4>
354 <b>_contextMenuRequested</b>(<i>coord</i>) 470 <b>_contextMenuRequested</b>(<i>coord</i>)
471
355 <p> 472 <p>
356 Protected slot to show the context menu. 473 Protected slot to show the context menu.
357 </p><dl> 474 </p>
475 <dl>
476
358 <dt><i>coord</i></dt> 477 <dt><i>coord</i></dt>
359 <dd> 478 <dd>
360 the position of the mouse pointer (QPoint) 479 the position of the mouse pointer (QPoint)
361 </dd> 480 </dd>
362 </dl><a NAME="ProjectFormsBrowser._createPopupMenus" ID="ProjectFormsBrowser._createPopupMenus"></a> 481 </dl>
482 <a NAME="ProjectFormsBrowser._createPopupMenus" ID="ProjectFormsBrowser._createPopupMenus"></a>
363 <h4>ProjectFormsBrowser._createPopupMenus</h4> 483 <h4>ProjectFormsBrowser._createPopupMenus</h4>
364 <b>_createPopupMenus</b>(<i></i>) 484 <b>_createPopupMenus</b>(<i></i>)
485
365 <p> 486 <p>
366 Protected overloaded method to generate the popup menu. 487 Protected overloaded method to generate the popup menu.
367 </p><a NAME="ProjectFormsBrowser._initHookMethods" ID="ProjectFormsBrowser._initHookMethods"></a> 488 </p>
489 <a NAME="ProjectFormsBrowser._initHookMethods" ID="ProjectFormsBrowser._initHookMethods"></a>
368 <h4>ProjectFormsBrowser._initHookMethods</h4> 490 <h4>ProjectFormsBrowser._initHookMethods</h4>
369 <b>_initHookMethods</b>(<i></i>) 491 <b>_initHookMethods</b>(<i></i>)
492
370 <p> 493 <p>
371 Protected method to initialize the hooks dictionary. 494 Protected method to initialize the hooks dictionary.
372 </p><p> 495 </p>
496 <p>
373 Supported hook methods are: 497 Supported hook methods are:
374 <ul> 498 <ul>
375 <li>compileForm: takes filename as parameter</li> 499 <li>compileForm: takes filename as parameter</li>
376 <li>compileAllForms: takes list of filenames as parameter</li> 500 <li>compileAllForms: takes list of filenames as parameter</li>
377 <li>compileSelectedForms: takes list of filenames as parameter</li> 501 <li>compileSelectedForms: takes list of filenames as parameter</li>
378 <li>compileChangedForms: takes list of filenames as parameter</li> 502 <li>compileChangedForms: takes list of filenames as parameter</li>
379 <li>generateDialogCode: takes filename as parameter</li> 503 <li>generateDialogCode: takes filename as parameter</li>
380 <li>newForm: takes full directory path of new file as parameter</li> 504 <li>newForm: takes full directory path of new file as parameter</li>
381 <li>open: takes a filename as parameter</li> 505 <li>open: takes a filename as parameter</li>
382 </ul> 506 </ul>
383 </p><p> 507 </p>
508 <p>
384 <b>Note</b>: Filenames are relative to the project directory, if not 509 <b>Note</b>: Filenames are relative to the project directory, if not
385 specified differently. 510 specified differently.
386 </p><a NAME="ProjectFormsBrowser._openItem" ID="ProjectFormsBrowser._openItem"></a> 511 </p>
512 <a NAME="ProjectFormsBrowser._openItem" ID="ProjectFormsBrowser._openItem"></a>
387 <h4>ProjectFormsBrowser._openItem</h4> 513 <h4>ProjectFormsBrowser._openItem</h4>
388 <b>_openItem</b>(<i></i>) 514 <b>_openItem</b>(<i></i>)
515
389 <p> 516 <p>
390 Protected slot to handle the open popup menu entry. 517 Protected slot to handle the open popup menu entry.
391 </p><a NAME="ProjectFormsBrowser.compileChangedForms" ID="ProjectFormsBrowser.compileChangedForms"></a> 518 </p>
519 <a NAME="ProjectFormsBrowser.compileChangedForms" ID="ProjectFormsBrowser.compileChangedForms"></a>
392 <h4>ProjectFormsBrowser.compileChangedForms</h4> 520 <h4>ProjectFormsBrowser.compileChangedForms</h4>
393 <b>compileChangedForms</b>(<i></i>) 521 <b>compileChangedForms</b>(<i></i>)
522
394 <p> 523 <p>
395 Public method to compile all changed forms to source files. 524 Public method to compile all changed forms to source files.
396 </p><a NAME="ProjectFormsBrowser.getUiCompiler" ID="ProjectFormsBrowser.getUiCompiler"></a> 525 </p>
526 <a NAME="ProjectFormsBrowser.getUiCompiler" ID="ProjectFormsBrowser.getUiCompiler"></a>
397 <h4>ProjectFormsBrowser.getUiCompiler</h4> 527 <h4>ProjectFormsBrowser.getUiCompiler</h4>
398 <b>getUiCompiler</b>(<i></i>) 528 <b>getUiCompiler</b>(<i></i>)
529
399 <p> 530 <p>
400 Public method to get the UI compiler executable of the project. 531 Public method to get the UI compiler executable of the project.
401 </p><dl> 532 </p>
533 <dl>
402 <dt>Returns:</dt> 534 <dt>Returns:</dt>
403 <dd> 535 <dd>
404 UI compiler executable 536 UI compiler executable
405 </dd> 537 </dd>
406 </dl><dl> 538 </dl>
539 <dl>
407 <dt>Return Type:</dt> 540 <dt>Return Type:</dt>
408 <dd> 541 <dd>
409 str 542 str
410 </dd> 543 </dd>
411 </dl><a NAME="ProjectFormsBrowser.handlePreferencesChanged" ID="ProjectFormsBrowser.handlePreferencesChanged"></a> 544 </dl>
545 <a NAME="ProjectFormsBrowser.handlePreferencesChanged" ID="ProjectFormsBrowser.handlePreferencesChanged"></a>
412 <h4>ProjectFormsBrowser.handlePreferencesChanged</h4> 546 <h4>ProjectFormsBrowser.handlePreferencesChanged</h4>
413 <b>handlePreferencesChanged</b>(<i></i>) 547 <b>handlePreferencesChanged</b>(<i></i>)
548
414 <p> 549 <p>
415 Public slot used to handle the preferencesChanged signal. 550 Public slot used to handle the preferencesChanged signal.
416 </p> 551 </p>
417 <div align="right"><a href="#top">Up</a></div> 552 <div align="right"><a href="#top">Up</a></div>
418 <hr /> 553 <hr />

eric ide

mercurial