Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CLedBar Class Reference

#include <LedBar.h>

List of all members.

Public Types

Public Slots

Public Member Functions

Protected Member Functions


Member Enumeration Documentation

enum CLedBar::BarMode
 

Enumeration values:
SolidBar  One solid bar.
SegmentBar  Blocked bar, looks most like a real LED bar.

enum CLedBar::Orientation
 

Enumeration values:
North 
West 
South 
East 


Constructor & Destructor Documentation

CLedBar::CLedBar Orientation  orientation,
int  min_range,
int  max_range,
BarMode  bar_mode = SolidBar,
QWidget *  parent = 0,
const char *  name = 0
 

Graphical representation of values with a solid or segmented bar Constructor.

Parameters:
orientation One of Orientation; determins direction in which the bar grows
min_range The minimum value
max_range The maximum value
solid_bar If TRUE, the bar will be painted solid
parent The widget's parent object
name The widget's name


Member Function Documentation

void CLedBar::paintEvent QPaintEvent *   )  [protected]
 

void CLedBar::resizeEvent QResizeEvent *   )  [protected]
 

void CLedBar::SetBarMode BarMode  bar_mode  ) 
 

void CLedBar::SetMargin int  width  ) 
 

void CLedBar::SetSegments int  segments,
const QColor *  colors
 

Set the number of semgents and their respective colors.

Parameters:
segment Number of segments; must be between 1 and 20
colors An array with the colors for each segment
With this function you set the number of segments/block for this ledbar, and assign colors to each segment.

By default, the bar has 1 segment, coloured blue.

void CLedBar::setValue int  value  )  [slot]
 


The documentation for this class was generated from the following files:
Generated on Wed Dec 13 23:38:47 2006 for CamStream by doxygen 1.3.7