aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/testpicture.h
blob: 568cdede4ccf45108c284fbb7fe2b8415782f933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __testpicture_h
#define __testpicture_h

#include <lib/gui/ewidget.h>
#include <lib/gdi/grc.h>
#include <lib/base/ebase.h>

class eLabel;

class eTestPicture: public eWidget
{
	gColor red, green, blue, white, black;
	gColor basic[8];
	gColor gray;
	int testmode;
	eLabel *description;
	eTimer desctimer;
	void hideDesc();
protected:
	int eventHandler(const eWidgetEvent &event);
	void redrawWidget(gPainter *target, const eRect &area);
public:
	enum { 
		testColorbar, 
		testRed, 
		testGreen, 
		testBlue,
		testWhite,
		testFUBK, // without circle ;)
		testGray,
		testBlack};
	eTestPicture(int testmode);
	static int display(int mode);
};

#endif