summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircmisc.h
Unidiff
Diffstat (limited to 'noncore/net/opieirc/ircmisc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircmisc.h3
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 {
47public: 47public:
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
52class IRCTabBar : public QTabBar { 52class IRCTabBar : public QTabBar {
53 Q_OBJECT 53 Q_OBJECT
54public: 54public:
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);
57protected: 57protected:
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);
60protected: 60protected:
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
66class IRCHistoryLineEdit : public QLineEdit { 66class IRCHistoryLineEdit : public QLineEdit {
67 Q_OBJECT 67 Q_OBJECT
68public: 68public:
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);
78public slots: 79public slots:
79 void setEditFocus(); 80 void setEditFocus();
80signals: 81signals:
81 void nextTab(); 82 void nextTab();
82 void prevTab(); 83 void prevTab();
83 void closeTab(); 84 void closeTab();
84 85
85 86
86protected: 87protected:
87 void keyPressEvent(QKeyEvent *); 88 void keyPressEvent(QKeyEvent *);
88protected: 89protected:
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 */