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_Project_Django.ProjectDjango.DjangoSquashMigrationSelectionDialog</h1> |
23 <h1>Plugin_Project_Django.ProjectDjango.DjangoSquashMigrationSelectionDialog</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a dialog to enter data needed to squash migrations. |
26 Module implementing a dialog to enter data needed to squash migrations. |
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> |
|
34 |
31 <table> |
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#DjangoSquashMigrationSelectionDialog">DjangoSquashMigrationSelectionDialog</a></td> |
38 <td><a href="#DjangoSquashMigrationSelectionDialog">DjangoSquashMigrationSelectionDialog</a></td> |
34 <td>Class implementing a dialog to enter data needed to squash migrations.</td> |
39 <td>Class implementing a dialog to enter data needed to squash migrations.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
|
43 |
38 <table> |
44 <table> |
39 <tr><td>None</td></tr> |
45 <tr><td>None</td></tr> |
40 </table> |
46 </table> |
41 <hr /><hr /> |
47 <hr /> |
|
48 <hr /> |
42 <a NAME="DjangoSquashMigrationSelectionDialog" ID="DjangoSquashMigrationSelectionDialog"></a> |
49 <a NAME="DjangoSquashMigrationSelectionDialog" ID="DjangoSquashMigrationSelectionDialog"></a> |
43 <h2>DjangoSquashMigrationSelectionDialog</h2> |
50 <h2>DjangoSquashMigrationSelectionDialog</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing a dialog to enter data needed to squash migrations. |
53 Class implementing a dialog to enter data needed to squash migrations. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QDialog, Ui_DjangoSquashMigrationSelectionDialog |
56 QDialog, Ui_DjangoSquashMigrationSelectionDialog |
49 <h3>Class Attributes</h3> |
57 <h3>Class Attributes</h3> |
|
58 |
50 <table> |
59 <table> |
51 <tr><td>None</td></tr> |
60 <tr><td>None</td></tr> |
52 </table> |
61 </table> |
53 <h3>Class Methods</h3> |
62 <h3>Class Methods</h3> |
|
63 |
54 <table> |
64 <table> |
55 <tr><td>None</td></tr> |
65 <tr><td>None</td></tr> |
56 </table> |
66 </table> |
57 <h3>Methods</h3> |
67 <h3>Methods</h3> |
|
68 |
58 <table> |
69 <table> |
|
70 |
59 <tr> |
71 <tr> |
60 <td><a href="#DjangoSquashMigrationSelectionDialog.__init__">DjangoSquashMigrationSelectionDialog</a></td> |
72 <td><a href="#DjangoSquashMigrationSelectionDialog.__init__">DjangoSquashMigrationSelectionDialog</a></td> |
61 <td>Constructor</td> |
73 <td>Constructor</td> |
62 </tr><tr> |
74 </tr> |
|
75 <tr> |
63 <td><a href="#DjangoSquashMigrationSelectionDialog.__updateOkButton">__updateOkButton</a></td> |
76 <td><a href="#DjangoSquashMigrationSelectionDialog.__updateOkButton">__updateOkButton</a></td> |
64 <td>Private slot to set the enabled state of the OK button.</td> |
77 <td>Private slot to set the enabled state of the OK button.</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#DjangoSquashMigrationSelectionDialog.getData">getData</a></td> |
80 <td><a href="#DjangoSquashMigrationSelectionDialog.getData">getData</a></td> |
67 <td>Public method to retrieve the data entered by the user.</td> |
81 <td>Public method to retrieve the data entered by the user.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated">on_applicationComboBox_activated</a></td> |
84 <td><a href="#DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated">on_applicationComboBox_activated</a></td> |
70 <td>Private slot to update the migrations combo boxes.</td> |
85 <td>Private slot to update the migrations combo boxes.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated">on_endMigrationComboBox_activated</a></td> |
88 <td><a href="#DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated">on_endMigrationComboBox_activated</a></td> |
73 <td>Private slot handling the selection of a migration.</td> |
89 <td>Private slot handling the selection of a migration.</td> |
74 </tr> |
90 </tr> |
75 </table> |
91 </table> |
76 <h3>Static Methods</h3> |
92 <h3>Static Methods</h3> |
|
93 |
77 <table> |
94 <table> |
78 <tr><td>None</td></tr> |
95 <tr><td>None</td></tr> |
79 </table> |
96 </table> |
|
97 |
80 <a NAME="DjangoSquashMigrationSelectionDialog.__init__" ID="DjangoSquashMigrationSelectionDialog.__init__"></a> |
98 <a NAME="DjangoSquashMigrationSelectionDialog.__init__" ID="DjangoSquashMigrationSelectionDialog.__init__"></a> |
81 <h4>DjangoSquashMigrationSelectionDialog (Constructor)</h4> |
99 <h4>DjangoSquashMigrationSelectionDialog (Constructor)</h4> |
82 <b>DjangoSquashMigrationSelectionDialog</b>(<i>migrations, django, parent=None</i>) |
100 <b>DjangoSquashMigrationSelectionDialog</b>(<i>migrations, django, suffix, parent=None</i>) |
|
101 |
83 <p> |
102 <p> |
84 Constructor |
103 Constructor |
85 </p><dl> |
104 </p> |
|
105 <dl> |
|
106 |
86 <dt><i>migrations</i> (dict)</dt> |
107 <dt><i>migrations</i> (dict)</dt> |
87 <dd> |
108 <dd> |
88 dictionary containing the available migrations |
109 dictionary containing the available migrations |
89 </dd><dt><i>django</i> (Project)</dt> |
110 </dd> |
|
111 <dt><i>django</i> (Project)</dt> |
90 <dd> |
112 <dd> |
91 reference to the Django project object |
113 reference to the Django project object |
92 </dd><dt><i>parent</i> (QWidget)</dt> |
114 </dd> |
|
115 <dt><i>suffix</i> (str)</dt> |
|
116 <dd> |
|
117 icon suffix |
|
118 </dd> |
|
119 <dt><i>parent</i> (QWidget)</dt> |
93 <dd> |
120 <dd> |
94 reference to the parent widget |
121 reference to the parent widget |
95 </dd> |
122 </dd> |
96 </dl><a NAME="DjangoSquashMigrationSelectionDialog.__updateOkButton" ID="DjangoSquashMigrationSelectionDialog.__updateOkButton"></a> |
123 </dl> |
|
124 <a NAME="DjangoSquashMigrationSelectionDialog.__updateOkButton" ID="DjangoSquashMigrationSelectionDialog.__updateOkButton"></a> |
97 <h4>DjangoSquashMigrationSelectionDialog.__updateOkButton</h4> |
125 <h4>DjangoSquashMigrationSelectionDialog.__updateOkButton</h4> |
98 <b>__updateOkButton</b>(<i></i>) |
126 <b>__updateOkButton</b>(<i></i>) |
|
127 |
99 <p> |
128 <p> |
100 Private slot to set the enabled state of the OK button. |
129 Private slot to set the enabled state of the OK button. |
101 </p><a NAME="DjangoSquashMigrationSelectionDialog.getData" ID="DjangoSquashMigrationSelectionDialog.getData"></a> |
130 </p> |
|
131 <a NAME="DjangoSquashMigrationSelectionDialog.getData" ID="DjangoSquashMigrationSelectionDialog.getData"></a> |
102 <h4>DjangoSquashMigrationSelectionDialog.getData</h4> |
132 <h4>DjangoSquashMigrationSelectionDialog.getData</h4> |
103 <b>getData</b>(<i></i>) |
133 <b>getData</b>(<i></i>) |
|
134 |
104 <p> |
135 <p> |
105 Public method to retrieve the data entered by the user. |
136 Public method to retrieve the data entered by the user. |
106 </p><dl> |
137 </p> |
|
138 <dl> |
107 <dt>Returns:</dt> |
139 <dt>Returns:</dt> |
108 <dd> |
140 <dd> |
109 tuple containing the selected app, the start migration, |
141 tuple containing the selected app, the start migration, |
110 the end migration and a flag indicating no optimization is wanted |
142 the end migration and a flag indicating no optimization is wanted |
111 </dd> |
143 </dd> |
112 </dl><dl> |
144 </dl> |
|
145 <dl> |
113 <dt>Return Type:</dt> |
146 <dt>Return Type:</dt> |
114 <dd> |
147 <dd> |
115 tuple of three str and a bool |
148 tuple of three str and a bool |
116 </dd> |
149 </dd> |
117 </dl><a NAME="DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated" ID="DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated"></a> |
150 </dl> |
|
151 <a NAME="DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated" ID="DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated"></a> |
118 <h4>DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated</h4> |
152 <h4>DjangoSquashMigrationSelectionDialog.on_applicationComboBox_activated</h4> |
119 <b>on_applicationComboBox_activated</b>(<i>app</i>) |
153 <b>on_applicationComboBox_activated</b>(<i>app</i>) |
|
154 |
120 <p> |
155 <p> |
121 Private slot to update the migrations combo boxes. |
156 Private slot to update the migrations combo boxes. |
122 </p><dl> |
157 </p> |
|
158 <dl> |
|
159 |
123 <dt><i>app</i> (str)</dt> |
160 <dt><i>app</i> (str)</dt> |
124 <dd> |
161 <dd> |
125 name of the selected application |
162 name of the selected application |
126 </dd> |
163 </dd> |
127 </dl><a NAME="DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated" ID="DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated"></a> |
164 </dl> |
|
165 <a NAME="DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated" ID="DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated"></a> |
128 <h4>DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated</h4> |
166 <h4>DjangoSquashMigrationSelectionDialog.on_endMigrationComboBox_activated</h4> |
129 <b>on_endMigrationComboBox_activated</b>(<i>migration</i>) |
167 <b>on_endMigrationComboBox_activated</b>(<i>migration</i>) |
|
168 |
130 <p> |
169 <p> |
131 Private slot handling the selection of a migration. |
170 Private slot handling the selection of a migration. |
132 </p><dl> |
171 </p> |
|
172 <dl> |
|
173 |
133 <dt><i>migration</i> (str)</dt> |
174 <dt><i>migration</i> (str)</dt> |
134 <dd> |
175 <dd> |
135 name of the selected migration |
176 name of the selected migration |
136 </dd> |
177 </dd> |
137 </dl> |
178 </dl> |