Diffstat (limited to 'noncore/apps/opie-console/function_keyboard.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/function_keyboard.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.h b/noncore/apps/opie-console/function_keyboard.h index 2be74b4..efeff6d 100644 --- a/noncore/apps/opie-console/function_keyboard.h +++ b/noncore/apps/opie-console/function_keyboard.h | |||
@@ -4,14 +4,17 @@ | |||
4 | #include <qpe/config.h> | 4 | #include <qpe/config.h> |
5 | #include <qframe.h> | 5 | #include <qframe.h> |
6 | #include <qpainter.h> | 6 | #include <qpainter.h> |
7 | #include <qvbox.h> | 7 | #include <qvbox.h> |
8 | #include <qgroupbox.h> | 8 | #include <qgroupbox.h> |
9 | #include <qmap.h> | 9 | #include <qmap.h> |
10 | #include <qspinbox.h> | ||
11 | #include <qcombobox.h> | ||
10 | #include "profiledialogwidget.h" | 12 | #include "profiledialogwidget.h" |
11 | 13 | ||
14 | |||
12 | class FKey { | 15 | class FKey { |
13 | 16 | ||
14 | public: | 17 | public: |
15 | 18 | ||
16 | FKey(): qcode(0), unicode(0) {}; | 19 | FKey(): qcode(0), unicode(0) {}; |
17 | FKey(const QString &l, ushort q, ushort u): label(l), qcode(q), unicode(u) {}; | 20 | FKey(const QString &l, ushort q, ushort u): label(l), qcode(q), unicode(u) {}; |
@@ -32,22 +35,25 @@ class FunctionKeyboard : public QFrame { | |||
32 | Q_OBJECT | 35 | Q_OBJECT |
33 | 36 | ||
34 | public: | 37 | public: |
35 | FunctionKeyboard(QWidget *parent = 0); | 38 | FunctionKeyboard(QWidget *parent = 0); |
36 | ~FunctionKeyboard(); | 39 | ~FunctionKeyboard(); |
37 | 40 | ||
41 | void changeRows(int); | ||
42 | void changeCols(int); | ||
43 | |||
38 | void paintEvent(QPaintEvent *); | 44 | void paintEvent(QPaintEvent *); |
39 | void paintKey(int, int); | 45 | void paintKey(int, int); |
40 | void mousePressEvent(QMouseEvent*); | 46 | void mousePressEvent(QMouseEvent*); |
41 | void mouseReleaseEvent(QMouseEvent*); | 47 | void mouseReleaseEvent(QMouseEvent*); |
42 | void resizeEvent(QResizeEvent*); | 48 | void resizeEvent(QResizeEvent*); |
43 | QSize sizeHint() const; | 49 | QSize sizeHint() const; |
44 | 50 | ||
45 | signals: | 51 | signals: |
46 | 52 | ||
47 | void keyPressed(ushort, ushort, bool, bool, bool); | 53 | void keyPressed(ushort, ushort, bool, bool, bool, ushort, ushort); |
48 | 54 | ||
49 | private: | 55 | private: |
50 | 56 | ||
51 | void loadDefaults(); | 57 | void loadDefaults(); |
52 | 58 | ||
53 | 59 | ||
@@ -73,11 +79,22 @@ public: | |||
73 | FunctionKeyboardConfig(const QString& name, QWidget *wid); | 79 | FunctionKeyboardConfig(const QString& name, QWidget *wid); |
74 | ~FunctionKeyboardConfig(); | 80 | ~FunctionKeyboardConfig(); |
75 | 81 | ||
76 | void load(const Profile&); | 82 | void load(const Profile&); |
77 | void save(Profile&); | 83 | void save(Profile&); |
78 | 84 | ||
85 | private slots: | ||
86 | |||
87 | void slotKeyPressed(ushort, ushort, bool, bool, bool, ushort, ushort); | ||
88 | void slotChangeRows(int); | ||
89 | void slotChangeCols(int); | ||
90 | void slotChangeIcon(int); | ||
91 | |||
79 | private: | 92 | private: |
80 | 93 | ||
94 | FunctionKeyboard *kb; | ||
95 | QSpinBox *m_rowBox, *m_colBox; | ||
96 | QComboBox *m_labels; | ||
97 | |||
81 | }; | 98 | }; |
82 | 99 | ||
83 | #endif | 100 | #endif |