You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
909 B
57 lines
909 B
15 years ago
|
#ifndef kledtest_h
|
||
|
#define kledtest_h
|
||
|
|
||
15 years ago
|
#include <tqwidget.h>
|
||
|
#include <tqtimer.h>
|
||
15 years ago
|
#include <stdlib.h>
|
||
|
#include <kled.h>
|
||
|
|
||
14 years ago
|
class KLedTest : public TQWidget
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
protected:
|
||
15 years ago
|
TQTimer timer;
|
||
15 years ago
|
KLed *leds[/*KLed::NoOfShapes*/2* /*KLed::NoOfLooks*/3* /*KLed::NoOfStates*/2];
|
||
|
const int LedWidth;
|
||
|
const int LedHeight;
|
||
|
const int Grid;
|
||
14 years ago
|
KLed::Shape tqshape;
|
||
15 years ago
|
KLed::Look look;
|
||
|
KLed::State state;
|
||
|
int x, y, index;
|
||
|
|
||
|
|
||
15 years ago
|
TQTimer t_toggle, t_color, t_look;
|
||
15 years ago
|
//KLed *l; // create lamp
|
||
|
//KLed *l; // create lamp
|
||
|
KLed *l; // create lamp
|
||
|
//KLed *l; // create lamp
|
||
|
//KLed *l; // create lamp
|
||
|
int ledcolor;
|
||
|
KLed::Look ledlook;
|
||
|
|
||
15 years ago
|
const TQColor red;
|
||
|
const TQColor blue;
|
||
|
const TQColor green;
|
||
|
const TQColor yellow;
|
||
15 years ago
|
|
||
|
public:
|
||
|
|
||
15 years ago
|
KLedTest(TQWidget* parent=0);
|
||
15 years ago
|
~KLedTest();
|
||
|
|
||
|
bool kled_round;
|
||
|
|
||
|
|
||
|
public slots:
|
||
|
void timeout();
|
||
|
|
||
|
void nextColor();
|
||
|
void nextLook();
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|