summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircchanneltab.h
Unidiff
Diffstat (limited to 'noncore/net/opieirc/ircchanneltab.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieirc/ircchanneltab.h4
1 files changed, 3 insertions, 1 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
@@ -4,67 +4,69 @@
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
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();
40 QString title(); 41 QString title();
41 IRCSession *session(); 42 IRCSession *session();
42 IRCChannel *channel(); 43 IRCChannel *channel();
43 IRCChannelList *list(); 44 IRCChannelList *list();
44public: 45public:
45 void appendText(QString text); 46 void appendText(QString text);
46public slots: 47public 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 */