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