Sanity checkes in FingerManagerWindow while reading checkboxes position
[KFingerManager.git] / src / FingerManagerWindow.h
blob63afeacf66549fda0125eb7d30a36e7436354f38
1 #ifndef FINGERMANAGERWINDOW_H_
2 #define FINGERMANAGERWINDOW_H_
4 #include <QObject>
5 #include <KDialog>
6 #include <QCheckBox>
7 #include <QImage>
8 #include <QLabel>
9 #include <QButtonGroup>
10 #include <KConfig>
12 #define MAX_FINGERS 10
14 typedef struct {
15 int x;
16 int y;
17 } pos;
19 class FingerManagerWindow : public KDialog {
21 Q_OBJECT
23 public slots:
24 void fingerSelected(int finger);
25 private:
26 //QSvgWidget handsImage;
27 QLabel *handsLabel;
28 QButtonGroup *btng;
29 QCheckBox *fingers[MAX_FINGERS];
30 KConfig *settings;
31 int fingersCount;
33 QCheckBox* createCheckBox(int idx, int x, int y);
34 void initComponents();
35 void load(KConfig *config);
36 public:
37 FingerManagerWindow(QWidget *parent = NULL, Qt::WindowFlags wflags = Qt::Dialog);
38 virtual ~FingerManagerWindow();
41 #endif /*FINGERMANAGERWINDOW_H_*/