|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Debugger.WatchPointViewer</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Debugger.WatchPointViewer</h1> |
|
23 <p> |
|
24 Module implementing the watch expression viewer widget. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#WatchPointViewer">WatchPointViewer</a></td> |
|
34 <td>Class implementing the watch expression viewer widget.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="WatchPointViewer" ID="WatchPointViewer"></a> |
|
43 <h2>WatchPointViewer</h2> |
|
44 <p> |
|
45 Class implementing the watch expression viewer widget. |
|
46 </p><p> |
|
47 Watch expressions will be shown with all their details. They can be |
|
48 modified through the context menu of this widget. |
|
49 </p> |
|
50 <h3>Derived from</h3> |
|
51 QTreeView |
|
52 <h3>Class Attributes</h3> |
|
53 <table> |
|
54 <tr><td>None</td></tr> |
|
55 </table> |
|
56 <h3>Class Methods</h3> |
|
57 <table> |
|
58 <tr><td>None</td></tr> |
|
59 </table> |
|
60 <h3>Methods</h3> |
|
61 <table> |
|
62 <tr> |
|
63 <td><a href="#WatchPointViewer.__init__">WatchPointViewer</a></td> |
|
64 <td>Constructor</td> |
|
65 </tr><tr> |
|
66 <td><a href="#WatchPointViewer.__addWatchPoint">__addWatchPoint</a></td> |
|
67 <td>Private slot to handle the add watch expression context menu entry.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#WatchPointViewer.__clearSelection">__clearSelection</a></td> |
|
70 <td>Private slot to clear the selection.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#WatchPointViewer.__configure">__configure</a></td> |
|
73 <td>Private method to open the configuration dialog.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#WatchPointViewer.__createPopupMenus">__createPopupMenus</a></td> |
|
76 <td>Private method to generate the popup menus.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#WatchPointViewer.__deleteAllWatchPoints">__deleteAllWatchPoints</a></td> |
|
79 <td>Private slot to handle the delete all watch expressions context menu entry.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#WatchPointViewer.__deleteSelectedWatchPoints">__deleteSelectedWatchPoints</a></td> |
|
82 <td>Private slot to handle the delete selected watch expressions context menu entry.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#WatchPointViewer.__deleteWatchPoint">__deleteWatchPoint</a></td> |
|
85 <td>Private slot to handle the delete watch expression context menu entry.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#WatchPointViewer.__disableAllWatchPoints">__disableAllWatchPoints</a></td> |
|
88 <td>Private slot to handle the disable all watch expressions context menu entry.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#WatchPointViewer.__disableSelectedWatchPoints">__disableSelectedWatchPoints</a></td> |
|
91 <td>Private slot to handle the disable selected watch expressions context menu entry.</td> |
|
92 </tr><tr> |
|
93 <td><a href="#WatchPointViewer.__disableWatchPoint">__disableWatchPoint</a></td> |
|
94 <td>Private slot to handle the disable watch expression context menu entry.</td> |
|
95 </tr><tr> |
|
96 <td><a href="#WatchPointViewer.__doEditWatchPoint">__doEditWatchPoint</a></td> |
|
97 <td>Private slot to edit a watch expression.</td> |
|
98 </tr><tr> |
|
99 <td><a href="#WatchPointViewer.__doubleClicked">__doubleClicked</a></td> |
|
100 <td>Private slot to handle the double clicked signal.</td> |
|
101 </tr><tr> |
|
102 <td><a href="#WatchPointViewer.__editWatchPoint">__editWatchPoint</a></td> |
|
103 <td>Private slot to handle the edit watch expression context menu entry.</td> |
|
104 </tr><tr> |
|
105 <td><a href="#WatchPointViewer.__enableAllWatchPoints">__enableAllWatchPoints</a></td> |
|
106 <td>Private slot to handle the enable all watch expressions context menu entry.</td> |
|
107 </tr><tr> |
|
108 <td><a href="#WatchPointViewer.__enableSelectedWatchPoints">__enableSelectedWatchPoints</a></td> |
|
109 <td>Private slot to handle the enable selected watch expressions context menu entry.</td> |
|
110 </tr><tr> |
|
111 <td><a href="#WatchPointViewer.__enableWatchPoint">__enableWatchPoint</a></td> |
|
112 <td>Private slot to handle the enable watch expression context menu entry.</td> |
|
113 </tr><tr> |
|
114 <td><a href="#WatchPointViewer.__findDuplicates">__findDuplicates</a></td> |
|
115 <td>Private method to check, if an entry already exists.</td> |
|
116 </tr><tr> |
|
117 <td><a href="#WatchPointViewer.__fromSourceIndex">__fromSourceIndex</a></td> |
|
118 <td>Private slot to convert a source index to an index.</td> |
|
119 </tr><tr> |
|
120 <td><a href="#WatchPointViewer.__getSelectedItemsCount">__getSelectedItemsCount</a></td> |
|
121 <td>Private method to get the count of items selected.</td> |
|
122 </tr><tr> |
|
123 <td><a href="#WatchPointViewer.__layoutDisplay">__layoutDisplay</a></td> |
|
124 <td>Private slot to perform a layout operation.</td> |
|
125 </tr><tr> |
|
126 <td><a href="#WatchPointViewer.__resizeColumns">__resizeColumns</a></td> |
|
127 <td>Private slot to resize the view when items get added, edited or deleted.</td> |
|
128 </tr><tr> |
|
129 <td><a href="#WatchPointViewer.__resort">__resort</a></td> |
|
130 <td>Private slot to resort the tree.</td> |
|
131 </tr><tr> |
|
132 <td><a href="#WatchPointViewer.__setRowSelected">__setRowSelected</a></td> |
|
133 <td>Private slot to select a complete row.</td> |
|
134 </tr><tr> |
|
135 <td><a href="#WatchPointViewer.__setWpEnabled">__setWpEnabled</a></td> |
|
136 <td>Private method to set the enabled status of a watch expression.</td> |
|
137 </tr><tr> |
|
138 <td><a href="#WatchPointViewer.__showBackMenu">__showBackMenu</a></td> |
|
139 <td>Private slot to handle the aboutToShow signal of the background menu.</td> |
|
140 </tr><tr> |
|
141 <td><a href="#WatchPointViewer.__showContextMenu">__showContextMenu</a></td> |
|
142 <td>Private slot to show the context menu.</td> |
|
143 </tr><tr> |
|
144 <td><a href="#WatchPointViewer.__toSourceIndex">__toSourceIndex</a></td> |
|
145 <td>Private slot to convert an index to a source index.</td> |
|
146 </tr><tr> |
|
147 <td><a href="#WatchPointViewer.setModel">setModel</a></td> |
|
148 <td>Public slot to set the watch expression model.</td> |
|
149 </tr> |
|
150 </table> |
|
151 <h3>Static Methods</h3> |
|
152 <table> |
|
153 <tr><td>None</td></tr> |
|
154 </table> |
|
155 <a NAME="WatchPointViewer.__init__" ID="WatchPointViewer.__init__"></a> |
|
156 <h4>WatchPointViewer (Constructor)</h4> |
|
157 <b>WatchPointViewer</b>(<i>parent=None</i>) |
|
158 <p> |
|
159 Constructor |
|
160 </p><dl> |
|
161 <dt><i>parent</i></dt> |
|
162 <dd> |
|
163 the parent (QWidget) |
|
164 </dd> |
|
165 </dl><a NAME="WatchPointViewer.__addWatchPoint" ID="WatchPointViewer.__addWatchPoint"></a> |
|
166 <h4>WatchPointViewer.__addWatchPoint</h4> |
|
167 <b>__addWatchPoint</b>(<i></i>) |
|
168 <p> |
|
169 Private slot to handle the add watch expression context menu entry. |
|
170 </p><a NAME="WatchPointViewer.__clearSelection" ID="WatchPointViewer.__clearSelection"></a> |
|
171 <h4>WatchPointViewer.__clearSelection</h4> |
|
172 <b>__clearSelection</b>(<i></i>) |
|
173 <p> |
|
174 Private slot to clear the selection. |
|
175 </p><a NAME="WatchPointViewer.__configure" ID="WatchPointViewer.__configure"></a> |
|
176 <h4>WatchPointViewer.__configure</h4> |
|
177 <b>__configure</b>(<i></i>) |
|
178 <p> |
|
179 Private method to open the configuration dialog. |
|
180 </p><a NAME="WatchPointViewer.__createPopupMenus" ID="WatchPointViewer.__createPopupMenus"></a> |
|
181 <h4>WatchPointViewer.__createPopupMenus</h4> |
|
182 <b>__createPopupMenus</b>(<i></i>) |
|
183 <p> |
|
184 Private method to generate the popup menus. |
|
185 </p><a NAME="WatchPointViewer.__deleteAllWatchPoints" ID="WatchPointViewer.__deleteAllWatchPoints"></a> |
|
186 <h4>WatchPointViewer.__deleteAllWatchPoints</h4> |
|
187 <b>__deleteAllWatchPoints</b>(<i></i>) |
|
188 <p> |
|
189 Private slot to handle the delete all watch expressions context menu |
|
190 entry. |
|
191 </p><a NAME="WatchPointViewer.__deleteSelectedWatchPoints" ID="WatchPointViewer.__deleteSelectedWatchPoints"></a> |
|
192 <h4>WatchPointViewer.__deleteSelectedWatchPoints</h4> |
|
193 <b>__deleteSelectedWatchPoints</b>(<i></i>) |
|
194 <p> |
|
195 Private slot to handle the delete selected watch expressions context |
|
196 menu entry. |
|
197 </p><a NAME="WatchPointViewer.__deleteWatchPoint" ID="WatchPointViewer.__deleteWatchPoint"></a> |
|
198 <h4>WatchPointViewer.__deleteWatchPoint</h4> |
|
199 <b>__deleteWatchPoint</b>(<i></i>) |
|
200 <p> |
|
201 Private slot to handle the delete watch expression context menu entry. |
|
202 </p><a NAME="WatchPointViewer.__disableAllWatchPoints" ID="WatchPointViewer.__disableAllWatchPoints"></a> |
|
203 <h4>WatchPointViewer.__disableAllWatchPoints</h4> |
|
204 <b>__disableAllWatchPoints</b>(<i></i>) |
|
205 <p> |
|
206 Private slot to handle the disable all watch expressions context menu |
|
207 entry. |
|
208 </p><a NAME="WatchPointViewer.__disableSelectedWatchPoints" ID="WatchPointViewer.__disableSelectedWatchPoints"></a> |
|
209 <h4>WatchPointViewer.__disableSelectedWatchPoints</h4> |
|
210 <b>__disableSelectedWatchPoints</b>(<i></i>) |
|
211 <p> |
|
212 Private slot to handle the disable selected watch expressions context |
|
213 menu entry. |
|
214 </p><a NAME="WatchPointViewer.__disableWatchPoint" ID="WatchPointViewer.__disableWatchPoint"></a> |
|
215 <h4>WatchPointViewer.__disableWatchPoint</h4> |
|
216 <b>__disableWatchPoint</b>(<i></i>) |
|
217 <p> |
|
218 Private slot to handle the disable watch expression context menu entry. |
|
219 </p><a NAME="WatchPointViewer.__doEditWatchPoint" ID="WatchPointViewer.__doEditWatchPoint"></a> |
|
220 <h4>WatchPointViewer.__doEditWatchPoint</h4> |
|
221 <b>__doEditWatchPoint</b>(<i>index</i>) |
|
222 <p> |
|
223 Private slot to edit a watch expression. |
|
224 </p><dl> |
|
225 <dt><i>index</i></dt> |
|
226 <dd> |
|
227 index of watch expression to be edited (QModelIndex) |
|
228 </dd> |
|
229 </dl><a NAME="WatchPointViewer.__doubleClicked" ID="WatchPointViewer.__doubleClicked"></a> |
|
230 <h4>WatchPointViewer.__doubleClicked</h4> |
|
231 <b>__doubleClicked</b>(<i>index</i>) |
|
232 <p> |
|
233 Private slot to handle the double clicked signal. |
|
234 </p><dl> |
|
235 <dt><i>index</i></dt> |
|
236 <dd> |
|
237 index of the entry that was double clicked (QModelIndex) |
|
238 </dd> |
|
239 </dl><a NAME="WatchPointViewer.__editWatchPoint" ID="WatchPointViewer.__editWatchPoint"></a> |
|
240 <h4>WatchPointViewer.__editWatchPoint</h4> |
|
241 <b>__editWatchPoint</b>(<i></i>) |
|
242 <p> |
|
243 Private slot to handle the edit watch expression context menu entry. |
|
244 </p><a NAME="WatchPointViewer.__enableAllWatchPoints" ID="WatchPointViewer.__enableAllWatchPoints"></a> |
|
245 <h4>WatchPointViewer.__enableAllWatchPoints</h4> |
|
246 <b>__enableAllWatchPoints</b>(<i></i>) |
|
247 <p> |
|
248 Private slot to handle the enable all watch expressions context menu |
|
249 entry. |
|
250 </p><a NAME="WatchPointViewer.__enableSelectedWatchPoints" ID="WatchPointViewer.__enableSelectedWatchPoints"></a> |
|
251 <h4>WatchPointViewer.__enableSelectedWatchPoints</h4> |
|
252 <b>__enableSelectedWatchPoints</b>(<i></i>) |
|
253 <p> |
|
254 Private slot to handle the enable selected watch expressions context |
|
255 menu entry. |
|
256 </p><a NAME="WatchPointViewer.__enableWatchPoint" ID="WatchPointViewer.__enableWatchPoint"></a> |
|
257 <h4>WatchPointViewer.__enableWatchPoint</h4> |
|
258 <b>__enableWatchPoint</b>(<i></i>) |
|
259 <p> |
|
260 Private slot to handle the enable watch expression context menu entry. |
|
261 </p><a NAME="WatchPointViewer.__findDuplicates" ID="WatchPointViewer.__findDuplicates"></a> |
|
262 <h4>WatchPointViewer.__findDuplicates</h4> |
|
263 <b>__findDuplicates</b>(<i>cond, special, showMessage=False, index=QModelIndex()</i>) |
|
264 <p> |
|
265 Private method to check, if an entry already exists. |
|
266 </p><dl> |
|
267 <dt><i>cond</i></dt> |
|
268 <dd> |
|
269 condition to check (string) |
|
270 </dd><dt><i>special</i></dt> |
|
271 <dd> |
|
272 special condition to check (string) |
|
273 </dd><dt><i>showMessage</i></dt> |
|
274 <dd> |
|
275 flag indicating a message should be shown, |
|
276 if a duplicate entry is found (boolean) |
|
277 </dd><dt><i>index</i></dt> |
|
278 <dd> |
|
279 index that should not be considered duplicate |
|
280 (QModelIndex) |
|
281 </dd> |
|
282 </dl><dl> |
|
283 <dt>Returns:</dt> |
|
284 <dd> |
|
285 flag indicating a duplicate entry (boolean) |
|
286 </dd> |
|
287 </dl><a NAME="WatchPointViewer.__fromSourceIndex" ID="WatchPointViewer.__fromSourceIndex"></a> |
|
288 <h4>WatchPointViewer.__fromSourceIndex</h4> |
|
289 <b>__fromSourceIndex</b>(<i>sindex</i>) |
|
290 <p> |
|
291 Private slot to convert a source index to an index. |
|
292 </p><dl> |
|
293 <dt><i>sindex</i></dt> |
|
294 <dd> |
|
295 source index to be converted (QModelIndex) |
|
296 </dd> |
|
297 </dl><dl> |
|
298 <dt>Returns:</dt> |
|
299 <dd> |
|
300 mapped index (QModelIndex) |
|
301 </dd> |
|
302 </dl><a NAME="WatchPointViewer.__getSelectedItemsCount" ID="WatchPointViewer.__getSelectedItemsCount"></a> |
|
303 <h4>WatchPointViewer.__getSelectedItemsCount</h4> |
|
304 <b>__getSelectedItemsCount</b>(<i></i>) |
|
305 <p> |
|
306 Private method to get the count of items selected. |
|
307 </p><dl> |
|
308 <dt>Returns:</dt> |
|
309 <dd> |
|
310 count of items selected (integer) |
|
311 </dd> |
|
312 </dl><a NAME="WatchPointViewer.__layoutDisplay" ID="WatchPointViewer.__layoutDisplay"></a> |
|
313 <h4>WatchPointViewer.__layoutDisplay</h4> |
|
314 <b>__layoutDisplay</b>(<i></i>) |
|
315 <p> |
|
316 Private slot to perform a layout operation. |
|
317 </p><a NAME="WatchPointViewer.__resizeColumns" ID="WatchPointViewer.__resizeColumns"></a> |
|
318 <h4>WatchPointViewer.__resizeColumns</h4> |
|
319 <b>__resizeColumns</b>(<i></i>) |
|
320 <p> |
|
321 Private slot to resize the view when items get added, edited or |
|
322 deleted. |
|
323 </p><a NAME="WatchPointViewer.__resort" ID="WatchPointViewer.__resort"></a> |
|
324 <h4>WatchPointViewer.__resort</h4> |
|
325 <b>__resort</b>(<i></i>) |
|
326 <p> |
|
327 Private slot to resort the tree. |
|
328 </p><a NAME="WatchPointViewer.__setRowSelected" ID="WatchPointViewer.__setRowSelected"></a> |
|
329 <h4>WatchPointViewer.__setRowSelected</h4> |
|
330 <b>__setRowSelected</b>(<i>index, selected=True</i>) |
|
331 <p> |
|
332 Private slot to select a complete row. |
|
333 </p><dl> |
|
334 <dt><i>index</i></dt> |
|
335 <dd> |
|
336 index determining the row to be selected (QModelIndex) |
|
337 </dd><dt><i>selected</i></dt> |
|
338 <dd> |
|
339 flag indicating the action (bool) |
|
340 </dd> |
|
341 </dl><a NAME="WatchPointViewer.__setWpEnabled" ID="WatchPointViewer.__setWpEnabled"></a> |
|
342 <h4>WatchPointViewer.__setWpEnabled</h4> |
|
343 <b>__setWpEnabled</b>(<i>index, enabled</i>) |
|
344 <p> |
|
345 Private method to set the enabled status of a watch expression. |
|
346 </p><dl> |
|
347 <dt><i>index</i></dt> |
|
348 <dd> |
|
349 index of watch expression to be enabled/disabled |
|
350 (QModelIndex) |
|
351 </dd><dt><i>enabled</i></dt> |
|
352 <dd> |
|
353 flag indicating the enabled status to be set (boolean) |
|
354 </dd> |
|
355 </dl><a NAME="WatchPointViewer.__showBackMenu" ID="WatchPointViewer.__showBackMenu"></a> |
|
356 <h4>WatchPointViewer.__showBackMenu</h4> |
|
357 <b>__showBackMenu</b>(<i></i>) |
|
358 <p> |
|
359 Private slot to handle the aboutToShow signal of the background menu. |
|
360 </p><a NAME="WatchPointViewer.__showContextMenu" ID="WatchPointViewer.__showContextMenu"></a> |
|
361 <h4>WatchPointViewer.__showContextMenu</h4> |
|
362 <b>__showContextMenu</b>(<i>coord</i>) |
|
363 <p> |
|
364 Private slot to show the context menu. |
|
365 </p><dl> |
|
366 <dt><i>coord</i></dt> |
|
367 <dd> |
|
368 the position of the mouse pointer (QPoint) |
|
369 </dd> |
|
370 </dl><a NAME="WatchPointViewer.__toSourceIndex" ID="WatchPointViewer.__toSourceIndex"></a> |
|
371 <h4>WatchPointViewer.__toSourceIndex</h4> |
|
372 <b>__toSourceIndex</b>(<i>index</i>) |
|
373 <p> |
|
374 Private slot to convert an index to a source index. |
|
375 </p><dl> |
|
376 <dt><i>index</i></dt> |
|
377 <dd> |
|
378 index to be converted (QModelIndex) |
|
379 </dd> |
|
380 </dl><dl> |
|
381 <dt>Returns:</dt> |
|
382 <dd> |
|
383 mapped index (QModelIndex) |
|
384 </dd> |
|
385 </dl><a NAME="WatchPointViewer.setModel" ID="WatchPointViewer.setModel"></a> |
|
386 <h4>WatchPointViewer.setModel</h4> |
|
387 <b>setModel</b>(<i>model</i>) |
|
388 <p> |
|
389 Public slot to set the watch expression model. |
|
390 </p><dl> |
|
391 <dt><i>model</i></dt> |
|
392 <dd> |
|
393 reference to the watch expression model (WatchPointModel) |
|
394 </dd> |
|
395 </dl> |
|
396 <div align="right"><a href="#top">Up</a></div> |
|
397 <hr /> |
|
398 </body></html> |