author | hash <hash> | 2002-10-18 20:21:01 (UTC) |
---|---|---|
committer | hash <hash> | 2002-10-18 20:21:01 (UTC) |
commit | 179f39a0210314ffa5a31e85f6185df16498d4ac (patch) (side-by-side diff) | |
tree | 6f7856b0b136d22ad14d8521986ec36e92c56da7 /noncore/apps/opie-console/function_keyboard.h | |
parent | bb98ac35db9807efbcc1b59dd8abbdb05ad7656b (diff) | |
download | opie-179f39a0210314ffa5a31e85f6185df16498d4ac.zip opie-179f39a0210314ffa5a31e85f6185df16498d4ac.tar.gz opie-179f39a0210314ffa5a31e85f6185df16498d4ac.tar.bz2 |
i'll fix that icon later, but for now here are some better default values
for the keyboard.
Diffstat (limited to 'noncore/apps/opie-console/function_keyboard.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/function_keyboard.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.h b/noncore/apps/opie-console/function_keyboard.h index b8420ae..8d05e2b 100644 --- a/noncore/apps/opie-console/function_keyboard.h +++ b/noncore/apps/opie-console/function_keyboard.h @@ -8,54 +8,57 @@ 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 public: FunctionKeyboard(QWidget *parent = 0); ~FunctionKeyboard(); void paintEvent(QPaintEvent *); void paintKey(int, int); void mousePressEvent(QMouseEvent*); void mouseReleaseEvent(QMouseEvent*); void resizeEvent(QResizeEvent*); - - - QSize sizeHint() const; signals: void keyPressed(ushort, ushort, bool, bool, bool); private: + void loadDefaults(); + + +private: + // thie key for the map is the row/col QMap<QString, FKey> keys; uint numRows; uint numCols; uint keyHeight; double keyWidth; // decimal point matters! int pressedRow, pressedCol; QObject *parent; |