trunk 20080912
[gitenigma.git] / include / lib / gui / testpicture.h
blob568cdede4ccf45108c284fbb7fe2b8415782f933
1 #ifndef __testpicture_h
2 #define __testpicture_h
4 #include <lib/gui/ewidget.h>
5 #include <lib/gdi/grc.h>
6 #include <lib/base/ebase.h>
8 class eLabel;
10 class eTestPicture: public eWidget
12 gColor red, green, blue, white, black;
13 gColor basic[8];
14 gColor gray;
15 int testmode;
16 eLabel *description;
17 eTimer desctimer;
18 void hideDesc();
19 protected:
20 int eventHandler(const eWidgetEvent &event);
21 void redrawWidget(gPainter *target, const eRect &area);
22 public:
23 enum {
24 testColorbar,
25 testRed,
26 testGreen,
27 testBlue,
28 testWhite,
29 testFUBK, // without circle ;)
30 testGray,
31 testBlack};
32 eTestPicture(int testmode);
33 static int display(int mode);
36 #endif