blob: 6f8405fb15194d5cc4d5fe058140076427e1bc9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*/
/*
RawLog.cpp - provides a view to the raw protocol
begin: Tue Mar 18 2003
copyright: (C) 2003 by Dario Abatianni
email: eisfuchs@tigress.com
*/
#include "rawlog.h"
#include "channel.h"
#include "ircview.h"
#include "ircviewbox.h"
#include "server.h"
#include "konversationapplication.h"
#include <tdelocale.h>
#include <kdebug.h>
RawLog::RawLog(TQWidget* parent) : ChatWindow(parent)
{
setName(i18n("Raw Log"));
setType(ChatWindow::RawLog);
IRCViewBox* ircBox = new IRCViewBox(this, 0);
setTextView(ircBox->ircView()); // Server will be set later in setServer()
}
RawLog::~RawLog()
{
}
void RawLog::childAdjustFocus()
{
}
void RawLog::updateAppearance()
{
getTextView()->unsetPalette();
if(Preferences::showBackgroundImage())
{
getTextView()->setViewBackground(Preferences::color(Preferences::TextViewBackground),
Preferences::backgroundImage());
}
else
{
getTextView()->setViewBackground(Preferences::color(Preferences::TextViewBackground),
TQString());
}
if (Preferences::customTextFont())
getTextView()->setFont(Preferences::textFont());
else
getTextView()->setFont(TDEGlobalSettings::generalFont());
ChatWindow::updateAppearance();
}
void RawLog::morphNotification()
{
activateTabNotification(Konversation::tnfSystem);
}
bool RawLog::closeYourself()
{
// make the server delete us so server can reset the pointer to us
m_server->closeRawLog();
return true;
}
bool RawLog::searchView() { return true; }
#include "rawlog.moc"
|