Some UI changes
[KFingerManager.git] / src / FingerManagerWindow.h
blob5f7a323e53486d950999226b9400dcd4ec1bbcdd
1 #ifndef FINGERMANAGERWINDOW_H_
2 #define FINGERMANAGERWINDOW_H_
4 #include <QObject>
5 #include <KDialog>
6 #include <KSeparator>
7 #include <QCheckBox>
8 #include <QWidget>
9 #include <QImage>
10 #include <QLabel>
11 #include <QButtonGroup>
12 #include <QComboBox>
13 #include <QHBoxLayout>
14 #include <QVBoxLayout>
15 #include <KConfig>
17 #define MAX_FINGERS 10
19 typedef struct {
20 int x;
21 int y;
22 } pos;
24 class FingerManagerWindow : public KDialog {
26 Q_OBJECT
28 public slots:
29 void fingerSelected(int finger);
30 private:
31 //QSvgWidget handsImage;
32 QLabel *handsLabel;
33 QButtonGroup *btng;
34 QWidget *handsPanel;
35 QWidget *mainPanel;
36 QCheckBox *fingers[MAX_FINGERS];
37 QComboBox *devices;
38 KConfig *settings;
39 QVBoxLayout *mainPanelLayout;
40 QHBoxLayout *devicesLayout;
41 QLabel *deviceLabel;
42 KSeparator *separator;
43 int fingersCount;
45 QCheckBox* createCheckBox(int idx, int x, int y);
46 void initComponents();
47 void load(KConfig *config);
48 public:
49 FingerManagerWindow(QWidget *parent = NULL, Qt::WindowFlags wflags = Qt::Dialog);
50 virtual ~FingerManagerWindow();
53 #endif /*FINGERMANAGERWINDOW_H_*/