summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircchanneltab.h
Unidiff
Diffstat (limited to 'noncore/net/opieirc/ircchanneltab.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircchanneltab.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/noncore/net/opieirc/ircchanneltab.h b/noncore/net/opieirc/ircchanneltab.h
index 971614b..a03ee3e 100644
--- a/noncore/net/opieirc/ircchanneltab.h
+++ b/noncore/net/opieirc/ircchanneltab.h
@@ -16,24 +16,25 @@
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18
19*/ 19*/
20 20
21#ifndef __IRCCHANNELTAB_H 21#ifndef __IRCCHANNELTAB_H
22#define __IRCCHANNELTAB_H 22#define __IRCCHANNELTAB_H
23 23
24#include <qpopupmenu.h> 24#include <qpopupmenu.h>
25#include <qpushbutton.h> 25#include <qpushbutton.h>
26#include "irctab.h" 26#include "irctab.h"
27#include "ircsession.h" 27#include "ircsession.h"
28#include "ircmisc.h"
28#include "mainwindow.h" 29#include "mainwindow.h"
29#include "ircchannellist.h" 30#include "ircchannellist.h"
30 31
31#define LISTWIDTH 70 32#define LISTWIDTH 70
32 33
33class IRCServerTab; 34class IRCServerTab;
34class IRCChannelTab : public IRCTab { 35class IRCChannelTab : public IRCTab {
35 Q_OBJECT 36 Q_OBJECT
36public: 37public:
37 /* IRCTab implementation */ 38 /* IRCTab implementation */
38 IRCChannelTab(IRCChannel *channel, IRCServerTab *parentTab, MainWindow *mainWindow, QWidget *parent = 0, const char *name = 0, WFlags f = 0); 39 IRCChannelTab(IRCChannel *channel, IRCServerTab *parentTab, MainWindow *mainWindow, QWidget *parent = 0, const char *name = 0, WFlags f = 0);
39 ~IRCChannelTab(); 40 ~IRCChannelTab();
@@ -47,24 +48,25 @@ public slots:
47 void remove(); 48 void remove();
48 void settingsChanged(); 49 void settingsChanged();
49protected slots: 50protected slots:
50 void processCommand(); 51 void processCommand();
51 void toggleList(); 52 void toggleList();
52 void mouseButtonPressed(int mouse, QListBoxItem *item, const QPoint &point); 53 void mouseButtonPressed(int mouse, QListBoxItem *item, const QPoint &point);
53 /* Popup slots */ 54 /* Popup slots */
54 void popupQuery(); 55 void popupQuery();
55 void popupPing(); 56 void popupPing();
56 void popupVersion(); 57 void popupVersion();
57 void popupWhois(); 58 void popupWhois();
58protected: 59protected:
59 IRCServerTab *m_parentTab; 60 IRCServerTab *m_parentTab;
60 IRCChannel *m_channel; 61 IRCChannel *m_channel;
61 IRCChannelList *m_list; 62 IRCChannelList *m_list;
62 QPushButton *m_listButton; 63 QPushButton *m_listButton;
63 MainWindow *m_mainWindow; 64 MainWindow *m_mainWindow;
64 QTextView *m_textview; 65 QTextView *m_textview;
65 QLineEdit *m_field; 66 IRCHistoryLineEdit *m_field;
66 QPopupMenu *m_popup; 67 QPopupMenu *m_popup;
67 bool m_listVisible; 68 bool m_listVisible;
69 int m_lines;
68}; 70};
69 71
70#endif /* __IRCCHANNELTAB_H */ 72#endif /* __IRCCHANNELTAB_H */