src/eric7/Documentation/Source/eric7.Debugger.WatchPointModel.html

branch
eric7
changeset 10479
856476537696
parent 10417
c6011e501282
child 10684
58c7f23ae1cb
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.Debugger.WatchPointModel</h1> 9 <h1>eric7.Debugger.WatchPointModel</h1>
10
11 <p> 10 <p>
12 Module implementing the Watch expression model. 11 Module implementing the Watch expression model.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>None</td></tr> 16 <tr><td>None</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#WatchPointModel">WatchPointModel</a></td> 22 <td><a href="#WatchPointModel">WatchPointModel</a></td>
25 <td>Class implementing a custom model for watch expressions.</td> 23 <td>Class implementing a custom model for watch expressions.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29
30 <table> 28 <table>
31 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
32 </table> 30 </table>
31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="WatchPointModel" ID="WatchPointModel"></a> 34 <a NAME="WatchPointModel" ID="WatchPointModel"></a>
36 <h2>WatchPointModel</h2> 35 <h2>WatchPointModel</h2>
37
38 <p> 36 <p>
39 Class implementing a custom model for watch expressions. 37 Class implementing a custom model for watch expressions.
40 </p> 38 </p>
39
41 <h3>Signals</h3> 40 <h3>Signals</h3>
42 <dl> 41 <dl>
43 42
44 <dt>dataAboutToBeChanged(QModelIndex, QModelIndex)</dt> 43 <dt>dataAboutToBeChanged(QModelIndex, QModelIndex)</dt>
45 <dd> 44 <dd>
48 </dd> 47 </dd>
49 </dl> 48 </dl>
50 <h3>Derived from</h3> 49 <h3>Derived from</h3>
51 QAbstractItemModel 50 QAbstractItemModel
52 <h3>Class Attributes</h3> 51 <h3>Class Attributes</h3>
53 52 <table>
54 <table> 53 <tr><td>Alignments</td></tr>
55 <tr><td>Alignments</td></tr><tr><td>ConditionColumn</td></tr><tr><td>EnabledColumn</td></tr><tr><td>Header</td></tr><tr><td>IgnoreCountColumn</td></tr><tr><td>SpecialColumn</td></tr><tr><td>TemporaryColumn</td></tr> 54 <tr><td>ConditionColumn</td></tr>
56 </table> 55 <tr><td>EnabledColumn</td></tr>
56 <tr><td>Header</td></tr>
57 <tr><td>IgnoreCountColumn</td></tr>
58 <tr><td>SpecialColumn</td></tr>
59 <tr><td>TemporaryColumn</td></tr>
60 </table>
61
57 <h3>Class Methods</h3> 62 <h3>Class Methods</h3>
58
59 <table> 63 <table>
60 <tr><td>None</td></tr> 64 <tr><td>None</td></tr>
61 </table> 65 </table>
66
62 <h3>Methods</h3> 67 <h3>Methods</h3>
63 68 <table>
64 <table>
65
66 <tr> 69 <tr>
67 <td><a href="#WatchPointModel.__init__">WatchPointModel</a></td> 70 <td><a href="#WatchPointModel.__init__">WatchPointModel</a></td>
68 <td>Constructor</td> 71 <td>Constructor</td>
69 </tr> 72 </tr>
70 <tr> 73 <tr>
138 <tr> 141 <tr>
139 <td><a href="#WatchPointModel.setWatchPointEnabledByIndex">setWatchPointEnabledByIndex</a></td> 142 <td><a href="#WatchPointModel.setWatchPointEnabledByIndex">setWatchPointEnabledByIndex</a></td>
140 <td>Public method to set the enabled state of a watch expression given by index.</td> 143 <td>Public method to set the enabled state of a watch expression given by index.</td>
141 </tr> 144 </tr>
142 </table> 145 </table>
146
143 <h3>Static Methods</h3> 147 <h3>Static Methods</h3>
144
145 <table> 148 <table>
146 <tr><td>None</td></tr> 149 <tr><td>None</td></tr>
147 </table> 150 </table>
151
148 152
149 <a NAME="WatchPointModel.__init__" ID="WatchPointModel.__init__"></a> 153 <a NAME="WatchPointModel.__init__" ID="WatchPointModel.__init__"></a>
150 <h4>WatchPointModel (Constructor)</h4> 154 <h4>WatchPointModel (Constructor)</h4>
151 <b>WatchPointModel</b>(<i>parent=None</i>) 155 <b>WatchPointModel</b>(<i>parent=None</i>)
152
153 <p> 156 <p>
154 Constructor 157 Constructor
155 </p> 158 </p>
159
156 <dl> 160 <dl>
157 161
158 <dt><i>parent</i> (QObject)</dt> 162 <dt><i>parent</i> (QObject)</dt>
159 <dd> 163 <dd>
160 reference to the parent object 164 reference to the parent object
161 </dd> 165 </dd>
162 </dl> 166 </dl>
163 <a NAME="WatchPointModel.addWatchPoint" ID="WatchPointModel.addWatchPoint"></a> 167 <a NAME="WatchPointModel.addWatchPoint" ID="WatchPointModel.addWatchPoint"></a>
164 <h4>WatchPointModel.addWatchPoint</h4> 168 <h4>WatchPointModel.addWatchPoint</h4>
165 <b>addWatchPoint</b>(<i>cond, special, properties</i>) 169 <b>addWatchPoint</b>(<i>cond, special, properties</i>)
166
167 <p> 170 <p>
168 Public method to add a new watch expression to the list. 171 Public method to add a new watch expression to the list.
169 </p> 172 </p>
173
170 <dl> 174 <dl>
171 175
172 <dt><i>cond</i> (str)</dt> 176 <dt><i>cond</i> (str)</dt>
173 <dd> 177 <dd>
174 expression of the watch expression 178 expression of the watch expression
184 </dd> 188 </dd>
185 </dl> 189 </dl>
186 <a NAME="WatchPointModel.addWatchPoints" ID="WatchPointModel.addWatchPoints"></a> 190 <a NAME="WatchPointModel.addWatchPoints" ID="WatchPointModel.addWatchPoints"></a>
187 <h4>WatchPointModel.addWatchPoints</h4> 191 <h4>WatchPointModel.addWatchPoints</h4>
188 <b>addWatchPoints</b>(<i>watchpoints</i>) 192 <b>addWatchPoints</b>(<i>watchpoints</i>)
189
190 <p> 193 <p>
191 Public method to add multiple watch expressions to the list. 194 Public method to add multiple watch expressions to the list.
192 </p> 195 </p>
196
193 <dl> 197 <dl>
194 198
195 <dt><i>watchpoints</i> (list of (str, str, bool, bool, int))</dt> 199 <dt><i>watchpoints</i> (list of (str, str, bool, bool, int))</dt>
196 <dd> 200 <dd>
197 list of watch expressions with expression, special 201 list of watch expressions with expression, special
199 </dd> 203 </dd>
200 </dl> 204 </dl>
201 <a NAME="WatchPointModel.columnCount" ID="WatchPointModel.columnCount"></a> 205 <a NAME="WatchPointModel.columnCount" ID="WatchPointModel.columnCount"></a>
202 <h4>WatchPointModel.columnCount</h4> 206 <h4>WatchPointModel.columnCount</h4>
203 <b>columnCount</b>(<i>parent=None</i>) 207 <b>columnCount</b>(<i>parent=None</i>)
204
205 <p> 208 <p>
206 Public method to get the current column count. 209 Public method to get the current column count.
207 </p> 210 </p>
211
208 <dl> 212 <dl>
209 213
210 <dt><i>parent</i> (QModelIndex)</dt> 214 <dt><i>parent</i> (QModelIndex)</dt>
211 <dd> 215 <dd>
212 index of the parent item (unused) 216 index of the parent item (unused)
225 </dd> 229 </dd>
226 </dl> 230 </dl>
227 <a NAME="WatchPointModel.data" ID="WatchPointModel.data"></a> 231 <a NAME="WatchPointModel.data" ID="WatchPointModel.data"></a>
228 <h4>WatchPointModel.data</h4> 232 <h4>WatchPointModel.data</h4>
229 <b>data</b>(<i>index, role</i>) 233 <b>data</b>(<i>index, role</i>)
230
231 <p> 234 <p>
232 Public method to get the requested data. 235 Public method to get the requested data.
233 </p> 236 </p>
237
234 <dl> 238 <dl>
235 239
236 <dt><i>index</i> (QModelIndex)</dt> 240 <dt><i>index</i> (QModelIndex)</dt>
237 <dd> 241 <dd>
238 index of the requested data 242 index of the requested data
255 </dd> 259 </dd>
256 </dl> 260 </dl>
257 <a NAME="WatchPointModel.deleteAll" ID="WatchPointModel.deleteAll"></a> 261 <a NAME="WatchPointModel.deleteAll" ID="WatchPointModel.deleteAll"></a>
258 <h4>WatchPointModel.deleteAll</h4> 262 <h4>WatchPointModel.deleteAll</h4>
259 <b>deleteAll</b>(<i></i>) 263 <b>deleteAll</b>(<i></i>)
260
261 <p> 264 <p>
262 Public method to delete all watch expressions. 265 Public method to delete all watch expressions.
263 </p> 266 </p>
267
264 <a NAME="WatchPointModel.deleteWatchPointByIndex" ID="WatchPointModel.deleteWatchPointByIndex"></a> 268 <a NAME="WatchPointModel.deleteWatchPointByIndex" ID="WatchPointModel.deleteWatchPointByIndex"></a>
265 <h4>WatchPointModel.deleteWatchPointByIndex</h4> 269 <h4>WatchPointModel.deleteWatchPointByIndex</h4>
266 <b>deleteWatchPointByIndex</b>(<i>index</i>) 270 <b>deleteWatchPointByIndex</b>(<i>index</i>)
267
268 <p> 271 <p>
269 Public method to set the values of a watch expression given by index. 272 Public method to set the values of a watch expression given by index.
270 </p> 273 </p>
274
271 <dl> 275 <dl>
272 276
273 <dt><i>index</i> (QModelIndex)</dt> 277 <dt><i>index</i> (QModelIndex)</dt>
274 <dd> 278 <dd>
275 index of the watch expression 279 index of the watch expression
276 </dd> 280 </dd>
277 </dl> 281 </dl>
278 <a NAME="WatchPointModel.deleteWatchPoints" ID="WatchPointModel.deleteWatchPoints"></a> 282 <a NAME="WatchPointModel.deleteWatchPoints" ID="WatchPointModel.deleteWatchPoints"></a>
279 <h4>WatchPointModel.deleteWatchPoints</h4> 283 <h4>WatchPointModel.deleteWatchPoints</h4>
280 <b>deleteWatchPoints</b>(<i>idxList</i>) 284 <b>deleteWatchPoints</b>(<i>idxList</i>)
281
282 <p> 285 <p>
283 Public method to delete a list of watch expressions given by their 286 Public method to delete a list of watch expressions given by their
284 indexes. 287 indexes.
285 </p> 288 </p>
289
286 <dl> 290 <dl>
287 291
288 <dt><i>idxList</i> (list of QModelIndex)</dt> 292 <dt><i>idxList</i> (list of QModelIndex)</dt>
289 <dd> 293 <dd>
290 list of watch expression indexes 294 list of watch expression indexes
291 </dd> 295 </dd>
292 </dl> 296 </dl>
293 <a NAME="WatchPointModel.flags" ID="WatchPointModel.flags"></a> 297 <a NAME="WatchPointModel.flags" ID="WatchPointModel.flags"></a>
294 <h4>WatchPointModel.flags</h4> 298 <h4>WatchPointModel.flags</h4>
295 <b>flags</b>(<i>index</i>) 299 <b>flags</b>(<i>index</i>)
296
297 <p> 300 <p>
298 Public method to get item flags. 301 Public method to get item flags.
299 </p> 302 </p>
303
300 <dl> 304 <dl>
301 305
302 <dt><i>index</i> (QModelIndex)</dt> 306 <dt><i>index</i> (QModelIndex)</dt>
303 <dd> 307 <dd>
304 index of the requested flags 308 index of the requested flags
317 </dd> 321 </dd>
318 </dl> 322 </dl>
319 <a NAME="WatchPointModel.getAllWatchpoints" ID="WatchPointModel.getAllWatchpoints"></a> 323 <a NAME="WatchPointModel.getAllWatchpoints" ID="WatchPointModel.getAllWatchpoints"></a>
320 <h4>WatchPointModel.getAllWatchpoints</h4> 324 <h4>WatchPointModel.getAllWatchpoints</h4>
321 <b>getAllWatchpoints</b>(<i></i>) 325 <b>getAllWatchpoints</b>(<i></i>)
322
323 <p> 326 <p>
324 Public method to get the list of watchpoints. 327 Public method to get the list of watchpoints.
325 </p> 328 </p>
329
326 <dl> 330 <dl>
327 <dt>Return:</dt> 331 <dt>Return:</dt>
328 <dd> 332 <dd>
329 list of watchpoints 333 list of watchpoints
330 </dd> 334 </dd>
336 </dd> 340 </dd>
337 </dl> 341 </dl>
338 <a NAME="WatchPointModel.getWatchPointByIndex" ID="WatchPointModel.getWatchPointByIndex"></a> 342 <a NAME="WatchPointModel.getWatchPointByIndex" ID="WatchPointModel.getWatchPointByIndex"></a>
339 <h4>WatchPointModel.getWatchPointByIndex</h4> 343 <h4>WatchPointModel.getWatchPointByIndex</h4>
340 <b>getWatchPointByIndex</b>(<i>index</i>) 344 <b>getWatchPointByIndex</b>(<i>index</i>)
341
342 <p> 345 <p>
343 Public method to get the values of a watch expression given by index. 346 Public method to get the values of a watch expression given by index.
344 </p> 347 </p>
348
345 <dl> 349 <dl>
346 350
347 <dt><i>index</i> (QModelIndex)</dt> 351 <dt><i>index</i> (QModelIndex)</dt>
348 <dd> 352 <dd>
349 index of the watch expression 353 index of the watch expression
363 </dd> 367 </dd>
364 </dl> 368 </dl>
365 <a NAME="WatchPointModel.getWatchPointIndex" ID="WatchPointModel.getWatchPointIndex"></a> 369 <a NAME="WatchPointModel.getWatchPointIndex" ID="WatchPointModel.getWatchPointIndex"></a>
366 <h4>WatchPointModel.getWatchPointIndex</h4> 370 <h4>WatchPointModel.getWatchPointIndex</h4>
367 <b>getWatchPointIndex</b>(<i>cond, special=""</i>) 371 <b>getWatchPointIndex</b>(<i>cond, special=""</i>)
368
369 <p> 372 <p>
370 Public method to get the index of a watch expression given by 373 Public method to get the index of a watch expression given by
371 expression. 374 expression.
372 </p> 375 </p>
376
373 <dl> 377 <dl>
374 378
375 <dt><i>cond</i> (str)</dt> 379 <dt><i>cond</i> (str)</dt>
376 <dd> 380 <dd>
377 expression of the watch expression 381 expression of the watch expression
394 </dd> 398 </dd>
395 </dl> 399 </dl>
396 <a NAME="WatchPointModel.hasChildren" ID="WatchPointModel.hasChildren"></a> 400 <a NAME="WatchPointModel.hasChildren" ID="WatchPointModel.hasChildren"></a>
397 <h4>WatchPointModel.hasChildren</h4> 401 <h4>WatchPointModel.hasChildren</h4>
398 <b>hasChildren</b>(<i>parent=None</i>) 402 <b>hasChildren</b>(<i>parent=None</i>)
399
400 <p> 403 <p>
401 Public method to check for the presence of child items. 404 Public method to check for the presence of child items.
402 </p> 405 </p>
406
403 <dl> 407 <dl>
404 408
405 <dt><i>parent</i> (QModelIndex)</dt> 409 <dt><i>parent</i> (QModelIndex)</dt>
406 <dd> 410 <dd>
407 index of parent item 411 index of parent item
420 </dd> 424 </dd>
421 </dl> 425 </dl>
422 <a NAME="WatchPointModel.headerData" ID="WatchPointModel.headerData"></a> 426 <a NAME="WatchPointModel.headerData" ID="WatchPointModel.headerData"></a>
423 <h4>WatchPointModel.headerData</h4> 427 <h4>WatchPointModel.headerData</h4>
424 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>) 428 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>)
425
426 <p> 429 <p>
427 Public method to get header data. 430 Public method to get header data.
428 </p> 431 </p>
432
429 <dl> 433 <dl>
430 434
431 <dt><i>section</i> (int)</dt> 435 <dt><i>section</i> (int)</dt>
432 <dd> 436 <dd>
433 section number of the requested header data 437 section number of the requested header data
454 </dd> 458 </dd>
455 </dl> 459 </dl>
456 <a NAME="WatchPointModel.index" ID="WatchPointModel.index"></a> 460 <a NAME="WatchPointModel.index" ID="WatchPointModel.index"></a>
457 <h4>WatchPointModel.index</h4> 461 <h4>WatchPointModel.index</h4>
458 <b>index</b>(<i>row, column, parent=None</i>) 462 <b>index</b>(<i>row, column, parent=None</i>)
459
460 <p> 463 <p>
461 Public method to create an index. 464 Public method to create an index.
462 </p> 465 </p>
466
463 <dl> 467 <dl>
464 468
465 <dt><i>row</i> (int)</dt> 469 <dt><i>row</i> (int)</dt>
466 <dd> 470 <dd>
467 row number for the index 471 row number for the index
488 </dd> 492 </dd>
489 </dl> 493 </dl>
490 <a NAME="WatchPointModel.parent" ID="WatchPointModel.parent"></a> 494 <a NAME="WatchPointModel.parent" ID="WatchPointModel.parent"></a>
491 <h4>WatchPointModel.parent</h4> 495 <h4>WatchPointModel.parent</h4>
492 <b>parent</b>(<i>index</i>) 496 <b>parent</b>(<i>index</i>)
493
494 <p> 497 <p>
495 Public method to get the parent index. 498 Public method to get the parent index.
496 </p> 499 </p>
500
497 <dl> 501 <dl>
498 502
499 <dt><i>index</i> (QModelIndex)</dt> 503 <dt><i>index</i> (QModelIndex)</dt>
500 <dd> 504 <dd>
501 index of item to get parent 505 index of item to get parent
514 </dd> 518 </dd>
515 </dl> 519 </dl>
516 <a NAME="WatchPointModel.rowCount" ID="WatchPointModel.rowCount"></a> 520 <a NAME="WatchPointModel.rowCount" ID="WatchPointModel.rowCount"></a>
517 <h4>WatchPointModel.rowCount</h4> 521 <h4>WatchPointModel.rowCount</h4>
518 <b>rowCount</b>(<i>parent=None</i>) 522 <b>rowCount</b>(<i>parent=None</i>)
519
520 <p> 523 <p>
521 Public method to get the current row count. 524 Public method to get the current row count.
522 </p> 525 </p>
526
523 <dl> 527 <dl>
524 528
525 <dt><i>parent</i> (QModelIndex)</dt> 529 <dt><i>parent</i> (QModelIndex)</dt>
526 <dd> 530 <dd>
527 index of the parent item 531 index of the parent item
540 </dd> 544 </dd>
541 </dl> 545 </dl>
542 <a NAME="WatchPointModel.setWatchPointByIndex" ID="WatchPointModel.setWatchPointByIndex"></a> 546 <a NAME="WatchPointModel.setWatchPointByIndex" ID="WatchPointModel.setWatchPointByIndex"></a>
543 <h4>WatchPointModel.setWatchPointByIndex</h4> 547 <h4>WatchPointModel.setWatchPointByIndex</h4>
544 <b>setWatchPointByIndex</b>(<i>index, cond, special, properties</i>) 548 <b>setWatchPointByIndex</b>(<i>index, cond, special, properties</i>)
545
546 <p> 549 <p>
547 Public method to set the values of a watch expression given by index. 550 Public method to set the values of a watch expression given by index.
548 </p> 551 </p>
552
549 <dl> 553 <dl>
550 554
551 <dt><i>index</i> (QModelIndex)</dt> 555 <dt><i>index</i> (QModelIndex)</dt>
552 <dd> 556 <dd>
553 index of the watch expression 557 index of the watch expression
567 </dd> 571 </dd>
568 </dl> 572 </dl>
569 <a NAME="WatchPointModel.setWatchPointEnabledByIndex" ID="WatchPointModel.setWatchPointEnabledByIndex"></a> 573 <a NAME="WatchPointModel.setWatchPointEnabledByIndex" ID="WatchPointModel.setWatchPointEnabledByIndex"></a>
570 <h4>WatchPointModel.setWatchPointEnabledByIndex</h4> 574 <h4>WatchPointModel.setWatchPointEnabledByIndex</h4>
571 <b>setWatchPointEnabledByIndex</b>(<i>index, enabled</i>) 575 <b>setWatchPointEnabledByIndex</b>(<i>index, enabled</i>)
572
573 <p> 576 <p>
574 Public method to set the enabled state of a watch expression given by 577 Public method to set the enabled state of a watch expression given by
575 index. 578 index.
576 </p> 579 </p>
580
577 <dl> 581 <dl>
578 582
579 <dt><i>index</i> (QModelIndex)</dt> 583 <dt><i>index</i> (QModelIndex)</dt>
580 <dd> 584 <dd>
581 index of the watch expression 585 index of the watch expression

eric ide

mercurial