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
@@ -24,65 +24,62 @@ struct FKey {
24 24
25 pix = new QPixmap ( Resource::loadPixmap("console/keys/" + f ) ); 25 pix = new QPixmap ( Resource::loadPixmap("console/keys/" + f ) );
26 } 26 }
27 }; 27 };
28 28
29 QString label; 29 QString label;
30 QPixmap *pix; 30 QPixmap *pix;
31 QString pixFile; 31 QString pixFile;
32 ushort qcode; 32 ushort qcode;
33 ushort unicode; 33 ushort unicode;
34}; 34};
35 35
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
77 int pressedRow, pressedCol; 74 int pressedRow, pressedCol;
78 75
79 QObject *parent; 76 QObject *parent;
80 77
81}; 78};
82 79
83class FunctionKeyboardConfig : public ProfileDialogKeyWidget { 80class FunctionKeyboardConfig : public ProfileDialogKeyWidget {
84 81
85 Q_OBJECT 82 Q_OBJECT
86 83
87public: 84public:
88 FunctionKeyboardConfig(const QString& name, QWidget *wid, const char* name = 0l ); 85 FunctionKeyboardConfig(const QString& name, QWidget *wid, const char* name = 0l );