eric6/Documentation/Source/eric6.Debugger.WatchPointModel.html

changeset 6942
2602857055c5
parent 5727
c8842a8d1167
child 7273
391d6b7b1eff
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Debugger.WatchPointModel</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.WatchPointModel</h1>
23 <p>
24 Module implementing the Watch expression model.
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="#WatchPointModel">WatchPointModel</a></td>
34 <td>Class implementing a custom model for watch expressions.</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="WatchPointModel" ID="WatchPointModel"></a>
43 <h2>WatchPointModel</h2>
44 <p>
45 Class implementing a custom model for watch expressions.
46 </p><h3>Signals</h3>
47 <dl>
48 <dt>dataAboutToBeChanged(QModelIndex, QModelIndex)</dt>
49 <dd>
50 emitted to indicate
51 a change of the data
52 </dd>
53 </dl>
54 <h3>Derived from</h3>
55 QAbstractItemModel
56 <h3>Class Attributes</h3>
57 <table>
58 <tr><td>None</td></tr>
59 </table>
60 <h3>Class Methods</h3>
61 <table>
62 <tr><td>None</td></tr>
63 </table>
64 <h3>Methods</h3>
65 <table>
66 <tr>
67 <td><a href="#WatchPointModel.__init__">WatchPointModel</a></td>
68 <td>Constructor</td>
69 </tr><tr>
70 <td><a href="#WatchPointModel.addWatchPoint">addWatchPoint</a></td>
71 <td>Public method to add a new watch expression to the list.</td>
72 </tr><tr>
73 <td><a href="#WatchPointModel.columnCount">columnCount</a></td>
74 <td>Public method to get the current column count.</td>
75 </tr><tr>
76 <td><a href="#WatchPointModel.data">data</a></td>
77 <td>Public method to get the requested data.</td>
78 </tr><tr>
79 <td><a href="#WatchPointModel.deleteAll">deleteAll</a></td>
80 <td>Public method to delete all watch expressions.</td>
81 </tr><tr>
82 <td><a href="#WatchPointModel.deleteWatchPointByIndex">deleteWatchPointByIndex</a></td>
83 <td>Public method to set the values of a watch expression given by index.</td>
84 </tr><tr>
85 <td><a href="#WatchPointModel.deleteWatchPoints">deleteWatchPoints</a></td>
86 <td>Public method to delete a list of watch expressions given by their indexes.</td>
87 </tr><tr>
88 <td><a href="#WatchPointModel.flags">flags</a></td>
89 <td>Public method to get item flags.</td>
90 </tr><tr>
91 <td><a href="#WatchPointModel.getWatchPointByIndex">getWatchPointByIndex</a></td>
92 <td>Public method to get the values of a watch expression given by index.</td>
93 </tr><tr>
94 <td><a href="#WatchPointModel.getWatchPointIndex">getWatchPointIndex</a></td>
95 <td>Public method to get the index of a watch expression given by expression.</td>
96 </tr><tr>
97 <td><a href="#WatchPointModel.hasChildren">hasChildren</a></td>
98 <td>Public method to check for the presence of child items.</td>
99 </tr><tr>
100 <td><a href="#WatchPointModel.headerData">headerData</a></td>
101 <td>Public method to get header data.</td>
102 </tr><tr>
103 <td><a href="#WatchPointModel.index">index</a></td>
104 <td>Public method to create an index.</td>
105 </tr><tr>
106 <td><a href="#WatchPointModel.parent">parent</a></td>
107 <td>Public method to get the parent index.</td>
108 </tr><tr>
109 <td><a href="#WatchPointModel.rowCount">rowCount</a></td>
110 <td>Public method to get the current row count.</td>
111 </tr><tr>
112 <td><a href="#WatchPointModel.setWatchPointByIndex">setWatchPointByIndex</a></td>
113 <td>Public method to set the values of a watch expression given by index.</td>
114 </tr><tr>
115 <td><a href="#WatchPointModel.setWatchPointEnabledByIndex">setWatchPointEnabledByIndex</a></td>
116 <td>Public method to set the enabled state of a watch expression given by index.</td>
117 </tr>
118 </table>
119 <h3>Static Methods</h3>
120 <table>
121 <tr><td>None</td></tr>
122 </table>
123 <a NAME="WatchPointModel.__init__" ID="WatchPointModel.__init__"></a>
124 <h4>WatchPointModel (Constructor)</h4>
125 <b>WatchPointModel</b>(<i>parent=None</i>)
126 <p>
127 Constructor
128 </p><dl>
129 <dt><i>parent</i></dt>
130 <dd>
131 reference to the parent widget (QObject)
132 </dd>
133 </dl><a NAME="WatchPointModel.addWatchPoint" ID="WatchPointModel.addWatchPoint"></a>
134 <h4>WatchPointModel.addWatchPoint</h4>
135 <b>addWatchPoint</b>(<i>cond, special, properties</i>)
136 <p>
137 Public method to add a new watch expression to the list.
138 </p><dl>
139 <dt><i>cond</i></dt>
140 <dd>
141 expression of the watch expression (string)
142 </dd><dt><i>special</i></dt>
143 <dd>
144 special condition of the watch expression (string)
145 </dd><dt><i>properties</i></dt>
146 <dd>
147 properties of the watch expression
148 (tuple of temporary flag (bool), enabled flag (bool),
149 ignore count (integer))
150 </dd>
151 </dl><a NAME="WatchPointModel.columnCount" ID="WatchPointModel.columnCount"></a>
152 <h4>WatchPointModel.columnCount</h4>
153 <b>columnCount</b>(<i>parent=None</i>)
154 <p>
155 Public method to get the current column count.
156 </p><dl>
157 <dt><i>parent</i></dt>
158 <dd>
159 index of the parent item (QModelIndex) (Unused)
160 </dd>
161 </dl><dl>
162 <dt>Returns:</dt>
163 <dd>
164 column count (integer)
165 </dd>
166 </dl><a NAME="WatchPointModel.data" ID="WatchPointModel.data"></a>
167 <h4>WatchPointModel.data</h4>
168 <b>data</b>(<i>index, role</i>)
169 <p>
170 Public method to get the requested data.
171 </p><dl>
172 <dt><i>index</i></dt>
173 <dd>
174 index of the requested data (QModelIndex)
175 </dd><dt><i>role</i></dt>
176 <dd>
177 role of the requested data (Qt.ItemDataRole)
178 </dd>
179 </dl><dl>
180 <dt>Returns:</dt>
181 <dd>
182 the requested data
183 </dd>
184 </dl><a NAME="WatchPointModel.deleteAll" ID="WatchPointModel.deleteAll"></a>
185 <h4>WatchPointModel.deleteAll</h4>
186 <b>deleteAll</b>(<i></i>)
187 <p>
188 Public method to delete all watch expressions.
189 </p><a NAME="WatchPointModel.deleteWatchPointByIndex" ID="WatchPointModel.deleteWatchPointByIndex"></a>
190 <h4>WatchPointModel.deleteWatchPointByIndex</h4>
191 <b>deleteWatchPointByIndex</b>(<i>index</i>)
192 <p>
193 Public method to set the values of a watch expression given by index.
194 </p><dl>
195 <dt><i>index</i></dt>
196 <dd>
197 index of the watch expression (QModelIndex)
198 </dd>
199 </dl><a NAME="WatchPointModel.deleteWatchPoints" ID="WatchPointModel.deleteWatchPoints"></a>
200 <h4>WatchPointModel.deleteWatchPoints</h4>
201 <b>deleteWatchPoints</b>(<i>idxList</i>)
202 <p>
203 Public method to delete a list of watch expressions given by their
204 indexes.
205 </p><dl>
206 <dt><i>idxList</i></dt>
207 <dd>
208 list of watch expression indexes (list of QModelIndex)
209 </dd>
210 </dl><a NAME="WatchPointModel.flags" ID="WatchPointModel.flags"></a>
211 <h4>WatchPointModel.flags</h4>
212 <b>flags</b>(<i>index</i>)
213 <p>
214 Public method to get item flags.
215 </p><dl>
216 <dt><i>index</i></dt>
217 <dd>
218 index of the requested flags (QModelIndex)
219 </dd>
220 </dl><dl>
221 <dt>Returns:</dt>
222 <dd>
223 item flags for the given index (Qt.ItemFlags)
224 </dd>
225 </dl><a NAME="WatchPointModel.getWatchPointByIndex" ID="WatchPointModel.getWatchPointByIndex"></a>
226 <h4>WatchPointModel.getWatchPointByIndex</h4>
227 <b>getWatchPointByIndex</b>(<i>index</i>)
228 <p>
229 Public method to get the values of a watch expression given by index.
230 </p><dl>
231 <dt><i>index</i></dt>
232 <dd>
233 index of the watch expression (QModelIndex)
234 </dd>
235 </dl><dl>
236 <dt>Returns:</dt>
237 <dd>
238 watch expression (list of six values (expression,
239 special condition, temporary flag, enabled flag, ignore count,
240 index))
241 </dd>
242 </dl><a NAME="WatchPointModel.getWatchPointIndex" ID="WatchPointModel.getWatchPointIndex"></a>
243 <h4>WatchPointModel.getWatchPointIndex</h4>
244 <b>getWatchPointIndex</b>(<i>cond, special=""</i>)
245 <p>
246 Public method to get the index of a watch expression given by
247 expression.
248 </p><dl>
249 <dt><i>cond</i></dt>
250 <dd>
251 expression of the watch expression (string)
252 </dd><dt><i>special</i></dt>
253 <dd>
254 special condition of the watch expression (string)
255 </dd>
256 </dl><dl>
257 <dt>Returns:</dt>
258 <dd>
259 index (QModelIndex)
260 </dd>
261 </dl><a NAME="WatchPointModel.hasChildren" ID="WatchPointModel.hasChildren"></a>
262 <h4>WatchPointModel.hasChildren</h4>
263 <b>hasChildren</b>(<i>parent=None</i>)
264 <p>
265 Public method to check for the presence of child items.
266 </p><dl>
267 <dt><i>parent</i></dt>
268 <dd>
269 index of parent item (QModelIndex)
270 </dd>
271 </dl><dl>
272 <dt>Returns:</dt>
273 <dd>
274 flag indicating the presence of child items (boolean)
275 </dd>
276 </dl><a NAME="WatchPointModel.headerData" ID="WatchPointModel.headerData"></a>
277 <h4>WatchPointModel.headerData</h4>
278 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>)
279 <p>
280 Public method to get header data.
281 </p><dl>
282 <dt><i>section</i></dt>
283 <dd>
284 section number of the requested header data (integer)
285 </dd><dt><i>orientation</i></dt>
286 <dd>
287 orientation of the header (Qt.Orientation)
288 </dd><dt><i>role</i></dt>
289 <dd>
290 role of the requested data (Qt.ItemDataRole)
291 </dd>
292 </dl><dl>
293 <dt>Returns:</dt>
294 <dd>
295 header data
296 </dd>
297 </dl><a NAME="WatchPointModel.index" ID="WatchPointModel.index"></a>
298 <h4>WatchPointModel.index</h4>
299 <b>index</b>(<i>row, column, parent=None</i>)
300 <p>
301 Public method to create an index.
302 </p><dl>
303 <dt><i>row</i></dt>
304 <dd>
305 row number for the index (integer)
306 </dd><dt><i>column</i></dt>
307 <dd>
308 column number for the index (integer)
309 </dd><dt><i>parent</i></dt>
310 <dd>
311 index of the parent item (QModelIndex)
312 </dd>
313 </dl><dl>
314 <dt>Returns:</dt>
315 <dd>
316 requested index (QModelIndex)
317 </dd>
318 </dl><a NAME="WatchPointModel.parent" ID="WatchPointModel.parent"></a>
319 <h4>WatchPointModel.parent</h4>
320 <b>parent</b>(<i>index</i>)
321 <p>
322 Public method to get the parent index.
323 </p><dl>
324 <dt><i>index</i></dt>
325 <dd>
326 index of item to get parent (QModelIndex)
327 </dd>
328 </dl><dl>
329 <dt>Returns:</dt>
330 <dd>
331 index of parent (QModelIndex)
332 </dd>
333 </dl><a NAME="WatchPointModel.rowCount" ID="WatchPointModel.rowCount"></a>
334 <h4>WatchPointModel.rowCount</h4>
335 <b>rowCount</b>(<i>parent=None</i>)
336 <p>
337 Public method to get the current row count.
338 </p><dl>
339 <dt><i>parent</i></dt>
340 <dd>
341 index of the parent item (QModelIndex)
342 </dd>
343 </dl><dl>
344 <dt>Returns:</dt>
345 <dd>
346 row count (integer)
347 </dd>
348 </dl><a NAME="WatchPointModel.setWatchPointByIndex" ID="WatchPointModel.setWatchPointByIndex"></a>
349 <h4>WatchPointModel.setWatchPointByIndex</h4>
350 <b>setWatchPointByIndex</b>(<i>index, cond, special, properties</i>)
351 <p>
352 Public method to set the values of a watch expression given by index.
353 </p><dl>
354 <dt><i>index</i></dt>
355 <dd>
356 index of the watch expression (QModelIndex)
357 </dd><dt><i>cond</i></dt>
358 <dd>
359 expression of the watch expression (string)
360 </dd><dt><i>special</i></dt>
361 <dd>
362 special condition of the watch expression (string)
363 </dd><dt><i>properties</i></dt>
364 <dd>
365 properties of the watch expression
366 (tuple of temporary flag (bool), enabled flag (bool),
367 ignore count (integer))
368 </dd>
369 </dl><a NAME="WatchPointModel.setWatchPointEnabledByIndex" ID="WatchPointModel.setWatchPointEnabledByIndex"></a>
370 <h4>WatchPointModel.setWatchPointEnabledByIndex</h4>
371 <b>setWatchPointEnabledByIndex</b>(<i>index, enabled</i>)
372 <p>
373 Public method to set the enabled state of a watch expression given by
374 index.
375 </p><dl>
376 <dt><i>index</i></dt>
377 <dd>
378 index of the watch expression (QModelIndex)
379 </dd><dt><i>enabled</i></dt>
380 <dd>
381 flag giving the enabled state (boolean)
382 </dd>
383 </dl>
384 <div align="right"><a href="#top">Up</a></div>
385 <hr />
386 </body></html>

eric ide

mercurial