23#include <tqlcdnumber.h>
24#include <tqvaluevector.h>
42class TDE_EXPORT KGameLCD :
public TQLCDNumber
47 KGameLCD(uint nbDigits, TQWidget *parent = 0,
const char *name = 0);
108 TQColor _fgColor, _hlColor;
113 class KGameLCDPrivate;
127class TDE_EXPORT KGameLCDClock :
public KGameLCD
132 KGameLCDClock(TQWidget *parent = 0,
const char *name = 0);
154 void setTime(
const TQString &s);
160 virtual void reset();
170 virtual void start();
173 virtual void timeoutClock();
176 TQTimer *_timerClock;
179 class KGameLCDClockPrivate;
180 KGameLCDClockPrivate *d;
205 TQWidget *parent = 0,
const char *name = 0);
206 KGameLCDList(TQWidget *parent = 0,
const char *name = 0);
220 void append(
const TQString &leading, TQLCDNumber *
lcd);
230 TQLabel *
title()
const {
return _title; }
235 TQLCDNumber *
lcd(uint i)
const {
return _lcds[i]; }
240 uint
size()
const {
return _lcds.size(); }
244 TQValueVector<TQLCDNumber *> _lcds;
246 class KGameLCDListPrivate;
247 KGameLCDListPrivate *d;
249 void init(
const TQString &title);
void setTime(uint seconds)
Set the time.
virtual void stop()
Stop the clock but do not reset it to zero.
virtual void start()
Start the clock from the current time.
virtual void reset()
Stop the clock and reset it to zero.
KGameLCDList(const TQString &title, TQWidget *parent=0, const char *name=0)
Constructor.
TQLCDNumber * lcd(uint i) const
void clear()
Delete all TQLCDNumber and clear the list.
void append(TQLCDNumber *lcd)
Append a TQLCDNumber at the bottom of the list.
void setHighlightTime(uint time)
Set the highlight duration in milliseconds.
void setDefaultBackgroundColor(const TQColor &color)
Set the default background color.
void setColor(const TQColor &color)
Set the foreground color.
void setDefaultColor(const TQColor &color)
Set the default foreground color.
void setLeadingString(const TQString &s)
Set the string that will be displayed before the integer number to be displayed.
void resetColor()
Reset the foreground color to the default one.
void highlight()
Highlight the LCD with the TQColorGourp::HighlightedText color for a small time (setHighlightTime).
void displayInt(int value)
Display the given integer with the (optionnal) leading string.
void setHighlightColor(const TQColor &color)
Set highlight color.