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>eric6.Plugins.VcsPlugins.vcsMercurial.QueuesExtension.HgQueuesDefineGuardsDialog</h1> |
23 <h1>eric6.Plugins.VcsPlugins.vcsMercurial.QueuesExtension.HgQueuesDefineGuardsDialog</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a dialog to define guards for patches. |
26 Module implementing a dialog to define guards for patches. |
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="#HgQueuesDefineGuardsDialog">HgQueuesDefineGuardsDialog</a></td> |
38 <td><a href="#HgQueuesDefineGuardsDialog">HgQueuesDefineGuardsDialog</a></td> |
34 <td>Class implementing a dialog to define guards for patches.</td> |
39 <td>Class implementing a dialog to define guards for patches.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
38 <table> |
43 |
39 <tr><td>None</td></tr> |
44 <table> |
40 </table> |
45 <tr><td>None</td></tr> |
41 <hr /><hr /> |
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
42 <a NAME="HgQueuesDefineGuardsDialog" ID="HgQueuesDefineGuardsDialog"></a> |
49 <a NAME="HgQueuesDefineGuardsDialog" ID="HgQueuesDefineGuardsDialog"></a> |
43 <h2>HgQueuesDefineGuardsDialog</h2> |
50 <h2>HgQueuesDefineGuardsDialog</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing a dialog to define guards for patches. |
53 Class implementing a dialog to define guards for patches. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QDialog, Ui_HgQueuesDefineGuardsDialog |
56 QDialog, Ui_HgQueuesDefineGuardsDialog |
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> |
58 <table> |
68 |
|
69 <table> |
|
70 |
59 <tr> |
71 <tr> |
60 <td><a href="#HgQueuesDefineGuardsDialog.__init__">HgQueuesDefineGuardsDialog</a></td> |
72 <td><a href="#HgQueuesDefineGuardsDialog.__init__">HgQueuesDefineGuardsDialog</a></td> |
61 <td>Constructor</td> |
73 <td>Constructor</td> |
62 </tr><tr> |
74 </tr> |
|
75 <tr> |
63 <td><a href="#HgQueuesDefineGuardsDialog.__applyGuards">__applyGuards</a></td> |
76 <td><a href="#HgQueuesDefineGuardsDialog.__applyGuards">__applyGuards</a></td> |
64 <td>Private slot to apply the defined guards to the current patch.</td> |
77 <td>Private slot to apply the defined guards to the current patch.</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#HgQueuesDefineGuardsDialog.__getGuard">__getGuard</a></td> |
80 <td><a href="#HgQueuesDefineGuardsDialog.__getGuard">__getGuard</a></td> |
67 <td>Private method to get a reference to a named guard.</td> |
81 <td>Private method to get a reference to a named guard.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#HgQueuesDefineGuardsDialog.closeEvent">closeEvent</a></td> |
84 <td><a href="#HgQueuesDefineGuardsDialog.closeEvent">closeEvent</a></td> |
70 <td>Protected slot implementing a close event handler.</td> |
85 <td>Protected slot implementing a close event handler.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#HgQueuesDefineGuardsDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
88 <td><a href="#HgQueuesDefineGuardsDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
73 <td>Private slot to add a guard definition to the list or change it.</td> |
89 <td>Private slot to add a guard definition to the list or change it.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#HgQueuesDefineGuardsDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
92 <td><a href="#HgQueuesDefineGuardsDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
76 <td>Private slot called by a button of the button box clicked.</td> |
93 <td>Private slot called by a button of the button box clicked.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged">on_guardCombo_editTextChanged</a></td> |
96 <td><a href="#HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged">on_guardCombo_editTextChanged</a></td> |
79 <td>Private slot to handle changes of the text of the guard combo.</td> |
97 <td>Private slot to handle changes of the text of the guard combo.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged">on_guardsList_itemSelectionChanged</a></td> |
100 <td><a href="#HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged">on_guardsList_itemSelectionChanged</a></td> |
82 <td>Private slot to handle changes of the selection of guards.</td> |
101 <td>Private slot to handle changes of the selection of guards.</td> |
83 </tr><tr> |
102 </tr> |
|
103 <tr> |
84 <td><a href="#HgQueuesDefineGuardsDialog.on_patchSelector_activated">on_patchSelector_activated</a></td> |
104 <td><a href="#HgQueuesDefineGuardsDialog.on_patchSelector_activated">on_patchSelector_activated</a></td> |
85 <td>Private slot to get the list of guards defined for the given patch name.</td> |
105 <td>Private slot to get the list of guards defined for the given patch name.</td> |
86 </tr><tr> |
106 </tr> |
|
107 <tr> |
87 <td><a href="#HgQueuesDefineGuardsDialog.on_removeButton_clicked">on_removeButton_clicked</a></td> |
108 <td><a href="#HgQueuesDefineGuardsDialog.on_removeButton_clicked">on_removeButton_clicked</a></td> |
88 <td>Private slot to remove guard definitions from the list.</td> |
109 <td>Private slot to remove guard definitions from the list.</td> |
89 </tr><tr> |
110 </tr> |
|
111 <tr> |
90 <td><a href="#HgQueuesDefineGuardsDialog.start">start</a></td> |
112 <td><a href="#HgQueuesDefineGuardsDialog.start">start</a></td> |
91 <td>Public slot to start the list command.</td> |
113 <td>Public slot to start the list command.</td> |
92 </tr> |
114 </tr> |
93 </table> |
115 </table> |
94 <h3>Static Methods</h3> |
116 <h3>Static Methods</h3> |
95 <table> |
117 |
96 <tr><td>None</td></tr> |
118 <table> |
97 </table> |
119 <tr><td>None</td></tr> |
|
120 </table> |
|
121 |
98 <a NAME="HgQueuesDefineGuardsDialog.__init__" ID="HgQueuesDefineGuardsDialog.__init__"></a> |
122 <a NAME="HgQueuesDefineGuardsDialog.__init__" ID="HgQueuesDefineGuardsDialog.__init__"></a> |
99 <h4>HgQueuesDefineGuardsDialog (Constructor)</h4> |
123 <h4>HgQueuesDefineGuardsDialog (Constructor)</h4> |
100 <b>HgQueuesDefineGuardsDialog</b>(<i>vcs, extension, patchesList, parent=None</i>) |
124 <b>HgQueuesDefineGuardsDialog</b>(<i>vcs, extension, patchesList, parent=None</i>) |
|
125 |
101 <p> |
126 <p> |
102 Constructor |
127 Constructor |
103 </p><dl> |
128 </p> |
|
129 <dl> |
|
130 |
104 <dt><i>vcs</i></dt> |
131 <dt><i>vcs</i></dt> |
105 <dd> |
132 <dd> |
106 reference to the vcs object |
133 reference to the vcs object |
107 </dd><dt><i>extension</i></dt> |
134 </dd> |
|
135 <dt><i>extension</i></dt> |
108 <dd> |
136 <dd> |
109 reference to the extension module (Queues) |
137 reference to the extension module (Queues) |
110 </dd><dt><i>patchesList</i></dt> |
138 </dd> |
|
139 <dt><i>patchesList</i></dt> |
111 <dd> |
140 <dd> |
112 list of patches (list of strings) |
141 list of patches (list of strings) |
113 </dd><dt><i>parent</i></dt> |
142 </dd> |
|
143 <dt><i>parent</i></dt> |
114 <dd> |
144 <dd> |
115 reference to the parent widget (QWidget) |
145 reference to the parent widget (QWidget) |
116 </dd> |
146 </dd> |
117 </dl><a NAME="HgQueuesDefineGuardsDialog.__applyGuards" ID="HgQueuesDefineGuardsDialog.__applyGuards"></a> |
147 </dl> |
|
148 <a NAME="HgQueuesDefineGuardsDialog.__applyGuards" ID="HgQueuesDefineGuardsDialog.__applyGuards"></a> |
118 <h4>HgQueuesDefineGuardsDialog.__applyGuards</h4> |
149 <h4>HgQueuesDefineGuardsDialog.__applyGuards</h4> |
119 <b>__applyGuards</b>(<i></i>) |
150 <b>__applyGuards</b>(<i></i>) |
|
151 |
120 <p> |
152 <p> |
121 Private slot to apply the defined guards to the current patch. |
153 Private slot to apply the defined guards to the current patch. |
122 </p><a NAME="HgQueuesDefineGuardsDialog.__getGuard" ID="HgQueuesDefineGuardsDialog.__getGuard"></a> |
154 </p> |
|
155 <a NAME="HgQueuesDefineGuardsDialog.__getGuard" ID="HgQueuesDefineGuardsDialog.__getGuard"></a> |
123 <h4>HgQueuesDefineGuardsDialog.__getGuard</h4> |
156 <h4>HgQueuesDefineGuardsDialog.__getGuard</h4> |
124 <b>__getGuard</b>(<i>guard</i>) |
157 <b>__getGuard</b>(<i>guard</i>) |
|
158 |
125 <p> |
159 <p> |
126 Private method to get a reference to a named guard. |
160 Private method to get a reference to a named guard. |
127 </p><dl> |
161 </p> |
|
162 <dl> |
|
163 |
128 <dt><i>guard</i></dt> |
164 <dt><i>guard</i></dt> |
129 <dd> |
165 <dd> |
130 name of the guard (string) |
166 name of the guard (string) |
131 </dd> |
167 </dd> |
132 </dl><dl> |
168 </dl> |
|
169 <dl> |
133 <dt>Returns:</dt> |
170 <dt>Returns:</dt> |
134 <dd> |
171 <dd> |
135 reference to the guard item (QListWidgetItem) |
172 reference to the guard item (QListWidgetItem) |
136 </dd> |
173 </dd> |
137 </dl><a NAME="HgQueuesDefineGuardsDialog.closeEvent" ID="HgQueuesDefineGuardsDialog.closeEvent"></a> |
174 </dl> |
|
175 <a NAME="HgQueuesDefineGuardsDialog.closeEvent" ID="HgQueuesDefineGuardsDialog.closeEvent"></a> |
138 <h4>HgQueuesDefineGuardsDialog.closeEvent</h4> |
176 <h4>HgQueuesDefineGuardsDialog.closeEvent</h4> |
139 <b>closeEvent</b>(<i>e</i>) |
177 <b>closeEvent</b>(<i>e</i>) |
|
178 |
140 <p> |
179 <p> |
141 Protected slot implementing a close event handler. |
180 Protected slot implementing a close event handler. |
142 </p><dl> |
181 </p> |
|
182 <dl> |
|
183 |
143 <dt><i>e</i></dt> |
184 <dt><i>e</i></dt> |
144 <dd> |
185 <dd> |
145 close event (QCloseEvent) |
186 close event (QCloseEvent) |
146 </dd> |
187 </dd> |
147 </dl><a NAME="HgQueuesDefineGuardsDialog.on_addButton_clicked" ID="HgQueuesDefineGuardsDialog.on_addButton_clicked"></a> |
188 </dl> |
|
189 <a NAME="HgQueuesDefineGuardsDialog.on_addButton_clicked" ID="HgQueuesDefineGuardsDialog.on_addButton_clicked"></a> |
148 <h4>HgQueuesDefineGuardsDialog.on_addButton_clicked</h4> |
190 <h4>HgQueuesDefineGuardsDialog.on_addButton_clicked</h4> |
149 <b>on_addButton_clicked</b>(<i></i>) |
191 <b>on_addButton_clicked</b>(<i></i>) |
|
192 |
150 <p> |
193 <p> |
151 Private slot to add a guard definition to the list or change it. |
194 Private slot to add a guard definition to the list or change it. |
152 </p><a NAME="HgQueuesDefineGuardsDialog.on_buttonBox_clicked" ID="HgQueuesDefineGuardsDialog.on_buttonBox_clicked"></a> |
195 </p> |
|
196 <a NAME="HgQueuesDefineGuardsDialog.on_buttonBox_clicked" ID="HgQueuesDefineGuardsDialog.on_buttonBox_clicked"></a> |
153 <h4>HgQueuesDefineGuardsDialog.on_buttonBox_clicked</h4> |
197 <h4>HgQueuesDefineGuardsDialog.on_buttonBox_clicked</h4> |
154 <b>on_buttonBox_clicked</b>(<i>button</i>) |
198 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
199 |
155 <p> |
200 <p> |
156 Private slot called by a button of the button box clicked. |
201 Private slot called by a button of the button box clicked. |
157 </p><dl> |
202 </p> |
|
203 <dl> |
|
204 |
158 <dt><i>button</i></dt> |
205 <dt><i>button</i></dt> |
159 <dd> |
206 <dd> |
160 button that was clicked (QAbstractButton) |
207 button that was clicked (QAbstractButton) |
161 </dd> |
208 </dd> |
162 </dl><a NAME="HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged" ID="HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged"></a> |
209 </dl> |
|
210 <a NAME="HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged" ID="HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged"></a> |
163 <h4>HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged</h4> |
211 <h4>HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged</h4> |
164 <b>on_guardCombo_editTextChanged</b>(<i>txt</i>) |
212 <b>on_guardCombo_editTextChanged</b>(<i>txt</i>) |
|
213 |
165 <p> |
214 <p> |
166 Private slot to handle changes of the text of the guard combo. |
215 Private slot to handle changes of the text of the guard combo. |
167 </p><dl> |
216 </p> |
|
217 <dl> |
|
218 |
168 <dt><i>txt</i></dt> |
219 <dt><i>txt</i></dt> |
169 <dd> |
220 <dd> |
170 contents of the guard combo line edit (string) |
221 contents of the guard combo line edit (string) |
171 </dd> |
222 </dd> |
172 </dl><a NAME="HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged" ID="HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged"></a> |
223 </dl> |
|
224 <a NAME="HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged" ID="HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged"></a> |
173 <h4>HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged</h4> |
225 <h4>HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged</h4> |
174 <b>on_guardsList_itemSelectionChanged</b>(<i></i>) |
226 <b>on_guardsList_itemSelectionChanged</b>(<i></i>) |
|
227 |
175 <p> |
228 <p> |
176 Private slot to handle changes of the selection of guards. |
229 Private slot to handle changes of the selection of guards. |
177 </p><a NAME="HgQueuesDefineGuardsDialog.on_patchSelector_activated" ID="HgQueuesDefineGuardsDialog.on_patchSelector_activated"></a> |
230 </p> |
|
231 <a NAME="HgQueuesDefineGuardsDialog.on_patchSelector_activated" ID="HgQueuesDefineGuardsDialog.on_patchSelector_activated"></a> |
178 <h4>HgQueuesDefineGuardsDialog.on_patchSelector_activated</h4> |
232 <h4>HgQueuesDefineGuardsDialog.on_patchSelector_activated</h4> |
179 <b>on_patchSelector_activated</b>(<i>patch</i>) |
233 <b>on_patchSelector_activated</b>(<i>patch</i>) |
|
234 |
180 <p> |
235 <p> |
181 Private slot to get the list of guards defined for the given patch |
236 Private slot to get the list of guards defined for the given patch |
182 name. |
237 name. |
183 </p><dl> |
238 </p> |
|
239 <dl> |
|
240 |
184 <dt><i>patch</i></dt> |
241 <dt><i>patch</i></dt> |
185 <dd> |
242 <dd> |
186 selected patch name (empty for current patch) |
243 selected patch name (empty for current patch) |
187 </dd> |
244 </dd> |
188 </dl><a NAME="HgQueuesDefineGuardsDialog.on_removeButton_clicked" ID="HgQueuesDefineGuardsDialog.on_removeButton_clicked"></a> |
245 </dl> |
|
246 <a NAME="HgQueuesDefineGuardsDialog.on_removeButton_clicked" ID="HgQueuesDefineGuardsDialog.on_removeButton_clicked"></a> |
189 <h4>HgQueuesDefineGuardsDialog.on_removeButton_clicked</h4> |
247 <h4>HgQueuesDefineGuardsDialog.on_removeButton_clicked</h4> |
190 <b>on_removeButton_clicked</b>(<i></i>) |
248 <b>on_removeButton_clicked</b>(<i></i>) |
|
249 |
191 <p> |
250 <p> |
192 Private slot to remove guard definitions from the list. |
251 Private slot to remove guard definitions from the list. |
193 </p><a NAME="HgQueuesDefineGuardsDialog.start" ID="HgQueuesDefineGuardsDialog.start"></a> |
252 </p> |
|
253 <a NAME="HgQueuesDefineGuardsDialog.start" ID="HgQueuesDefineGuardsDialog.start"></a> |
194 <h4>HgQueuesDefineGuardsDialog.start</h4> |
254 <h4>HgQueuesDefineGuardsDialog.start</h4> |
195 <b>start</b>(<i>path</i>) |
255 <b>start</b>(<i>path</i>) |
|
256 |
196 <p> |
257 <p> |
197 Public slot to start the list command. |
258 Public slot to start the list command. |
198 </p><dl> |
259 </p> |
|
260 <dl> |
|
261 |
199 <dt><i>path</i></dt> |
262 <dt><i>path</i></dt> |
200 <dd> |
263 <dd> |
201 name of directory to be listed (string) |
264 name of directory to be listed (string) |
202 </dd> |
265 </dd> |
203 </dl> |
266 </dl> |