blob: 92f6e4d593d66a44f0ada2bf6eba99309582e7a0 (
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
|
#ifndef __echeckbox_h
#define __echeckbox_h
#include <lib/gui/ebutton.h>
class eCheckbox: public eButton
{
protected:
int ischecked;
private:
void sel();
int eventHandler(const eWidgetEvent &event);
int setProperty(const eString &prop, const eString &value);
void gotFocus();
void lostFocus();
bool swapTxtPixmap;
public:
Signal1<void, int> checked;
eCheckbox(eWidget *parent, int checked=0, int takefocus=1, bool swapTxtPixmap=false, const char *deco="eCheckBox" );
~eCheckbox();
void setCheck(int c);
int isChecked() { return ischecked; }
};
#endif
|