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