Diffstat (limited to 'noncore/net/opieirc/irctab.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/irctab.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/net/opieirc/irctab.h b/noncore/net/opieirc/irctab.h index 6c29ea5..d17c530 100644 --- a/noncore/net/opieirc/irctab.h +++ b/noncore/net/opieirc/irctab.h | |||
@@ -17,48 +17,52 @@ | |||
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 __IRCTAB_H | 21 | #ifndef __IRCTAB_H |
22 | #define __IRCTAB_H | 22 | #define __IRCTAB_H |
23 | 23 | ||
24 | #include <qwidget.h> | 24 | #include <qwidget.h> |
25 | #include <qtextview.h> | 25 | #include <qtextview.h> |
26 | #include <qlineedit.h> | 26 | #include <qlineedit.h> |
27 | #include <qlabel.h> | 27 | #include <qlabel.h> |
28 | #include <qlayout.h> | 28 | #include <qlayout.h> |
29 | #include "ircsession.h" | 29 | #include "ircsession.h" |
30 | 30 | ||
31 | /* This is the base class for any tabs which need to be integrated into | 31 | /* This is the base class for any tabs which need to be integrated into |
32 | the main GUI tab widget */ | 32 | the main GUI tab widget */ |
33 | 33 | ||
34 | class IRCTab : public QWidget { | 34 | class IRCTab : public QWidget { |
35 | Q_OBJECT | 35 | Q_OBJECT |
36 | public: | 36 | public: |
37 | IRCTab(QWidget *parent = 0, const char *name = 0, WFlags f = 0); | 37 | IRCTab(QWidget *parent = 0, const char *name = 0, WFlags f = 0); |
38 | /* The ID is required to store the position of this IRCTab inside the IRCTabWidget */ | 38 | /* The ID is required to store the position of this IRCTab inside the IRCTabWidget */ |
39 | void setID(int id); | 39 | void setID(int id); |
40 | int id(); | 40 | int id(); |
41 | |||
42 | static void setUseTimeStamps(bool b); | ||
43 | static QString appendTimestamp(const QString& tex); | ||
44 | |||
41 | virtual QString title() = 0; | 45 | virtual QString title() = 0; |
42 | virtual IRCSession *session() = 0; | 46 | virtual IRCSession *session() = 0; |
43 | virtual void appendText(QString text) = 0; | 47 | virtual void appendText(QString text) = 0; |
44 | signals: | 48 | signals: |
45 | void changed(IRCTab *); | 49 | void changed(IRCTab *); |
46 | void ping(const QString& ); | 50 | void ping(const QString& ); |
47 | void nextTab(); | 51 | void nextTab(); |
48 | void prevTab(); | 52 | void prevTab(); |
49 | void closeTab(); | 53 | void closeTab(); |
50 | void editFocus(); | 54 | void editFocus(); |
51 | 55 | ||
52 | public slots: | 56 | public slots: |
53 | virtual void remove() = 0; | 57 | virtual void remove() = 0; |
54 | virtual void settingsChanged() = 0; | 58 | virtual void settingsChanged() = 0; |
55 | 59 | ||
56 | protected: | 60 | protected: |
57 | void showEvent( QShowEvent* ); | 61 | void showEvent( QShowEvent* ); |
58 | 62 | ||
59 | protected: | 63 | protected: |
60 | QLabel *m_description; | 64 | QLabel *m_description; |
61 | QVBoxLayout *m_layout; | 65 | QVBoxLayout *m_layout; |
62 | int m_id; | 66 | int m_id; |
63 | public: | 67 | public: |
64 | /* Configuration shared accross all instances - contains HTML style colors (#rrggbb) */ | 68 | /* Configuration shared accross all instances - contains HTML style colors (#rrggbb) */ |