src/eric7/Documentation/Source/eric7.EricWidgets.EricDirFileDialog.html

branch
eric7
changeset 10479
856476537696
parent 9239
3c605ab5a8c7
child 10689
3ede487187f2
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.EricWidgets.EricDirFileDialog</h1> 9 <h1>eric7.EricWidgets.EricDirFileDialog</h1>
10
11 <p> 10 <p>
12 Module implementing a dialog to select files and directories simultaneously. 11 Module implementing a dialog to select files and directories simultaneously.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15 15 <table>
16 <table> 16 <tr><td>None</td></tr>
17 <tr><td>None</td></tr> 17 </table>
18 </table> 18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#EricDirFileDialog">EricDirFileDialog</a></td> 22 <td><a href="#EricDirFileDialog">EricDirFileDialog</a></td>
25 <td>Derived QFileDialog to select files and directories simultaneously.</td> 23 <td>Derived QFileDialog to select files and directories simultaneously.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29 28 <table>
30 <table> 29 <tr><td>None</td></tr>
31 <tr><td>None</td></tr> 30 </table>
32 </table> 31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="EricDirFileDialog" ID="EricDirFileDialog"></a> 34 <a NAME="EricDirFileDialog" ID="EricDirFileDialog"></a>
36 <h2>EricDirFileDialog</h2> 35 <h2>EricDirFileDialog</h2>
37
38 <p> 36 <p>
39 Derived QFileDialog to select files and directories simultaneously. 37 Derived QFileDialog to select files and directories simultaneously.
40 </p> 38 </p>
41 <p> 39 <p>
42 For this purpose the none native file dialog is used. 40 For this purpose the none native file dialog is used.
43 </p> 41 </p>
42
44 <h3>Derived from</h3> 43 <h3>Derived from</h3>
45 QFileDialog 44 QFileDialog
46 <h3>Class Attributes</h3> 45 <h3>Class Attributes</h3>
47 46 <table>
48 <table> 47 <tr><td>None</td></tr>
49 <tr><td>None</td></tr> 48 </table>
50 </table> 49
51 <h3>Class Methods</h3> 50 <h3>Class Methods</h3>
52 51 <table>
53 <table> 52 <tr><td>None</td></tr>
54 <tr><td>None</td></tr> 53 </table>
55 </table> 54
56 <h3>Methods</h3> 55 <h3>Methods</h3>
57 56 <table>
58 <table>
59
60 <tr> 57 <tr>
61 <td><a href="#EricDirFileDialog.__init__">EricDirFileDialog</a></td> 58 <td><a href="#EricDirFileDialog.__init__">EricDirFileDialog</a></td>
62 <td>Constructor</td> 59 <td>Constructor</td>
63 </tr> 60 </tr>
64 <tr> 61 <tr>
76 <tr> 73 <tr>
77 <td><a href="#EricDirFileDialog.on_selectionChanged">on_selectionChanged</a></td> 74 <td><a href="#EricDirFileDialog.on_selectionChanged">on_selectionChanged</a></td>
78 <td>Private method to determine the selected files and folders and update the line edit.</td> 75 <td>Private method to determine the selected files and folders and update the line edit.</td>
79 </tr> 76 </tr>
80 </table> 77 </table>
78
81 <h3>Static Methods</h3> 79 <h3>Static Methods</h3>
82 80 <table>
83 <table>
84
85 <tr> 81 <tr>
86 <td><a href="#EricDirFileDialog.getOpenFileAndDirNames">getOpenFileAndDirNames</a></td> 82 <td><a href="#EricDirFileDialog.getOpenFileAndDirNames">getOpenFileAndDirNames</a></td>
87 <td>Static method to get the names of files and directories for opening it.</td> 83 <td>Static method to get the names of files and directories for opening it.</td>
88 </tr> 84 </tr>
89 <tr> 85 <tr>
90 <td><a href="#EricDirFileDialog.getOpenFileAndDirPaths">getOpenFileAndDirPaths</a></td> 86 <td><a href="#EricDirFileDialog.getOpenFileAndDirPaths">getOpenFileAndDirPaths</a></td>
91 <td>Static method to get the paths of files and directories for opening it.</td> 87 <td>Static method to get the paths of files and directories for opening it.</td>
92 </tr> 88 </tr>
93 </table> 89 </table>
90
94 91
95 <a NAME="EricDirFileDialog.__init__" ID="EricDirFileDialog.__init__"></a> 92 <a NAME="EricDirFileDialog.__init__" ID="EricDirFileDialog.__init__"></a>
96 <h4>EricDirFileDialog (Constructor)</h4> 93 <h4>EricDirFileDialog (Constructor)</h4>
97 <b>EricDirFileDialog</b>(<i>parent=None, caption="", directory="", filterStr=""</i>) 94 <b>EricDirFileDialog</b>(<i>parent=None, caption="", directory="", filterStr=""</i>)
98
99 <p> 95 <p>
100 Constructor 96 Constructor
101 </p> 97 </p>
98
102 <dl> 99 <dl>
103 100
104 <dt><i>parent</i> (QWidget)</dt> 101 <dt><i>parent</i> (QWidget)</dt>
105 <dd> 102 <dd>
106 parent widget of the dialog 103 parent widget of the dialog
119 </dd> 116 </dd>
120 </dl> 117 </dl>
121 <a NAME="EricDirFileDialog.accept" ID="EricDirFileDialog.accept"></a> 118 <a NAME="EricDirFileDialog.accept" ID="EricDirFileDialog.accept"></a>
122 <h4>EricDirFileDialog.accept</h4> 119 <h4>EricDirFileDialog.accept</h4>
123 <b>accept</b>(<i></i>) 120 <b>accept</b>(<i></i>)
124
125 <p> 121 <p>
126 Public slot to update the list with the selected files and folders. 122 Public slot to update the list with the selected files and folders.
127 </p> 123 </p>
124
128 <a NAME="EricDirFileDialog.exec" ID="EricDirFileDialog.exec"></a> 125 <a NAME="EricDirFileDialog.exec" ID="EricDirFileDialog.exec"></a>
129 <h4>EricDirFileDialog.exec</h4> 126 <h4>EricDirFileDialog.exec</h4>
130 <b>exec</b>(<i></i>) 127 <b>exec</b>(<i></i>)
131
132 <p> 128 <p>
133 Public slot to finalize initialization and start the event loop. 129 Public slot to finalize initialization and start the event loop.
134 </p> 130 </p>
131
135 <dl> 132 <dl>
136 <dt>Return:</dt> 133 <dt>Return:</dt>
137 <dd> 134 <dd>
138 accepted or rejected 135 accepted or rejected
139 </dd> 136 </dd>
145 </dd> 142 </dd>
146 </dl> 143 </dl>
147 <a NAME="EricDirFileDialog.on_directoryEntered" ID="EricDirFileDialog.on_directoryEntered"></a> 144 <a NAME="EricDirFileDialog.on_directoryEntered" ID="EricDirFileDialog.on_directoryEntered"></a>
148 <h4>EricDirFileDialog.on_directoryEntered</h4> 145 <h4>EricDirFileDialog.on_directoryEntered</h4>
149 <b>on_directoryEntered</b>(<i>directory</i>) 146 <b>on_directoryEntered</b>(<i>directory</i>)
150
151 <p> 147 <p>
152 Private slot to reset selections if another directory was entered. 148 Private slot to reset selections if another directory was entered.
153 </p> 149 </p>
150
154 <dl> 151 <dl>
155 152
156 <dt><i>directory</i> (str)</dt> 153 <dt><i>directory</i> (str)</dt>
157 <dd> 154 <dd>
158 name of the directory entered 155 name of the directory entered
159 </dd> 156 </dd>
160 </dl> 157 </dl>
161 <a NAME="EricDirFileDialog.on_selectionChanged" ID="EricDirFileDialog.on_selectionChanged"></a> 158 <a NAME="EricDirFileDialog.on_selectionChanged" ID="EricDirFileDialog.on_selectionChanged"></a>
162 <h4>EricDirFileDialog.on_selectionChanged</h4> 159 <h4>EricDirFileDialog.on_selectionChanged</h4>
163 <b>on_selectionChanged</b>(<i>selected, deselected</i>) 160 <b>on_selectionChanged</b>(<i>selected, deselected</i>)
164
165 <p> 161 <p>
166 Private method to determine the selected files and folders and update 162 Private method to determine the selected files and folders and update
167 the line edit. 163 the line edit.
168 </p> 164 </p>
165
169 <dl> 166 <dl>
170 167
171 <dt><i>selected</i> (QItemSelection)</dt> 168 <dt><i>selected</i> (QItemSelection)</dt>
172 <dd> 169 <dd>
173 newly selected entries 170 newly selected entries
178 </dd> 175 </dd>
179 </dl> 176 </dl>
180 <a NAME="EricDirFileDialog.getOpenFileAndDirNames" ID="EricDirFileDialog.getOpenFileAndDirNames"></a> 177 <a NAME="EricDirFileDialog.getOpenFileAndDirNames" ID="EricDirFileDialog.getOpenFileAndDirNames"></a>
181 <h4>EricDirFileDialog.getOpenFileAndDirNames (static)</h4> 178 <h4>EricDirFileDialog.getOpenFileAndDirNames (static)</h4>
182 <b>getOpenFileAndDirNames</b>(<i>caption="", directory="", filterStr="", options=None</i>) 179 <b>getOpenFileAndDirNames</b>(<i>caption="", directory="", filterStr="", options=None</i>)
183
184 <p> 180 <p>
185 Static method to get the names of files and directories for opening it. 181 Static method to get the names of files and directories for opening it.
186 </p> 182 </p>
183
187 <dl> 184 <dl>
188 185
189 <dt><i>parent</i> (QWidget)</dt> 186 <dt><i>parent</i> (QWidget)</dt>
190 <dd> 187 <dd>
191 parent widget of the dialog 188 parent widget of the dialog
220 </dd> 217 </dd>
221 </dl> 218 </dl>
222 <a NAME="EricDirFileDialog.getOpenFileAndDirPaths" ID="EricDirFileDialog.getOpenFileAndDirPaths"></a> 219 <a NAME="EricDirFileDialog.getOpenFileAndDirPaths" ID="EricDirFileDialog.getOpenFileAndDirPaths"></a>
223 <h4>EricDirFileDialog.getOpenFileAndDirPaths (static)</h4> 220 <h4>EricDirFileDialog.getOpenFileAndDirPaths (static)</h4>
224 <b>getOpenFileAndDirPaths</b>(<i>caption="", directory="", filterStr="", options=None</i>) 221 <b>getOpenFileAndDirPaths</b>(<i>caption="", directory="", filterStr="", options=None</i>)
225
226 <p> 222 <p>
227 Static method to get the paths of files and directories for opening it. 223 Static method to get the paths of files and directories for opening it.
228 </p> 224 </p>
225
229 <dl> 226 <dl>
230 227
231 <dt><i>parent</i> (QWidget)</dt> 228 <dt><i>parent</i> (QWidget)</dt>
232 <dd> 229 <dd>
233 parent widget of the dialog 230 parent widget of the dialog

eric ide

mercurial