summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircmisc.h
authorzecke <zecke>2004-09-06 23:51:20 (UTC)
committer zecke <zecke>2004-09-06 23:51:20 (UTC)
commite6798d7ec0a3b86e412bd67faad24a737a67aa5f (patch) (unidiff)
treeff10e927aff440d8dca2e0fe8976aadb3ff011d2 /noncore/net/opieirc/ircmisc.h
parent8f18e8b46dfaaa7e03b9ed1f3faed12da5b30cd5 (diff)
downloadopie-e6798d7ec0a3b86e412bd67faad24a737a67aa5f.zip
opie-e6798d7ec0a3b86e412bd67faad24a737a67aa5f.tar.gz
opie-e6798d7ec0a3b86e412bd67faad24a737a67aa5f.tar.bz2
Use OKeyConfigWidget/Manager for managing next and prev tab
keyboard shortcuts
Diffstat (limited to 'noncore/net/opieirc/ircmisc.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieirc/ircmisc.h14
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
31namespace Opie {
32namespace Core {
33class OKeyConfigManager;
34}
35}
36
37
31/* Custom colored QTabWidget */ 38/* Custom colored QTabWidget */
32 39
33class QExtTab : public QTab { 40class QExtTab : public QTab {
34public: 41public:
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
59class IRCHistoryLineEdit : public QLineEdit { 66class IRCHistoryLineEdit : public QLineEdit {
60 Q_OBJECT 67 Q_OBJECT
61public: 68public:
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);
64public slots: 78public slots:
65 void setEditFocus(); 79 void setEditFocus();
66signals: 80signals:
67 void nextTab(); 81 void nextTab();