Relacs Widgets Library  0.9.8
Public Slots | Signals | Public Member Functions | List of all members
LCDRange Class Reference

#include <lcdrange.h>

Inheritance diagram for LCDRange:
Inheritance graph
[legend]
Collaboration diagram for LCDRange:
Collaboration graph
[legend]

Public Slots

void setValue (int val)
 
void setRange (int minval, int maxval)
 
void setText (const string &text)
 
void setSteps (int linestep, int pagestep)
 

Signals

void valueChanged (int val)
 

Public Member Functions

 LCDRange (QWidget *parent=0, int nodigits=2, int minval=0, int maxval=99, int linestep=5, int pagestep=10, int initval=0)
 
 LCDRange (const char *s, QWidget *parent, int nodigits=2, int minval=0, int maxval=99, int linestep=5, int pagestep=10, int initval=0)
 
 LCDRange (const char *s, int nodigits=2, int minval=0, int maxval=99, int linestep=5, int pagestep=10, int initval=0, QWidget *parent=0)
 
int value (void) const
 
string text (void) const
 

Detailed Description

An LCD number with range.

Author
Jan Benda
Version
1.0

Constructor & Destructor Documentation

LCDRange ( QWidget *  parent = 0,
int  nodigits = 2,
int  minval = 0,
int  maxval = 99,
int  linestep = 5,
int  pagestep = 10,
int  initval = 0 
)
LCDRange ( const char *  s,
QWidget *  parent,
int  nodigits = 2,
int  minval = 0,
int  maxval = 99,
int  linestep = 5,
int  pagestep = 10,
int  initval = 0 
)

References LCDRange::setText().

LCDRange ( const char *  s,
int  nodigits = 2,
int  minval = 0,
int  maxval = 99,
int  linestep = 5,
int  pagestep = 10,
int  initval = 0,
QWidget *  parent = 0 
)

References LCDRange::setText().

Member Function Documentation

int value ( void  ) const

The (integer) value that is currently displayed.

string text ( void  ) const

The text that is displayed below the LCD display.

void setValue ( int  val)
slot

Set the (integer) value that is displayed to val .

void setRange ( int  minval,
int  maxval 
)
slot

Set the maximum range of allowed values to minval to maxval .

void setText ( const string &  text)
slot

Set the text that is displayed below the LCD display to text .

Referenced by LCDRange::LCDRange().

void setSteps ( int  linestep,
int  pagestep 
)
slot

Set the step increments to linestep and pagestep.

void valueChanged ( int  val)
signal

This signal is emmited whenever a new value is displayed. val is the new value.


The documentation for this class was generated from the following files: