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>Plugin_Packager_CxFreeze.CxFreeze.CxfreezeConfigDialog</h1> |
23 <h1>Plugin_Packager_CxFreeze.CxFreeze.CxfreezeConfigDialog</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a dialog to enter the parameters for cxfreeze. |
26 Module implementing a dialog to enter the parameters for cxfreeze. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
31 <table> |
34 |
|
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#CxfreezeConfigDialog">CxfreezeConfigDialog</a></td> |
38 <td><a href="#CxfreezeConfigDialog">CxfreezeConfigDialog</a></td> |
34 <td>Class implementing a dialog to enter the parameters for cxfreeze.</td> |
39 <td>Class implementing a dialog to enter the parameters for cxfreeze.</td> |
35 </tr><tr> |
40 </tr> |
|
41 <tr> |
36 <td><a href="#DirFileDialog">DirFileDialog</a></td> |
42 <td><a href="#DirFileDialog">DirFileDialog</a></td> |
37 <td>Derived QFileDialog to select files and folders at once.</td> |
43 <td>Derived QFileDialog to select files and folders at once.</td> |
38 </tr> |
44 </tr> |
39 </table> |
45 </table> |
40 <h3>Functions</h3> |
46 <h3>Functions</h3> |
41 <table> |
47 |
42 <tr><td>None</td></tr> |
48 <table> |
43 </table> |
49 <tr><td>None</td></tr> |
44 <hr /><hr /> |
50 </table> |
|
51 <hr /> |
|
52 <hr /> |
45 <a NAME="CxfreezeConfigDialog" ID="CxfreezeConfigDialog"></a> |
53 <a NAME="CxfreezeConfigDialog" ID="CxfreezeConfigDialog"></a> |
46 <h2>CxfreezeConfigDialog</h2> |
54 <h2>CxfreezeConfigDialog</h2> |
|
55 |
47 <p> |
56 <p> |
48 Class implementing a dialog to enter the parameters for cxfreeze. |
57 Class implementing a dialog to enter the parameters for cxfreeze. |
49 </p> |
58 </p> |
50 <h3>Derived from</h3> |
59 <h3>Derived from</h3> |
51 QDialog, Ui_CxfreezeConfigDialog |
60 QDialog, Ui_CxfreezeConfigDialog |
52 <h3>Class Attributes</h3> |
61 <h3>Class Attributes</h3> |
|
62 |
53 <table> |
63 <table> |
54 <tr><td>None</td></tr> |
64 <tr><td>None</td></tr> |
55 </table> |
65 </table> |
56 <h3>Class Methods</h3> |
66 <h3>Class Methods</h3> |
|
67 |
57 <table> |
68 <table> |
58 <tr><td>None</td></tr> |
69 <tr><td>None</td></tr> |
59 </table> |
70 </table> |
60 <h3>Methods</h3> |
71 <h3>Methods</h3> |
61 <table> |
72 |
|
73 <table> |
|
74 |
62 <tr> |
75 <tr> |
63 <td><a href="#CxfreezeConfigDialog.__init__">CxfreezeConfigDialog</a></td> |
76 <td><a href="#CxfreezeConfigDialog.__init__">CxfreezeConfigDialog</a></td> |
64 <td>Constructor</td> |
77 <td>Constructor</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#CxfreezeConfigDialog.__initializeDefaults">__initializeDefaults</a></td> |
80 <td><a href="#CxfreezeConfigDialog.__initializeDefaults">__initializeDefaults</a></td> |
67 <td>Private method to set the default values.</td> |
81 <td>Private method to set the default values.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#CxfreezeConfigDialog.__splitIt">__splitIt</a></td> |
84 <td><a href="#CxfreezeConfigDialog.__splitIt">__splitIt</a></td> |
70 <td>Private method to split a string observing various conditions.</td> |
85 <td>Private method to split a string observing various conditions.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#CxfreezeConfigDialog.accept">accept</a></td> |
88 <td><a href="#CxfreezeConfigDialog.accept">accept</a></td> |
73 <td>Public method called by the Ok button.</td> |
89 <td>Public method called by the Ok button.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#CxfreezeConfigDialog.generateParameters">generateParameters</a></td> |
92 <td><a href="#CxfreezeConfigDialog.generateParameters">generateParameters</a></td> |
76 <td>Public method that generates the commandline parameters.</td> |
93 <td>Public method that generates the commandline parameters.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#CxfreezeConfigDialog.on_addFileOrFolderButton_clicked">on_addFileOrFolderButton_clicked</a></td> |
96 <td><a href="#CxfreezeConfigDialog.on_addFileOrFolderButton_clicked">on_addFileOrFolderButton_clicked</a></td> |
79 <td>Private slot to add the entered file or directory to the list view.</td> |
97 <td>Private slot to add the entered file or directory to the list view.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#CxfreezeConfigDialog.on_cxfreezeExecCombo_currentIndexChanged">on_cxfreezeExecCombo_currentIndexChanged</a></td> |
100 <td><a href="#CxfreezeConfigDialog.on_cxfreezeExecCombo_currentIndexChanged">on_cxfreezeExecCombo_currentIndexChanged</a></td> |
82 <td>Private slot to handle the selection of a cxfreeze executable.</td> |
101 <td>Private slot to handle the selection of a cxfreeze executable.</td> |
83 </tr><tr> |
102 </tr> |
|
103 <tr> |
84 <td><a href="#CxfreezeConfigDialog.on_deleteSelectedButton_clicked">on_deleteSelectedButton_clicked</a></td> |
104 <td><a href="#CxfreezeConfigDialog.on_deleteSelectedButton_clicked">on_deleteSelectedButton_clicked</a></td> |
85 <td>Private slot to delete the selected entry from the list view.</td> |
105 <td>Private slot to delete the selected entry from the list view.</td> |
86 </tr><tr> |
106 </tr> |
|
107 <tr> |
87 <td><a href="#CxfreezeConfigDialog.on_extListFileButton_clicked">on_extListFileButton_clicked</a></td> |
108 <td><a href="#CxfreezeConfigDialog.on_extListFileButton_clicked">on_extListFileButton_clicked</a></td> |
88 <td>Private slot to select the external list file.</td> |
109 <td>Private slot to select the external list file.</td> |
89 </tr><tr> |
110 </tr> |
|
111 <tr> |
90 <td><a href="#CxfreezeConfigDialog.on_fileOrFolderEdit_textChanged">on_fileOrFolderEdit_textChanged</a></td> |
112 <td><a href="#CxfreezeConfigDialog.on_fileOrFolderEdit_textChanged">on_fileOrFolderEdit_textChanged</a></td> |
91 <td>Private slot to handle the textChanged signal of the directory edit.</td> |
113 <td>Private slot to handle the textChanged signal of the directory edit.</td> |
92 </tr><tr> |
114 </tr> |
|
115 <tr> |
93 <td><a href="#CxfreezeConfigDialog.on_fileOrFolderList_currentRowChanged">on_fileOrFolderList_currentRowChanged</a></td> |
116 <td><a href="#CxfreezeConfigDialog.on_fileOrFolderList_currentRowChanged">on_fileOrFolderList_currentRowChanged</a></td> |
94 <td>Private slot to handle the currentRowChanged signal of the fileOrFolderList.</td> |
117 <td>Private slot to handle the currentRowChanged signal of the fileOrFolderList.</td> |
95 </tr><tr> |
118 </tr> |
|
119 <tr> |
96 <td><a href="#CxfreezeConfigDialog.on_fileOrFolderList_itemDoubleClicked">on_fileOrFolderList_itemDoubleClicked</a></td> |
120 <td><a href="#CxfreezeConfigDialog.on_fileOrFolderList_itemDoubleClicked">on_fileOrFolderList_itemDoubleClicked</a></td> |
97 <td>Private slot to handle the itemDoubleClicked signal of the fileOrFolderList.</td> |
121 <td>Private slot to handle the itemDoubleClicked signal of the fileOrFolderList.</td> |
98 </tr><tr> |
122 </tr> |
|
123 <tr> |
99 <td><a href="#CxfreezeConfigDialog.on_iconFileButton_clicked">on_iconFileButton_clicked</a></td> |
124 <td><a href="#CxfreezeConfigDialog.on_iconFileButton_clicked">on_iconFileButton_clicked</a></td> |
100 <td>Private slot to select an icon.</td> |
125 <td>Private slot to select an icon.</td> |
101 </tr><tr> |
126 </tr> |
|
127 <tr> |
102 <td><a href="#CxfreezeConfigDialog.on_selectFileOrFolderButton_clicked">on_selectFileOrFolderButton_clicked</a></td> |
128 <td><a href="#CxfreezeConfigDialog.on_selectFileOrFolderButton_clicked">on_selectFileOrFolderButton_clicked</a></td> |
103 <td>Private slot to select files or folders.</td> |
129 <td>Private slot to select files or folders.</td> |
104 </tr><tr> |
130 </tr> |
|
131 <tr> |
105 <td><a href="#CxfreezeConfigDialog.on_targetDirButton_clicked">on_targetDirButton_clicked</a></td> |
132 <td><a href="#CxfreezeConfigDialog.on_targetDirButton_clicked">on_targetDirButton_clicked</a></td> |
106 <td>Private slot to select the target directory.</td> |
133 <td>Private slot to select the target directory.</td> |
107 </tr> |
134 </tr> |
108 </table> |
135 </table> |
109 <h3>Static Methods</h3> |
136 <h3>Static Methods</h3> |
110 <table> |
137 |
111 <tr><td>None</td></tr> |
138 <table> |
112 </table> |
139 <tr><td>None</td></tr> |
|
140 </table> |
|
141 |
113 <a NAME="CxfreezeConfigDialog.__init__" ID="CxfreezeConfigDialog.__init__"></a> |
142 <a NAME="CxfreezeConfigDialog.__init__" ID="CxfreezeConfigDialog.__init__"></a> |
114 <h4>CxfreezeConfigDialog (Constructor)</h4> |
143 <h4>CxfreezeConfigDialog (Constructor)</h4> |
115 <b>CxfreezeConfigDialog</b>(<i>project, exe, parms=None, parent=None</i>) |
144 <b>CxfreezeConfigDialog</b>(<i>project, exe, parms=None, parent=None</i>) |
|
145 |
116 <p> |
146 <p> |
117 Constructor |
147 Constructor |
118 </p><dl> |
148 </p> |
|
149 <dl> |
|
150 |
119 <dt><i>project</i></dt> |
151 <dt><i>project</i></dt> |
120 <dd> |
152 <dd> |
121 reference to the project object (Project.Project) |
153 reference to the project object (Project.Project) |
122 </dd><dt><i>exe</i></dt> |
154 </dd> |
|
155 <dt><i>exe</i></dt> |
123 <dd> |
156 <dd> |
124 name of the cxfreeze executable (string) |
157 name of the cxfreeze executable (string) |
125 </dd><dt><i>parms</i></dt> |
158 </dd> |
|
159 <dt><i>parms</i></dt> |
126 <dd> |
160 <dd> |
127 parameters to set in the dialog |
161 parameters to set in the dialog |
128 </dd><dt><i>parent</i></dt> |
162 </dd> |
|
163 <dt><i>parent</i></dt> |
129 <dd> |
164 <dd> |
130 parent widget of this dialog (QWidget) |
165 parent widget of this dialog (QWidget) |
131 </dd> |
166 </dd> |
132 </dl><a NAME="CxfreezeConfigDialog.__initializeDefaults" ID="CxfreezeConfigDialog.__initializeDefaults"></a> |
167 </dl> |
|
168 <a NAME="CxfreezeConfigDialog.__initializeDefaults" ID="CxfreezeConfigDialog.__initializeDefaults"></a> |
133 <h4>CxfreezeConfigDialog.__initializeDefaults</h4> |
169 <h4>CxfreezeConfigDialog.__initializeDefaults</h4> |
134 <b>__initializeDefaults</b>(<i></i>) |
170 <b>__initializeDefaults</b>(<i></i>) |
|
171 |
135 <p> |
172 <p> |
136 Private method to set the default values. |
173 Private method to set the default values. |
137 </p><p> |
174 </p> |
|
175 <p> |
138 These are needed later on to generate the commandline parameters. |
176 These are needed later on to generate the commandline parameters. |
139 </p><a NAME="CxfreezeConfigDialog.__splitIt" ID="CxfreezeConfigDialog.__splitIt"></a> |
177 </p> |
|
178 <a NAME="CxfreezeConfigDialog.__splitIt" ID="CxfreezeConfigDialog.__splitIt"></a> |
140 <h4>CxfreezeConfigDialog.__splitIt</h4> |
179 <h4>CxfreezeConfigDialog.__splitIt</h4> |
141 <b>__splitIt</b>(<i>s, sep</i>) |
180 <b>__splitIt</b>(<i>s, sep</i>) |
|
181 |
142 <p> |
182 <p> |
143 Private method to split a string observing various conditions. |
183 Private method to split a string observing various conditions. |
144 </p><dl> |
184 </p> |
|
185 <dl> |
|
186 |
145 <dt><i>s</i></dt> |
187 <dt><i>s</i></dt> |
146 <dd> |
188 <dd> |
147 string to split (string) |
189 string to split (string) |
148 </dd><dt><i>sep</i></dt> |
190 </dd> |
|
191 <dt><i>sep</i></dt> |
149 <dd> |
192 <dd> |
150 separator string (string) |
193 separator string (string) |
151 </dd> |
194 </dd> |
152 </dl><dl> |
195 </dl> |
|
196 <dl> |
153 <dt>Returns:</dt> |
197 <dt>Returns:</dt> |
154 <dd> |
198 <dd> |
155 list of split values |
199 list of split values |
156 </dd> |
200 </dd> |
157 </dl><a NAME="CxfreezeConfigDialog.accept" ID="CxfreezeConfigDialog.accept"></a> |
201 </dl> |
|
202 <a NAME="CxfreezeConfigDialog.accept" ID="CxfreezeConfigDialog.accept"></a> |
158 <h4>CxfreezeConfigDialog.accept</h4> |
203 <h4>CxfreezeConfigDialog.accept</h4> |
159 <b>accept</b>(<i></i>) |
204 <b>accept</b>(<i></i>) |
|
205 |
160 <p> |
206 <p> |
161 Public method called by the Ok button. |
207 Public method called by the Ok button. |
162 </p><p> |
208 </p> |
|
209 <p> |
163 It saves the values in the parameters dictionary. |
210 It saves the values in the parameters dictionary. |
164 </p><a NAME="CxfreezeConfigDialog.generateParameters" ID="CxfreezeConfigDialog.generateParameters"></a> |
211 </p> |
|
212 <a NAME="CxfreezeConfigDialog.generateParameters" ID="CxfreezeConfigDialog.generateParameters"></a> |
165 <h4>CxfreezeConfigDialog.generateParameters</h4> |
213 <h4>CxfreezeConfigDialog.generateParameters</h4> |
166 <b>generateParameters</b>(<i></i>) |
214 <b>generateParameters</b>(<i></i>) |
|
215 |
167 <p> |
216 <p> |
168 Public method that generates the commandline parameters. |
217 Public method that generates the commandline parameters. |
169 </p><p> |
218 </p> |
|
219 <p> |
170 It generates a list of strings to be used to set the QProcess arguments |
220 It generates a list of strings to be used to set the QProcess arguments |
171 for the cxfreeze call and a list containing the non default parameters. |
221 for the cxfreeze call and a list containing the non default parameters. |
172 The second list can be passed back upon object generation to overwrite |
222 The second list can be passed back upon object generation to overwrite |
173 the default settings. |
223 the default settings. |
174 </p><dl> |
224 </p> |
|
225 <dl> |
175 <dt>Returns:</dt> |
226 <dt>Returns:</dt> |
176 <dd> |
227 <dd> |
177 a tuple of the commandline parameters and non default |
228 a tuple of the commandline parameters and non default |
178 parameters (list of strings, dictionary) |
229 parameters (list of strings, dictionary) |
179 </dd> |
230 </dd> |
180 </dl><a NAME="CxfreezeConfigDialog.on_addFileOrFolderButton_clicked" ID="CxfreezeConfigDialog.on_addFileOrFolderButton_clicked"></a> |
231 </dl> |
|
232 <a NAME="CxfreezeConfigDialog.on_addFileOrFolderButton_clicked" ID="CxfreezeConfigDialog.on_addFileOrFolderButton_clicked"></a> |
181 <h4>CxfreezeConfigDialog.on_addFileOrFolderButton_clicked</h4> |
233 <h4>CxfreezeConfigDialog.on_addFileOrFolderButton_clicked</h4> |
182 <b>on_addFileOrFolderButton_clicked</b>(<i></i>) |
234 <b>on_addFileOrFolderButton_clicked</b>(<i></i>) |
|
235 |
183 <p> |
236 <p> |
184 Private slot to add the entered file or directory to the list view. |
237 Private slot to add the entered file or directory to the list view. |
185 </p><a NAME="CxfreezeConfigDialog.on_cxfreezeExecCombo_currentIndexChanged" ID="CxfreezeConfigDialog.on_cxfreezeExecCombo_currentIndexChanged"></a> |
238 </p> |
|
239 <a NAME="CxfreezeConfigDialog.on_cxfreezeExecCombo_currentIndexChanged" ID="CxfreezeConfigDialog.on_cxfreezeExecCombo_currentIndexChanged"></a> |
186 <h4>CxfreezeConfigDialog.on_cxfreezeExecCombo_currentIndexChanged</h4> |
240 <h4>CxfreezeConfigDialog.on_cxfreezeExecCombo_currentIndexChanged</h4> |
187 <b>on_cxfreezeExecCombo_currentIndexChanged</b>(<i>text</i>) |
241 <b>on_cxfreezeExecCombo_currentIndexChanged</b>(<i>text</i>) |
|
242 |
188 <p> |
243 <p> |
189 Private slot to handle the selection of a cxfreeze executable. |
244 Private slot to handle the selection of a cxfreeze executable. |
190 </p><dl> |
245 </p> |
|
246 <dl> |
|
247 |
191 <dt><i>text</i></dt> |
248 <dt><i>text</i></dt> |
192 <dd> |
249 <dd> |
193 selected cxfreeze executable (string) |
250 selected cxfreeze executable (string) |
194 </dd> |
251 </dd> |
195 </dl><a NAME="CxfreezeConfigDialog.on_deleteSelectedButton_clicked" ID="CxfreezeConfigDialog.on_deleteSelectedButton_clicked"></a> |
252 </dl> |
|
253 <a NAME="CxfreezeConfigDialog.on_deleteSelectedButton_clicked" ID="CxfreezeConfigDialog.on_deleteSelectedButton_clicked"></a> |
196 <h4>CxfreezeConfigDialog.on_deleteSelectedButton_clicked</h4> |
254 <h4>CxfreezeConfigDialog.on_deleteSelectedButton_clicked</h4> |
197 <b>on_deleteSelectedButton_clicked</b>(<i></i>) |
255 <b>on_deleteSelectedButton_clicked</b>(<i></i>) |
|
256 |
198 <p> |
257 <p> |
199 Private slot to delete the selected entry from the list view. |
258 Private slot to delete the selected entry from the list view. |
200 </p><a NAME="CxfreezeConfigDialog.on_extListFileButton_clicked" ID="CxfreezeConfigDialog.on_extListFileButton_clicked"></a> |
259 </p> |
|
260 <a NAME="CxfreezeConfigDialog.on_extListFileButton_clicked" ID="CxfreezeConfigDialog.on_extListFileButton_clicked"></a> |
201 <h4>CxfreezeConfigDialog.on_extListFileButton_clicked</h4> |
261 <h4>CxfreezeConfigDialog.on_extListFileButton_clicked</h4> |
202 <b>on_extListFileButton_clicked</b>(<i></i>) |
262 <b>on_extListFileButton_clicked</b>(<i></i>) |
|
263 |
203 <p> |
264 <p> |
204 Private slot to select the external list file. |
265 Private slot to select the external list file. |
205 </p><p> |
266 </p> |
|
267 <p> |
206 It displays a file selection dialog to select the external list file, |
268 It displays a file selection dialog to select the external list file, |
207 the list of include modules is written to. |
269 the list of include modules is written to. |
208 </p><a NAME="CxfreezeConfigDialog.on_fileOrFolderEdit_textChanged" ID="CxfreezeConfigDialog.on_fileOrFolderEdit_textChanged"></a> |
270 </p> |
|
271 <a NAME="CxfreezeConfigDialog.on_fileOrFolderEdit_textChanged" ID="CxfreezeConfigDialog.on_fileOrFolderEdit_textChanged"></a> |
209 <h4>CxfreezeConfigDialog.on_fileOrFolderEdit_textChanged</h4> |
272 <h4>CxfreezeConfigDialog.on_fileOrFolderEdit_textChanged</h4> |
210 <b>on_fileOrFolderEdit_textChanged</b>(<i>txt</i>) |
273 <b>on_fileOrFolderEdit_textChanged</b>(<i>txt</i>) |
|
274 |
211 <p> |
275 <p> |
212 Private slot to handle the textChanged signal of the directory edit. |
276 Private slot to handle the textChanged signal of the directory edit. |
213 </p><dl> |
277 </p> |
|
278 <dl> |
|
279 |
214 <dt><i>txt</i></dt> |
280 <dt><i>txt</i></dt> |
215 <dd> |
281 <dd> |
216 the text of the directory edit (string) |
282 the text of the directory edit (string) |
217 </dd> |
283 </dd> |
218 </dl><a NAME="CxfreezeConfigDialog.on_fileOrFolderList_currentRowChanged" ID="CxfreezeConfigDialog.on_fileOrFolderList_currentRowChanged"></a> |
284 </dl> |
|
285 <a NAME="CxfreezeConfigDialog.on_fileOrFolderList_currentRowChanged" ID="CxfreezeConfigDialog.on_fileOrFolderList_currentRowChanged"></a> |
219 <h4>CxfreezeConfigDialog.on_fileOrFolderList_currentRowChanged</h4> |
286 <h4>CxfreezeConfigDialog.on_fileOrFolderList_currentRowChanged</h4> |
220 <b>on_fileOrFolderList_currentRowChanged</b>(<i>row</i>) |
287 <b>on_fileOrFolderList_currentRowChanged</b>(<i>row</i>) |
|
288 |
221 <p> |
289 <p> |
222 Private slot to handle the currentRowChanged signal of the |
290 Private slot to handle the currentRowChanged signal of the |
223 fileOrFolderList. |
291 fileOrFolderList. |
224 </p><dl> |
292 </p> |
|
293 <dl> |
|
294 |
225 <dt><i>row</i></dt> |
295 <dt><i>row</i></dt> |
226 <dd> |
296 <dd> |
227 the current row (integer) |
297 the current row (integer) |
228 </dd> |
298 </dd> |
229 </dl><a NAME="CxfreezeConfigDialog.on_fileOrFolderList_itemDoubleClicked" ID="CxfreezeConfigDialog.on_fileOrFolderList_itemDoubleClicked"></a> |
299 </dl> |
|
300 <a NAME="CxfreezeConfigDialog.on_fileOrFolderList_itemDoubleClicked" ID="CxfreezeConfigDialog.on_fileOrFolderList_itemDoubleClicked"></a> |
230 <h4>CxfreezeConfigDialog.on_fileOrFolderList_itemDoubleClicked</h4> |
301 <h4>CxfreezeConfigDialog.on_fileOrFolderList_itemDoubleClicked</h4> |
231 <b>on_fileOrFolderList_itemDoubleClicked</b>(<i>itm</i>) |
302 <b>on_fileOrFolderList_itemDoubleClicked</b>(<i>itm</i>) |
|
303 |
232 <p> |
304 <p> |
233 Private slot to handle the itemDoubleClicked signal of the |
305 Private slot to handle the itemDoubleClicked signal of the |
234 fileOrFolderList. |
306 fileOrFolderList. |
235 </p><dl> |
307 </p> |
|
308 <dl> |
|
309 |
236 <dt><i>itm</i></dt> |
310 <dt><i>itm</i></dt> |
237 <dd> |
311 <dd> |
238 the selected row (QListWidgetItem) |
312 the selected row (QListWidgetItem) |
239 </dd> |
313 </dd> |
240 </dl><a NAME="CxfreezeConfigDialog.on_iconFileButton_clicked" ID="CxfreezeConfigDialog.on_iconFileButton_clicked"></a> |
314 </dl> |
|
315 <a NAME="CxfreezeConfigDialog.on_iconFileButton_clicked" ID="CxfreezeConfigDialog.on_iconFileButton_clicked"></a> |
241 <h4>CxfreezeConfigDialog.on_iconFileButton_clicked</h4> |
316 <h4>CxfreezeConfigDialog.on_iconFileButton_clicked</h4> |
242 <b>on_iconFileButton_clicked</b>(<i></i>) |
317 <b>on_iconFileButton_clicked</b>(<i></i>) |
|
318 |
243 <p> |
319 <p> |
244 Private slot to select an icon. |
320 Private slot to select an icon. |
245 </p><p> |
321 </p> |
|
322 <p> |
246 It displays a file selection dialog to select an icon to |
323 It displays a file selection dialog to select an icon to |
247 include into the executable. |
324 include into the executable. |
248 </p><a NAME="CxfreezeConfigDialog.on_selectFileOrFolderButton_clicked" ID="CxfreezeConfigDialog.on_selectFileOrFolderButton_clicked"></a> |
325 </p> |
|
326 <a NAME="CxfreezeConfigDialog.on_selectFileOrFolderButton_clicked" ID="CxfreezeConfigDialog.on_selectFileOrFolderButton_clicked"></a> |
249 <h4>CxfreezeConfigDialog.on_selectFileOrFolderButton_clicked</h4> |
327 <h4>CxfreezeConfigDialog.on_selectFileOrFolderButton_clicked</h4> |
250 <b>on_selectFileOrFolderButton_clicked</b>(<i></i>) |
328 <b>on_selectFileOrFolderButton_clicked</b>(<i></i>) |
|
329 |
251 <p> |
330 <p> |
252 Private slot to select files or folders. |
331 Private slot to select files or folders. |
253 </p><p> |
332 </p> |
|
333 <p> |
254 It displays a file and directory selection dialog to |
334 It displays a file and directory selection dialog to |
255 select the files and directorys which should copied into |
335 select the files and directorys which should copied into |
256 the distribution folder.. |
336 the distribution folder.. |
257 </p><a NAME="CxfreezeConfigDialog.on_targetDirButton_clicked" ID="CxfreezeConfigDialog.on_targetDirButton_clicked"></a> |
337 </p> |
|
338 <a NAME="CxfreezeConfigDialog.on_targetDirButton_clicked" ID="CxfreezeConfigDialog.on_targetDirButton_clicked"></a> |
258 <h4>CxfreezeConfigDialog.on_targetDirButton_clicked</h4> |
339 <h4>CxfreezeConfigDialog.on_targetDirButton_clicked</h4> |
259 <b>on_targetDirButton_clicked</b>(<i></i>) |
340 <b>on_targetDirButton_clicked</b>(<i></i>) |
|
341 |
260 <p> |
342 <p> |
261 Private slot to select the target directory. |
343 Private slot to select the target directory. |
262 </p><p> |
344 </p> |
|
345 <p> |
263 It displays a directory selection dialog to |
346 It displays a directory selection dialog to |
264 select the directory the files are written to. |
347 select the directory the files are written to. |
265 </p> |
348 </p> |
266 <div align="right"><a href="#top">Up</a></div> |
349 <div align="right"><a href="#top">Up</a></div> |
267 <hr /><hr /> |
350 <hr /> |
|
351 <hr /> |
268 <a NAME="DirFileDialog" ID="DirFileDialog"></a> |
352 <a NAME="DirFileDialog" ID="DirFileDialog"></a> |
269 <h2>DirFileDialog</h2> |
353 <h2>DirFileDialog</h2> |
|
354 |
270 <p> |
355 <p> |
271 Derived QFileDialog to select files and folders at once. |
356 Derived QFileDialog to select files and folders at once. |
272 </p><p> |
357 </p> |
|
358 <p> |
273 For this purpose the none native filedialog is used. |
359 For this purpose the none native filedialog is used. |
274 </p> |
360 </p> |
275 <h3>Derived from</h3> |
361 <h3>Derived from</h3> |
276 QFileDialog |
362 QFileDialog |
277 <h3>Class Attributes</h3> |
363 <h3>Class Attributes</h3> |
|
364 |
278 <table> |
365 <table> |
279 <tr><td>None</td></tr> |
366 <tr><td>None</td></tr> |
280 </table> |
367 </table> |
281 <h3>Class Methods</h3> |
368 <h3>Class Methods</h3> |
|
369 |
282 <table> |
370 <table> |
283 <tr><td>None</td></tr> |
371 <tr><td>None</td></tr> |
284 </table> |
372 </table> |
285 <h3>Methods</h3> |
373 <h3>Methods</h3> |
286 <table> |
374 |
|
375 <table> |
|
376 |
287 <tr> |
377 <tr> |
288 <td><a href="#DirFileDialog.__init__">DirFileDialog</a></td> |
378 <td><a href="#DirFileDialog.__init__">DirFileDialog</a></td> |
289 <td>Constructor</td> |
379 <td>Constructor</td> |
290 </tr><tr> |
380 </tr> |
|
381 <tr> |
291 <td><a href="#DirFileDialog.accept">accept</a></td> |
382 <td><a href="#DirFileDialog.accept">accept</a></td> |
292 <td>Public method to update the list with the selected files and folders.</td> |
383 <td>Public method to update the list with the selected files and folders.</td> |
293 </tr><tr> |
384 </tr> |
|
385 <tr> |
294 <td><a href="#DirFileDialog.exec_">exec_</a></td> |
386 <td><a href="#DirFileDialog.exec_">exec_</a></td> |
295 <td>Public slot to finalize initialisation and start the event loop.</td> |
387 <td>Public slot to finalize initialisation and start the event loop.</td> |
296 </tr><tr> |
388 </tr> |
|
389 <tr> |
297 <td><a href="#DirFileDialog.on_directoryEntered">on_directoryEntered</a></td> |
390 <td><a href="#DirFileDialog.on_directoryEntered">on_directoryEntered</a></td> |
298 <td>Private method to reset selections if another directory was entered.</td> |
391 <td>Private method to reset selections if another directory was entered.</td> |
299 </tr><tr> |
392 </tr> |
|
393 <tr> |
300 <td><a href="#DirFileDialog.on_selectionChanged">on_selectionChanged</a></td> |
394 <td><a href="#DirFileDialog.on_selectionChanged">on_selectionChanged</a></td> |
301 <td>Private method to determine the selected files and folders and update the line edit.</td> |
395 <td>Private method to determine the selected files and folders and update the line edit.</td> |
302 </tr> |
396 </tr> |
303 </table> |
397 </table> |
304 <h3>Static Methods</h3> |
398 <h3>Static Methods</h3> |
305 <table> |
399 |
|
400 <table> |
|
401 |
306 <tr> |
402 <tr> |
307 <td><a href="#DirFileDialog.getOpenFileNames">getOpenFileNames</a></td> |
403 <td><a href="#DirFileDialog.getOpenFileNames">getOpenFileNames</a></td> |
308 <td>Static method to get the names of files and folders for opening it.</td> |
404 <td>Static method to get the names of files and folders for opening it.</td> |
309 </tr> |
405 </tr> |
310 </table> |
406 </table> |
|
407 |
311 <a NAME="DirFileDialog.__init__" ID="DirFileDialog.__init__"></a> |
408 <a NAME="DirFileDialog.__init__" ID="DirFileDialog.__init__"></a> |
312 <h4>DirFileDialog (Constructor)</h4> |
409 <h4>DirFileDialog (Constructor)</h4> |
313 <b>DirFileDialog</b>(<i>parent=None, caption="", directory="", fileFilter=""</i>) |
410 <b>DirFileDialog</b>(<i>parent=None, caption="", directory="", fileFilter=""</i>) |
|
411 |
314 <p> |
412 <p> |
315 Constructor |
413 Constructor |
316 </p><dl> |
414 </p> |
|
415 <dl> |
|
416 |
317 <dt><i>parent</i></dt> |
417 <dt><i>parent</i></dt> |
318 <dd> |
418 <dd> |
319 parent widget of the dialog (QWidget) |
419 parent widget of the dialog (QWidget) |
320 </dd><dt><i>caption</i></dt> |
420 </dd> |
|
421 <dt><i>caption</i></dt> |
321 <dd> |
422 <dd> |
322 window title of the dialog (string) |
423 window title of the dialog (string) |
323 </dd><dt><i>directory</i></dt> |
424 </dd> |
|
425 <dt><i>directory</i></dt> |
324 <dd> |
426 <dd> |
325 working directory of the dialog (string) |
427 working directory of the dialog (string) |
326 </dd><dt><i>fileFilter</i></dt> |
428 </dd> |
|
429 <dt><i>fileFilter</i></dt> |
327 <dd> |
430 <dd> |
328 filter string for the dialog (string) |
431 filter string for the dialog (string) |
329 </dd> |
432 </dd> |
330 </dl><a NAME="DirFileDialog.accept" ID="DirFileDialog.accept"></a> |
433 </dl> |
|
434 <a NAME="DirFileDialog.accept" ID="DirFileDialog.accept"></a> |
331 <h4>DirFileDialog.accept</h4> |
435 <h4>DirFileDialog.accept</h4> |
332 <b>accept</b>(<i></i>) |
436 <b>accept</b>(<i></i>) |
|
437 |
333 <p> |
438 <p> |
334 Public method to update the list with the selected files and folders. |
439 Public method to update the list with the selected files and folders. |
335 </p><a NAME="DirFileDialog.exec_" ID="DirFileDialog.exec_"></a> |
440 </p> |
|
441 <a NAME="DirFileDialog.exec_" ID="DirFileDialog.exec_"></a> |
336 <h4>DirFileDialog.exec_</h4> |
442 <h4>DirFileDialog.exec_</h4> |
337 <b>exec_</b>(<i></i>) |
443 <b>exec_</b>(<i></i>) |
|
444 |
338 <p> |
445 <p> |
339 Public slot to finalize initialisation and start the event loop. |
446 Public slot to finalize initialisation and start the event loop. |
340 </p><dl> |
447 </p> |
|
448 <dl> |
341 <dt>Returns:</dt> |
449 <dt>Returns:</dt> |
342 <dd> |
450 <dd> |
343 accepted or rejected (QDialog.DialogCode) |
451 accepted or rejected (QDialog.DialogCode) |
344 </dd> |
452 </dd> |
345 </dl><a NAME="DirFileDialog.on_directoryEntered" ID="DirFileDialog.on_directoryEntered"></a> |
453 </dl> |
|
454 <a NAME="DirFileDialog.on_directoryEntered" ID="DirFileDialog.on_directoryEntered"></a> |
346 <h4>DirFileDialog.on_directoryEntered</h4> |
455 <h4>DirFileDialog.on_directoryEntered</h4> |
347 <b>on_directoryEntered</b>(<i>directory</i>) |
456 <b>on_directoryEntered</b>(<i>directory</i>) |
|
457 |
348 <p> |
458 <p> |
349 Private method to reset selections if another directory was entered. |
459 Private method to reset selections if another directory was entered. |
350 </p><dl> |
460 </p> |
|
461 <dl> |
|
462 |
351 <dt><i>directory</i></dt> |
463 <dt><i>directory</i></dt> |
352 <dd> |
464 <dd> |
353 name of the directory entered (string) |
465 name of the directory entered (string) |
354 </dd> |
466 </dd> |
355 </dl><a NAME="DirFileDialog.on_selectionChanged" ID="DirFileDialog.on_selectionChanged"></a> |
467 </dl> |
|
468 <a NAME="DirFileDialog.on_selectionChanged" ID="DirFileDialog.on_selectionChanged"></a> |
356 <h4>DirFileDialog.on_selectionChanged</h4> |
469 <h4>DirFileDialog.on_selectionChanged</h4> |
357 <b>on_selectionChanged</b>(<i>selected, deselected</i>) |
470 <b>on_selectionChanged</b>(<i>selected, deselected</i>) |
|
471 |
358 <p> |
472 <p> |
359 Private method to determine the selected files and folders and update |
473 Private method to determine the selected files and folders and update |
360 the line edit. |
474 the line edit. |
361 </p><dl> |
475 </p> |
|
476 <dl> |
|
477 |
362 <dt><i>selected</i></dt> |
478 <dt><i>selected</i></dt> |
363 <dd> |
479 <dd> |
364 newly selected entries (QItemSelection) |
480 newly selected entries (QItemSelection) |
365 </dd><dt><i>deselected</i></dt> |
481 </dd> |
|
482 <dt><i>deselected</i></dt> |
366 <dd> |
483 <dd> |
367 deselected entries (QItemSelection) |
484 deselected entries (QItemSelection) |
368 </dd> |
485 </dd> |
369 </dl><a NAME="DirFileDialog.getOpenFileNames" ID="DirFileDialog.getOpenFileNames"></a> |
486 </dl> |
|
487 <a NAME="DirFileDialog.getOpenFileNames" ID="DirFileDialog.getOpenFileNames"></a> |
370 <h4>DirFileDialog.getOpenFileNames (static)</h4> |
488 <h4>DirFileDialog.getOpenFileNames (static)</h4> |
371 <b>getOpenFileNames</b>(<i>caption="", directory="", fileFilter="", options=None</i>) |
489 <b>getOpenFileNames</b>(<i>caption="", directory="", fileFilter="", options=None</i>) |
|
490 |
372 <p> |
491 <p> |
373 Static method to get the names of files and folders for opening it. |
492 Static method to get the names of files and folders for opening it. |
374 </p><dl> |
493 </p> |
|
494 <dl> |
|
495 |
375 <dt><i>parent</i></dt> |
496 <dt><i>parent</i></dt> |
376 <dd> |
497 <dd> |
377 parent widget of the dialog (QWidget) |
498 parent widget of the dialog (QWidget) |
378 </dd><dt><i>caption</i></dt> |
499 </dd> |
|
500 <dt><i>caption</i></dt> |
379 <dd> |
501 <dd> |
380 window title of the dialog (string) |
502 window title of the dialog (string) |
381 </dd><dt><i>directory</i></dt> |
503 </dd> |
|
504 <dt><i>directory</i></dt> |
382 <dd> |
505 <dd> |
383 working directory of the dialog (string) |
506 working directory of the dialog (string) |
384 </dd><dt><i>fileFilter</i></dt> |
507 </dd> |
|
508 <dt><i>fileFilter</i></dt> |
385 <dd> |
509 <dd> |
386 filter string for the dialog (string) |
510 filter string for the dialog (string) |
387 </dd><dt><i>options</i></dt> |
511 </dd> |
|
512 <dt><i>options</i></dt> |
388 <dd> |
513 <dd> |
389 various options for the dialog (QFileDialog.Options) |
514 various options for the dialog (QFileDialog.Options) |
390 </dd> |
515 </dd> |
391 </dl><dl> |
516 </dl> |
|
517 <dl> |
392 <dt>Returns:</dt> |
518 <dt>Returns:</dt> |
393 <dd> |
519 <dd> |
394 names of the selected files and folders (list of strings) |
520 names of the selected files and folders (list of strings) |
395 </dd> |
521 </dd> |
396 </dl> |
522 </dl> |