aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/slider.h
blob: 81deee7ca98bd2df6274ccdf8e9683949b0ddeec (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
#ifndef __SRC_CORE_GUI_SLIDER_
#define __SRC_CORE_GUI_SLIDER_

#include <lib/gui/eprogress.h>

class eSlider: public eProgress
{
	int incrementation, max, min;
	gColor activated_left, activated_right;
	const eWidget *descr;
	int setProperty( const eString &prop, const eString &val);
	void gotFocus();
	void lostFocus();
	int eventHandler( const eWidgetEvent& event );
	eWidget *tmpDescr;
	void update();
public:
	void setMin( int i );
	void setMax( int i );
	void setIncrement( int i );
	void setValue( int i );
	int getValue();
	Signal1<void, int> changed;
	eSlider( eWidget *parent, const eWidget *descr=0, int min=0, int max=99 );
};

#endif // __SRC_CORE_GUI_SLIDER_