author | hash <hash> | 2002-10-13 00:58:30 (UTC) |
---|---|---|
committer | hash <hash> | 2002-10-13 00:58:30 (UTC) |
commit | b977a4bc4a8ac2b8685c4fa13534f630dabbf956 (patch) (side-by-side diff) | |
tree | 60da6513fe4085857f447469031ad596ef2a13b8 /noncore/apps/opie-console/function_keyboard.h | |
parent | 9333a4005b30aaa723447a044c9fce5a1e580317 (diff) | |
download | opie-b977a4bc4a8ac2b8685c4fa13534f630dabbf956.zip opie-b977a4bc4a8ac2b8685c4fa13534f630dabbf956.tar.gz opie-b977a4bc4a8ac2b8685c4fa13534f630dabbf956.tar.bz2 |
cant figure out why this segfaults when emits key
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 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.h b/noncore/apps/opie-console/function_keyboard.h index f1ca037..bc3e25c 100644 --- a/noncore/apps/opie-console/function_keyboard.h +++ b/noncore/apps/opie-console/function_keyboard.h @@ -1,8 +1,28 @@ #ifndef OPIE_FUNCTION_KEYBOARD_H #define OPIE_FUNCTION_KEYBOARD_H +#include <qpe/config.h> #include <qframe.h> #include <qpainter.h> +#include <qmap.h> + +class FKey { + +public: + + FKey(): qcode(0), unicode(0) {}; + FKey(const QString &l, ushort q, ushort u): label(l), qcode(q), unicode(u) {}; + + QString getL() { return label; } + ushort getQ() { return qcode; } + ushort getU() { return unicode; } + +private: + + QString label; + ushort qcode; + ushort unicode; +}; class FunctionKeyboard : public QFrame { Q_OBJECT @@ -17,10 +37,15 @@ public: void mouseReleaseEvent(QMouseEvent*); void resizeEvent(QResizeEvent*); + QSize sizeHint() const; private: + + // thie key for the map is the row/col + QMap<QString, FKey> keys; + uint numRows; uint numCols; uint keyHeight; |