|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Project.ProjectInterfacesBrowser</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Project.ProjectInterfacesBrowser</h1> |
|
23 <p> |
|
24 Module implementing the a class used to display the interfaces (IDL) part |
|
25 of the project. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#ProjectInterfacesBrowser">ProjectInterfacesBrowser</a></td> |
|
35 <td>A class used to display the interfaces (IDL) part of the project.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="ProjectInterfacesBrowser" ID="ProjectInterfacesBrowser"></a> |
|
44 <h2>ProjectInterfacesBrowser</h2> |
|
45 <p> |
|
46 A class used to display the interfaces (IDL) part of the project. |
|
47 </p><h3>Signals</h3> |
|
48 <dl> |
|
49 <dt>appendStderr(str)</dt> |
|
50 <dd> |
|
51 emitted after something was received from |
|
52 a QProcess on stderr |
|
53 </dd><dt>appendStdout(str)</dt> |
|
54 <dd> |
|
55 emitted after something was received from |
|
56 a QProcess on stdout |
|
57 </dd><dt>closeSourceWindow(str)</dt> |
|
58 <dd> |
|
59 emitted after a file has been |
|
60 removed/deleted from the project |
|
61 </dd><dt>showMenu(str, QMenu)</dt> |
|
62 <dd> |
|
63 emitted when a menu is about to be shown. |
|
64 The name of the menu and a reference to the menu are given. |
|
65 </dd><dt>sourceFile(str, int = 0)</dt> |
|
66 <dd> |
|
67 emitted to open a file |
|
68 </dd> |
|
69 </dl> |
|
70 <h3>Derived from</h3> |
|
71 ProjectBaseBrowser |
|
72 <h3>Class Attributes</h3> |
|
73 <table> |
|
74 <tr><td>None</td></tr> |
|
75 </table> |
|
76 <h3>Class Methods</h3> |
|
77 <table> |
|
78 <tr><td>None</td></tr> |
|
79 </table> |
|
80 <h3>Methods</h3> |
|
81 <table> |
|
82 <tr> |
|
83 <td><a href="#ProjectInterfacesBrowser.__init__">ProjectInterfacesBrowser</a></td> |
|
84 <td>Constructor</td> |
|
85 </tr><tr> |
|
86 <td><a href="#ProjectInterfacesBrowser.__addInterfaceFiles">__addInterfaceFiles</a></td> |
|
87 <td>Private method to add interface files to the project.</td> |
|
88 </tr><tr> |
|
89 <td><a href="#ProjectInterfacesBrowser.__addInterfacesDirectory">__addInterfacesDirectory</a></td> |
|
90 <td>Private method to add interface files of a directory to the project.</td> |
|
91 </tr><tr> |
|
92 <td><a href="#ProjectInterfacesBrowser.__compileAllInterfaces">__compileAllInterfaces</a></td> |
|
93 <td>Private method to compile all interfaces to python.</td> |
|
94 </tr><tr> |
|
95 <td><a href="#ProjectInterfacesBrowser.__compileIDL">__compileIDL</a></td> |
|
96 <td>Private method to compile a .idl file to python.</td> |
|
97 </tr><tr> |
|
98 <td><a href="#ProjectInterfacesBrowser.__compileIDLDone">__compileIDLDone</a></td> |
|
99 <td>Private slot to handle the finished signal of the omniidl process.</td> |
|
100 </tr><tr> |
|
101 <td><a href="#ProjectInterfacesBrowser.__compileInterface">__compileInterface</a></td> |
|
102 <td>Private method to compile an interface to python.</td> |
|
103 </tr><tr> |
|
104 <td><a href="#ProjectInterfacesBrowser.__compileSelectedInterfaces">__compileSelectedInterfaces</a></td> |
|
105 <td>Private method to compile selected interfaces to python.</td> |
|
106 </tr><tr> |
|
107 <td><a href="#ProjectInterfacesBrowser.__configureCorba">__configureCorba</a></td> |
|
108 <td>Private method to open the configuration dialog.</td> |
|
109 </tr><tr> |
|
110 <td><a href="#ProjectInterfacesBrowser.__deleteFile">__deleteFile</a></td> |
|
111 <td>Private method to delete files from the project.</td> |
|
112 </tr><tr> |
|
113 <td><a href="#ProjectInterfacesBrowser.__readStderr">__readStderr</a></td> |
|
114 <td>Private slot to handle the readyReadStandardError signal of the omniidl process.</td> |
|
115 </tr><tr> |
|
116 <td><a href="#ProjectInterfacesBrowser.__readStdout">__readStdout</a></td> |
|
117 <td>Private slot to handle the readyReadStandardOutput signal of the omniidl process.</td> |
|
118 </tr><tr> |
|
119 <td><a href="#ProjectInterfacesBrowser.__showContextMenu">__showContextMenu</a></td> |
|
120 <td>Private slot called by the menu aboutToShow signal.</td> |
|
121 </tr><tr> |
|
122 <td><a href="#ProjectInterfacesBrowser.__showContextMenuBack">__showContextMenuBack</a></td> |
|
123 <td>Private slot called by the backMenu aboutToShow signal.</td> |
|
124 </tr><tr> |
|
125 <td><a href="#ProjectInterfacesBrowser.__showContextMenuDir">__showContextMenuDir</a></td> |
|
126 <td>Private slot called by the dirMenu aboutToShow signal.</td> |
|
127 </tr><tr> |
|
128 <td><a href="#ProjectInterfacesBrowser.__showContextMenuDirMulti">__showContextMenuDirMulti</a></td> |
|
129 <td>Private slot called by the dirMultiMenu aboutToShow signal.</td> |
|
130 </tr><tr> |
|
131 <td><a href="#ProjectInterfacesBrowser.__showContextMenuMulti">__showContextMenuMulti</a></td> |
|
132 <td>Private slot called by the multiMenu aboutToShow signal.</td> |
|
133 </tr><tr> |
|
134 <td><a href="#ProjectInterfacesBrowser._contextMenuRequested">_contextMenuRequested</a></td> |
|
135 <td>Protected slot to show the context menu.</td> |
|
136 </tr><tr> |
|
137 <td><a href="#ProjectInterfacesBrowser._createPopupMenus">_createPopupMenus</a></td> |
|
138 <td>Protected overloaded method to generate the popup menu.</td> |
|
139 </tr><tr> |
|
140 <td><a href="#ProjectInterfacesBrowser._openItem">_openItem</a></td> |
|
141 <td>Protected slot to handle the open popup menu entry.</td> |
|
142 </tr> |
|
143 </table> |
|
144 <h3>Static Methods</h3> |
|
145 <table> |
|
146 <tr><td>None</td></tr> |
|
147 </table> |
|
148 <a NAME="ProjectInterfacesBrowser.__init__" ID="ProjectInterfacesBrowser.__init__"></a> |
|
149 <h4>ProjectInterfacesBrowser (Constructor)</h4> |
|
150 <b>ProjectInterfacesBrowser</b>(<i>project, parent=None</i>) |
|
151 <p> |
|
152 Constructor |
|
153 </p><dl> |
|
154 <dt><i>project</i></dt> |
|
155 <dd> |
|
156 reference to the project object |
|
157 </dd><dt><i>parent</i></dt> |
|
158 <dd> |
|
159 parent widget of this browser (QWidget) |
|
160 </dd> |
|
161 </dl><a NAME="ProjectInterfacesBrowser.__addInterfaceFiles" ID="ProjectInterfacesBrowser.__addInterfaceFiles"></a> |
|
162 <h4>ProjectInterfacesBrowser.__addInterfaceFiles</h4> |
|
163 <b>__addInterfaceFiles</b>(<i></i>) |
|
164 <p> |
|
165 Private method to add interface files to the project. |
|
166 </p><a NAME="ProjectInterfacesBrowser.__addInterfacesDirectory" ID="ProjectInterfacesBrowser.__addInterfacesDirectory"></a> |
|
167 <h4>ProjectInterfacesBrowser.__addInterfacesDirectory</h4> |
|
168 <b>__addInterfacesDirectory</b>(<i></i>) |
|
169 <p> |
|
170 Private method to add interface files of a directory to the project. |
|
171 </p><a NAME="ProjectInterfacesBrowser.__compileAllInterfaces" ID="ProjectInterfacesBrowser.__compileAllInterfaces"></a> |
|
172 <h4>ProjectInterfacesBrowser.__compileAllInterfaces</h4> |
|
173 <b>__compileAllInterfaces</b>(<i></i>) |
|
174 <p> |
|
175 Private method to compile all interfaces to python. |
|
176 </p><a NAME="ProjectInterfacesBrowser.__compileIDL" ID="ProjectInterfacesBrowser.__compileIDL"></a> |
|
177 <h4>ProjectInterfacesBrowser.__compileIDL</h4> |
|
178 <b>__compileIDL</b>(<i>fn, noDialog=False, progress=None</i>) |
|
179 <p> |
|
180 Private method to compile a .idl file to python. |
|
181 </p><dl> |
|
182 <dt><i>fn</i></dt> |
|
183 <dd> |
|
184 filename of the .idl file to be compiled (string) |
|
185 </dd><dt><i>noDialog</i></dt> |
|
186 <dd> |
|
187 flag indicating silent operations (boolean) |
|
188 </dd><dt><i>progress</i></dt> |
|
189 <dd> |
|
190 reference to the progress dialog (E5ProgressDialog) |
|
191 </dd> |
|
192 </dl><dl> |
|
193 <dt>Returns:</dt> |
|
194 <dd> |
|
195 reference to the compile process (QProcess) |
|
196 </dd> |
|
197 </dl><a NAME="ProjectInterfacesBrowser.__compileIDLDone" ID="ProjectInterfacesBrowser.__compileIDLDone"></a> |
|
198 <h4>ProjectInterfacesBrowser.__compileIDLDone</h4> |
|
199 <b>__compileIDLDone</b>(<i>exitCode, exitStatus</i>) |
|
200 <p> |
|
201 Private slot to handle the finished signal of the omniidl process. |
|
202 </p><dl> |
|
203 <dt><i>exitCode</i></dt> |
|
204 <dd> |
|
205 exit code of the process (integer) |
|
206 </dd><dt><i>exitStatus</i></dt> |
|
207 <dd> |
|
208 exit status of the process (QProcess.ExitStatus) |
|
209 </dd> |
|
210 </dl><a NAME="ProjectInterfacesBrowser.__compileInterface" ID="ProjectInterfacesBrowser.__compileInterface"></a> |
|
211 <h4>ProjectInterfacesBrowser.__compileInterface</h4> |
|
212 <b>__compileInterface</b>(<i></i>) |
|
213 <p> |
|
214 Private method to compile an interface to python. |
|
215 </p><a NAME="ProjectInterfacesBrowser.__compileSelectedInterfaces" ID="ProjectInterfacesBrowser.__compileSelectedInterfaces"></a> |
|
216 <h4>ProjectInterfacesBrowser.__compileSelectedInterfaces</h4> |
|
217 <b>__compileSelectedInterfaces</b>(<i></i>) |
|
218 <p> |
|
219 Private method to compile selected interfaces to python. |
|
220 </p><a NAME="ProjectInterfacesBrowser.__configureCorba" ID="ProjectInterfacesBrowser.__configureCorba"></a> |
|
221 <h4>ProjectInterfacesBrowser.__configureCorba</h4> |
|
222 <b>__configureCorba</b>(<i></i>) |
|
223 <p> |
|
224 Private method to open the configuration dialog. |
|
225 </p><a NAME="ProjectInterfacesBrowser.__deleteFile" ID="ProjectInterfacesBrowser.__deleteFile"></a> |
|
226 <h4>ProjectInterfacesBrowser.__deleteFile</h4> |
|
227 <b>__deleteFile</b>(<i></i>) |
|
228 <p> |
|
229 Private method to delete files from the project. |
|
230 </p><a NAME="ProjectInterfacesBrowser.__readStderr" ID="ProjectInterfacesBrowser.__readStderr"></a> |
|
231 <h4>ProjectInterfacesBrowser.__readStderr</h4> |
|
232 <b>__readStderr</b>(<i></i>) |
|
233 <p> |
|
234 Private slot to handle the readyReadStandardError signal of the |
|
235 omniidl process. |
|
236 </p><a NAME="ProjectInterfacesBrowser.__readStdout" ID="ProjectInterfacesBrowser.__readStdout"></a> |
|
237 <h4>ProjectInterfacesBrowser.__readStdout</h4> |
|
238 <b>__readStdout</b>(<i></i>) |
|
239 <p> |
|
240 Private slot to handle the readyReadStandardOutput signal of the |
|
241 omniidl process. |
|
242 </p><a NAME="ProjectInterfacesBrowser.__showContextMenu" ID="ProjectInterfacesBrowser.__showContextMenu"></a> |
|
243 <h4>ProjectInterfacesBrowser.__showContextMenu</h4> |
|
244 <b>__showContextMenu</b>(<i></i>) |
|
245 <p> |
|
246 Private slot called by the menu aboutToShow signal. |
|
247 </p><a NAME="ProjectInterfacesBrowser.__showContextMenuBack" ID="ProjectInterfacesBrowser.__showContextMenuBack"></a> |
|
248 <h4>ProjectInterfacesBrowser.__showContextMenuBack</h4> |
|
249 <b>__showContextMenuBack</b>(<i></i>) |
|
250 <p> |
|
251 Private slot called by the backMenu aboutToShow signal. |
|
252 </p><a NAME="ProjectInterfacesBrowser.__showContextMenuDir" ID="ProjectInterfacesBrowser.__showContextMenuDir"></a> |
|
253 <h4>ProjectInterfacesBrowser.__showContextMenuDir</h4> |
|
254 <b>__showContextMenuDir</b>(<i></i>) |
|
255 <p> |
|
256 Private slot called by the dirMenu aboutToShow signal. |
|
257 </p><a NAME="ProjectInterfacesBrowser.__showContextMenuDirMulti" ID="ProjectInterfacesBrowser.__showContextMenuDirMulti"></a> |
|
258 <h4>ProjectInterfacesBrowser.__showContextMenuDirMulti</h4> |
|
259 <b>__showContextMenuDirMulti</b>(<i></i>) |
|
260 <p> |
|
261 Private slot called by the dirMultiMenu aboutToShow signal. |
|
262 </p><a NAME="ProjectInterfacesBrowser.__showContextMenuMulti" ID="ProjectInterfacesBrowser.__showContextMenuMulti"></a> |
|
263 <h4>ProjectInterfacesBrowser.__showContextMenuMulti</h4> |
|
264 <b>__showContextMenuMulti</b>(<i></i>) |
|
265 <p> |
|
266 Private slot called by the multiMenu aboutToShow signal. |
|
267 </p><a NAME="ProjectInterfacesBrowser._contextMenuRequested" ID="ProjectInterfacesBrowser._contextMenuRequested"></a> |
|
268 <h4>ProjectInterfacesBrowser._contextMenuRequested</h4> |
|
269 <b>_contextMenuRequested</b>(<i>coord</i>) |
|
270 <p> |
|
271 Protected slot to show the context menu. |
|
272 </p><dl> |
|
273 <dt><i>coord</i></dt> |
|
274 <dd> |
|
275 the position of the mouse pointer (QPoint) |
|
276 </dd> |
|
277 </dl><a NAME="ProjectInterfacesBrowser._createPopupMenus" ID="ProjectInterfacesBrowser._createPopupMenus"></a> |
|
278 <h4>ProjectInterfacesBrowser._createPopupMenus</h4> |
|
279 <b>_createPopupMenus</b>(<i></i>) |
|
280 <p> |
|
281 Protected overloaded method to generate the popup menu. |
|
282 </p><a NAME="ProjectInterfacesBrowser._openItem" ID="ProjectInterfacesBrowser._openItem"></a> |
|
283 <h4>ProjectInterfacesBrowser._openItem</h4> |
|
284 <b>_openItem</b>(<i></i>) |
|
285 <p> |
|
286 Protected slot to handle the open popup menu entry. |
|
287 </p> |
|
288 <div align="right"><a href="#top">Up</a></div> |
|
289 <hr /> |
|
290 </body></html> |