Diffstat (limited to 'noncore/net/opieirc/ircmisc.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircmisc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircmisc.h b/noncore/net/opieirc/ircmisc.h index 37eed28..3cf64df 100644 --- a/noncore/net/opieirc/ircmisc.h +++ b/noncore/net/opieirc/ircmisc.h | |||
@@ -47,47 +47,48 @@ class IRCTabWidget : public QTabWidget { | |||
47 | public: | 47 | public: |
48 | IRCTabWidget(QWidget *parent = 0, const char *name = 0); | 48 | IRCTabWidget(QWidget *parent = 0, const char *name = 0); |
49 | void setTabColor(int index, QColor color); | 49 | void setTabColor(int index, QColor color); |
50 | }; | 50 | }; |
51 | 51 | ||
52 | class IRCTabBar : public QTabBar { | 52 | class IRCTabBar : public QTabBar { |
53 | Q_OBJECT | 53 | Q_OBJECT |
54 | public: | 54 | public: |
55 | IRCTabBar(QWidget *parent = 0, const char *name = 0); | 55 | IRCTabBar(QWidget *parent = 0, const char *name = 0); |
56 | void setTabColor(int index, QColor color); | 56 | void setTabColor(int index, QColor color); |
57 | protected: | 57 | protected: |
58 | void paintLabel(QPainter*, const QRect&, QTab*, bool) const; | 58 | void paintLabel(QPainter*, const QRect&, QTab*, bool) const; |
59 | int insertTab(QTab *, int index = -1); | 59 | int insertTab(QTab *, int index = -1); |
60 | protected: | 60 | protected: |
61 | QArray<QColor> m_colors; | 61 | QArray<QColor> m_colors; |
62 | }; | 62 | }; |
63 | 63 | ||
64 | /* A QLineEdit with history functionality and tab completion */ | 64 | /* A QLineEdit with history functionality and tab completion */ |
65 | 65 | ||
66 | class IRCHistoryLineEdit : public QLineEdit { | 66 | class IRCHistoryLineEdit : public QLineEdit { |
67 | Q_OBJECT | 67 | Q_OBJECT |
68 | public: | 68 | public: |
69 | enum KeyMode { | 69 | enum KeyMode { |
70 | KeyNextTab, | 70 | KeyNextTab, |
71 | KeyPrevTab | 71 | KeyPrevTab, |
72 | KeyCloseTab | ||
72 | }; | 73 | }; |
73 | 74 | ||
74 | static Opie::Core::OKeyConfigManager* keyConfigInstance(); | 75 | static Opie::Core::OKeyConfigManager* keyConfigInstance(); |
75 | 76 | ||
76 | IRCHistoryLineEdit(QWidget *parent = 0, const char *name = 0); | 77 | IRCHistoryLineEdit(QWidget *parent = 0, const char *name = 0); |
77 | virtual bool eventFilter(QObject *object, QEvent *event); | 78 | virtual bool eventFilter(QObject *object, QEvent *event); |
78 | public slots: | 79 | public slots: |
79 | void setEditFocus(); | 80 | void setEditFocus(); |
80 | signals: | 81 | signals: |
81 | void nextTab(); | 82 | void nextTab(); |
82 | void prevTab(); | 83 | void prevTab(); |
83 | void closeTab(); | 84 | void closeTab(); |
84 | 85 | ||
85 | 86 | ||
86 | protected: | 87 | protected: |
87 | void keyPressEvent(QKeyEvent *); | 88 | void keyPressEvent(QKeyEvent *); |
88 | protected: | 89 | protected: |
89 | QStringList m_history; | 90 | QStringList m_history; |
90 | int m_index; | 91 | int m_index; |
91 | }; | 92 | }; |
92 | 93 | ||
93 | #endif /* __IRCMISC_H */ | 94 | #endif /* __IRCMISC_H */ |