author | zecke <zecke> | 2004-09-06 23:51:20 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-06 23:51:20 (UTC) |
commit | e6798d7ec0a3b86e412bd67faad24a737a67aa5f (patch) (unidiff) | |
tree | ff10e927aff440d8dca2e0fe8976aadb3ff011d2 /noncore/net/opieirc/ircmisc.h | |
parent | 8f18e8b46dfaaa7e03b9ed1f3faed12da5b30cd5 (diff) | |
download | opie-e6798d7ec0a3b86e412bd67faad24a737a67aa5f.zip opie-e6798d7ec0a3b86e412bd67faad24a737a67aa5f.tar.gz opie-e6798d7ec0a3b86e412bd67faad24a737a67aa5f.tar.bz2 |
Use OKeyConfigWidget/Manager for managing next and prev tab
keyboard shortcuts
-rw-r--r-- | noncore/net/opieirc/ircmisc.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircmisc.h b/noncore/net/opieirc/ircmisc.h index c42dcbd..37eed28 100644 --- a/noncore/net/opieirc/ircmisc.h +++ b/noncore/net/opieirc/ircmisc.h | |||
@@ -25,12 +25,19 @@ | |||
25 | #include <qlineedit.h> | 25 | #include <qlineedit.h> |
26 | #include <qtabbar.h> | 26 | #include <qtabbar.h> |
27 | #include <qlabel.h> | 27 | #include <qlabel.h> |
28 | #include <qcolor.h> | 28 | #include <qcolor.h> |
29 | #include <qarray.h> | 29 | #include <qarray.h> |
30 | 30 | ||
31 | namespace Opie { | ||
32 | namespace Core { | ||
33 | class OKeyConfigManager; | ||
34 | } | ||
35 | } | ||
36 | |||
37 | |||
31 | /* Custom colored QTabWidget */ | 38 | /* Custom colored QTabWidget */ |
32 | 39 | ||
33 | class QExtTab : public QTab { | 40 | class QExtTab : public QTab { |
34 | public: | 41 | public: |
35 | QColor color; | 42 | QColor color; |
36 | }; | 43 | }; |
@@ -56,12 +63,19 @@ protected: | |||
56 | 63 | ||
57 | /* A QLineEdit with history functionality and tab completion */ | 64 | /* A QLineEdit with history functionality and tab completion */ |
58 | 65 | ||
59 | class IRCHistoryLineEdit : public QLineEdit { | 66 | class IRCHistoryLineEdit : public QLineEdit { |
60 | Q_OBJECT | 67 | Q_OBJECT |
61 | public: | 68 | public: |
69 | enum KeyMode { | ||
70 | KeyNextTab, | ||
71 | KeyPrevTab | ||
72 | }; | ||
73 | |||
74 | static Opie::Core::OKeyConfigManager* keyConfigInstance(); | ||
75 | |||
62 | IRCHistoryLineEdit(QWidget *parent = 0, const char *name = 0); | 76 | IRCHistoryLineEdit(QWidget *parent = 0, const char *name = 0); |
63 | virtual bool eventFilter(QObject *object, QEvent *event); | 77 | virtual bool eventFilter(QObject *object, QEvent *event); |
64 | public slots: | 78 | public slots: |
65 | void setEditFocus(); | 79 | void setEditFocus(); |
66 | signals: | 80 | signals: |
67 | void nextTab(); | 81 | void nextTab(); |