StatusItem Class Reference

Custom QListViewItem for displaying the status panel items. More...

List of all members.

Public Member Functions

def __init__
 StatusItem constructor.
def paintCell
 Draw the status panel item.
def setText
 Set the text of the item.
def setAlarmExpr
 Set the alarm expression.
def setStale
 Set stale flag.
def isStale
 Check if the status item is stale or not.


Detailed Description

Custom QListViewItem for displaying the status panel items.

Definition at line 57 of file rcStatusMonitor.py.


Member Function Documentation

def __init__   self,
  args
 

StatusItem constructor.

Parameters:
args QListViewItem arguments.

Definition at line 59 of file rcStatusMonitor.py.

def isStale   self  ) 
 

Check if the status item is stale or not.

Returns:
Boolean indicating whether the item is stale or not.

Definition at line 135 of file rcStatusMonitor.py.

def paintCell   self,
  p,
  cg,
  column,
  width,
  align
 

Draw the status panel item.

Draw the item so that it appears to have line dividers between each item.

If the item's alarm expression is true then paint the item in red.

If the item's alarm expression starts with the character '@' then quote the value before adding it to the expression.

Parameters:
p Painter
cg Color group
column Listview column
width Width of the cell
align Alignment of the cell data.

Definition at line 68 of file rcStatusMonitor.py.

def setAlarmExpr   self,
  alarmExpr
 

Set the alarm expression.

Parameters:
alarmExpr Alarm expression

Definition at line 121 of file rcStatusMonitor.py.

def setStale   self,
  stale
 

Set stale flag.

Parameters:
stale Stale flag

Definition at line 128 of file rcStatusMonitor.py.

def setText   self,
  column,
  value
 

Set the text of the item.

Parameters:
column Listview column
value Listview item value

Definition at line 113 of file rcStatusMonitor.py.


The documentation for this class was generated from the following file:
Generated on Thu Apr 27 20:53:30 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO