eric6/Documentation/Source/eric6.Tools.TRPreviewer.html

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7989
a21d673a8f99
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.Tools.TRPreviewer</h1> 23 <h1>eric6.Tools.TRPreviewer</h1>
24
23 <p> 25 <p>
24 Module implementing the TR Previewer main window. 26 Module implementing the TR Previewer main window.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>noTranslationName</td></tr> 31 <tr><td>noTranslationName</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="#TRPreviewer">TRPreviewer</a></td> 38 <td><a href="#TRPreviewer">TRPreviewer</a></td>
34 <td>Class implementing the UI Previewer main window.</td> 39 <td>Class implementing the UI Previewer main window.</td>
35 </tr><tr> 40 </tr>
41 <tr>
36 <td><a href="#Translation">Translation</a></td> 42 <td><a href="#Translation">Translation</a></td>
37 <td>Class to store the properties of a translation.</td> 43 <td>Class to store the properties of a translation.</td>
38 </tr><tr> 44 </tr>
45 <tr>
39 <td><a href="#TranslationsDict">TranslationsDict</a></td> 46 <td><a href="#TranslationsDict">TranslationsDict</a></td>
40 <td>Class to store all loaded translations.</td> 47 <td>Class to store all loaded translations.</td>
41 </tr><tr> 48 </tr>
49 <tr>
42 <td><a href="#WidgetArea">WidgetArea</a></td> 50 <td><a href="#WidgetArea">WidgetArea</a></td>
43 <td>Specialized MDI area to show the loaded widgets.</td> 51 <td>Specialized MDI area to show the loaded widgets.</td>
44 </tr><tr> 52 </tr>
53 <tr>
45 <td><a href="#WidgetView">WidgetView</a></td> 54 <td><a href="#WidgetView">WidgetView</a></td>
46 <td>Class to show a dynamically loaded widget (or dialog).</td> 55 <td>Class to show a dynamically loaded widget (or dialog).</td>
47 </tr> 56 </tr>
48 </table> 57 </table>
49 <h3>Functions</h3> 58 <h3>Functions</h3>
50 <table> 59
51 <tr><td>None</td></tr> 60 <table>
52 </table> 61 <tr><td>None</td></tr>
53 <hr /><hr /> 62 </table>
63 <hr />
64 <hr />
54 <a NAME="TRPreviewer" ID="TRPreviewer"></a> 65 <a NAME="TRPreviewer" ID="TRPreviewer"></a>
55 <h2>TRPreviewer</h2> 66 <h2>TRPreviewer</h2>
67
56 <p> 68 <p>
57 Class implementing the UI Previewer main window. 69 Class implementing the UI Previewer main window.
58 </p> 70 </p>
59 <h3>Derived from</h3> 71 <h3>Derived from</h3>
60 E5MainWindow 72 E5MainWindow
61 <h3>Class Attributes</h3> 73 <h3>Class Attributes</h3>
74
62 <table> 75 <table>
63 <tr><td>None</td></tr> 76 <tr><td>None</td></tr>
64 </table> 77 </table>
65 <h3>Class Methods</h3> 78 <h3>Class Methods</h3>
79
66 <table> 80 <table>
67 <tr><td>None</td></tr> 81 <tr><td>None</td></tr>
68 </table> 82 </table>
69 <h3>Methods</h3> 83 <h3>Methods</h3>
70 <table> 84
85 <table>
86
71 <tr> 87 <tr>
72 <td><a href="#TRPreviewer.__init__">TRPreviewer</a></td> 88 <td><a href="#TRPreviewer.__init__">TRPreviewer</a></td>
73 <td>Constructor</td> 89 <td>Constructor</td>
74 </tr><tr> 90 </tr>
91 <tr>
75 <td><a href="#TRPreviewer.__about">__about</a></td> 92 <td><a href="#TRPreviewer.__about">__about</a></td>
76 <td>Private slot to show the about information.</td> 93 <td>Private slot to show the about information.</td>
77 </tr><tr> 94 </tr>
95 <tr>
78 <td><a href="#TRPreviewer.__aboutQt">__aboutQt</a></td> 96 <td><a href="#TRPreviewer.__aboutQt">__aboutQt</a></td>
79 <td>Private slot to show info about Qt.</td> 97 <td>Private slot to show info about Qt.</td>
80 </tr><tr> 98 </tr>
99 <tr>
81 <td><a href="#TRPreviewer.__initActions">__initActions</a></td> 100 <td><a href="#TRPreviewer.__initActions">__initActions</a></td>
82 <td>Private method to define the user interface actions.</td> 101 <td>Private method to define the user interface actions.</td>
83 </tr><tr> 102 </tr>
103 <tr>
84 <td><a href="#TRPreviewer.__initMenus">__initMenus</a></td> 104 <td><a href="#TRPreviewer.__initMenus">__initMenus</a></td>
85 <td>Private method to create the menus.</td> 105 <td>Private method to create the menus.</td>
86 </tr><tr> 106 </tr>
107 <tr>
87 <td><a href="#TRPreviewer.__initToolbars">__initToolbars</a></td> 108 <td><a href="#TRPreviewer.__initToolbars">__initToolbars</a></td>
88 <td>Private method to create the toolbars.</td> 109 <td>Private method to create the toolbars.</td>
89 </tr><tr> 110 </tr>
111 <tr>
90 <td><a href="#TRPreviewer.__openTranslation">__openTranslation</a></td> 112 <td><a href="#TRPreviewer.__openTranslation">__openTranslation</a></td>
91 <td>Private slot to handle the Open Translation action.</td> 113 <td>Private slot to handle the Open Translation action.</td>
92 </tr><tr> 114 </tr>
115 <tr>
93 <td><a href="#TRPreviewer.__openWidget">__openWidget</a></td> 116 <td><a href="#TRPreviewer.__openWidget">__openWidget</a></td>
94 <td>Private slot to handle the Open Dialog action.</td> 117 <td>Private slot to handle the Open Dialog action.</td>
95 </tr><tr> 118 </tr>
119 <tr>
96 <td><a href="#TRPreviewer.__showWindowMenu">__showWindowMenu</a></td> 120 <td><a href="#TRPreviewer.__showWindowMenu">__showWindowMenu</a></td>
97 <td>Private slot to handle the aboutToShow signal of the window menu.</td> 121 <td>Private slot to handle the aboutToShow signal of the window menu.</td>
98 </tr><tr> 122 </tr>
123 <tr>
99 <td><a href="#TRPreviewer.__updateActions">__updateActions</a></td> 124 <td><a href="#TRPreviewer.__updateActions">__updateActions</a></td>
100 <td>Private slot to update the actions state.</td> 125 <td>Private slot to update the actions state.</td>
101 </tr><tr> 126 </tr>
127 <tr>
102 <td><a href="#TRPreviewer.__whatsThis">__whatsThis</a></td> 128 <td><a href="#TRPreviewer.__whatsThis">__whatsThis</a></td>
103 <td>Private slot called in to enter Whats This mode.</td> 129 <td>Private slot called in to enter Whats This mode.</td>
104 </tr><tr> 130 </tr>
131 <tr>
105 <td><a href="#TRPreviewer.closeEvent">closeEvent</a></td> 132 <td><a href="#TRPreviewer.closeEvent">closeEvent</a></td>
106 <td>Protected event handler for the close event.</td> 133 <td>Protected event handler for the close event.</td>
107 </tr><tr> 134 </tr>
135 <tr>
108 <td><a href="#TRPreviewer.reloadTranslations">reloadTranslations</a></td> 136 <td><a href="#TRPreviewer.reloadTranslations">reloadTranslations</a></td>
109 <td>Public slot to reload all translations.</td> 137 <td>Public slot to reload all translations.</td>
110 </tr><tr> 138 </tr>
139 <tr>
111 <td><a href="#TRPreviewer.setTranslation">setTranslation</a></td> 140 <td><a href="#TRPreviewer.setTranslation">setTranslation</a></td>
112 <td>Public slot to activate a translation.</td> 141 <td>Public slot to activate a translation.</td>
113 </tr><tr> 142 </tr>
143 <tr>
114 <td><a href="#TRPreviewer.show">show</a></td> 144 <td><a href="#TRPreviewer.show">show</a></td>
115 <td>Public slot to show this dialog.</td> 145 <td>Public slot to show this dialog.</td>
116 </tr> 146 </tr>
117 </table> 147 </table>
118 <h3>Static Methods</h3> 148 <h3>Static Methods</h3>
119 <table> 149
120 <tr><td>None</td></tr> 150 <table>
121 </table> 151 <tr><td>None</td></tr>
152 </table>
153
122 <a NAME="TRPreviewer.__init__" ID="TRPreviewer.__init__"></a> 154 <a NAME="TRPreviewer.__init__" ID="TRPreviewer.__init__"></a>
123 <h4>TRPreviewer (Constructor)</h4> 155 <h4>TRPreviewer (Constructor)</h4>
124 <b>TRPreviewer</b>(<i>filenames=None, parent=None, name=None</i>) 156 <b>TRPreviewer</b>(<i>filenames=None, parent=None, name=None</i>)
157
125 <p> 158 <p>
126 Constructor 159 Constructor
127 </p><dl> 160 </p>
161 <dl>
162
128 <dt><i>filenames</i></dt> 163 <dt><i>filenames</i></dt>
129 <dd> 164 <dd>
130 filenames of form and/or translation files to load 165 filenames of form and/or translation files to load
131 </dd><dt><i>parent</i></dt> 166 </dd>
167 <dt><i>parent</i></dt>
132 <dd> 168 <dd>
133 parent widget of this window (QWidget) 169 parent widget of this window (QWidget)
134 </dd><dt><i>name</i></dt> 170 </dd>
171 <dt><i>name</i></dt>
135 <dd> 172 <dd>
136 name of this window (string) 173 name of this window (string)
137 </dd> 174 </dd>
138 </dl><a NAME="TRPreviewer.__about" ID="TRPreviewer.__about"></a> 175 </dl>
176 <a NAME="TRPreviewer.__about" ID="TRPreviewer.__about"></a>
139 <h4>TRPreviewer.__about</h4> 177 <h4>TRPreviewer.__about</h4>
140 <b>__about</b>(<i></i>) 178 <b>__about</b>(<i></i>)
179
141 <p> 180 <p>
142 Private slot to show the about information. 181 Private slot to show the about information.
143 </p><a NAME="TRPreviewer.__aboutQt" ID="TRPreviewer.__aboutQt"></a> 182 </p>
183 <a NAME="TRPreviewer.__aboutQt" ID="TRPreviewer.__aboutQt"></a>
144 <h4>TRPreviewer.__aboutQt</h4> 184 <h4>TRPreviewer.__aboutQt</h4>
145 <b>__aboutQt</b>(<i></i>) 185 <b>__aboutQt</b>(<i></i>)
186
146 <p> 187 <p>
147 Private slot to show info about Qt. 188 Private slot to show info about Qt.
148 </p><a NAME="TRPreviewer.__initActions" ID="TRPreviewer.__initActions"></a> 189 </p>
190 <a NAME="TRPreviewer.__initActions" ID="TRPreviewer.__initActions"></a>
149 <h4>TRPreviewer.__initActions</h4> 191 <h4>TRPreviewer.__initActions</h4>
150 <b>__initActions</b>(<i></i>) 192 <b>__initActions</b>(<i></i>)
193
151 <p> 194 <p>
152 Private method to define the user interface actions. 195 Private method to define the user interface actions.
153 </p><a NAME="TRPreviewer.__initMenus" ID="TRPreviewer.__initMenus"></a> 196 </p>
197 <a NAME="TRPreviewer.__initMenus" ID="TRPreviewer.__initMenus"></a>
154 <h4>TRPreviewer.__initMenus</h4> 198 <h4>TRPreviewer.__initMenus</h4>
155 <b>__initMenus</b>(<i></i>) 199 <b>__initMenus</b>(<i></i>)
200
156 <p> 201 <p>
157 Private method to create the menus. 202 Private method to create the menus.
158 </p><a NAME="TRPreviewer.__initToolbars" ID="TRPreviewer.__initToolbars"></a> 203 </p>
204 <a NAME="TRPreviewer.__initToolbars" ID="TRPreviewer.__initToolbars"></a>
159 <h4>TRPreviewer.__initToolbars</h4> 205 <h4>TRPreviewer.__initToolbars</h4>
160 <b>__initToolbars</b>(<i></i>) 206 <b>__initToolbars</b>(<i></i>)
207
161 <p> 208 <p>
162 Private method to create the toolbars. 209 Private method to create the toolbars.
163 </p><a NAME="TRPreviewer.__openTranslation" ID="TRPreviewer.__openTranslation"></a> 210 </p>
211 <a NAME="TRPreviewer.__openTranslation" ID="TRPreviewer.__openTranslation"></a>
164 <h4>TRPreviewer.__openTranslation</h4> 212 <h4>TRPreviewer.__openTranslation</h4>
165 <b>__openTranslation</b>(<i></i>) 213 <b>__openTranslation</b>(<i></i>)
214
166 <p> 215 <p>
167 Private slot to handle the Open Translation action. 216 Private slot to handle the Open Translation action.
168 </p><a NAME="TRPreviewer.__openWidget" ID="TRPreviewer.__openWidget"></a> 217 </p>
218 <a NAME="TRPreviewer.__openWidget" ID="TRPreviewer.__openWidget"></a>
169 <h4>TRPreviewer.__openWidget</h4> 219 <h4>TRPreviewer.__openWidget</h4>
170 <b>__openWidget</b>(<i></i>) 220 <b>__openWidget</b>(<i></i>)
221
171 <p> 222 <p>
172 Private slot to handle the Open Dialog action. 223 Private slot to handle the Open Dialog action.
173 </p><a NAME="TRPreviewer.__showWindowMenu" ID="TRPreviewer.__showWindowMenu"></a> 224 </p>
225 <a NAME="TRPreviewer.__showWindowMenu" ID="TRPreviewer.__showWindowMenu"></a>
174 <h4>TRPreviewer.__showWindowMenu</h4> 226 <h4>TRPreviewer.__showWindowMenu</h4>
175 <b>__showWindowMenu</b>(<i></i>) 227 <b>__showWindowMenu</b>(<i></i>)
228
176 <p> 229 <p>
177 Private slot to handle the aboutToShow signal of the window menu. 230 Private slot to handle the aboutToShow signal of the window menu.
178 </p><a NAME="TRPreviewer.__updateActions" ID="TRPreviewer.__updateActions"></a> 231 </p>
232 <a NAME="TRPreviewer.__updateActions" ID="TRPreviewer.__updateActions"></a>
179 <h4>TRPreviewer.__updateActions</h4> 233 <h4>TRPreviewer.__updateActions</h4>
180 <b>__updateActions</b>(<i></i>) 234 <b>__updateActions</b>(<i></i>)
235
181 <p> 236 <p>
182 Private slot to update the actions state. 237 Private slot to update the actions state.
183 </p><a NAME="TRPreviewer.__whatsThis" ID="TRPreviewer.__whatsThis"></a> 238 </p>
239 <a NAME="TRPreviewer.__whatsThis" ID="TRPreviewer.__whatsThis"></a>
184 <h4>TRPreviewer.__whatsThis</h4> 240 <h4>TRPreviewer.__whatsThis</h4>
185 <b>__whatsThis</b>(<i></i>) 241 <b>__whatsThis</b>(<i></i>)
242
186 <p> 243 <p>
187 Private slot called in to enter Whats This mode. 244 Private slot called in to enter Whats This mode.
188 </p><a NAME="TRPreviewer.closeEvent" ID="TRPreviewer.closeEvent"></a> 245 </p>
246 <a NAME="TRPreviewer.closeEvent" ID="TRPreviewer.closeEvent"></a>
189 <h4>TRPreviewer.closeEvent</h4> 247 <h4>TRPreviewer.closeEvent</h4>
190 <b>closeEvent</b>(<i>event</i>) 248 <b>closeEvent</b>(<i>event</i>)
249
191 <p> 250 <p>
192 Protected event handler for the close event. 251 Protected event handler for the close event.
193 </p><dl> 252 </p>
253 <dl>
254
194 <dt><i>event</i></dt> 255 <dt><i>event</i></dt>
195 <dd> 256 <dd>
196 close event (QCloseEvent) 257 close event (QCloseEvent)
197 </dd> 258 </dd>
198 </dl><a NAME="TRPreviewer.reloadTranslations" ID="TRPreviewer.reloadTranslations"></a> 259 </dl>
260 <a NAME="TRPreviewer.reloadTranslations" ID="TRPreviewer.reloadTranslations"></a>
199 <h4>TRPreviewer.reloadTranslations</h4> 261 <h4>TRPreviewer.reloadTranslations</h4>
200 <b>reloadTranslations</b>(<i></i>) 262 <b>reloadTranslations</b>(<i></i>)
263
201 <p> 264 <p>
202 Public slot to reload all translations. 265 Public slot to reload all translations.
203 </p><a NAME="TRPreviewer.setTranslation" ID="TRPreviewer.setTranslation"></a> 266 </p>
267 <a NAME="TRPreviewer.setTranslation" ID="TRPreviewer.setTranslation"></a>
204 <h4>TRPreviewer.setTranslation</h4> 268 <h4>TRPreviewer.setTranslation</h4>
205 <b>setTranslation</b>(<i>name</i>) 269 <b>setTranslation</b>(<i>name</i>)
270
206 <p> 271 <p>
207 Public slot to activate a translation. 272 Public slot to activate a translation.
208 </p><dl> 273 </p>
274 <dl>
275
209 <dt><i>name</i></dt> 276 <dt><i>name</i></dt>
210 <dd> 277 <dd>
211 name (language) of the translation (string) 278 name (language) of the translation (string)
212 </dd> 279 </dd>
213 </dl><a NAME="TRPreviewer.show" ID="TRPreviewer.show"></a> 280 </dl>
281 <a NAME="TRPreviewer.show" ID="TRPreviewer.show"></a>
214 <h4>TRPreviewer.show</h4> 282 <h4>TRPreviewer.show</h4>
215 <b>show</b>(<i></i>) 283 <b>show</b>(<i></i>)
284
216 <p> 285 <p>
217 Public slot to show this dialog. 286 Public slot to show this dialog.
218 </p><p> 287 </p>
288 <p>
219 This overloaded slot loads a UI file to be previewed after 289 This overloaded slot loads a UI file to be previewed after
220 the main window has been shown. This way, previewing a dialog 290 the main window has been shown. This way, previewing a dialog
221 doesn't interfere with showing the main window. 291 doesn't interfere with showing the main window.
222 </p> 292 </p>
223 <div align="right"><a href="#top">Up</a></div> 293 <div align="right"><a href="#top">Up</a></div>
224 <hr /><hr /> 294 <hr />
295 <hr />
225 <a NAME="Translation" ID="Translation"></a> 296 <a NAME="Translation" ID="Translation"></a>
226 <h2>Translation</h2> 297 <h2>Translation</h2>
298
227 <p> 299 <p>
228 Class to store the properties of a translation. 300 Class to store the properties of a translation.
229 </p> 301 </p>
230 <h3>Derived from</h3> 302 <h3>Derived from</h3>
231 object 303 object
232 <h3>Class Attributes</h3> 304 <h3>Class Attributes</h3>
305
233 <table> 306 <table>
234 <tr><td>None</td></tr> 307 <tr><td>None</td></tr>
235 </table> 308 </table>
236 <h3>Class Methods</h3> 309 <h3>Class Methods</h3>
310
237 <table> 311 <table>
238 <tr><td>None</td></tr> 312 <tr><td>None</td></tr>
239 </table> 313 </table>
240 <h3>Methods</h3> 314 <h3>Methods</h3>
241 <table> 315
316 <table>
317
242 <tr> 318 <tr>
243 <td><a href="#Translation.__init__">Translation</a></td> 319 <td><a href="#Translation.__init__">Translation</a></td>
244 <td>Constructor</td> 320 <td>Constructor</td>
245 </tr> 321 </tr>
246 </table> 322 </table>
247 <h3>Static Methods</h3> 323 <h3>Static Methods</h3>
248 <table> 324
249 <tr><td>None</td></tr> 325 <table>
250 </table> 326 <tr><td>None</td></tr>
327 </table>
328
251 <a NAME="Translation.__init__" ID="Translation.__init__"></a> 329 <a NAME="Translation.__init__" ID="Translation.__init__"></a>
252 <h4>Translation (Constructor)</h4> 330 <h4>Translation (Constructor)</h4>
253 <b>Translation</b>(<i></i>) 331 <b>Translation</b>(<i></i>)
332
254 <p> 333 <p>
255 Constructor 334 Constructor
256 </p> 335 </p>
257 <div align="right"><a href="#top">Up</a></div> 336 <div align="right"><a href="#top">Up</a></div>
258 <hr /><hr /> 337 <hr />
338 <hr />
259 <a NAME="TranslationsDict" ID="TranslationsDict"></a> 339 <a NAME="TranslationsDict" ID="TranslationsDict"></a>
260 <h2>TranslationsDict</h2> 340 <h2>TranslationsDict</h2>
341
261 <p> 342 <p>
262 Class to store all loaded translations. 343 Class to store all loaded translations.
263 </p><h3>Signals</h3> 344 </p>
264 <dl> 345 <h3>Signals</h3>
346 <dl>
347
265 <dt>translationChanged()</dt> 348 <dt>translationChanged()</dt>
266 <dd> 349 <dd>
267 emit after a translator was set 350 emit after a translator was set
268 </dd> 351 </dd>
269 </dl> 352 </dl>
270 <h3>Derived from</h3> 353 <h3>Derived from</h3>
271 QObject 354 QObject
272 <h3>Class Attributes</h3> 355 <h3>Class Attributes</h3>
356
273 <table> 357 <table>
274 <tr><td>None</td></tr> 358 <tr><td>None</td></tr>
275 </table> 359 </table>
276 <h3>Class Methods</h3> 360 <h3>Class Methods</h3>
361
277 <table> 362 <table>
278 <tr><td>None</td></tr> 363 <tr><td>None</td></tr>
279 </table> 364 </table>
280 <h3>Methods</h3> 365 <h3>Methods</h3>
281 <table> 366
367 <table>
368
282 <tr> 369 <tr>
283 <td><a href="#TranslationsDict.__init__">TranslationsDict</a></td> 370 <td><a href="#TranslationsDict.__init__">TranslationsDict</a></td>
284 <td>Constructor</td> 371 <td>Constructor</td>
285 </tr><tr> 372 </tr>
373 <tr>
286 <td><a href="#TranslationsDict.__del">__del</a></td> 374 <td><a href="#TranslationsDict.__del">__del</a></td>
287 <td>Private method to delete a translator from the list of available translators.</td> 375 <td>Private method to delete a translator from the list of available translators.</td>
288 </tr><tr> 376 </tr>
377 <tr>
289 <td><a href="#TranslationsDict.__findFileName">__findFileName</a></td> 378 <td><a href="#TranslationsDict.__findFileName">__findFileName</a></td>
290 <td>Private method to find a translation by file name.</td> 379 <td>Private method to find a translation by file name.</td>
291 </tr><tr> 380 </tr>
381 <tr>
292 <td><a href="#TranslationsDict.__findName">__findName</a></td> 382 <td><a href="#TranslationsDict.__findName">__findName</a></td>
293 <td>Private method to find a translation by name.</td> 383 <td>Private method to find a translation by name.</td>
294 </tr><tr> 384 </tr>
385 <tr>
295 <td><a href="#TranslationsDict.__haveFileName">__haveFileName</a></td> 386 <td><a href="#TranslationsDict.__haveFileName">__haveFileName</a></td>
296 <td>Private method to check for the presence of a translation.</td> 387 <td>Private method to check for the presence of a translation.</td>
297 </tr><tr> 388 </tr>
389 <tr>
298 <td><a href="#TranslationsDict.__haveName">__haveName</a></td> 390 <td><a href="#TranslationsDict.__haveName">__haveName</a></td>
299 <td>Private method to check for the presence of a named translation.</td> 391 <td>Private method to check for the presence of a named translation.</td>
300 </tr><tr> 392 </tr>
393 <tr>
301 <td><a href="#TranslationsDict.__uniqueName">__uniqueName</a></td> 394 <td><a href="#TranslationsDict.__uniqueName">__uniqueName</a></td>
302 <td>Private method to generate a unique name.</td> 395 <td>Private method to generate a unique name.</td>
303 </tr><tr> 396 </tr>
397 <tr>
304 <td><a href="#TranslationsDict.add">add</a></td> 398 <td><a href="#TranslationsDict.add">add</a></td>
305 <td>Public method to add a translation to the list.</td> 399 <td>Public method to add a translation to the list.</td>
306 </tr><tr> 400 </tr>
401 <tr>
307 <td><a href="#TranslationsDict.hasTranslations">hasTranslations</a></td> 402 <td><a href="#TranslationsDict.hasTranslations">hasTranslations</a></td>
308 <td>Public method to check for loaded translations.</td> 403 <td>Public method to check for loaded translations.</td>
309 </tr><tr> 404 </tr>
405 <tr>
310 <td><a href="#TranslationsDict.loadTransFile">loadTransFile</a></td> 406 <td><a href="#TranslationsDict.loadTransFile">loadTransFile</a></td>
311 <td>Public slot to load a translation file.</td> 407 <td>Public slot to load a translation file.</td>
312 </tr><tr> 408 </tr>
409 <tr>
313 <td><a href="#TranslationsDict.reload">reload</a></td> 410 <td><a href="#TranslationsDict.reload">reload</a></td>
314 <td>Public method to reload all translators.</td> 411 <td>Public method to reload all translators.</td>
315 </tr><tr> 412 </tr>
413 <tr>
316 <td><a href="#TranslationsDict.set">set</a></td> 414 <td><a href="#TranslationsDict.set">set</a></td>
317 <td>Public slot to set a translator by name.</td> 415 <td>Public slot to set a translator by name.</td>
318 </tr> 416 </tr>
319 </table> 417 </table>
320 <h3>Static Methods</h3> 418 <h3>Static Methods</h3>
321 <table> 419
322 <tr><td>None</td></tr> 420 <table>
323 </table> 421 <tr><td>None</td></tr>
422 </table>
423
324 <a NAME="TranslationsDict.__init__" ID="TranslationsDict.__init__"></a> 424 <a NAME="TranslationsDict.__init__" ID="TranslationsDict.__init__"></a>
325 <h4>TranslationsDict (Constructor)</h4> 425 <h4>TranslationsDict (Constructor)</h4>
326 <b>TranslationsDict</b>(<i>selector, parent</i>) 426 <b>TranslationsDict</b>(<i>selector, parent</i>)
427
327 <p> 428 <p>
328 Constructor 429 Constructor
329 </p><dl> 430 </p>
431 <dl>
432
330 <dt><i>selector</i></dt> 433 <dt><i>selector</i></dt>
331 <dd> 434 <dd>
332 reference to the QComboBox used to show the 435 reference to the QComboBox used to show the
333 available languages (QComboBox) 436 available languages (QComboBox)
334 </dd><dt><i>parent</i></dt> 437 </dd>
438 <dt><i>parent</i></dt>
335 <dd> 439 <dd>
336 parent widget (QWidget) 440 parent widget (QWidget)
337 </dd> 441 </dd>
338 </dl><a NAME="TranslationsDict.__del" ID="TranslationsDict.__del"></a> 442 </dl>
443 <a NAME="TranslationsDict.__del" ID="TranslationsDict.__del"></a>
339 <h4>TranslationsDict.__del</h4> 444 <h4>TranslationsDict.__del</h4>
340 <b>__del</b>(<i>name</i>) 445 <b>__del</b>(<i>name</i>)
446
341 <p> 447 <p>
342 Private method to delete a translator from the list of available 448 Private method to delete a translator from the list of available
343 translators. 449 translators.
344 </p><dl> 450 </p>
451 <dl>
452
345 <dt><i>name</i></dt> 453 <dt><i>name</i></dt>
346 <dd> 454 <dd>
347 name of the translator to delete (string) 455 name of the translator to delete (string)
348 </dd> 456 </dd>
349 </dl><a NAME="TranslationsDict.__findFileName" ID="TranslationsDict.__findFileName"></a> 457 </dl>
458 <a NAME="TranslationsDict.__findFileName" ID="TranslationsDict.__findFileName"></a>
350 <h4>TranslationsDict.__findFileName</h4> 459 <h4>TranslationsDict.__findFileName</h4>
351 <b>__findFileName</b>(<i>transFileName</i>) 460 <b>__findFileName</b>(<i>transFileName</i>)
461
352 <p> 462 <p>
353 Private method to find a translation by file name. 463 Private method to find a translation by file name.
354 </p><dl> 464 </p>
465 <dl>
466
355 <dt><i>transFileName</i></dt> 467 <dt><i>transFileName</i></dt>
356 <dd> 468 <dd>
357 file name of the translation file (string) 469 file name of the translation file (string)
358 </dd> 470 </dd>
359 </dl><dl> 471 </dl>
472 <dl>
360 <dt>Returns:</dt> 473 <dt>Returns:</dt>
361 <dd> 474 <dd>
362 reference to a translation object or None 475 reference to a translation object or None
363 </dd> 476 </dd>
364 </dl><a NAME="TranslationsDict.__findName" ID="TranslationsDict.__findName"></a> 477 </dl>
478 <a NAME="TranslationsDict.__findName" ID="TranslationsDict.__findName"></a>
365 <h4>TranslationsDict.__findName</h4> 479 <h4>TranslationsDict.__findName</h4>
366 <b>__findName</b>(<i>name</i>) 480 <b>__findName</b>(<i>name</i>)
481
367 <p> 482 <p>
368 Private method to find a translation by name. 483 Private method to find a translation by name.
369 </p><dl> 484 </p>
485 <dl>
486
370 <dt><i>name</i></dt> 487 <dt><i>name</i></dt>
371 <dd> 488 <dd>
372 name (language) of the translation (string) 489 name (language) of the translation (string)
373 </dd> 490 </dd>
374 </dl><dl> 491 </dl>
492 <dl>
375 <dt>Returns:</dt> 493 <dt>Returns:</dt>
376 <dd> 494 <dd>
377 reference to a translation object or None 495 reference to a translation object or None
378 </dd> 496 </dd>
379 </dl><a NAME="TranslationsDict.__haveFileName" ID="TranslationsDict.__haveFileName"></a> 497 </dl>
498 <a NAME="TranslationsDict.__haveFileName" ID="TranslationsDict.__haveFileName"></a>
380 <h4>TranslationsDict.__haveFileName</h4> 499 <h4>TranslationsDict.__haveFileName</h4>
381 <b>__haveFileName</b>(<i>transFileName</i>) 500 <b>__haveFileName</b>(<i>transFileName</i>)
501
382 <p> 502 <p>
383 Private method to check for the presence of a translation. 503 Private method to check for the presence of a translation.
384 </p><dl> 504 </p>
505 <dl>
506
385 <dt><i>transFileName</i></dt> 507 <dt><i>transFileName</i></dt>
386 <dd> 508 <dd>
387 file name of the translation file (string) 509 file name of the translation file (string)
388 </dd> 510 </dd>
389 </dl><dl> 511 </dl>
512 <dl>
390 <dt>Returns:</dt> 513 <dt>Returns:</dt>
391 <dd> 514 <dd>
392 flag indicating the presence of the translation (boolean) 515 flag indicating the presence of the translation (boolean)
393 </dd> 516 </dd>
394 </dl><a NAME="TranslationsDict.__haveName" ID="TranslationsDict.__haveName"></a> 517 </dl>
518 <a NAME="TranslationsDict.__haveName" ID="TranslationsDict.__haveName"></a>
395 <h4>TranslationsDict.__haveName</h4> 519 <h4>TranslationsDict.__haveName</h4>
396 <b>__haveName</b>(<i>name</i>) 520 <b>__haveName</b>(<i>name</i>)
521
397 <p> 522 <p>
398 Private method to check for the presence of a named translation. 523 Private method to check for the presence of a named translation.
399 </p><dl> 524 </p>
525 <dl>
526
400 <dt><i>name</i></dt> 527 <dt><i>name</i></dt>
401 <dd> 528 <dd>
402 name (language) of the translation (string) 529 name (language) of the translation (string)
403 </dd> 530 </dd>
404 </dl><dl> 531 </dl>
532 <dl>
405 <dt>Returns:</dt> 533 <dt>Returns:</dt>
406 <dd> 534 <dd>
407 flag indicating the presence of the translation (boolean) 535 flag indicating the presence of the translation (boolean)
408 </dd> 536 </dd>
409 </dl><a NAME="TranslationsDict.__uniqueName" ID="TranslationsDict.__uniqueName"></a> 537 </dl>
538 <a NAME="TranslationsDict.__uniqueName" ID="TranslationsDict.__uniqueName"></a>
410 <h4>TranslationsDict.__uniqueName</h4> 539 <h4>TranslationsDict.__uniqueName</h4>
411 <b>__uniqueName</b>(<i>transFileName</i>) 540 <b>__uniqueName</b>(<i>transFileName</i>)
541
412 <p> 542 <p>
413 Private method to generate a unique name. 543 Private method to generate a unique name.
414 </p><dl> 544 </p>
545 <dl>
546
415 <dt><i>transFileName</i></dt> 547 <dt><i>transFileName</i></dt>
416 <dd> 548 <dd>
417 file name of the translation file (string) 549 file name of the translation file (string)
418 </dd> 550 </dd>
419 </dl><dl> 551 </dl>
552 <dl>
420 <dt>Returns:</dt> 553 <dt>Returns:</dt>
421 <dd> 554 <dd>
422 unique name (string or None) 555 unique name (string or None)
423 </dd> 556 </dd>
424 </dl><a NAME="TranslationsDict.add" ID="TranslationsDict.add"></a> 557 </dl>
558 <a NAME="TranslationsDict.add" ID="TranslationsDict.add"></a>
425 <h4>TranslationsDict.add</h4> 559 <h4>TranslationsDict.add</h4>
426 <b>add</b>(<i>fileName, setTranslation=True</i>) 560 <b>add</b>(<i>fileName, setTranslation=True</i>)
561
427 <p> 562 <p>
428 Public method to add a translation to the list. 563 Public method to add a translation to the list.
429 </p><p> 564 </p>
565 <p>
430 If the translation file (*.qm) has not been loaded yet, it will 566 If the translation file (*.qm) has not been loaded yet, it will
431 be loaded automatically. 567 be loaded automatically.
432 </p><dl> 568 </p>
569 <dl>
570
433 <dt><i>fileName</i></dt> 571 <dt><i>fileName</i></dt>
434 <dd> 572 <dd>
435 name of the translation file to be added (string) 573 name of the translation file to be added (string)
436 </dd><dt><i>setTranslation</i></dt> 574 </dd>
575 <dt><i>setTranslation</i></dt>
437 <dd> 576 <dd>
438 flag indicating, if this should be set as 577 flag indicating, if this should be set as
439 the active translation (boolean) 578 the active translation (boolean)
440 </dd> 579 </dd>
441 </dl><a NAME="TranslationsDict.hasTranslations" ID="TranslationsDict.hasTranslations"></a> 580 </dl>
581 <a NAME="TranslationsDict.hasTranslations" ID="TranslationsDict.hasTranslations"></a>
442 <h4>TranslationsDict.hasTranslations</h4> 582 <h4>TranslationsDict.hasTranslations</h4>
443 <b>hasTranslations</b>(<i></i>) 583 <b>hasTranslations</b>(<i></i>)
584
444 <p> 585 <p>
445 Public method to check for loaded translations. 586 Public method to check for loaded translations.
446 </p><dl> 587 </p>
588 <dl>
447 <dt>Returns:</dt> 589 <dt>Returns:</dt>
448 <dd> 590 <dd>
449 flag signaling if any translation was loaded (boolean) 591 flag signaling if any translation was loaded (boolean)
450 </dd> 592 </dd>
451 </dl><a NAME="TranslationsDict.loadTransFile" ID="TranslationsDict.loadTransFile"></a> 593 </dl>
594 <a NAME="TranslationsDict.loadTransFile" ID="TranslationsDict.loadTransFile"></a>
452 <h4>TranslationsDict.loadTransFile</h4> 595 <h4>TranslationsDict.loadTransFile</h4>
453 <b>loadTransFile</b>(<i>transFileName</i>) 596 <b>loadTransFile</b>(<i>transFileName</i>)
597
454 <p> 598 <p>
455 Public slot to load a translation file. 599 Public slot to load a translation file.
456 </p><dl> 600 </p>
601 <dl>
602
457 <dt><i>transFileName</i></dt> 603 <dt><i>transFileName</i></dt>
458 <dd> 604 <dd>
459 file name of the translation file (string) 605 file name of the translation file (string)
460 </dd> 606 </dd>
461 </dl><dl> 607 </dl>
608 <dl>
462 <dt>Returns:</dt> 609 <dt>Returns:</dt>
463 <dd> 610 <dd>
464 reference to the new translator object (QTranslator) 611 reference to the new translator object (QTranslator)
465 </dd> 612 </dd>
466 </dl><a NAME="TranslationsDict.reload" ID="TranslationsDict.reload"></a> 613 </dl>
614 <a NAME="TranslationsDict.reload" ID="TranslationsDict.reload"></a>
467 <h4>TranslationsDict.reload</h4> 615 <h4>TranslationsDict.reload</h4>
468 <b>reload</b>(<i></i>) 616 <b>reload</b>(<i></i>)
617
469 <p> 618 <p>
470 Public method to reload all translators. 619 Public method to reload all translators.
471 </p><a NAME="TranslationsDict.set" ID="TranslationsDict.set"></a> 620 </p>
621 <a NAME="TranslationsDict.set" ID="TranslationsDict.set"></a>
472 <h4>TranslationsDict.set</h4> 622 <h4>TranslationsDict.set</h4>
473 <b>set</b>(<i>name</i>) 623 <b>set</b>(<i>name</i>)
624
474 <p> 625 <p>
475 Public slot to set a translator by name. 626 Public slot to set a translator by name.
476 </p><dl> 627 </p>
628 <dl>
629
477 <dt><i>name</i></dt> 630 <dt><i>name</i></dt>
478 <dd> 631 <dd>
479 name (language) of the translator to set (string) 632 name (language) of the translator to set (string)
480 </dd> 633 </dd>
481 </dl> 634 </dl>
482 <div align="right"><a href="#top">Up</a></div> 635 <div align="right"><a href="#top">Up</a></div>
483 <hr /><hr /> 636 <hr />
637 <hr />
484 <a NAME="WidgetArea" ID="WidgetArea"></a> 638 <a NAME="WidgetArea" ID="WidgetArea"></a>
485 <h2>WidgetArea</h2> 639 <h2>WidgetArea</h2>
640
486 <p> 641 <p>
487 Specialized MDI area to show the loaded widgets. 642 Specialized MDI area to show the loaded widgets.
488 </p><h3>Signals</h3> 643 </p>
489 <dl> 644 <h3>Signals</h3>
645 <dl>
646
490 <dt>lastWidgetClosed()</dt> 647 <dt>lastWidgetClosed()</dt>
491 <dd> 648 <dd>
492 emitted after the last widget was closed 649 emitted after the last widget was closed
493 </dd><dt>rebuildWidgets()</dt> 650 </dd>
651 <dt>rebuildWidgets()</dt>
494 <dd> 652 <dd>
495 emitted to indicate a change of loaded widgets 653 emitted to indicate a change of loaded widgets
496 </dd> 654 </dd>
497 </dl> 655 </dl>
498 <h3>Derived from</h3> 656 <h3>Derived from</h3>
499 QMdiArea 657 QMdiArea
500 <h3>Class Attributes</h3> 658 <h3>Class Attributes</h3>
659
501 <table> 660 <table>
502 <tr><td>None</td></tr> 661 <tr><td>None</td></tr>
503 </table> 662 </table>
504 <h3>Class Methods</h3> 663 <h3>Class Methods</h3>
664
505 <table> 665 <table>
506 <tr><td>None</td></tr> 666 <tr><td>None</td></tr>
507 </table> 667 </table>
508 <h3>Methods</h3> 668 <h3>Methods</h3>
509 <table> 669
670 <table>
671
510 <tr> 672 <tr>
511 <td><a href="#WidgetArea.__init__">WidgetArea</a></td> 673 <td><a href="#WidgetArea.__init__">WidgetArea</a></td>
512 <td>Constructor</td> 674 <td>Constructor</td>
513 </tr><tr> 675 </tr>
676 <tr>
514 <td><a href="#WidgetArea.__findWidget">__findWidget</a></td> 677 <td><a href="#WidgetArea.__findWidget">__findWidget</a></td>
515 <td>Private method to find a specific widget view.</td> 678 <td>Private method to find a specific widget view.</td>
516 </tr><tr> 679 </tr>
680 <tr>
517 <td><a href="#WidgetArea.__toggleWidget">__toggleWidget</a></td> 681 <td><a href="#WidgetArea.__toggleWidget">__toggleWidget</a></td>
518 <td>Private method to toggle a workspace window.</td> 682 <td>Private method to toggle a workspace window.</td>
519 </tr><tr> 683 </tr>
684 <tr>
520 <td><a href="#WidgetArea.closeAllWidgets">closeAllWidgets</a></td> 685 <td><a href="#WidgetArea.closeAllWidgets">closeAllWidgets</a></td>
521 <td>Public slot to close all windows.</td> 686 <td>Public slot to close all windows.</td>
522 </tr><tr> 687 </tr>
688 <tr>
523 <td><a href="#WidgetArea.closeWidget">closeWidget</a></td> 689 <td><a href="#WidgetArea.closeWidget">closeWidget</a></td>
524 <td>Public slot to close the active window.</td> 690 <td>Public slot to close the active window.</td>
525 </tr><tr> 691 </tr>
692 <tr>
526 <td><a href="#WidgetArea.eventFilter">eventFilter</a></td> 693 <td><a href="#WidgetArea.eventFilter">eventFilter</a></td>
527 <td>Public method called to filter an event.</td> 694 <td>Public method called to filter an event.</td>
528 </tr><tr> 695 </tr>
696 <tr>
529 <td><a href="#WidgetArea.hasWidgets">hasWidgets</a></td> 697 <td><a href="#WidgetArea.hasWidgets">hasWidgets</a></td>
530 <td>Public method to check for loaded widgets.</td> 698 <td>Public method to check for loaded widgets.</td>
531 </tr><tr> 699 </tr>
700 <tr>
532 <td><a href="#WidgetArea.loadWidget">loadWidget</a></td> 701 <td><a href="#WidgetArea.loadWidget">loadWidget</a></td>
533 <td>Public slot to load a UI file.</td> 702 <td>Public slot to load a UI file.</td>
534 </tr><tr> 703 </tr>
704 <tr>
535 <td><a href="#WidgetArea.showWindowMenu">showWindowMenu</a></td> 705 <td><a href="#WidgetArea.showWindowMenu">showWindowMenu</a></td>
536 <td>Public method to set up the widgets part of the Window menu.</td> 706 <td>Public method to set up the widgets part of the Window menu.</td>
537 </tr><tr> 707 </tr>
708 <tr>
538 <td><a href="#WidgetArea.toggleSelectedWidget">toggleSelectedWidget</a></td> 709 <td><a href="#WidgetArea.toggleSelectedWidget">toggleSelectedWidget</a></td>
539 <td>Public method to handle the toggle of a window.</td> 710 <td>Public method to handle the toggle of a window.</td>
540 </tr> 711 </tr>
541 </table> 712 </table>
542 <h3>Static Methods</h3> 713 <h3>Static Methods</h3>
543 <table> 714
544 <tr><td>None</td></tr> 715 <table>
545 </table> 716 <tr><td>None</td></tr>
717 </table>
718
546 <a NAME="WidgetArea.__init__" ID="WidgetArea.__init__"></a> 719 <a NAME="WidgetArea.__init__" ID="WidgetArea.__init__"></a>
547 <h4>WidgetArea (Constructor)</h4> 720 <h4>WidgetArea (Constructor)</h4>
548 <b>WidgetArea</b>(<i>parent=None</i>) 721 <b>WidgetArea</b>(<i>parent=None</i>)
722
549 <p> 723 <p>
550 Constructor 724 Constructor
551 </p><dl> 725 </p>
726 <dl>
727
552 <dt><i>parent</i></dt> 728 <dt><i>parent</i></dt>
553 <dd> 729 <dd>
554 parent widget (QWidget) 730 parent widget (QWidget)
555 </dd> 731 </dd>
556 </dl><a NAME="WidgetArea.__findWidget" ID="WidgetArea.__findWidget"></a> 732 </dl>
733 <a NAME="WidgetArea.__findWidget" ID="WidgetArea.__findWidget"></a>
557 <h4>WidgetArea.__findWidget</h4> 734 <h4>WidgetArea.__findWidget</h4>
558 <b>__findWidget</b>(<i>uiFileName</i>) 735 <b>__findWidget</b>(<i>uiFileName</i>)
736
559 <p> 737 <p>
560 Private method to find a specific widget view. 738 Private method to find a specific widget view.
561 </p><dl> 739 </p>
740 <dl>
741
562 <dt><i>uiFileName</i></dt> 742 <dt><i>uiFileName</i></dt>
563 <dd> 743 <dd>
564 filename of the loaded UI file (string) 744 filename of the loaded UI file (string)
565 </dd> 745 </dd>
566 </dl><dl> 746 </dl>
747 <dl>
567 <dt>Returns:</dt> 748 <dt>Returns:</dt>
568 <dd> 749 <dd>
569 reference to the widget (WidgetView) or None 750 reference to the widget (WidgetView) or None
570 </dd> 751 </dd>
571 </dl><a NAME="WidgetArea.__toggleWidget" ID="WidgetArea.__toggleWidget"></a> 752 </dl>
753 <a NAME="WidgetArea.__toggleWidget" ID="WidgetArea.__toggleWidget"></a>
572 <h4>WidgetArea.__toggleWidget</h4> 754 <h4>WidgetArea.__toggleWidget</h4>
573 <b>__toggleWidget</b>(<i>w</i>) 755 <b>__toggleWidget</b>(<i>w</i>)
756
574 <p> 757 <p>
575 Private method to toggle a workspace window. 758 Private method to toggle a workspace window.
576 </p><dl> 759 </p>
760 <dl>
761
577 <dt><i>w</i></dt> 762 <dt><i>w</i></dt>
578 <dd> 763 <dd>
579 window to be toggled 764 window to be toggled
580 </dd> 765 </dd>
581 </dl><a NAME="WidgetArea.closeAllWidgets" ID="WidgetArea.closeAllWidgets"></a> 766 </dl>
767 <a NAME="WidgetArea.closeAllWidgets" ID="WidgetArea.closeAllWidgets"></a>
582 <h4>WidgetArea.closeAllWidgets</h4> 768 <h4>WidgetArea.closeAllWidgets</h4>
583 <b>closeAllWidgets</b>(<i></i>) 769 <b>closeAllWidgets</b>(<i></i>)
770
584 <p> 771 <p>
585 Public slot to close all windows. 772 Public slot to close all windows.
586 </p><a NAME="WidgetArea.closeWidget" ID="WidgetArea.closeWidget"></a> 773 </p>
774 <a NAME="WidgetArea.closeWidget" ID="WidgetArea.closeWidget"></a>
587 <h4>WidgetArea.closeWidget</h4> 775 <h4>WidgetArea.closeWidget</h4>
588 <b>closeWidget</b>(<i></i>) 776 <b>closeWidget</b>(<i></i>)
777
589 <p> 778 <p>
590 Public slot to close the active window. 779 Public slot to close the active window.
591 </p><a NAME="WidgetArea.eventFilter" ID="WidgetArea.eventFilter"></a> 780 </p>
781 <a NAME="WidgetArea.eventFilter" ID="WidgetArea.eventFilter"></a>
592 <h4>WidgetArea.eventFilter</h4> 782 <h4>WidgetArea.eventFilter</h4>
593 <b>eventFilter</b>(<i>obj, ev</i>) 783 <b>eventFilter</b>(<i>obj, ev</i>)
784
594 <p> 785 <p>
595 Public method called to filter an event. 786 Public method called to filter an event.
596 </p><dl> 787 </p>
788 <dl>
789
597 <dt><i>obj</i></dt> 790 <dt><i>obj</i></dt>
598 <dd> 791 <dd>
599 object, that generated the event (QObject) 792 object, that generated the event (QObject)
600 </dd><dt><i>ev</i></dt> 793 </dd>
794 <dt><i>ev</i></dt>
601 <dd> 795 <dd>
602 the event, that was generated by object (QEvent) 796 the event, that was generated by object (QEvent)
603 </dd> 797 </dd>
604 </dl><dl> 798 </dl>
799 <dl>
605 <dt>Returns:</dt> 800 <dt>Returns:</dt>
606 <dd> 801 <dd>
607 flag indicating if event was filtered out 802 flag indicating if event was filtered out
608 </dd> 803 </dd>
609 </dl><a NAME="WidgetArea.hasWidgets" ID="WidgetArea.hasWidgets"></a> 804 </dl>
805 <a NAME="WidgetArea.hasWidgets" ID="WidgetArea.hasWidgets"></a>
610 <h4>WidgetArea.hasWidgets</h4> 806 <h4>WidgetArea.hasWidgets</h4>
611 <b>hasWidgets</b>(<i></i>) 807 <b>hasWidgets</b>(<i></i>)
808
612 <p> 809 <p>
613 Public method to check for loaded widgets. 810 Public method to check for loaded widgets.
614 </p><dl> 811 </p>
812 <dl>
615 <dt>Returns:</dt> 813 <dt>Returns:</dt>
616 <dd> 814 <dd>
617 flag signaling if any widget was loaded (boolean) 815 flag signaling if any widget was loaded (boolean)
618 </dd> 816 </dd>
619 </dl><a NAME="WidgetArea.loadWidget" ID="WidgetArea.loadWidget"></a> 817 </dl>
818 <a NAME="WidgetArea.loadWidget" ID="WidgetArea.loadWidget"></a>
620 <h4>WidgetArea.loadWidget</h4> 819 <h4>WidgetArea.loadWidget</h4>
621 <b>loadWidget</b>(<i>uiFileName</i>) 820 <b>loadWidget</b>(<i>uiFileName</i>)
821
622 <p> 822 <p>
623 Public slot to load a UI file. 823 Public slot to load a UI file.
624 </p><dl> 824 </p>
825 <dl>
826
625 <dt><i>uiFileName</i></dt> 827 <dt><i>uiFileName</i></dt>
626 <dd> 828 <dd>
627 name of the UI file to load (string) 829 name of the UI file to load (string)
628 </dd> 830 </dd>
629 </dl><a NAME="WidgetArea.showWindowMenu" ID="WidgetArea.showWindowMenu"></a> 831 </dl>
832 <a NAME="WidgetArea.showWindowMenu" ID="WidgetArea.showWindowMenu"></a>
630 <h4>WidgetArea.showWindowMenu</h4> 833 <h4>WidgetArea.showWindowMenu</h4>
631 <b>showWindowMenu</b>(<i>windowMenu</i>) 834 <b>showWindowMenu</b>(<i>windowMenu</i>)
835
632 <p> 836 <p>
633 Public method to set up the widgets part of the Window menu. 837 Public method to set up the widgets part of the Window menu.
634 </p><dl> 838 </p>
839 <dl>
840
635 <dt><i>windowMenu</i></dt> 841 <dt><i>windowMenu</i></dt>
636 <dd> 842 <dd>
637 reference to the window menu 843 reference to the window menu
638 </dd> 844 </dd>
639 </dl><a NAME="WidgetArea.toggleSelectedWidget" ID="WidgetArea.toggleSelectedWidget"></a> 845 </dl>
846 <a NAME="WidgetArea.toggleSelectedWidget" ID="WidgetArea.toggleSelectedWidget"></a>
640 <h4>WidgetArea.toggleSelectedWidget</h4> 847 <h4>WidgetArea.toggleSelectedWidget</h4>
641 <b>toggleSelectedWidget</b>(<i>act</i>) 848 <b>toggleSelectedWidget</b>(<i>act</i>)
849
642 <p> 850 <p>
643 Public method to handle the toggle of a window. 851 Public method to handle the toggle of a window.
644 </p><dl> 852 </p>
853 <dl>
854
645 <dt><i>act</i></dt> 855 <dt><i>act</i></dt>
646 <dd> 856 <dd>
647 reference to the action that triggered (QAction) 857 reference to the action that triggered (QAction)
648 </dd> 858 </dd>
649 </dl> 859 </dl>
650 <div align="right"><a href="#top">Up</a></div> 860 <div align="right"><a href="#top">Up</a></div>
651 <hr /><hr /> 861 <hr />
862 <hr />
652 <a NAME="WidgetView" ID="WidgetView"></a> 863 <a NAME="WidgetView" ID="WidgetView"></a>
653 <h2>WidgetView</h2> 864 <h2>WidgetView</h2>
865
654 <p> 866 <p>
655 Class to show a dynamically loaded widget (or dialog). 867 Class to show a dynamically loaded widget (or dialog).
656 </p> 868 </p>
657 <h3>Derived from</h3> 869 <h3>Derived from</h3>
658 QWidget 870 QWidget
659 <h3>Class Attributes</h3> 871 <h3>Class Attributes</h3>
872
660 <table> 873 <table>
661 <tr><td>None</td></tr> 874 <tr><td>None</td></tr>
662 </table> 875 </table>
663 <h3>Class Methods</h3> 876 <h3>Class Methods</h3>
877
664 <table> 878 <table>
665 <tr><td>None</td></tr> 879 <tr><td>None</td></tr>
666 </table> 880 </table>
667 <h3>Methods</h3> 881 <h3>Methods</h3>
668 <table> 882
883 <table>
884
669 <tr> 885 <tr>
670 <td><a href="#WidgetView.__init__">WidgetView</a></td> 886 <td><a href="#WidgetView.__init__">WidgetView</a></td>
671 <td>Constructor</td> 887 <td>Constructor</td>
672 </tr><tr> 888 </tr>
889 <tr>
673 <td><a href="#WidgetView.__rebuildWidget">__rebuildWidget</a></td> 890 <td><a href="#WidgetView.__rebuildWidget">__rebuildWidget</a></td>
674 <td>Private method to schedule a rebuild of the widget.</td> 891 <td>Private method to schedule a rebuild of the widget.</td>
675 </tr><tr> 892 </tr>
893 <tr>
676 <td><a href="#WidgetView.buildWidget">buildWidget</a></td> 894 <td><a href="#WidgetView.buildWidget">buildWidget</a></td>
677 <td>Public slot to load a UI file.</td> 895 <td>Public slot to load a UI file.</td>
678 </tr><tr> 896 </tr>
897 <tr>
679 <td><a href="#WidgetView.isValid">isValid</a></td> 898 <td><a href="#WidgetView.isValid">isValid</a></td>
680 <td>Public method to return the validity of this widget view.</td> 899 <td>Public method to return the validity of this widget view.</td>
681 </tr><tr> 900 </tr>
901 <tr>
682 <td><a href="#WidgetView.uiFileName">uiFileName</a></td> 902 <td><a href="#WidgetView.uiFileName">uiFileName</a></td>
683 <td>Public method to retrieve the name of the UI file.</td> 903 <td>Public method to retrieve the name of the UI file.</td>
684 </tr> 904 </tr>
685 </table> 905 </table>
686 <h3>Static Methods</h3> 906 <h3>Static Methods</h3>
687 <table> 907
688 <tr><td>None</td></tr> 908 <table>
689 </table> 909 <tr><td>None</td></tr>
910 </table>
911
690 <a NAME="WidgetView.__init__" ID="WidgetView.__init__"></a> 912 <a NAME="WidgetView.__init__" ID="WidgetView.__init__"></a>
691 <h4>WidgetView (Constructor)</h4> 913 <h4>WidgetView (Constructor)</h4>
692 <b>WidgetView</b>(<i>uiFileName, parent=None, name=None</i>) 914 <b>WidgetView</b>(<i>uiFileName, parent=None, name=None</i>)
915
693 <p> 916 <p>
694 Constructor 917 Constructor
695 </p><dl> 918 </p>
919 <dl>
920
696 <dt><i>uiFileName</i></dt> 921 <dt><i>uiFileName</i></dt>
697 <dd> 922 <dd>
698 name of the UI file to load (string) 923 name of the UI file to load (string)
699 </dd><dt><i>parent</i></dt> 924 </dd>
925 <dt><i>parent</i></dt>
700 <dd> 926 <dd>
701 parent widget (QWidget) 927 parent widget (QWidget)
702 </dd><dt><i>name</i></dt> 928 </dd>
929 <dt><i>name</i></dt>
703 <dd> 930 <dd>
704 name of this widget (string) 931 name of this widget (string)
705 </dd> 932 </dd>
706 </dl><a NAME="WidgetView.__rebuildWidget" ID="WidgetView.__rebuildWidget"></a> 933 </dl>
934 <a NAME="WidgetView.__rebuildWidget" ID="WidgetView.__rebuildWidget"></a>
707 <h4>WidgetView.__rebuildWidget</h4> 935 <h4>WidgetView.__rebuildWidget</h4>
708 <b>__rebuildWidget</b>(<i></i>) 936 <b>__rebuildWidget</b>(<i></i>)
937
709 <p> 938 <p>
710 Private method to schedule a rebuild of the widget. 939 Private method to schedule a rebuild of the widget.
711 </p><a NAME="WidgetView.buildWidget" ID="WidgetView.buildWidget"></a> 940 </p>
941 <a NAME="WidgetView.buildWidget" ID="WidgetView.buildWidget"></a>
712 <h4>WidgetView.buildWidget</h4> 942 <h4>WidgetView.buildWidget</h4>
713 <b>buildWidget</b>(<i></i>) 943 <b>buildWidget</b>(<i></i>)
944
714 <p> 945 <p>
715 Public slot to load a UI file. 946 Public slot to load a UI file.
716 </p><a NAME="WidgetView.isValid" ID="WidgetView.isValid"></a> 947 </p>
948 <a NAME="WidgetView.isValid" ID="WidgetView.isValid"></a>
717 <h4>WidgetView.isValid</h4> 949 <h4>WidgetView.isValid</h4>
718 <b>isValid</b>(<i></i>) 950 <b>isValid</b>(<i></i>)
951
719 <p> 952 <p>
720 Public method to return the validity of this widget view. 953 Public method to return the validity of this widget view.
721 </p><dl> 954 </p>
955 <dl>
722 <dt>Returns:</dt> 956 <dt>Returns:</dt>
723 <dd> 957 <dd>
724 flag indicating the validity (boolean) 958 flag indicating the validity (boolean)
725 </dd> 959 </dd>
726 </dl><a NAME="WidgetView.uiFileName" ID="WidgetView.uiFileName"></a> 960 </dl>
961 <a NAME="WidgetView.uiFileName" ID="WidgetView.uiFileName"></a>
727 <h4>WidgetView.uiFileName</h4> 962 <h4>WidgetView.uiFileName</h4>
728 <b>uiFileName</b>(<i></i>) 963 <b>uiFileName</b>(<i></i>)
964
729 <p> 965 <p>
730 Public method to retrieve the name of the UI file. 966 Public method to retrieve the name of the UI file.
731 </p><dl> 967 </p>
968 <dl>
732 <dt>Returns:</dt> 969 <dt>Returns:</dt>
733 <dd> 970 <dd>
734 filename of the loaded UI file (string) 971 filename of the loaded UI file (string)
735 </dd> 972 </dd>
736 </dl> 973 </dl>

eric ide

mercurial