Documentation/Source/eric6.E5Gui.E5PathPicker.html

changeset 4613
c7951eb9d525
parent 4602
48cc4820e2c2
child 4620
49d9c6b58678
equal deleted inserted replaced
4612:c9982bcd00f8 4613:c7951eb9d525
34 <td>Class implementing a path picker widget consisting of a combobox and a tool button to open a file dialog.</td> 34 <td>Class implementing a path picker widget consisting of a combobox and a tool button to open a file dialog.</td>
35 </tr><tr> 35 </tr><tr>
36 <td><a href="#E5PathPicker">E5PathPicker</a></td> 36 <td><a href="#E5PathPicker">E5PathPicker</a></td>
37 <td>Class implementing a path picker widget consisting of a line edit and a tool button to open a file dialog.</td> 37 <td>Class implementing a path picker widget consisting of a line edit and a tool button to open a file dialog.</td>
38 </tr><tr> 38 </tr><tr>
39 <td><a href="#E5PathPickerBase">E5PathPickerBase</a></td>
40 <td>Class implementing the base of a path picker widget consisting of a line edit or combo box and a tool button to open a file dialog.</td>
41 </tr><tr>
39 <td><a href="#E5PathPickerModes">E5PathPickerModes</a></td> 42 <td><a href="#E5PathPickerModes">E5PathPickerModes</a></td>
40 <td>Class implementing the path picker modes.</td> 43 <td>Class implementing the path picker modes.</td>
41 </tr> 44 </tr>
42 </table> 45 </table>
43 <h3>Functions</h3> 46 <h3>Functions</h3>
67 emitted when the picker button was pressed and 70 emitted when the picker button was pressed and
68 the widget mode is custom 71 the widget mode is custom
69 </dd> 72 </dd>
70 </dl> 73 </dl>
71 <h3>Derived from</h3> 74 <h3>Derived from</h3>
72 QWidget 75 E5PathPickerBase
73 <h3>Class Attributes</h3> 76 <h3>Class Attributes</h3>
74 <table> 77 <table>
75 <tr><td>DefaultMode</td></tr> 78 <tr><td>None</td></tr>
76 </table> 79 </table>
77 <h3>Class Methods</h3> 80 <h3>Class Methods</h3>
78 <table> 81 <table>
79 <tr><td>None</td></tr> 82 <tr><td>None</td></tr>
80 </table> 83 </table>
81 <h3>Methods</h3> 84 <h3>Methods</h3>
82 <table> 85 <table>
83 <tr> 86 <tr>
84 <td><a href="#E5ComboPathPicker.__init__">E5ComboPathPicker</a></td> 87 <td><a href="#E5ComboPathPicker.__init__">E5ComboPathPicker</a></td>
85 <td>Constructor</td> 88 <td>Constructor</td>
86 </tr><tr>
87 <td><a href="#E5ComboPathPicker.__showPathPickerDialog">__showPathPickerDialog</a></td>
88 <td>Private slot to show the path picker dialog.</td>
89 </tr><tr>
90 <td><a href="#E5ComboPathPicker.addItem">addItem</a></td>
91 <td>Public method to add a paths to the current list.</td>
92 </tr><tr>
93 <td><a href="#E5ComboPathPicker.addItems">addItems</a></td>
94 <td>Public method to add paths to the current list.</td>
95 </tr><tr>
96 <td><a href="#E5ComboPathPicker.buttonToolTip">buttonToolTip</a></td>
97 <td>Public method to get the tool button tool tip.</td>
98 </tr><tr>
99 <td><a href="#E5ComboPathPicker.clear">clear</a></td>
100 <td>Public method to clear the list of paths.</td>
101 </tr><tr>
102 <td><a href="#E5ComboPathPicker.clearEditText">clearEditText</a></td>
103 <td>Public method to clear the current path.</td>
104 </tr><tr>
105 <td><a href="#E5ComboPathPicker.currentText">currentText</a></td>
106 <td>Public method to get the current path.</td>
107 </tr><tr>
108 <td><a href="#E5ComboPathPicker.defaultDirectory">defaultDirectory</a></td>
109 <td>Public method to get the default directory.</td>
110 </tr><tr>
111 <td><a href="#E5ComboPathPicker.editorEnabled">editorEnabled</a></td>
112 <td>Public method to get the path editor's enabled state.</td>
113 </tr><tr>
114 <td><a href="#E5ComboPathPicker.editorToolTip">editorToolTip</a></td>
115 <td>Public method to get the editor tool tip.</td>
116 </tr><tr>
117 <td><a href="#E5ComboPathPicker.filters">filters</a></td>
118 <td>Public methods to get the filter string.</td>
119 </tr><tr>
120 <td><a href="#E5ComboPathPicker.firstPath">firstPath</a></td>
121 <td>Public method to get the first path of a list of entered paths.</td>
122 </tr><tr>
123 <td><a href="#E5ComboPathPicker.isPickerEnabled">isPickerEnabled</a></td>
124 <td>Public method to get the file dialog button enabled state.</td>
125 </tr><tr>
126 <td><a href="#E5ComboPathPicker.lastPath">lastPath</a></td>
127 <td>Public method to get the last path of a list of entered paths.</td>
128 </tr><tr>
129 <td><a href="#E5ComboPathPicker.mode">mode</a></td>
130 <td>Public method to get the path picker mode.</td>
131 </tr><tr>
132 <td><a href="#E5ComboPathPicker.path">path</a></td>
133 <td>Public method to get the current path.</td>
134 </tr><tr>
135 <td><a href="#E5ComboPathPicker.paths">paths</a></td>
136 <td>Public method to get the list of entered paths.</td>
137 </tr><tr>
138 <td><a href="#E5ComboPathPicker.setButtonToolTip">setButtonToolTip</a></td>
139 <td>Public method to set the tool button tool tip.</td>
140 </tr><tr>
141 <td><a href="#E5ComboPathPicker.setCurrentIndex">setCurrentIndex</a></td>
142 <td>Public slot to set the current index.</td>
143 </tr><tr>
144 <td><a href="#E5ComboPathPicker.setDefaultDirectory">setDefaultDirectory</a></td>
145 <td>Public method to set the default directory.</td>
146 </tr><tr>
147 <td><a href="#E5ComboPathPicker.setEditText">setEditText</a></td>
148 <td>Public method to set the current path.</td>
149 </tr><tr>
150 <td><a href="#E5ComboPathPicker.setEditorEnabled">setEditorEnabled</a></td>
151 <td>Public method to set the path editor's enabled state.</td>
152 </tr><tr>
153 <td><a href="#E5ComboPathPicker.setEditorToolTip">setEditorToolTip</a></td>
154 <td>Public method to set the editor tool tip.</td>
155 </tr><tr>
156 <td><a href="#E5ComboPathPicker.setFilters">setFilters</a></td>
157 <td>Public method to set the filters for the path picker dialog.</td>
158 </tr><tr>
159 <td><a href="#E5ComboPathPicker.setInsertPolicy">setInsertPolicy</a></td>
160 <td>Public method to set the insertion policy of the combo box.</td>
161 </tr><tr>
162 <td><a href="#E5ComboPathPicker.setMode">setMode</a></td>
163 <td>Public method to set the path picker mode.</td>
164 </tr><tr>
165 <td><a href="#E5ComboPathPicker.setPath">setPath</a></td>
166 <td>Public method to set the current path.</td>
167 </tr><tr>
168 <td><a href="#E5ComboPathPicker.setPathsList">setPathsList</a></td>
169 <td>Public method to set the paths list.</td>
170 </tr><tr>
171 <td><a href="#E5ComboPathPicker.setPickerEnabled">setPickerEnabled</a></td>
172 <td>Public method to set the enabled state of the file dialog button.</td>
173 </tr><tr>
174 <td><a href="#E5ComboPathPicker.setSizeAdjustPolicy">setSizeAdjustPolicy</a></td>
175 <td>Public method to set the size adjust policy of the combo box.</td>
176 </tr><tr>
177 <td><a href="#E5ComboPathPicker.setWindowTitle">setWindowTitle</a></td>
178 <td>Public method to set the path picker dialog window title.</td>
179 </tr><tr>
180 <td><a href="#E5ComboPathPicker.windowTitle">windowTitle</a></td>
181 <td>Public method to get the path picker dialog's window title.</td>
182 </tr> 89 </tr>
183 </table> 90 </table>
184 <h3>Static Methods</h3> 91 <h3>Static Methods</h3>
185 <table> 92 <table>
186 <tr><td>None</td></tr> 93 <tr><td>None</td></tr>
192 Constructor 99 Constructor
193 </p><dl> 100 </p><dl>
194 <dt><i>parent</i> (QWidget)</dt> 101 <dt><i>parent</i> (QWidget)</dt>
195 <dd> 102 <dd>
196 reference to the parent widget 103 reference to the parent widget
197 </dd>
198 </dl><a NAME="E5ComboPathPicker.__showPathPickerDialog" ID="E5ComboPathPicker.__showPathPickerDialog"></a>
199 <h4>E5ComboPathPicker.__showPathPickerDialog</h4>
200 <b>__showPathPickerDialog</b>(<i></i>)
201 <p>
202 Private slot to show the path picker dialog.
203 </p><a NAME="E5ComboPathPicker.addItem" ID="E5ComboPathPicker.addItem"></a>
204 <h4>E5ComboPathPicker.addItem</h4>
205 <b>addItem</b>(<i>path</i>)
206 <p>
207 Public method to add a paths to the current list.
208 </p><dl>
209 <dt><i>path</i> (str)</dt>
210 <dd>
211 path to add
212 </dd>
213 </dl><a NAME="E5ComboPathPicker.addItems" ID="E5ComboPathPicker.addItems"></a>
214 <h4>E5ComboPathPicker.addItems</h4>
215 <b>addItems</b>(<i>pathsList</i>)
216 <p>
217 Public method to add paths to the current list.
218 </p><dl>
219 <dt><i>pathsList</i> (list of str)</dt>
220 <dd>
221 list of paths to add
222 </dd>
223 </dl><a NAME="E5ComboPathPicker.buttonToolTip" ID="E5ComboPathPicker.buttonToolTip"></a>
224 <h4>E5ComboPathPicker.buttonToolTip</h4>
225 <b>buttonToolTip</b>(<i></i>)
226 <p>
227 Public method to get the tool button tool tip.
228 </p><dl>
229 <dt>Returns:</dt>
230 <dd>
231 tool tip text
232 </dd>
233 </dl><dl>
234 <dt>Return Type:</dt>
235 <dd>
236 str
237 </dd>
238 </dl><a NAME="E5ComboPathPicker.clear" ID="E5ComboPathPicker.clear"></a>
239 <h4>E5ComboPathPicker.clear</h4>
240 <b>clear</b>(<i></i>)
241 <p>
242 Public method to clear the list of paths.
243 </p><a NAME="E5ComboPathPicker.clearEditText" ID="E5ComboPathPicker.clearEditText"></a>
244 <h4>E5ComboPathPicker.clearEditText</h4>
245 <b>clearEditText</b>(<i></i>)
246 <p>
247 Public method to clear the current path.
248 </p><a NAME="E5ComboPathPicker.currentText" ID="E5ComboPathPicker.currentText"></a>
249 <h4>E5ComboPathPicker.currentText</h4>
250 <b>currentText</b>(<i></i>)
251 <p>
252 Public method to get the current path.
253 </p><dl>
254 <dt>Returns:</dt>
255 <dd>
256 current path
257 </dd>
258 </dl><dl>
259 <dt>Return Type:</dt>
260 <dd>
261 str
262 </dd>
263 </dl><a NAME="E5ComboPathPicker.defaultDirectory" ID="E5ComboPathPicker.defaultDirectory"></a>
264 <h4>E5ComboPathPicker.defaultDirectory</h4>
265 <b>defaultDirectory</b>(<i></i>)
266 <p>
267 Public method to get the default directory.
268 </p><dl>
269 <dt>Returns:</dt>
270 <dd>
271 default directory
272 </dd>
273 </dl><dl>
274 <dt>Return Type:</dt>
275 <dd>
276 str
277 </dd>
278 </dl><a NAME="E5ComboPathPicker.editorEnabled" ID="E5ComboPathPicker.editorEnabled"></a>
279 <h4>E5ComboPathPicker.editorEnabled</h4>
280 <b>editorEnabled</b>(<i></i>)
281 <p>
282 Public method to get the path editor's enabled state.
283 </p><dl>
284 <dt>Returns:</dt>
285 <dd>
286 flag indicating the enabled state
287 </dd>
288 </dl><dl>
289 <dt>Return Type:</dt>
290 <dd>
291 bool
292 </dd>
293 </dl><a NAME="E5ComboPathPicker.editorToolTip" ID="E5ComboPathPicker.editorToolTip"></a>
294 <h4>E5ComboPathPicker.editorToolTip</h4>
295 <b>editorToolTip</b>(<i></i>)
296 <p>
297 Public method to get the editor tool tip.
298 </p><dl>
299 <dt>Returns:</dt>
300 <dd>
301 tool tip text
302 </dd>
303 </dl><dl>
304 <dt>Return Type:</dt>
305 <dd>
306 str
307 </dd>
308 </dl><a NAME="E5ComboPathPicker.filters" ID="E5ComboPathPicker.filters"></a>
309 <h4>E5ComboPathPicker.filters</h4>
310 <b>filters</b>(<i></i>)
311 <p>
312 Public methods to get the filter string.
313 </p><dl>
314 <dt>Returns:</dt>
315 <dd>
316 filter string
317 </dd>
318 </dl><dl>
319 <dt>Return Type:</dt>
320 <dd>
321 str
322 </dd>
323 </dl><a NAME="E5ComboPathPicker.firstPath" ID="E5ComboPathPicker.firstPath"></a>
324 <h4>E5ComboPathPicker.firstPath</h4>
325 <b>firstPath</b>(<i></i>)
326 <p>
327 Public method to get the first path of a list of entered paths.
328 </p><dl>
329 <dt>Returns:</dt>
330 <dd>
331 first path
332 </dd>
333 </dl><dl>
334 <dt>Return Type:</dt>
335 <dd>
336 str
337 </dd>
338 </dl><a NAME="E5ComboPathPicker.isPickerEnabled" ID="E5ComboPathPicker.isPickerEnabled"></a>
339 <h4>E5ComboPathPicker.isPickerEnabled</h4>
340 <b>isPickerEnabled</b>(<i></i>)
341 <p>
342 Public method to get the file dialog button enabled state.
343 </p><dl>
344 <dt>Returns:</dt>
345 <dd>
346 flag indicating the enabled state
347 </dd>
348 </dl><dl>
349 <dt>Return Type:</dt>
350 <dd>
351 bool
352 </dd>
353 </dl><a NAME="E5ComboPathPicker.lastPath" ID="E5ComboPathPicker.lastPath"></a>
354 <h4>E5ComboPathPicker.lastPath</h4>
355 <b>lastPath</b>(<i></i>)
356 <p>
357 Public method to get the last path of a list of entered paths.
358 </p><dl>
359 <dt>Returns:</dt>
360 <dd>
361 first path
362 </dd>
363 </dl><dl>
364 <dt>Return Type:</dt>
365 <dd>
366 str
367 </dd>
368 </dl><a NAME="E5ComboPathPicker.mode" ID="E5ComboPathPicker.mode"></a>
369 <h4>E5ComboPathPicker.mode</h4>
370 <b>mode</b>(<i></i>)
371 <p>
372 Public method to get the path picker mode.
373 </p><dl>
374 <dt>Returns:</dt>
375 <dd>
376 path picker mode
377 </dd>
378 </dl><dl>
379 <dt>Return Type:</dt>
380 <dd>
381 E5PathPickerModes
382 </dd>
383 </dl><a NAME="E5ComboPathPicker.path" ID="E5ComboPathPicker.path"></a>
384 <h4>E5ComboPathPicker.path</h4>
385 <b>path</b>(<i></i>)
386 <p>
387 Public method to get the current path.
388 </p><dl>
389 <dt>Returns:</dt>
390 <dd>
391 current path
392 </dd>
393 </dl><dl>
394 <dt>Return Type:</dt>
395 <dd>
396 str
397 </dd>
398 </dl><a NAME="E5ComboPathPicker.paths" ID="E5ComboPathPicker.paths"></a>
399 <h4>E5ComboPathPicker.paths</h4>
400 <b>paths</b>(<i></i>)
401 <p>
402 Public method to get the list of entered paths.
403 </p><dl>
404 <dt>Returns:</dt>
405 <dd>
406 entered paths
407 </dd>
408 </dl><dl>
409 <dt>Return Type:</dt>
410 <dd>
411 list of str
412 </dd>
413 </dl><a NAME="E5ComboPathPicker.setButtonToolTip" ID="E5ComboPathPicker.setButtonToolTip"></a>
414 <h4>E5ComboPathPicker.setButtonToolTip</h4>
415 <b>setButtonToolTip</b>(<i>tooltip</i>)
416 <p>
417 Public method to set the tool button tool tip.
418 </p><dl>
419 <dt><i>tooltip</i> (str)</dt>
420 <dd>
421 text to be set as a tool tip
422 </dd>
423 </dl><a NAME="E5ComboPathPicker.setCurrentIndex" ID="E5ComboPathPicker.setCurrentIndex"></a>
424 <h4>E5ComboPathPicker.setCurrentIndex</h4>
425 <b>setCurrentIndex</b>(<i>index</i>)
426 <p>
427 Public slot to set the current index.
428 </p><dl>
429 <dt><i>index</i> (int)</dt>
430 <dd>
431 index of the item to set current
432 </dd>
433 </dl><a NAME="E5ComboPathPicker.setDefaultDirectory" ID="E5ComboPathPicker.setDefaultDirectory"></a>
434 <h4>E5ComboPathPicker.setDefaultDirectory</h4>
435 <b>setDefaultDirectory</b>(<i>directory</i>)
436 <p>
437 Public method to set the default directory.
438 </p><dl>
439 <dt><i>directory</i> (str)</dt>
440 <dd>
441 default directory
442 </dd>
443 </dl><a NAME="E5ComboPathPicker.setEditText" ID="E5ComboPathPicker.setEditText"></a>
444 <h4>E5ComboPathPicker.setEditText</h4>
445 <b>setEditText</b>(<i>path</i>)
446 <p>
447 Public method to set the current path.
448 </p><dl>
449 <dt><i>path</i> (str)</dt>
450 <dd>
451 path to be set
452 </dd>
453 </dl><a NAME="E5ComboPathPicker.setEditorEnabled" ID="E5ComboPathPicker.setEditorEnabled"></a>
454 <h4>E5ComboPathPicker.setEditorEnabled</h4>
455 <b>setEditorEnabled</b>(<i>enable</i>)
456 <p>
457 Public method to set the path editor's enabled state.
458 </p><dl>
459 <dt><i>enable</i> (bool)</dt>
460 <dd>
461 flag indicating the enable state
462 </dd>
463 </dl><a NAME="E5ComboPathPicker.setEditorToolTip" ID="E5ComboPathPicker.setEditorToolTip"></a>
464 <h4>E5ComboPathPicker.setEditorToolTip</h4>
465 <b>setEditorToolTip</b>(<i>tooltip</i>)
466 <p>
467 Public method to set the editor tool tip.
468 </p><dl>
469 <dt><i>tooltip</i> (str)</dt>
470 <dd>
471 text to be set as a tool tip
472 </dd>
473 </dl><a NAME="E5ComboPathPicker.setFilters" ID="E5ComboPathPicker.setFilters"></a>
474 <h4>E5ComboPathPicker.setFilters</h4>
475 <b>setFilters</b>(<i>filters</i>)
476 <p>
477 Public method to set the filters for the path picker dialog.
478 </p><p>
479 Note: Multiple filters must be separated by ';;'.
480 </p><dl>
481 <dt><i>filters</i> (str)</dt>
482 <dd>
483 string containing the file filters
484 </dd>
485 </dl><a NAME="E5ComboPathPicker.setInsertPolicy" ID="E5ComboPathPicker.setInsertPolicy"></a>
486 <h4>E5ComboPathPicker.setInsertPolicy</h4>
487 <b>setInsertPolicy</b>(<i>policy</i>)
488 <p>
489 Public method to set the insertion policy of the combo box.
490 </p><dl>
491 <dt><i>policy</i> (QComboBox.InsertPolicy)</dt>
492 <dd>
493 insertion policy
494 </dd>
495 </dl><a NAME="E5ComboPathPicker.setMode" ID="E5ComboPathPicker.setMode"></a>
496 <h4>E5ComboPathPicker.setMode</h4>
497 <b>setMode</b>(<i>mode</i>)
498 <p>
499 Public method to set the path picker mode.
500 </p><dl>
501 <dt><i>mode</i> (E5PathPickerModes)</dt>
502 <dd>
503 picker mode
504 </dd>
505 </dl><a NAME="E5ComboPathPicker.setPath" ID="E5ComboPathPicker.setPath"></a>
506 <h4>E5ComboPathPicker.setPath</h4>
507 <b>setPath</b>(<i>path</i>)
508 <p>
509 Public method to set the current path.
510 </p><dl>
511 <dt><i>path</i> (str)</dt>
512 <dd>
513 path to be set
514 </dd>
515 </dl><a NAME="E5ComboPathPicker.setPathsList" ID="E5ComboPathPicker.setPathsList"></a>
516 <h4>E5ComboPathPicker.setPathsList</h4>
517 <b>setPathsList</b>(<i>pathsList</i>)
518 <p>
519 Public method to set the paths list.
520 </p><dl>
521 <dt><i>pathsList</i> (list of str)</dt>
522 <dd>
523 list of paths
524 </dd>
525 </dl><a NAME="E5ComboPathPicker.setPickerEnabled" ID="E5ComboPathPicker.setPickerEnabled"></a>
526 <h4>E5ComboPathPicker.setPickerEnabled</h4>
527 <b>setPickerEnabled</b>(<i>enable</i>)
528 <p>
529 Public method to set the enabled state of the file dialog button.
530 </p><dl>
531 <dt><i>enable</i> (bool)</dt>
532 <dd>
533 flag indicating the enabled state
534 </dd>
535 </dl><a NAME="E5ComboPathPicker.setSizeAdjustPolicy" ID="E5ComboPathPicker.setSizeAdjustPolicy"></a>
536 <h4>E5ComboPathPicker.setSizeAdjustPolicy</h4>
537 <b>setSizeAdjustPolicy</b>(<i>policy</i>)
538 <p>
539 Public method to set the size adjust policy of the combo box.
540 </p><dl>
541 <dt><i>policy</i> (QComboBox.SizeAdjustPolicy)</dt>
542 <dd>
543 size adjust policy
544 </dd>
545 </dl><a NAME="E5ComboPathPicker.setWindowTitle" ID="E5ComboPathPicker.setWindowTitle"></a>
546 <h4>E5ComboPathPicker.setWindowTitle</h4>
547 <b>setWindowTitle</b>(<i>title</i>)
548 <p>
549 Public method to set the path picker dialog window title.
550 </p><dl>
551 <dt><i>title</i> (str)</dt>
552 <dd>
553 window title
554 </dd>
555 </dl><a NAME="E5ComboPathPicker.windowTitle" ID="E5ComboPathPicker.windowTitle"></a>
556 <h4>E5ComboPathPicker.windowTitle</h4>
557 <b>windowTitle</b>(<i></i>)
558 <p>
559 Public method to get the path picker dialog's window title.
560 </p><dl>
561 <dt>Returns:</dt>
562 <dd>
563 window title
564 </dd>
565 </dl><dl>
566 <dt>Return Type:</dt>
567 <dd>
568 str
569 </dd> 104 </dd>
570 </dl> 105 </dl>
571 <div align="right"><a href="#top">Up</a></div> 106 <div align="right"><a href="#top">Up</a></div>
572 <hr /><hr /> 107 <hr /><hr />
573 <a NAME="E5PathPicker" ID="E5PathPicker"></a> 108 <a NAME="E5PathPicker" ID="E5PathPicker"></a>
592 <dd> 127 <dd>
593 emitted when the entered path has changed 128 emitted when the entered path has changed
594 </dd> 129 </dd>
595 </dl> 130 </dl>
596 <h3>Derived from</h3> 131 <h3>Derived from</h3>
597 QWidget 132 E5PathPickerBase
598 <h3>Class Attributes</h3> 133 <h3>Class Attributes</h3>
599 <table> 134 <table>
600 <tr><td>DefaultMode</td></tr> 135 <tr><td>None</td></tr>
601 </table> 136 </table>
602 <h3>Class Methods</h3> 137 <h3>Class Methods</h3>
603 <table> 138 <table>
604 <tr><td>None</td></tr> 139 <tr><td>None</td></tr>
605 </table> 140 </table>
606 <h3>Methods</h3> 141 <h3>Methods</h3>
607 <table> 142 <table>
608 <tr> 143 <tr>
609 <td><a href="#E5PathPicker.__init__">E5PathPicker</a></td> 144 <td><a href="#E5PathPicker.__init__">E5PathPicker</a></td>
610 <td>Constructor</td> 145 <td>Constructor</td>
611 </tr><tr>
612 <td><a href="#E5PathPicker.__pathEdited">__pathEdited</a></td>
613 <td>Private slot handling editing of the path.</td>
614 </tr><tr>
615 <td><a href="#E5PathPicker.__showPathPickerDialog">__showPathPickerDialog</a></td>
616 <td>Private slot to show the path picker dialog.</td>
617 </tr><tr>
618 <td><a href="#E5PathPicker.buttonToolTip">buttonToolTip</a></td>
619 <td>Public method to get the tool button tool tip.</td>
620 </tr><tr>
621 <td><a href="#E5PathPicker.clear">clear</a></td>
622 <td>Public method to clear the current path.</td>
623 </tr><tr>
624 <td><a href="#E5PathPicker.defaultDirectory">defaultDirectory</a></td>
625 <td>Public method to get the default directory.</td>
626 </tr><tr>
627 <td><a href="#E5PathPicker.editorEnabled">editorEnabled</a></td>
628 <td>Public method to get the path editor's enabled state.</td>
629 </tr><tr>
630 <td><a href="#E5PathPicker.editorToolTip">editorToolTip</a></td>
631 <td>Public method to get the editor tool tip.</td>
632 </tr><tr>
633 <td><a href="#E5PathPicker.filters">filters</a></td>
634 <td>Public methods to get the filter string.</td>
635 </tr><tr>
636 <td><a href="#E5PathPicker.firstPath">firstPath</a></td>
637 <td>Public method to get the first path of a list of entered paths.</td>
638 </tr><tr>
639 <td><a href="#E5PathPicker.isPickerEnabled">isPickerEnabled</a></td>
640 <td>Public method to get the file dialog button enabled state.</td>
641 </tr><tr>
642 <td><a href="#E5PathPicker.lastPath">lastPath</a></td>
643 <td>Public method to get the last path of a list of entered paths.</td>
644 </tr><tr>
645 <td><a href="#E5PathPicker.mode">mode</a></td>
646 <td>Public method to get the path picker mode.</td>
647 </tr><tr>
648 <td><a href="#E5PathPicker.path">path</a></td>
649 <td>Public method to get the current path.</td>
650 </tr><tr>
651 <td><a href="#E5PathPicker.paths">paths</a></td>
652 <td>Public method to get the list of entered paths.</td>
653 </tr><tr>
654 <td><a href="#E5PathPicker.setButtonToolTip">setButtonToolTip</a></td>
655 <td>Public method to set the tool button tool tip.</td>
656 </tr><tr>
657 <td><a href="#E5PathPicker.setDefaultDirectory">setDefaultDirectory</a></td>
658 <td>Public method to set the default directory.</td>
659 </tr><tr>
660 <td><a href="#E5PathPicker.setEditorEnabled">setEditorEnabled</a></td>
661 <td>Public method to set the path editor's enabled state.</td>
662 </tr><tr>
663 <td><a href="#E5PathPicker.setEditorToolTip">setEditorToolTip</a></td>
664 <td>Public method to set the editor tool tip.</td>
665 </tr><tr>
666 <td><a href="#E5PathPicker.setFilters">setFilters</a></td>
667 <td>Public method to set the filters for the path picker dialog.</td>
668 </tr><tr>
669 <td><a href="#E5PathPicker.setMode">setMode</a></td>
670 <td>Public method to set the path picker mode.</td>
671 </tr><tr>
672 <td><a href="#E5PathPicker.setNameFilters">setNameFilters</a></td>
673 <td>Public method to set the name filters for the completer.</td>
674 </tr><tr>
675 <td><a href="#E5PathPicker.setPath">setPath</a></td>
676 <td>Public method to set the current path.</td>
677 </tr><tr>
678 <td><a href="#E5PathPicker.setPickerEnabled">setPickerEnabled</a></td>
679 <td>Public method to set the enabled state of the file dialog button.</td>
680 </tr><tr>
681 <td><a href="#E5PathPicker.setText">setText</a></td>
682 <td>Public method to set the current path.</td>
683 </tr><tr>
684 <td><a href="#E5PathPicker.setWindowTitle">setWindowTitle</a></td>
685 <td>Public method to set the path picker dialog window title.</td>
686 </tr><tr>
687 <td><a href="#E5PathPicker.text">text</a></td>
688 <td>Public method to get the current path.</td>
689 </tr><tr>
690 <td><a href="#E5PathPicker.windowTitle">windowTitle</a></td>
691 <td>Public method to get the path picker dialog's window title.</td>
692 </tr> 146 </tr>
693 </table> 147 </table>
694 <h3>Static Methods</h3> 148 <h3>Static Methods</h3>
695 <table> 149 <table>
696 <tr><td>None</td></tr> 150 <tr><td>None</td></tr>
703 </p><dl> 157 </p><dl>
704 <dt><i>parent</i> (QWidget)</dt> 158 <dt><i>parent</i> (QWidget)</dt>
705 <dd> 159 <dd>
706 reference to the parent widget 160 reference to the parent widget
707 </dd> 161 </dd>
708 </dl><a NAME="E5PathPicker.__pathEdited" ID="E5PathPicker.__pathEdited"></a> 162 </dl>
709 <h4>E5PathPicker.__pathEdited</h4> 163 <div align="right"><a href="#top">Up</a></div>
164 <hr /><hr />
165 <a NAME="E5PathPickerBase" ID="E5PathPickerBase"></a>
166 <h2>E5PathPickerBase</h2>
167 <p>
168 Class implementing the base of a path picker widget consisting of a
169 line edit or combo box and a tool button to open a file dialog.
170 </p><h3>Signals</h3>
171 <dl>
172 <dt>aboutToShowPathPickerDialog</dt>
173 <dd>
174 emitted before the file dialog is shown
175 </dd><dt>editTextChanged(path)</dt>
176 <dd>
177 emitted when the entered path has changed
178 (combo box based widget)
179 </dd><dt>pathSelected(path)</dt>
180 <dd>
181 emitted after a path has been selected via the
182 file dialog
183 </dd><dt>pickerButtonClicked</dt>
184 <dd>
185 emitted when the picker button was pressed and
186 the widget mode is custom
187 </dd><dt>textChanged(path)</dt>
188 <dd>
189 emitted when the entered path has changed
190 (line edit based widget)
191 </dd>
192 </dl>
193 <h3>Derived from</h3>
194 QWidget
195 <h3>Class Attributes</h3>
196 <table>
197 <tr><td>DefaultMode</td></tr>
198 </table>
199 <h3>Class Methods</h3>
200 <table>
201 <tr><td>None</td></tr>
202 </table>
203 <h3>Methods</h3>
204 <table>
205 <tr>
206 <td><a href="#E5PathPickerBase.__init__">E5PathPickerBase</a></td>
207 <td>Constructor</td>
208 </tr><tr>
209 <td><a href="#E5PathPickerBase.__pathEdited">__pathEdited</a></td>
210 <td>Private slot handling editing of the path.</td>
211 </tr><tr>
212 <td><a href="#E5PathPickerBase.__showPathPickerDialog">__showPathPickerDialog</a></td>
213 <td>Private slot to show the path picker dialog.</td>
214 </tr><tr>
215 <td><a href="#E5PathPickerBase._editorText">_editorText</a></td>
216 <td>Protected method to get the text of the editor.</td>
217 </tr><tr>
218 <td><a href="#E5PathPickerBase._setEditorText">_setEditorText</a></td>
219 <td>Protected method to set the text of the editor.</td>
220 </tr><tr>
221 <td><a href="#E5PathPickerBase.addItem">addItem</a></td>
222 <td>Public method to add a paths to the current list.</td>
223 </tr><tr>
224 <td><a href="#E5PathPickerBase.addItems">addItems</a></td>
225 <td>Public method to add paths to the current list.</td>
226 </tr><tr>
227 <td><a href="#E5PathPickerBase.buttonToolTip">buttonToolTip</a></td>
228 <td>Public method to get the tool button tool tip.</td>
229 </tr><tr>
230 <td><a href="#E5PathPickerBase.clear">clear</a></td>
231 <td>Public method to clear the current path or list of paths.</td>
232 </tr><tr>
233 <td><a href="#E5PathPickerBase.clearEditText">clearEditText</a></td>
234 <td>Public method to clear the current path.</td>
235 </tr><tr>
236 <td><a href="#E5PathPickerBase.currentText">currentText</a></td>
237 <td>Public method to get the current path.</td>
238 </tr><tr>
239 <td><a href="#E5PathPickerBase.defaultDirectory">defaultDirectory</a></td>
240 <td>Public method to get the default directory.</td>
241 </tr><tr>
242 <td><a href="#E5PathPickerBase.editorEnabled">editorEnabled</a></td>
243 <td>Public method to get the path editor's enabled state.</td>
244 </tr><tr>
245 <td><a href="#E5PathPickerBase.editorToolTip">editorToolTip</a></td>
246 <td>Public method to get the editor tool tip.</td>
247 </tr><tr>
248 <td><a href="#E5PathPickerBase.filters">filters</a></td>
249 <td>Public methods to get the filter string.</td>
250 </tr><tr>
251 <td><a href="#E5PathPickerBase.firstPath">firstPath</a></td>
252 <td>Public method to get the first path of a list of entered paths.</td>
253 </tr><tr>
254 <td><a href="#E5PathPickerBase.isPickerEnabled">isPickerEnabled</a></td>
255 <td>Public method to get the file dialog button enabled state.</td>
256 </tr><tr>
257 <td><a href="#E5PathPickerBase.lastPath">lastPath</a></td>
258 <td>Public method to get the last path of a list of entered paths.</td>
259 </tr><tr>
260 <td><a href="#E5PathPickerBase.mode">mode</a></td>
261 <td>Public method to get the path picker mode.</td>
262 </tr><tr>
263 <td><a href="#E5PathPickerBase.path">path</a></td>
264 <td>Public method to get the current path.</td>
265 </tr><tr>
266 <td><a href="#E5PathPickerBase.paths">paths</a></td>
267 <td>Public method to get the list of entered paths.</td>
268 </tr><tr>
269 <td><a href="#E5PathPickerBase.setButtonToolTip">setButtonToolTip</a></td>
270 <td>Public method to set the tool button tool tip.</td>
271 </tr><tr>
272 <td><a href="#E5PathPickerBase.setCurrentIndex">setCurrentIndex</a></td>
273 <td>Public slot to set the current index.</td>
274 </tr><tr>
275 <td><a href="#E5PathPickerBase.setDefaultDirectory">setDefaultDirectory</a></td>
276 <td>Public method to set the default directory.</td>
277 </tr><tr>
278 <td><a href="#E5PathPickerBase.setEditText">setEditText</a></td>
279 <td>Public method to set the current path.</td>
280 </tr><tr>
281 <td><a href="#E5PathPickerBase.setEditorEnabled">setEditorEnabled</a></td>
282 <td>Public method to set the path editor's enabled state.</td>
283 </tr><tr>
284 <td><a href="#E5PathPickerBase.setEditorToolTip">setEditorToolTip</a></td>
285 <td>Public method to set the editor tool tip.</td>
286 </tr><tr>
287 <td><a href="#E5PathPickerBase.setFilters">setFilters</a></td>
288 <td>Public method to set the filters for the path picker dialog.</td>
289 </tr><tr>
290 <td><a href="#E5PathPickerBase.setInsertPolicy">setInsertPolicy</a></td>
291 <td>Public method to set the insertion policy of the combo box.</td>
292 </tr><tr>
293 <td><a href="#E5PathPickerBase.setMode">setMode</a></td>
294 <td>Public method to set the path picker mode.</td>
295 </tr><tr>
296 <td><a href="#E5PathPickerBase.setNameFilters">setNameFilters</a></td>
297 <td>Public method to set the name filters for the completer.</td>
298 </tr><tr>
299 <td><a href="#E5PathPickerBase.setPath">setPath</a></td>
300 <td>Public method to set the current path.</td>
301 </tr><tr>
302 <td><a href="#E5PathPickerBase.setPathsList">setPathsList</a></td>
303 <td>Public method to set the paths list.</td>
304 </tr><tr>
305 <td><a href="#E5PathPickerBase.setPickerEnabled">setPickerEnabled</a></td>
306 <td>Public method to set the enabled state of the file dialog button.</td>
307 </tr><tr>
308 <td><a href="#E5PathPickerBase.setSizeAdjustPolicy">setSizeAdjustPolicy</a></td>
309 <td>Public method to set the size adjust policy of the combo box.</td>
310 </tr><tr>
311 <td><a href="#E5PathPickerBase.setText">setText</a></td>
312 <td>Public method to set the current path.</td>
313 </tr><tr>
314 <td><a href="#E5PathPickerBase.setWindowTitle">setWindowTitle</a></td>
315 <td>Public method to set the path picker dialog window title.</td>
316 </tr><tr>
317 <td><a href="#E5PathPickerBase.text">text</a></td>
318 <td>Public method to get the current path.</td>
319 </tr><tr>
320 <td><a href="#E5PathPickerBase.windowTitle">windowTitle</a></td>
321 <td>Public method to get the path picker dialog's window title.</td>
322 </tr>
323 </table>
324 <h3>Static Methods</h3>
325 <table>
326 <tr><td>None</td></tr>
327 </table>
328 <a NAME="E5PathPickerBase.__init__" ID="E5PathPickerBase.__init__"></a>
329 <h4>E5PathPickerBase (Constructor)</h4>
330 <b>E5PathPickerBase</b>(<i>parent=None, useLineEdit=True</i>)
331 <p>
332 Constructor
333 </p><dl>
334 <dt><i>parent</i> (QWidget)</dt>
335 <dd>
336 reference to the parent widget
337 </dd><dt><i>useLineEdit</i> (bool)</dt>
338 <dd>
339 flag indicating the use of a line edit
340 </dd>
341 </dl><a NAME="E5PathPickerBase.__pathEdited" ID="E5PathPickerBase.__pathEdited"></a>
342 <h4>E5PathPickerBase.__pathEdited</h4>
710 <b>__pathEdited</b>(<i>path</i>) 343 <b>__pathEdited</b>(<i>path</i>)
711 <p> 344 <p>
712 Private slot handling editing of the path. 345 Private slot handling editing of the path.
713 </p><dl> 346 </p><dl>
714 <dt><i>path</i> (str)</dt> 347 <dt><i>path</i> (str)</dt>
715 <dd> 348 <dd>
716 current text of the path line edit 349 current text of the path line edit
717 </dd> 350 </dd>
718 </dl><a NAME="E5PathPicker.__showPathPickerDialog" ID="E5PathPicker.__showPathPickerDialog"></a> 351 </dl><a NAME="E5PathPickerBase.__showPathPickerDialog" ID="E5PathPickerBase.__showPathPickerDialog"></a>
719 <h4>E5PathPicker.__showPathPickerDialog</h4> 352 <h4>E5PathPickerBase.__showPathPickerDialog</h4>
720 <b>__showPathPickerDialog</b>(<i></i>) 353 <b>__showPathPickerDialog</b>(<i></i>)
721 <p> 354 <p>
722 Private slot to show the path picker dialog. 355 Private slot to show the path picker dialog.
723 </p><a NAME="E5PathPicker.buttonToolTip" ID="E5PathPicker.buttonToolTip"></a> 356 </p><a NAME="E5PathPickerBase._editorText" ID="E5PathPickerBase._editorText"></a>
724 <h4>E5PathPicker.buttonToolTip</h4> 357 <h4>E5PathPickerBase._editorText</h4>
358 <b>_editorText</b>(<i></i>)
359 <p>
360 Protected method to get the text of the editor.
361 </p><dl>
362 <dt>Returns:</dt>
363 <dd>
364 text of the editor
365 </dd>
366 </dl><dl>
367 <dt>Return Type:</dt>
368 <dd>
369 str
370 </dd>
371 </dl><a NAME="E5PathPickerBase._setEditorText" ID="E5PathPickerBase._setEditorText"></a>
372 <h4>E5PathPickerBase._setEditorText</h4>
373 <b>_setEditorText</b>(<i>text</i>)
374 <p>
375 Protected method to set the text of the editor.
376 </p><dl>
377 <dt><i>text</i> (str)</dt>
378 <dd>
379 text to set
380 </dd>
381 </dl><a NAME="E5PathPickerBase.addItem" ID="E5PathPickerBase.addItem"></a>
382 <h4>E5PathPickerBase.addItem</h4>
383 <b>addItem</b>(<i>path</i>)
384 <p>
385 Public method to add a paths to the current list.
386 </p><dl>
387 <dt><i>path</i> (str)</dt>
388 <dd>
389 path to add
390 </dd>
391 </dl><a NAME="E5PathPickerBase.addItems" ID="E5PathPickerBase.addItems"></a>
392 <h4>E5PathPickerBase.addItems</h4>
393 <b>addItems</b>(<i>pathsList</i>)
394 <p>
395 Public method to add paths to the current list.
396 </p><dl>
397 <dt><i>pathsList</i> (list of str)</dt>
398 <dd>
399 list of paths to add
400 </dd>
401 </dl><a NAME="E5PathPickerBase.buttonToolTip" ID="E5PathPickerBase.buttonToolTip"></a>
402 <h4>E5PathPickerBase.buttonToolTip</h4>
725 <b>buttonToolTip</b>(<i></i>) 403 <b>buttonToolTip</b>(<i></i>)
726 <p> 404 <p>
727 Public method to get the tool button tool tip. 405 Public method to get the tool button tool tip.
728 </p><dl> 406 </p><dl>
729 <dt>Returns:</dt> 407 <dt>Returns:</dt>
733 </dl><dl> 411 </dl><dl>
734 <dt>Return Type:</dt> 412 <dt>Return Type:</dt>
735 <dd> 413 <dd>
736 str 414 str
737 </dd> 415 </dd>
738 </dl><a NAME="E5PathPicker.clear" ID="E5PathPicker.clear"></a> 416 </dl><a NAME="E5PathPickerBase.clear" ID="E5PathPickerBase.clear"></a>
739 <h4>E5PathPicker.clear</h4> 417 <h4>E5PathPickerBase.clear</h4>
740 <b>clear</b>(<i></i>) 418 <b>clear</b>(<i></i>)
741 <p> 419 <p>
420 Public method to clear the current path or list of paths.
421 </p><a NAME="E5PathPickerBase.clearEditText" ID="E5PathPickerBase.clearEditText"></a>
422 <h4>E5PathPickerBase.clearEditText</h4>
423 <b>clearEditText</b>(<i></i>)
424 <p>
742 Public method to clear the current path. 425 Public method to clear the current path.
743 </p><a NAME="E5PathPicker.defaultDirectory" ID="E5PathPicker.defaultDirectory"></a> 426 </p><a NAME="E5PathPickerBase.currentText" ID="E5PathPickerBase.currentText"></a>
744 <h4>E5PathPicker.defaultDirectory</h4> 427 <h4>E5PathPickerBase.currentText</h4>
428 <b>currentText</b>(<i></i>)
429 <p>
430 Public method to get the current path.
431 </p><dl>
432 <dt>Returns:</dt>
433 <dd>
434 current path
435 </dd>
436 </dl><dl>
437 <dt>Return Type:</dt>
438 <dd>
439 str
440 </dd>
441 </dl><a NAME="E5PathPickerBase.defaultDirectory" ID="E5PathPickerBase.defaultDirectory"></a>
442 <h4>E5PathPickerBase.defaultDirectory</h4>
745 <b>defaultDirectory</b>(<i></i>) 443 <b>defaultDirectory</b>(<i></i>)
746 <p> 444 <p>
747 Public method to get the default directory. 445 Public method to get the default directory.
748 </p><dl> 446 </p><dl>
749 <dt>Returns:</dt> 447 <dt>Returns:</dt>
753 </dl><dl> 451 </dl><dl>
754 <dt>Return Type:</dt> 452 <dt>Return Type:</dt>
755 <dd> 453 <dd>
756 str 454 str
757 </dd> 455 </dd>
758 </dl><a NAME="E5PathPicker.editorEnabled" ID="E5PathPicker.editorEnabled"></a> 456 </dl><a NAME="E5PathPickerBase.editorEnabled" ID="E5PathPickerBase.editorEnabled"></a>
759 <h4>E5PathPicker.editorEnabled</h4> 457 <h4>E5PathPickerBase.editorEnabled</h4>
760 <b>editorEnabled</b>(<i></i>) 458 <b>editorEnabled</b>(<i></i>)
761 <p> 459 <p>
762 Public method to get the path editor's enabled state. 460 Public method to get the path editor's enabled state.
763 </p><dl> 461 </p><dl>
764 <dt>Returns:</dt> 462 <dt>Returns:</dt>
768 </dl><dl> 466 </dl><dl>
769 <dt>Return Type:</dt> 467 <dt>Return Type:</dt>
770 <dd> 468 <dd>
771 bool 469 bool
772 </dd> 470 </dd>
773 </dl><a NAME="E5PathPicker.editorToolTip" ID="E5PathPicker.editorToolTip"></a> 471 </dl><a NAME="E5PathPickerBase.editorToolTip" ID="E5PathPickerBase.editorToolTip"></a>
774 <h4>E5PathPicker.editorToolTip</h4> 472 <h4>E5PathPickerBase.editorToolTip</h4>
775 <b>editorToolTip</b>(<i></i>) 473 <b>editorToolTip</b>(<i></i>)
776 <p> 474 <p>
777 Public method to get the editor tool tip. 475 Public method to get the editor tool tip.
778 </p><dl> 476 </p><dl>
779 <dt>Returns:</dt> 477 <dt>Returns:</dt>
783 </dl><dl> 481 </dl><dl>
784 <dt>Return Type:</dt> 482 <dt>Return Type:</dt>
785 <dd> 483 <dd>
786 str 484 str
787 </dd> 485 </dd>
788 </dl><a NAME="E5PathPicker.filters" ID="E5PathPicker.filters"></a> 486 </dl><a NAME="E5PathPickerBase.filters" ID="E5PathPickerBase.filters"></a>
789 <h4>E5PathPicker.filters</h4> 487 <h4>E5PathPickerBase.filters</h4>
790 <b>filters</b>(<i></i>) 488 <b>filters</b>(<i></i>)
791 <p> 489 <p>
792 Public methods to get the filter string. 490 Public methods to get the filter string.
793 </p><dl> 491 </p><dl>
794 <dt>Returns:</dt> 492 <dt>Returns:</dt>
798 </dl><dl> 496 </dl><dl>
799 <dt>Return Type:</dt> 497 <dt>Return Type:</dt>
800 <dd> 498 <dd>
801 str 499 str
802 </dd> 500 </dd>
803 </dl><a NAME="E5PathPicker.firstPath" ID="E5PathPicker.firstPath"></a> 501 </dl><a NAME="E5PathPickerBase.firstPath" ID="E5PathPickerBase.firstPath"></a>
804 <h4>E5PathPicker.firstPath</h4> 502 <h4>E5PathPickerBase.firstPath</h4>
805 <b>firstPath</b>(<i></i>) 503 <b>firstPath</b>(<i></i>)
806 <p> 504 <p>
807 Public method to get the first path of a list of entered paths. 505 Public method to get the first path of a list of entered paths.
808 </p><dl> 506 </p><dl>
809 <dt>Returns:</dt> 507 <dt>Returns:</dt>
813 </dl><dl> 511 </dl><dl>
814 <dt>Return Type:</dt> 512 <dt>Return Type:</dt>
815 <dd> 513 <dd>
816 str 514 str
817 </dd> 515 </dd>
818 </dl><a NAME="E5PathPicker.isPickerEnabled" ID="E5PathPicker.isPickerEnabled"></a> 516 </dl><a NAME="E5PathPickerBase.isPickerEnabled" ID="E5PathPickerBase.isPickerEnabled"></a>
819 <h4>E5PathPicker.isPickerEnabled</h4> 517 <h4>E5PathPickerBase.isPickerEnabled</h4>
820 <b>isPickerEnabled</b>(<i></i>) 518 <b>isPickerEnabled</b>(<i></i>)
821 <p> 519 <p>
822 Public method to get the file dialog button enabled state. 520 Public method to get the file dialog button enabled state.
823 </p><dl> 521 </p><dl>
824 <dt>Returns:</dt> 522 <dt>Returns:</dt>
828 </dl><dl> 526 </dl><dl>
829 <dt>Return Type:</dt> 527 <dt>Return Type:</dt>
830 <dd> 528 <dd>
831 bool 529 bool
832 </dd> 530 </dd>
833 </dl><a NAME="E5PathPicker.lastPath" ID="E5PathPicker.lastPath"></a> 531 </dl><a NAME="E5PathPickerBase.lastPath" ID="E5PathPickerBase.lastPath"></a>
834 <h4>E5PathPicker.lastPath</h4> 532 <h4>E5PathPickerBase.lastPath</h4>
835 <b>lastPath</b>(<i></i>) 533 <b>lastPath</b>(<i></i>)
836 <p> 534 <p>
837 Public method to get the last path of a list of entered paths. 535 Public method to get the last path of a list of entered paths.
838 </p><dl> 536 </p><dl>
839 <dt>Returns:</dt> 537 <dt>Returns:</dt>
843 </dl><dl> 541 </dl><dl>
844 <dt>Return Type:</dt> 542 <dt>Return Type:</dt>
845 <dd> 543 <dd>
846 str 544 str
847 </dd> 545 </dd>
848 </dl><a NAME="E5PathPicker.mode" ID="E5PathPicker.mode"></a> 546 </dl><a NAME="E5PathPickerBase.mode" ID="E5PathPickerBase.mode"></a>
849 <h4>E5PathPicker.mode</h4> 547 <h4>E5PathPickerBase.mode</h4>
850 <b>mode</b>(<i></i>) 548 <b>mode</b>(<i></i>)
851 <p> 549 <p>
852 Public method to get the path picker mode. 550 Public method to get the path picker mode.
853 </p><dl> 551 </p><dl>
854 <dt>Returns:</dt> 552 <dt>Returns:</dt>
858 </dl><dl> 556 </dl><dl>
859 <dt>Return Type:</dt> 557 <dt>Return Type:</dt>
860 <dd> 558 <dd>
861 E5PathPickerModes 559 E5PathPickerModes
862 </dd> 560 </dd>
863 </dl><a NAME="E5PathPicker.path" ID="E5PathPicker.path"></a> 561 </dl><a NAME="E5PathPickerBase.path" ID="E5PathPickerBase.path"></a>
864 <h4>E5PathPicker.path</h4> 562 <h4>E5PathPickerBase.path</h4>
865 <b>path</b>(<i></i>) 563 <b>path</b>(<i></i>)
866 <p> 564 <p>
867 Public method to get the current path. 565 Public method to get the current path.
868 </p><dl> 566 </p><dl>
869 <dt>Returns:</dt> 567 <dt>Returns:</dt>
873 </dl><dl> 571 </dl><dl>
874 <dt>Return Type:</dt> 572 <dt>Return Type:</dt>
875 <dd> 573 <dd>
876 str 574 str
877 </dd> 575 </dd>
878 </dl><a NAME="E5PathPicker.paths" ID="E5PathPicker.paths"></a> 576 </dl><a NAME="E5PathPickerBase.paths" ID="E5PathPickerBase.paths"></a>
879 <h4>E5PathPicker.paths</h4> 577 <h4>E5PathPickerBase.paths</h4>
880 <b>paths</b>(<i></i>) 578 <b>paths</b>(<i></i>)
881 <p> 579 <p>
882 Public method to get the list of entered paths. 580 Public method to get the list of entered paths.
883 </p><dl> 581 </p><dl>
884 <dt>Returns:</dt> 582 <dt>Returns:</dt>
888 </dl><dl> 586 </dl><dl>
889 <dt>Return Type:</dt> 587 <dt>Return Type:</dt>
890 <dd> 588 <dd>
891 list of str 589 list of str
892 </dd> 590 </dd>
893 </dl><a NAME="E5PathPicker.setButtonToolTip" ID="E5PathPicker.setButtonToolTip"></a> 591 </dl><a NAME="E5PathPickerBase.setButtonToolTip" ID="E5PathPickerBase.setButtonToolTip"></a>
894 <h4>E5PathPicker.setButtonToolTip</h4> 592 <h4>E5PathPickerBase.setButtonToolTip</h4>
895 <b>setButtonToolTip</b>(<i>tooltip</i>) 593 <b>setButtonToolTip</b>(<i>tooltip</i>)
896 <p> 594 <p>
897 Public method to set the tool button tool tip. 595 Public method to set the tool button tool tip.
898 </p><dl> 596 </p><dl>
899 <dt><i>tooltip</i> (str)</dt> 597 <dt><i>tooltip</i> (str)</dt>
900 <dd> 598 <dd>
901 text to be set as a tool tip 599 text to be set as a tool tip
902 </dd> 600 </dd>
903 </dl><a NAME="E5PathPicker.setDefaultDirectory" ID="E5PathPicker.setDefaultDirectory"></a> 601 </dl><a NAME="E5PathPickerBase.setCurrentIndex" ID="E5PathPickerBase.setCurrentIndex"></a>
904 <h4>E5PathPicker.setDefaultDirectory</h4> 602 <h4>E5PathPickerBase.setCurrentIndex</h4>
603 <b>setCurrentIndex</b>(<i>index</i>)
604 <p>
605 Public slot to set the current index.
606 </p><dl>
607 <dt><i>index</i> (int)</dt>
608 <dd>
609 index of the item to set current
610 </dd>
611 </dl><a NAME="E5PathPickerBase.setDefaultDirectory" ID="E5PathPickerBase.setDefaultDirectory"></a>
612 <h4>E5PathPickerBase.setDefaultDirectory</h4>
905 <b>setDefaultDirectory</b>(<i>directory</i>) 613 <b>setDefaultDirectory</b>(<i>directory</i>)
906 <p> 614 <p>
907 Public method to set the default directory. 615 Public method to set the default directory.
908 </p><dl> 616 </p><dl>
909 <dt><i>directory</i> (str)</dt> 617 <dt><i>directory</i> (str)</dt>
910 <dd> 618 <dd>
911 default directory 619 default directory
912 </dd> 620 </dd>
913 </dl><a NAME="E5PathPicker.setEditorEnabled" ID="E5PathPicker.setEditorEnabled"></a> 621 </dl><a NAME="E5PathPickerBase.setEditText" ID="E5PathPickerBase.setEditText"></a>
914 <h4>E5PathPicker.setEditorEnabled</h4> 622 <h4>E5PathPickerBase.setEditText</h4>
623 <b>setEditText</b>(<i>path</i>)
624 <p>
625 Public method to set the current path.
626 </p><dl>
627 <dt><i>path</i> (str)</dt>
628 <dd>
629 path to be set
630 </dd>
631 </dl><a NAME="E5PathPickerBase.setEditorEnabled" ID="E5PathPickerBase.setEditorEnabled"></a>
632 <h4>E5PathPickerBase.setEditorEnabled</h4>
915 <b>setEditorEnabled</b>(<i>enable</i>) 633 <b>setEditorEnabled</b>(<i>enable</i>)
916 <p> 634 <p>
917 Public method to set the path editor's enabled state. 635 Public method to set the path editor's enabled state.
918 </p><dl> 636 </p><dl>
919 <dt><i>enable</i> (bool)</dt> 637 <dt><i>enable</i> (bool)</dt>
920 <dd> 638 <dd>
921 flag indicating the enable state 639 flag indicating the enable state
922 </dd> 640 </dd>
923 </dl><a NAME="E5PathPicker.setEditorToolTip" ID="E5PathPicker.setEditorToolTip"></a> 641 </dl><a NAME="E5PathPickerBase.setEditorToolTip" ID="E5PathPickerBase.setEditorToolTip"></a>
924 <h4>E5PathPicker.setEditorToolTip</h4> 642 <h4>E5PathPickerBase.setEditorToolTip</h4>
925 <b>setEditorToolTip</b>(<i>tooltip</i>) 643 <b>setEditorToolTip</b>(<i>tooltip</i>)
926 <p> 644 <p>
927 Public method to set the editor tool tip. 645 Public method to set the editor tool tip.
928 </p><dl> 646 </p><dl>
929 <dt><i>tooltip</i> (str)</dt> 647 <dt><i>tooltip</i> (str)</dt>
930 <dd> 648 <dd>
931 text to be set as a tool tip 649 text to be set as a tool tip
932 </dd> 650 </dd>
933 </dl><a NAME="E5PathPicker.setFilters" ID="E5PathPicker.setFilters"></a> 651 </dl><a NAME="E5PathPickerBase.setFilters" ID="E5PathPickerBase.setFilters"></a>
934 <h4>E5PathPicker.setFilters</h4> 652 <h4>E5PathPickerBase.setFilters</h4>
935 <b>setFilters</b>(<i>filters</i>) 653 <b>setFilters</b>(<i>filters</i>)
936 <p> 654 <p>
937 Public method to set the filters for the path picker dialog. 655 Public method to set the filters for the path picker dialog.
938 </p><p> 656 </p><p>
939 Note: Multiple filters must be separated by ';;'. 657 Note: Multiple filters must be separated by ';;'.
940 </p><dl> 658 </p><dl>
941 <dt><i>filters</i> (str)</dt> 659 <dt><i>filters</i> (str)</dt>
942 <dd> 660 <dd>
943 string containing the file filters 661 string containing the file filters
944 </dd> 662 </dd>
945 </dl><a NAME="E5PathPicker.setMode" ID="E5PathPicker.setMode"></a> 663 </dl><a NAME="E5PathPickerBase.setInsertPolicy" ID="E5PathPickerBase.setInsertPolicy"></a>
946 <h4>E5PathPicker.setMode</h4> 664 <h4>E5PathPickerBase.setInsertPolicy</h4>
665 <b>setInsertPolicy</b>(<i>policy</i>)
666 <p>
667 Public method to set the insertion policy of the combo box.
668 </p><dl>
669 <dt><i>policy</i> (QComboBox.InsertPolicy)</dt>
670 <dd>
671 insertion policy
672 </dd>
673 </dl><a NAME="E5PathPickerBase.setMode" ID="E5PathPickerBase.setMode"></a>
674 <h4>E5PathPickerBase.setMode</h4>
947 <b>setMode</b>(<i>mode</i>) 675 <b>setMode</b>(<i>mode</i>)
948 <p> 676 <p>
949 Public method to set the path picker mode. 677 Public method to set the path picker mode.
950 </p><dl> 678 </p><dl>
951 <dt><i>mode</i> (E5PathPickerModes)</dt> 679 <dt><i>mode</i> (E5PathPickerModes)</dt>
952 <dd> 680 <dd>
953 picker mode 681 picker mode
954 </dd> 682 </dd>
955 </dl><a NAME="E5PathPicker.setNameFilters" ID="E5PathPicker.setNameFilters"></a> 683 </dl><a NAME="E5PathPickerBase.setNameFilters" ID="E5PathPickerBase.setNameFilters"></a>
956 <h4>E5PathPicker.setNameFilters</h4> 684 <h4>E5PathPickerBase.setNameFilters</h4>
957 <b>setNameFilters</b>(<i>filters</i>) 685 <b>setNameFilters</b>(<i>filters</i>)
958 <p> 686 <p>
959 Public method to set the name filters for the completer. 687 Public method to set the name filters for the completer.
960 </p><dl> 688 </p><dl>
961 <dt><i>filters</i> (list of str)</dt> 689 <dt><i>filters</i> (list of str)</dt>
962 <dd> 690 <dd>
963 list of file name filters 691 list of file name filters
964 </dd> 692 </dd>
965 </dl><a NAME="E5PathPicker.setPath" ID="E5PathPicker.setPath"></a> 693 </dl><a NAME="E5PathPickerBase.setPath" ID="E5PathPickerBase.setPath"></a>
966 <h4>E5PathPicker.setPath</h4> 694 <h4>E5PathPickerBase.setPath</h4>
967 <b>setPath</b>(<i>path</i>) 695 <b>setPath</b>(<i>path</i>)
968 <p> 696 <p>
969 Public method to set the current path. 697 Public method to set the current path.
970 </p><dl> 698 </p><dl>
971 <dt><i>path</i> (str)</dt> 699 <dt><i>path</i> (str)</dt>
972 <dd> 700 <dd>
973 path to be set 701 path to be set
974 </dd> 702 </dd>
975 </dl><a NAME="E5PathPicker.setPickerEnabled" ID="E5PathPicker.setPickerEnabled"></a> 703 </dl><a NAME="E5PathPickerBase.setPathsList" ID="E5PathPickerBase.setPathsList"></a>
976 <h4>E5PathPicker.setPickerEnabled</h4> 704 <h4>E5PathPickerBase.setPathsList</h4>
705 <b>setPathsList</b>(<i>pathsList</i>)
706 <p>
707 Public method to set the paths list.
708 </p><dl>
709 <dt><i>pathsList</i> (list of str)</dt>
710 <dd>
711 list of paths
712 </dd>
713 </dl><a NAME="E5PathPickerBase.setPickerEnabled" ID="E5PathPickerBase.setPickerEnabled"></a>
714 <h4>E5PathPickerBase.setPickerEnabled</h4>
977 <b>setPickerEnabled</b>(<i>enable</i>) 715 <b>setPickerEnabled</b>(<i>enable</i>)
978 <p> 716 <p>
979 Public method to set the enabled state of the file dialog button. 717 Public method to set the enabled state of the file dialog button.
980 </p><dl> 718 </p><dl>
981 <dt><i>enable</i> (bool)</dt> 719 <dt><i>enable</i> (bool)</dt>
982 <dd> 720 <dd>
983 flag indicating the enabled state 721 flag indicating the enabled state
984 </dd> 722 </dd>
985 </dl><a NAME="E5PathPicker.setText" ID="E5PathPicker.setText"></a> 723 </dl><a NAME="E5PathPickerBase.setSizeAdjustPolicy" ID="E5PathPickerBase.setSizeAdjustPolicy"></a>
986 <h4>E5PathPicker.setText</h4> 724 <h4>E5PathPickerBase.setSizeAdjustPolicy</h4>
725 <b>setSizeAdjustPolicy</b>(<i>policy</i>)
726 <p>
727 Public method to set the size adjust policy of the combo box.
728 </p><dl>
729 <dt><i>policy</i> (QComboBox.SizeAdjustPolicy)</dt>
730 <dd>
731 size adjust policy
732 </dd>
733 </dl><a NAME="E5PathPickerBase.setText" ID="E5PathPickerBase.setText"></a>
734 <h4>E5PathPickerBase.setText</h4>
987 <b>setText</b>(<i>path</i>) 735 <b>setText</b>(<i>path</i>)
988 <p> 736 <p>
989 Public method to set the current path. 737 Public method to set the current path.
990 </p><dl> 738 </p><dl>
991 <dt><i>path</i> (str)</dt> 739 <dt><i>path</i> (str)</dt>
992 <dd> 740 <dd>
993 path to be set 741 path to be set
994 </dd> 742 </dd>
995 </dl><a NAME="E5PathPicker.setWindowTitle" ID="E5PathPicker.setWindowTitle"></a> 743 </dl><a NAME="E5PathPickerBase.setWindowTitle" ID="E5PathPickerBase.setWindowTitle"></a>
996 <h4>E5PathPicker.setWindowTitle</h4> 744 <h4>E5PathPickerBase.setWindowTitle</h4>
997 <b>setWindowTitle</b>(<i>title</i>) 745 <b>setWindowTitle</b>(<i>title</i>)
998 <p> 746 <p>
999 Public method to set the path picker dialog window title. 747 Public method to set the path picker dialog window title.
1000 </p><dl> 748 </p><dl>
1001 <dt><i>title</i> (str)</dt> 749 <dt><i>title</i> (str)</dt>
1002 <dd> 750 <dd>
1003 window title 751 window title
1004 </dd> 752 </dd>
1005 </dl><a NAME="E5PathPicker.text" ID="E5PathPicker.text"></a> 753 </dl><a NAME="E5PathPickerBase.text" ID="E5PathPickerBase.text"></a>
1006 <h4>E5PathPicker.text</h4> 754 <h4>E5PathPickerBase.text</h4>
1007 <b>text</b>(<i></i>) 755 <b>text</b>(<i></i>)
1008 <p> 756 <p>
1009 Public method to get the current path. 757 Public method to get the current path.
1010 </p><dl> 758 </p><dl>
1011 <dt>Returns:</dt> 759 <dt>Returns:</dt>
1015 </dl><dl> 763 </dl><dl>
1016 <dt>Return Type:</dt> 764 <dt>Return Type:</dt>
1017 <dd> 765 <dd>
1018 str 766 str
1019 </dd> 767 </dd>
1020 </dl><a NAME="E5PathPicker.windowTitle" ID="E5PathPicker.windowTitle"></a> 768 </dl><a NAME="E5PathPickerBase.windowTitle" ID="E5PathPickerBase.windowTitle"></a>
1021 <h4>E5PathPicker.windowTitle</h4> 769 <h4>E5PathPickerBase.windowTitle</h4>
1022 <b>windowTitle</b>(<i></i>) 770 <b>windowTitle</b>(<i></i>)
1023 <p> 771 <p>
1024 Public method to get the path picker dialog's window title. 772 Public method to get the path picker dialog's window title.
1025 </p><dl> 773 </p><dl>
1026 <dt>Returns:</dt> 774 <dt>Returns:</dt>

eric ide

mercurial