summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/function_keyboard.h
Unidiff
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.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.h b/noncore/apps/opie-console/function_keyboard.h
index 80d9f29..a60ff4b 100644
--- a/noncore/apps/opie-console/function_keyboard.h
+++ b/noncore/apps/opie-console/function_keyboard.h
@@ -36,41 +36,38 @@ struct FKey {
36class FunctionKeyboard : public QFrame { 36class FunctionKeyboard : public QFrame {
37 Q_OBJECT 37 Q_OBJECT
38 38
39public: 39public:
40 FunctionKeyboard(QWidget *parent = 0); 40 FunctionKeyboard(QWidget *parent = 0);
41 ~FunctionKeyboard(); 41 ~FunctionKeyboard();
42 42
43 friend class FunctionKeyboardConfig; 43 friend class FunctionKeyboardConfig;
44 44
45 void changeRows(int); 45 void changeRows(int);
46 void changeCols(int); 46 void changeCols(int);
47 47
48 //Key getKey(int, int); 48 void load(const Profile &);
49 void loadDefaults();
49 50
50 void paintEvent(QPaintEvent *); 51 void paintEvent(QPaintEvent *);
51 void paintKey(uint, uint); 52 void paintKey(uint, uint);
52 void mousePressEvent(QMouseEvent*); 53 void mousePressEvent(QMouseEvent*);
53 void mouseReleaseEvent(QMouseEvent*); 54 void mouseReleaseEvent(QMouseEvent*);
54 void resizeEvent(QResizeEvent*); 55 void resizeEvent(QResizeEvent*);
55 QSize sizeHint() const; 56 QSize sizeHint() const;
56 57
57signals: 58signals:
58 59
59 void keyPressed(FKey, ushort, ushort, bool); 60 void keyPressed(FKey, ushort, ushort, bool);
60 61
61private:
62
63 void loadDefaults();
64
65 62
66private: 63private:
67 64
68 // thie key for the map is the row/col 65 // thie key for the map is the row/col
69 QMap<QString, FKey> keys; 66 QMap<QString, FKey> keys;
70 67
71 uint numRows; 68 uint numRows;
72 int test; 69 int test;
73 uint numCols; 70 uint numCols;
74 uint keyHeight; 71 uint keyHeight;
75 double keyWidth; // decimal point matters! 72 double keyWidth; // decimal point matters!
76 73