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>Plugin_Project_Django.ProjectDjango.DjangoMigrationsListDialog</h1> |
9 <h1>Plugin_Project_Django.ProjectDjango.DjangoMigrationsListDialog</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a dialog show a list of all available migrations. |
11 Module implementing a dialog show a list of all available migrations. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
|
16 <table> |
15 <table> |
17 <tr><td>None</td></tr> |
16 <tr><td>None</td></tr> |
18 </table> |
17 </table> |
|
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#DjangoMigrationsListDialog">DjangoMigrationsListDialog</a></td> |
22 <td><a href="#DjangoMigrationsListDialog">DjangoMigrationsListDialog</a></td> |
25 <td>Class implementing a dialog show a list of all available migrations.</td> |
23 <td>Class implementing a dialog show a list of all available migrations.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
|
30 <table> |
28 <table> |
31 <tr><td>None</td></tr> |
29 <tr><td>None</td></tr> |
32 </table> |
30 </table> |
|
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="DjangoMigrationsListDialog" ID="DjangoMigrationsListDialog"></a> |
34 <a NAME="DjangoMigrationsListDialog" ID="DjangoMigrationsListDialog"></a> |
36 <h2>DjangoMigrationsListDialog</h2> |
35 <h2>DjangoMigrationsListDialog</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing a dialog show a list of all available migrations. |
37 Class implementing a dialog show a list of all available migrations. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Derived from</h3> |
40 <h3>Derived from</h3> |
42 QDialog, Ui_DjangoMigrationsListDialog |
41 QDialog, Ui_DjangoMigrationsListDialog |
43 <h3>Class Attributes</h3> |
42 <h3>Class Attributes</h3> |
44 |
43 <table> |
45 <table> |
44 <tr><td>MigrationsListMode</td></tr> |
46 <tr><td>MigrationsListMode</td></tr><tr><td>MigrationsPlanMode</td></tr> |
45 <tr><td>MigrationsPlanMode</td></tr> |
47 </table> |
46 </table> |
|
47 |
48 <h3>Class Methods</h3> |
48 <h3>Class Methods</h3> |
49 |
|
50 <table> |
49 <table> |
51 <tr><td>None</td></tr> |
50 <tr><td>None</td></tr> |
52 </table> |
51 </table> |
|
52 |
53 <h3>Methods</h3> |
53 <h3>Methods</h3> |
54 |
54 <table> |
55 <table> |
|
56 |
|
57 <tr> |
55 <tr> |
58 <td><a href="#DjangoMigrationsListDialog.__init__">DjangoMigrationsListDialog</a></td> |
56 <td><a href="#DjangoMigrationsListDialog.__init__">DjangoMigrationsListDialog</a></td> |
59 <td>Constructor</td> |
57 <td>Constructor</td> |
60 </tr> |
58 </tr> |
61 <tr> |
59 <tr> |
148 </dd> |
147 </dd> |
149 </dl> |
148 </dl> |
150 <a NAME="DjangoMigrationsListDialog.__applyAllMigrations" ID="DjangoMigrationsListDialog.__applyAllMigrations"></a> |
149 <a NAME="DjangoMigrationsListDialog.__applyAllMigrations" ID="DjangoMigrationsListDialog.__applyAllMigrations"></a> |
151 <h4>DjangoMigrationsListDialog.__applyAllMigrations</h4> |
150 <h4>DjangoMigrationsListDialog.__applyAllMigrations</h4> |
152 <b>__applyAllMigrations</b>(<i></i>) |
151 <b>__applyAllMigrations</b>(<i></i>) |
153 |
|
154 <p> |
152 <p> |
155 Private slot to apply all migrations. |
153 Private slot to apply all migrations. |
156 </p> |
154 </p> |
|
155 |
157 <a NAME="DjangoMigrationsListDialog.__applyMigration" ID="DjangoMigrationsListDialog.__applyMigration"></a> |
156 <a NAME="DjangoMigrationsListDialog.__applyMigration" ID="DjangoMigrationsListDialog.__applyMigration"></a> |
158 <h4>DjangoMigrationsListDialog.__applyMigration</h4> |
157 <h4>DjangoMigrationsListDialog.__applyMigration</h4> |
159 <b>__applyMigration</b>(<i></i>) |
158 <b>__applyMigration</b>(<i></i>) |
160 |
|
161 <p> |
159 <p> |
162 Private slot to apply the selected migrations. |
160 Private slot to apply the selected migrations. |
163 </p> |
161 </p> |
|
162 |
164 <a NAME="DjangoMigrationsListDialog.__createListItem" ID="DjangoMigrationsListDialog.__createListItem"></a> |
163 <a NAME="DjangoMigrationsListDialog.__createListItem" ID="DjangoMigrationsListDialog.__createListItem"></a> |
165 <h4>DjangoMigrationsListDialog.__createListItem</h4> |
164 <h4>DjangoMigrationsListDialog.__createListItem</h4> |
166 <b>__createListItem</b>(<i>line</i>) |
165 <b>__createListItem</b>(<i>line</i>) |
167 |
|
168 <p> |
166 <p> |
169 Private method to create an item for list mode. |
167 Private method to create an item for list mode. |
170 </p> |
168 </p> |
|
169 |
171 <dl> |
170 <dl> |
172 |
171 |
173 <dt><i>line</i> (str)</dt> |
172 <dt><i>line</i> (str)</dt> |
174 <dd> |
173 <dd> |
175 line of text |
174 line of text |
176 </dd> |
175 </dd> |
177 </dl> |
176 </dl> |
178 <a NAME="DjangoMigrationsListDialog.__createPlanItem" ID="DjangoMigrationsListDialog.__createPlanItem"></a> |
177 <a NAME="DjangoMigrationsListDialog.__createPlanItem" ID="DjangoMigrationsListDialog.__createPlanItem"></a> |
179 <h4>DjangoMigrationsListDialog.__createPlanItem</h4> |
178 <h4>DjangoMigrationsListDialog.__createPlanItem</h4> |
180 <b>__createPlanItem</b>(<i>line</i>) |
179 <b>__createPlanItem</b>(<i>line</i>) |
181 |
|
182 <p> |
180 <p> |
183 Private method to create an item for plan mode. |
181 Private method to create an item for plan mode. |
184 </p> |
182 </p> |
|
183 |
185 <dl> |
184 <dl> |
186 |
185 |
187 <dt><i>line</i> (str)</dt> |
186 <dt><i>line</i> (str)</dt> |
188 <dd> |
187 <dd> |
189 line of text |
188 line of text |
190 </dd> |
189 </dd> |
191 </dl> |
190 </dl> |
192 <a NAME="DjangoMigrationsListDialog.__finish" ID="DjangoMigrationsListDialog.__finish"></a> |
191 <a NAME="DjangoMigrationsListDialog.__finish" ID="DjangoMigrationsListDialog.__finish"></a> |
193 <h4>DjangoMigrationsListDialog.__finish</h4> |
192 <h4>DjangoMigrationsListDialog.__finish</h4> |
194 <b>__finish</b>(<i></i>) |
193 <b>__finish</b>(<i></i>) |
195 |
|
196 <p> |
194 <p> |
197 Private slot called when the process finished or the user pressed the |
195 Private slot called when the process finished or the user pressed the |
198 button. |
196 button. |
199 </p> |
197 </p> |
|
198 |
200 <a NAME="DjangoMigrationsListDialog.__makeMigrations" ID="DjangoMigrationsListDialog.__makeMigrations"></a> |
199 <a NAME="DjangoMigrationsListDialog.__makeMigrations" ID="DjangoMigrationsListDialog.__makeMigrations"></a> |
201 <h4>DjangoMigrationsListDialog.__makeMigrations</h4> |
200 <h4>DjangoMigrationsListDialog.__makeMigrations</h4> |
202 <b>__makeMigrations</b>(<i>dryRun=False, empty=False</i>) |
201 <b>__makeMigrations</b>(<i>dryRun=False, empty=False</i>) |
203 |
|
204 <p> |
202 <p> |
205 Private slot to make migrations for the selected apps. |
203 Private slot to make migrations for the selected apps. |
206 </p> |
204 </p> |
|
205 |
207 <dl> |
206 <dl> |
208 |
207 |
209 <dt><i>dryRun</i> (bool)</dt> |
208 <dt><i>dryRun</i> (bool)</dt> |
210 <dd> |
209 <dd> |
211 flag indicating a dry-run |
210 flag indicating a dry-run |
234 </dd> |
233 </dd> |
235 </dl> |
234 </dl> |
236 <a NAME="DjangoMigrationsListDialog.__readStderr" ID="DjangoMigrationsListDialog.__readStderr"></a> |
235 <a NAME="DjangoMigrationsListDialog.__readStderr" ID="DjangoMigrationsListDialog.__readStderr"></a> |
237 <h4>DjangoMigrationsListDialog.__readStderr</h4> |
236 <h4>DjangoMigrationsListDialog.__readStderr</h4> |
238 <b>__readStderr</b>(<i></i>) |
237 <b>__readStderr</b>(<i></i>) |
239 |
|
240 <p> |
238 <p> |
241 Private slot to handle the readyReadStderr signal. |
239 Private slot to handle the readyReadStderr signal. |
242 </p> |
240 </p> |
243 <p> |
241 <p> |
244 It reads the error output of the process and inserts it into the |
242 It reads the error output of the process and inserts it into the |
245 error pane. |
243 error pane. |
246 </p> |
244 </p> |
|
245 |
247 <a NAME="DjangoMigrationsListDialog.__readStdout" ID="DjangoMigrationsListDialog.__readStdout"></a> |
246 <a NAME="DjangoMigrationsListDialog.__readStdout" ID="DjangoMigrationsListDialog.__readStdout"></a> |
248 <h4>DjangoMigrationsListDialog.__readStdout</h4> |
247 <h4>DjangoMigrationsListDialog.__readStdout</h4> |
249 <b>__readStdout</b>(<i></i>) |
248 <b>__readStdout</b>(<i></i>) |
250 |
|
251 <p> |
249 <p> |
252 Private slot to handle the readyReadStdout signal. |
250 Private slot to handle the readyReadStdout signal. |
253 </p> |
251 </p> |
254 <p> |
252 <p> |
255 It reads the output of the process, formats it and inserts it into |
253 It reads the output of the process, formats it and inserts it into |
256 the contents pane. |
254 the contents pane. |
257 </p> |
255 </p> |
|
256 |
258 <a NAME="DjangoMigrationsListDialog.__resizeColumns" ID="DjangoMigrationsListDialog.__resizeColumns"></a> |
257 <a NAME="DjangoMigrationsListDialog.__resizeColumns" ID="DjangoMigrationsListDialog.__resizeColumns"></a> |
259 <h4>DjangoMigrationsListDialog.__resizeColumns</h4> |
258 <h4>DjangoMigrationsListDialog.__resizeColumns</h4> |
260 <b>__resizeColumns</b>(<i></i>) |
259 <b>__resizeColumns</b>(<i></i>) |
261 |
|
262 <p> |
260 <p> |
263 Private method to resize the list columns. |
261 Private method to resize the list columns. |
264 </p> |
262 </p> |
|
263 |
265 <a NAME="DjangoMigrationsListDialog.__unapplyMigration" ID="DjangoMigrationsListDialog.__unapplyMigration"></a> |
264 <a NAME="DjangoMigrationsListDialog.__unapplyMigration" ID="DjangoMigrationsListDialog.__unapplyMigration"></a> |
266 <h4>DjangoMigrationsListDialog.__unapplyMigration</h4> |
265 <h4>DjangoMigrationsListDialog.__unapplyMigration</h4> |
267 <b>__unapplyMigration</b>(<i></i>) |
266 <b>__unapplyMigration</b>(<i></i>) |
268 |
|
269 <p> |
267 <p> |
270 Private slot to unapply the selected migrations. |
268 Private slot to unapply the selected migrations. |
271 </p> |
269 </p> |
|
270 |
272 <a NAME="DjangoMigrationsListDialog.on_buttonBox_clicked" ID="DjangoMigrationsListDialog.on_buttonBox_clicked"></a> |
271 <a NAME="DjangoMigrationsListDialog.on_buttonBox_clicked" ID="DjangoMigrationsListDialog.on_buttonBox_clicked"></a> |
273 <h4>DjangoMigrationsListDialog.on_buttonBox_clicked</h4> |
272 <h4>DjangoMigrationsListDialog.on_buttonBox_clicked</h4> |
274 <b>on_buttonBox_clicked</b>(<i>button</i>) |
273 <b>on_buttonBox_clicked</b>(<i>button</i>) |
275 |
|
276 <p> |
274 <p> |
277 Private slot called by a button of the button box clicked. |
275 Private slot called by a button of the button box clicked. |
278 </p> |
276 </p> |
|
277 |
279 <dl> |
278 <dl> |
280 |
279 |
281 <dt><i>button</i> (QAbstractButton)</dt> |
280 <dt><i>button</i> (QAbstractButton)</dt> |
282 <dd> |
281 <dd> |
283 button that was clicked |
282 button that was clicked |
284 </dd> |
283 </dd> |
285 </dl> |
284 </dl> |
286 <a NAME="DjangoMigrationsListDialog.on_migrationsList_customContextMenuRequested" ID="DjangoMigrationsListDialog.on_migrationsList_customContextMenuRequested"></a> |
285 <a NAME="DjangoMigrationsListDialog.on_migrationsList_customContextMenuRequested" ID="DjangoMigrationsListDialog.on_migrationsList_customContextMenuRequested"></a> |
287 <h4>DjangoMigrationsListDialog.on_migrationsList_customContextMenuRequested</h4> |
286 <h4>DjangoMigrationsListDialog.on_migrationsList_customContextMenuRequested</h4> |
288 <b>on_migrationsList_customContextMenuRequested</b>(<i>pos</i>) |
287 <b>on_migrationsList_customContextMenuRequested</b>(<i>pos</i>) |
289 |
|
290 <p> |
288 <p> |
291 Private slot to show the context menu. |
289 Private slot to show the context menu. |
292 </p> |
290 </p> |
|
291 |
293 <dl> |
292 <dl> |
294 |
293 |
295 <dt><i>pos</i> (QPoint)</dt> |
294 <dt><i>pos</i> (QPoint)</dt> |
296 <dd> |
295 <dd> |
297 position the context menu was requested at |
296 position the context menu was requested at |
298 </dd> |
297 </dd> |
299 </dl> |
298 </dl> |
300 <a NAME="DjangoMigrationsListDialog.on_refreshButton_clicked" ID="DjangoMigrationsListDialog.on_refreshButton_clicked"></a> |
299 <a NAME="DjangoMigrationsListDialog.on_refreshButton_clicked" ID="DjangoMigrationsListDialog.on_refreshButton_clicked"></a> |
301 <h4>DjangoMigrationsListDialog.on_refreshButton_clicked</h4> |
300 <h4>DjangoMigrationsListDialog.on_refreshButton_clicked</h4> |
302 <b>on_refreshButton_clicked</b>(<i></i>) |
301 <b>on_refreshButton_clicked</b>(<i></i>) |
303 |
|
304 <p> |
302 <p> |
305 Private slot to refresh the log. |
303 Private slot to refresh the log. |
306 </p> |
304 </p> |
|
305 |
307 <a NAME="DjangoMigrationsListDialog.start" ID="DjangoMigrationsListDialog.start"></a> |
306 <a NAME="DjangoMigrationsListDialog.start" ID="DjangoMigrationsListDialog.start"></a> |
308 <h4>DjangoMigrationsListDialog.start</h4> |
307 <h4>DjangoMigrationsListDialog.start</h4> |
309 <b>start</b>(<i>pythonExecutable, sitePath, databaseName</i>) |
308 <b>start</b>(<i>pythonExecutable, sitePath, databaseName</i>) |
310 |
|
311 <p> |
309 <p> |
312 Public slot used to start the process. |
310 Public slot used to start the process. |
313 </p> |
311 </p> |
|
312 |
314 <dl> |
313 <dl> |
315 |
314 |
316 <dt><i>pythonExecutable</i> (str)</dt> |
315 <dt><i>pythonExecutable</i> (str)</dt> |
317 <dd> |
316 <dd> |
318 Python executable to be used |
317 Python executable to be used |