228 </p> |
228 </p> |
229 <h3>Derived from</h3> |
229 <h3>Derived from</h3> |
230 QTreeWidgetItem |
230 QTreeWidgetItem |
231 <h3>Class Attributes</h3> |
231 <h3>Class Attributes</h3> |
232 <table> |
232 <table> |
233 <tr><td>None</td></tr> |
233 <tr><td>Indicators</td></tr><tr><td>Type2Indicators</td></tr> |
234 </table> |
234 </table> |
235 <h3>Class Methods</h3> |
235 <h3>Class Methods</h3> |
236 <table> |
236 <table> |
237 <tr><td>None</td></tr> |
237 <tr> |
|
238 <td><a href="#VariableItem.extractId">extractId</a></td> |
|
239 <td>Class method to extract the ID string from a variable text.</td> |
|
240 </tr><tr> |
|
241 <td><a href="#VariableItem.extractIndicators">extractIndicators</a></td> |
|
242 <td>Class method to extract the indicator string from a variable text.</td> |
|
243 </tr> |
238 </table> |
244 </table> |
239 <h3>Methods</h3> |
245 <h3>Methods</h3> |
240 <table> |
246 <table> |
241 <tr> |
247 <tr> |
242 <td><a href="#VariableItem.__init__">VariableItem</a></td> |
248 <td><a href="#VariableItem.__init__">VariableItem</a></td> |
243 <td>Constructor</td> |
249 <td>Constructor</td> |
244 </tr><tr> |
250 </tr><tr> |
|
251 <td><a href="#VariableItem._buildKey">_buildKey</a></td> |
|
252 <td>Protected method to build the access key for the variable.</td> |
|
253 </tr><tr> |
245 <td><a href="#VariableItem.attachDummy">attachDummy</a></td> |
254 <td><a href="#VariableItem.attachDummy">attachDummy</a></td> |
246 <td>Public method to attach a dummy sub item to allow for lazy population.</td> |
255 <td>Public method to attach a dummy sub item to allow for lazy population.</td> |
247 </tr><tr> |
256 </tr><tr> |
248 <td><a href="#VariableItem.collapse">collapse</a></td> |
257 <td><a href="#VariableItem.collapse">collapse</a></td> |
249 <td>Public method to collapse the item.</td> |
258 <td>Public method to collapse the item.</td> |
254 <td><a href="#VariableItem.deleteChildren">deleteChildren</a></td> |
263 <td><a href="#VariableItem.deleteChildren">deleteChildren</a></td> |
255 <td>Public method to delete all children (cleaning the subtree).</td> |
264 <td>Public method to delete all children (cleaning the subtree).</td> |
256 </tr><tr> |
265 </tr><tr> |
257 <td><a href="#VariableItem.expand">expand</a></td> |
266 <td><a href="#VariableItem.expand">expand</a></td> |
258 <td>Public method to expand the item.</td> |
267 <td>Public method to expand the item.</td> |
|
268 </tr><tr> |
|
269 <td><a href="#VariableItem.getId">getId</a></td> |
|
270 <td>Public method to get the ID string.</td> |
259 </tr><tr> |
271 </tr><tr> |
260 <td><a href="#VariableItem.getValue">getValue</a></td> |
272 <td><a href="#VariableItem.getValue">getValue</a></td> |
261 <td>Public method to return the value of the item.</td> |
273 <td>Public method to return the value of the item.</td> |
262 </tr> |
274 </tr> |
263 </table> |
275 </table> |
264 <h3>Static Methods</h3> |
276 <h3>Static Methods</h3> |
265 <table> |
277 <table> |
266 <tr><td>None</td></tr> |
278 <tr><td>None</td></tr> |
267 </table> |
279 </table> |
268 <a NAME="VariableItem.__init__" ID="VariableItem.__init__"></a> |
280 <a NAME="VariableItem.extractId" ID="VariableItem.extractId"></a> |
|
281 <h4>VariableItem.extractId (class method)</h4> |
|
282 <b>extractId</b>(<i>var</i>) |
|
283 <p> |
|
284 Class method to extract the ID string from a variable text. |
|
285 </p><dl> |
|
286 <dt><i>var</i> (str)</dt> |
|
287 <dd> |
|
288 variable text |
|
289 </dd> |
|
290 </dl><dl> |
|
291 <dt>Returns:</dt> |
|
292 <dd> |
|
293 tuple containing the variable text without ID and the ID string |
|
294 </dd> |
|
295 </dl><dl> |
|
296 <dt>Return Type:</dt> |
|
297 <dd> |
|
298 tuple of two str |
|
299 </dd> |
|
300 </dl><a NAME="VariableItem.extractIndicators" ID="VariableItem.extractIndicators"></a> |
|
301 <h4>VariableItem.extractIndicators (class method)</h4> |
|
302 <b>extractIndicators</b>(<i>var</i>) |
|
303 <p> |
|
304 Class method to extract the indicator string from a variable text. |
|
305 </p><dl> |
|
306 <dt><i>var</i> (str)</dt> |
|
307 <dd> |
|
308 variable text |
|
309 </dd> |
|
310 </dl><dl> |
|
311 <dt>Returns:</dt> |
|
312 <dd> |
|
313 tuple containing the variable text without indicators and the |
|
314 indicator string |
|
315 </dd> |
|
316 </dl><dl> |
|
317 <dt>Return Type:</dt> |
|
318 <dd> |
|
319 tuple of two str |
|
320 </dd> |
|
321 </dl><a NAME="VariableItem.__init__" ID="VariableItem.__init__"></a> |
269 <h4>VariableItem (Constructor)</h4> |
322 <h4>VariableItem (Constructor)</h4> |
270 <b>VariableItem</b>(<i>parent, dvar, dvalue, dtype</i>) |
323 <b>VariableItem</b>(<i>parent, dvar, dvalue, dtype</i>) |
271 <p> |
324 <p> |
272 Constructor |
325 Constructor |
273 </p><dl> |
326 </p><dl> |
281 <dd> |
334 <dd> |
282 value string (string) |
335 value string (string) |
283 </dd><dt><i>dtype</i></dt> |
336 </dd><dt><i>dtype</i></dt> |
284 <dd> |
337 <dd> |
285 type string (string) |
338 type string (string) |
|
339 </dd> |
|
340 </dl><a NAME="VariableItem._buildKey" ID="VariableItem._buildKey"></a> |
|
341 <h4>VariableItem._buildKey</h4> |
|
342 <b>_buildKey</b>(<i></i>) |
|
343 <p> |
|
344 Protected method to build the access key for the variable. |
|
345 </p><dl> |
|
346 <dt>Returns:</dt> |
|
347 <dd> |
|
348 access key |
|
349 </dd> |
|
350 </dl><dl> |
|
351 <dt>Return Type:</dt> |
|
352 <dd> |
|
353 str |
286 </dd> |
354 </dd> |
287 </dl><a NAME="VariableItem.attachDummy" ID="VariableItem.attachDummy"></a> |
355 </dl><a NAME="VariableItem.attachDummy" ID="VariableItem.attachDummy"></a> |
288 <h4>VariableItem.attachDummy</h4> |
356 <h4>VariableItem.attachDummy</h4> |
289 <b>attachDummy</b>(<i></i>) |
357 <b>attachDummy</b>(<i></i>) |
290 <p> |
358 <p> |
327 <b>expand</b>(<i></i>) |
395 <b>expand</b>(<i></i>) |
328 <p> |
396 <p> |
329 Public method to expand the item. |
397 Public method to expand the item. |
330 </p><p> |
398 </p><p> |
331 Note: This is just a do nothing and should be overwritten. |
399 Note: This is just a do nothing and should be overwritten. |
332 </p><a NAME="VariableItem.getValue" ID="VariableItem.getValue"></a> |
400 </p><a NAME="VariableItem.getId" ID="VariableItem.getId"></a> |
|
401 <h4>VariableItem.getId</h4> |
|
402 <b>getId</b>(<i></i>) |
|
403 <p> |
|
404 Public method to get the ID string. |
|
405 </p><dl> |
|
406 <dt>Returns:</dt> |
|
407 <dd> |
|
408 ID string |
|
409 </dd> |
|
410 </dl><dl> |
|
411 <dt>Return Type:</dt> |
|
412 <dd> |
|
413 str |
|
414 </dd> |
|
415 </dl><a NAME="VariableItem.getValue" ID="VariableItem.getValue"></a> |
333 <h4>VariableItem.getValue</h4> |
416 <h4>VariableItem.getValue</h4> |
334 <b>getValue</b>(<i></i>) |
417 <b>getValue</b>(<i></i>) |
335 <p> |
418 <p> |
336 Public method to return the value of the item. |
419 Public method to return the value of the item. |
337 </p><dl> |
420 </p><dl> |