Revert "Rename a number of old tq methods that are no longer tq specific"

This reverts commit d458ffeadb.
pull/1/head
Timothy Pearson 13 years ago
parent d458ffeadb
commit 553b2c7f80

@ -419,7 +419,7 @@ Eric Youngdale: Err... is Richard Stallman here?
Linux: The OS people choose without $200,000,000 of persuasion. Linux: The OS people choose without $200,000,000 of persuasion.
-- Mike Coleman -- Mike Coleman
% %
The memory management on the PowerPC can be used to frighten small children. The memory management on the PowerPC can be used to frighten small tqchildren.
-- Linus Torvalds -- Linus Torvalds
% %
... faster BogoMIPS calculations (yes, it now boots 2 seconds faster than ... faster BogoMIPS calculations (yes, it now boots 2 seconds faster than

@ -21,7 +21,7 @@
</property> </property>
<widget class="TQLayoutWidget" row="1" column="0"> <widget class="TQLayoutWidget" row="1" column="0">
<property name="name"> <property name="name">
<cstring>layout7</cstring> <cstring>tqlayout7</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -114,7 +114,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="1" rowspan="2" colspan="1"> <widget class="TQLayoutWidget" row="0" column="1" rowspan="2" colspan="1">
<property name="name"> <property name="name">
<cstring>layout8</cstring> <cstring>tqlayout8</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -146,7 +146,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>350</height> <height>350</height>

@ -146,7 +146,7 @@ void Autoreplace_Config::saveSettings()
for(unsigned int index=0;index<newList.count();index++) for(unsigned int index=0;index<newList.count();index++)
{ {
// write the current entry's pattern and replacement (adds a "#" to preserve blanks at the end of the line) // write the current entry's pattern and replacement (adds a "#" to preserve blanks at the end of the line)
config->writeEntry(TQString("Autoreplace%1").arg(index),newList[index]+'#'); config->writeEntry(TQString("Autoreplace%1").tqarg(index),newList[index]+'#');
} // for } // for
} }
// if there were no entries at all, write a dummy entry to prevent KConfigXT from "optimizing" // if there were no entries at all, write a dummy entry to prevent KConfigXT from "optimizing"

@ -22,7 +22,7 @@
</property> </property>
<widget class="TQLayoutWidget" row="0" column="1" rowspan="2" colspan="1"> <widget class="TQLayoutWidget" row="0" column="1" rowspan="2" colspan="1">
<property name="name"> <property name="name">
<cstring>layout6</cstring> <cstring>tqlayout6</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -54,7 +54,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>506</height> <height>506</height>
@ -137,7 +137,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="1" column="0"> <widget class="TQLayoutWidget" row="1" column="0">
<property name="name"> <property name="name">
<cstring>layout16</cstring> <cstring>tqlayout16</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">

@ -46,10 +46,10 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqtimer.h> #include <tqtimer.h>
#include <tqcombobox.h> #include <tqcombobox.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
#include <tqtoolbutton.h> #include <tqtoolbutton.h>
#include <layout.h> #include <tqlayout.h>
#include <kprocess.h> #include <kprocess.h>
@ -139,7 +139,7 @@ Channel::Channel(TQWidget* parent, TQString _name) : ChatWindow(parent)
// The box holding the channel modes // The box holding the channel modes
modeBox = new TQHBox(topicWidget); modeBox = new TQHBox(topicWidget);
modeBox->setSizePolicy(hfixed); modeBox->tqsetSizePolicy(hfixed);
modeT = new ModeButton("T",modeBox,0); modeT = new ModeButton("T",modeBox,0);
modeN = new ModeButton("N",modeBox,1); modeN = new ModeButton("N",modeBox,1);
modeS = new ModeButton("S",modeBox,2); modeS = new ModeButton("S",modeBox,2);
@ -240,33 +240,33 @@ Channel::Channel(TQWidget* parent, TQString _name) : ChatWindow(parent)
channelInput->installEventFilter(this); channelInput->installEventFilter(this);
// Set the widgets size policies // Set the widgets size policies
m_topicButton->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); m_topicButton->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
topicLine->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum)); topicLine->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum));
commandLineBox->setSizePolicy(vfixed); commandLineBox->tqsetSizePolicy(vfixed);
limit->setMaximumSize(40,100); limit->setMaximumSize(40,100);
limit->setSizePolicy(hfixed); limit->tqsetSizePolicy(hfixed);
modeT->setMaximumSize(20,100); modeT->setMaximumSize(20,100);
modeT->setSizePolicy(hfixed); modeT->tqsetSizePolicy(hfixed);
modeN->setMaximumSize(20,100); modeN->setMaximumSize(20,100);
modeN->setSizePolicy(hfixed); modeN->tqsetSizePolicy(hfixed);
modeS->setMaximumSize(20,100); modeS->setMaximumSize(20,100);
modeS->setSizePolicy(hfixed); modeS->tqsetSizePolicy(hfixed);
modeI->setMaximumSize(20,100); modeI->setMaximumSize(20,100);
modeI->setSizePolicy(hfixed); modeI->tqsetSizePolicy(hfixed);
modeP->setMaximumSize(20,100); modeP->setMaximumSize(20,100);
modeP->setSizePolicy(hfixed); modeP->tqsetSizePolicy(hfixed);
modeM->setMaximumSize(20,100); modeM->setMaximumSize(20,100);
modeM->setSizePolicy(hfixed); modeM->tqsetSizePolicy(hfixed);
modeK->setMaximumSize(20,100); modeK->setMaximumSize(20,100);
modeK->setSizePolicy(hfixed); modeK->tqsetSizePolicy(hfixed);
modeL->setMaximumSize(20,100); modeL->setMaximumSize(20,100);
modeL->setSizePolicy(hfixed); modeL->tqsetSizePolicy(hfixed);
getTextView()->setSizePolicy(greedy); getTextView()->tqsetSizePolicy(greedy);
nicknameListView->setSizePolicy(hmodest); nicknameListView->tqsetSizePolicy(hmodest);
connect(channelInput,TQT_SIGNAL (submit()),this,TQT_SLOT (channelTextEntered()) ); connect(channelInput,TQT_SIGNAL (submit()),this,TQT_SLOT (channelTextEntered()) );
connect(channelInput,TQT_SIGNAL (envelopeCommand()),this,TQT_SLOT (channelPassthroughCommand()) ); connect(channelInput,TQT_SIGNAL (envelopeCommand()),this,TQT_SLOT (channelPassthroughCommand()) );
@ -568,8 +568,8 @@ void Channel::popupCommand(int id)
break; break;
case Konversation::Ping: case Konversation::Ping:
{ {
unsigned int time_t = TQDateTime::currentDateTime().toTime_t(); unsigned int time_t = TQDateTime::tqcurrentDateTime().toTime_t();
pattern=TQString(cc+"CTCP %u PING %1").arg(time_t); pattern=TQString(cc+"CTCP %u PING %1").tqarg(time_t);
} }
break; break;
case Konversation::Kick: case Konversation::Kick:
@ -617,7 +617,7 @@ void Channel::popupCommand(int id)
break; break;
case Konversation::IgnoreNick: case Konversation::IgnoreNick:
if (nickList.size() == 1) if (nickList.size() == 1)
question=i18n("Do you want to ignore %1?").arg(nickList.first()); question=i18n("Do you want to ignore %1?").tqarg(nickList.first());
else else
question = i18n("Do you want to ignore the selected users?"); question = i18n("Do you want to ignore the selected users?");
if (KMessageBox::warningContinueCancel(this, question, i18n("Ignore"), i18n("Ignore"), "IgnoreNick") == if (KMessageBox::warningContinueCancel(this, question, i18n("Ignore"), i18n("Ignore"), "IgnoreNick") ==
@ -635,7 +635,7 @@ void Channel::popupCommand(int id)
} }
if (selectedIgnoredNicks.count() == 1) if (selectedIgnoredNicks.count() == 1)
question=i18n("Do you want to stop ignoring %1?").arg(selectedIgnoredNicks.first()); question=i18n("Do you want to stop ignoring %1?").tqarg(selectedIgnoredNicks.first());
else else
question = i18n("Do you want to stop ignoring the selected users?"); question = i18n("Do you want to stop ignoring the selected users?");
if (KMessageBox::warningContinueCancel(this, question, i18n("Unignore"), i18n("Unignore"), "UnignoreNick") == if (KMessageBox::warningContinueCancel(this, question, i18n("Unignore"), i18n("Unignore"), "UnignoreNick") ==
@ -776,7 +776,7 @@ void Channel::completeNick()
if(Preferences::nickCompletionMode() == 1) if(Preferences::nickCompletionMode() == 1)
{ {
TQString nicksFound = found.join(" "); TQString nicksFound = found.join(" ");
appendServerMessage(i18n("Completion"), i18n("Possible completions: %1.").arg(nicksFound)); appendServerMessage(i18n("Completion"), i18n("Possible completions: %1.").tqarg(nicksFound));
} }
else else
{ {
@ -796,7 +796,7 @@ void Channel::completeNick()
{ {
nick = it.current(); nick = it.current();
if(nick->getChannelNick()->getNickname().startsWith(pattern, Preferences::nickCompletionCaseSensitive()) && if(nick->getChannelNick()->getNickname().tqstartsWith(pattern, Preferences::nickCompletionCaseSensitive()) &&
(nick->getChannelNick()->timeStamp() > timeStamp)) (nick->getChannelNick()->timeStamp() > timeStamp))
{ {
timeStamp = nick->getChannelNick()->timeStamp(); timeStamp = nick->getChannelNick()->timeStamp();
@ -822,7 +822,7 @@ void Channel::completeNick()
lookNick = lookNick.section( prefixCharacter,1 ); lookNick = lookNick.section( prefixCharacter,1 );
} }
if(lookNick.startsWith(pattern, Preferences::nickCompletionCaseSensitive())) if(lookNick.tqstartsWith(pattern, Preferences::nickCompletionCaseSensitive()))
{ {
foundNick = lookNick; foundNick = lookNick;
} }
@ -1174,7 +1174,7 @@ void Channel::modeButtonClicked(int id, bool on)
args=limit->text(); args=limit->text();
} }
// put together the mode command and send it to the server queue // put together the mode command and send it to the server queue
m_server->queue(command.arg(getName()).arg((on) ? "+" : "-").arg(mode[id]).arg(args)); m_server->queue(command.tqarg(getName()).tqarg((on) ? "+" : "-").tqarg(mode[id]).tqarg(args));
} }
void Channel::quickButtonClicked(const TQString &buttonText) void Channel::quickButtonClicked(const TQString &buttonText)
@ -1247,12 +1247,12 @@ void Channel::nickRenamed(const TQString &oldNick, const NickInfo& nickInfo)
if(newNick == m_server->getNickname()) /* Check newNick because m_server->getNickname() is already updated to new nick */ if(newNick == m_server->getNickname()) /* Check newNick because m_server->getNickname() is already updated to new nick */
{ {
setNickname(newNick); setNickname(newNick);
appendCommandMessage(i18n("Nick"),i18n("You are now known as %1.").arg(newNick), false, true, true); appendCommandMessage(i18n("Nick"),i18n("You are now known as %1.").tqarg(newNick), false, true, true);
} }
else else
{ {
/* No, must've been someone else */ /* No, must've been someone else */
appendCommandMessage(i18n("Nick"),i18n("%1 is now known as %2.").arg(oldNick).arg(newNick),false); appendCommandMessage(i18n("Nick"),i18n("%1 is now known as %2.").tqarg(oldNick).tqarg(newNick),false);
} }
nicknameListView->sort(); nicknameListView->sort();
@ -1266,7 +1266,7 @@ void Channel::joinNickname(ChannelNickPtr channelNick)
m_joined = true; m_joined = true;
emit joined(this); emit joined(this);
appendCommandMessage(i18n("Join"),i18n("%1 is the channel and %2 is our hostmask", appendCommandMessage(i18n("Join"),i18n("%1 is the channel and %2 is our hostmask",
"You have joined the channel %1 (%2).").arg(getName()).arg(channelNick->getHostmask()),false, false, true); "You have joined the channel %1 (%2).").tqarg(getName()).tqarg(channelNick->getHostmask()),false, false, true);
m_ownChannelNick = channelNick; m_ownChannelNick = channelNick;
connect(m_ownChannelNick, TQT_SIGNAL(channelNickChanged()), TQT_SLOT(refreshModeButtons())); connect(m_ownChannelNick, TQT_SIGNAL(channelNickChanged()), TQT_SLOT(refreshModeButtons()));
refreshModeButtons(); refreshModeButtons();
@ -1283,7 +1283,7 @@ void Channel::joinNickname(ChannelNickPtr channelNick)
TQString nick = channelNick->getNickname(); TQString nick = channelNick->getNickname();
TQString hostname = channelNick->getHostmask(); TQString hostname = channelNick->getHostmask();
appendCommandMessage(i18n("Join"), i18n("%1 is the nick joining and %2 the hostmask of that nick", appendCommandMessage(i18n("Join"), i18n("%1 is the nick joining and %2 the hostmask of that nick",
"%1 has joined this channel (%2).").arg(nick).arg(hostname),false, false); "%1 has joined this channel (%2).").tqarg(nick).tqarg(hostname),false, false);
addNickname(channelNick); addNickname(channelNick);
} }
} }
@ -1307,15 +1307,15 @@ void Channel::removeNick(ChannelNickPtr channelNick, const TQString &reason, boo
if (displayReason.isEmpty()) if (displayReason.isEmpty())
appendCommandMessage(i18n("Quit"), i18n("You have left this server."), false); appendCommandMessage(i18n("Quit"), i18n("You have left this server."), false);
else else
appendCommandMessage(i18n("Quit"), i18n("%1 adds the reason", "You have left this server (%1).").arg(displayReason), false); appendCommandMessage(i18n("Quit"), i18n("%1 adds the reason", "You have left this server (%1).").tqarg(displayReason), false);
} }
else else
{ {
if (displayReason.isEmpty()) if (displayReason.isEmpty())
appendCommandMessage(i18n("Part"), i18n("You have left channel %1.").arg(getName()), false); appendCommandMessage(i18n("Part"), i18n("You have left channel %1.").tqarg(getName()), false);
else else
appendCommandMessage(i18n("Part"), i18n("%1 adds the channel and %2 the reason", appendCommandMessage(i18n("Part"), i18n("%1 adds the channel and %2 the reason",
"You have left channel %1 (%2).").arg(getName()).arg(displayReason), false); "You have left channel %1 (%2).").tqarg(getName()).tqarg(displayReason), false);
} }
@ -1326,18 +1326,18 @@ void Channel::removeNick(ChannelNickPtr channelNick, const TQString &reason, boo
if (quit) if (quit)
{ {
if (displayReason.isEmpty()) if (displayReason.isEmpty())
appendCommandMessage(i18n("Quit"), i18n("%1 has left this server.").arg(channelNick->getNickname()), false); appendCommandMessage(i18n("Quit"), i18n("%1 has left this server.").tqarg(channelNick->getNickname()), false);
else else
appendCommandMessage(i18n("Quit"), i18n("%1 adds the nick and %2 the reason", appendCommandMessage(i18n("Quit"), i18n("%1 adds the nick and %2 the reason",
"%1 has left this server (%2).").arg(channelNick->getNickname()).arg(displayReason), false); "%1 has left this server (%2).").tqarg(channelNick->getNickname()).tqarg(displayReason), false);
} }
else else
{ {
if (displayReason.isEmpty()) if (displayReason.isEmpty())
appendCommandMessage(i18n("Part"), i18n("%1 has left this channel.").arg(channelNick->getNickname()), false); appendCommandMessage(i18n("Part"), i18n("%1 has left this channel.").tqarg(channelNick->getNickname()), false);
else else
appendCommandMessage(i18n("Part"), i18n("%1 adds the nick and %2 the reason", appendCommandMessage(i18n("Part"), i18n("%1 adds the nick and %2 the reason",
"%1 has left this channel (%2).").arg(channelNick->getNickname()).arg(displayReason), false); "%1 has left this channel (%2).").tqarg(channelNick->getNickname()).tqarg(displayReason), false);
} }
if(channelNick->isAnyTypeOfOp()) if(channelNick->isAnyTypeOfOp())
@ -1375,10 +1375,10 @@ void Channel::kickNick(ChannelNickPtr channelNick, const TQString &kicker, const
if(kicker == m_server->getNickname()) if(kicker == m_server->getNickname())
{ {
if (displayReason.isEmpty()) if (displayReason.isEmpty())
appendCommandMessage(i18n("Kick"), i18n("You have kicked yourself from channel %1.").arg(getName())); appendCommandMessage(i18n("Kick"), i18n("You have kicked yourself from channel %1.").tqarg(getName()));
else else
appendCommandMessage(i18n("Kick"), i18n("%1 adds the channel and %2 the reason", appendCommandMessage(i18n("Kick"), i18n("%1 adds the channel and %2 the reason",
"You have kicked yourself from channel %1 (%2).").arg(getName()).arg(displayReason)); "You have kicked yourself from channel %1 (%2).").tqarg(getName()).tqarg(displayReason));
} }
else else
{ {
@ -1386,13 +1386,13 @@ void Channel::kickNick(ChannelNickPtr channelNick, const TQString &kicker, const
{ {
appendCommandMessage(i18n("Kick"), i18n("%1 adds the channel, %2 adds the kicker", appendCommandMessage(i18n("Kick"), i18n("%1 adds the channel, %2 adds the kicker",
"You have been kicked from channel %1 by %2.") "You have been kicked from channel %1 by %2.")
.arg(getName()).arg(kicker), true); .tqarg(getName()).tqarg(kicker), true);
} }
else else
{ {
appendCommandMessage(i18n("Kick"), i18n("%1 adds the channel, %2 the kicker and %3 the reason", appendCommandMessage(i18n("Kick"), i18n("%1 adds the channel, %2 the kicker and %3 the reason",
"You have been kicked from channel %1 by %2 (%3).") "You have been kicked from channel %1 by %2 (%3).")
.arg(getName()).arg(kicker).arg(displayReason), true); .tqarg(getName()).tqarg(kicker).tqarg(displayReason), true);
} }
KonversationApplication::instance()->notificationHandler()->kick(this,getName(), kicker); KonversationApplication::instance()->notificationHandler()->kick(this,getName(), kicker);
@ -1412,10 +1412,10 @@ void Channel::kickNick(ChannelNickPtr channelNick, const TQString &kicker, const
if(kicker == m_server->getNickname()) if(kicker == m_server->getNickname())
{ {
if (displayReason.isEmpty()) if (displayReason.isEmpty())
appendCommandMessage(i18n("Kick"), i18n("You have kicked %1 from the channel.").arg(channelNick->getNickname())); appendCommandMessage(i18n("Kick"), i18n("You have kicked %1 from the channel.").tqarg(channelNick->getNickname()));
else else
appendCommandMessage(i18n("Kick"), i18n("%1 adds the kicked nick and %2 the reason", appendCommandMessage(i18n("Kick"), i18n("%1 adds the kicked nick and %2 the reason",
"You have kicked %1 from the channel (%2).").arg(channelNick->getNickname()).arg(displayReason), true); "You have kicked %1 from the channel (%2).").tqarg(channelNick->getNickname()).tqarg(displayReason), true);
} }
else else
{ {
@ -1423,13 +1423,13 @@ void Channel::kickNick(ChannelNickPtr channelNick, const TQString &kicker, const
{ {
appendCommandMessage(i18n("Kick"), i18n("%1 adds the kicked nick, %2 adds the kicker", appendCommandMessage(i18n("Kick"), i18n("%1 adds the kicked nick, %2 adds the kicker",
"%1 has been kicked from the channel by %2.") "%1 has been kicked from the channel by %2.")
.arg(channelNick->getNickname()).arg(kicker), true); .tqarg(channelNick->getNickname()).tqarg(kicker), true);
} }
else else
{ {
appendCommandMessage(i18n("Kick"), i18n("%1 adds the kicked nick, %2 the kicker and %3 the reason", appendCommandMessage(i18n("Kick"), i18n("%1 adds the kicked nick, %2 the kicker and %3 the reason",
"%1 has been kicked from the channel by %2 (%3).") "%1 has been kicked from the channel by %2 (%3).")
.arg(channelNick->getNickname()).arg(kicker).arg(displayReason), true); .tqarg(channelNick->getNickname()).tqarg(kicker).tqarg(displayReason), true);
} }
} }
@ -1511,7 +1511,7 @@ void Channel::emitUpdateInfo()
void Channel::setTopic(const TQString &newTopic) void Channel::setTopic(const TQString &newTopic)
{ {
appendCommandMessage(i18n("Topic"), i18n("The channel topic is \"%1\".").arg(newTopic)); appendCommandMessage(i18n("Topic"), i18n("The channel topic is \"%1\".").tqarg(newTopic));
TQString topic = Konversation::removeIrcMarkup(newTopic); TQString topic = Konversation::removeIrcMarkup(newTopic);
topicLine->setText(topic); topicLine->setText(topic);
topicAuthorUnknown=true; // if we only get called with a topic, it was a 332, which usually has a 333 next topicAuthorUnknown=true; // if we only get called with a topic, it was a 332, which usually has a 333 next
@ -1521,7 +1521,7 @@ void Channel::setTopic(const TQString &newTopic)
if(m_topicHistory.first().section(' ', 2) != newTopic) if(m_topicHistory.first().section(' ', 2) != newTopic)
{ {
m_topicHistory.prepend(TQString("%1 "+i18n("unknown")+" %2").arg(TQDateTime::currentDateTime().toTime_t()).arg(newTopic)); m_topicHistory.prepend(TQString("%1 "+i18n("unknown")+" %2").tqarg(TQDateTime::tqcurrentDateTime().toTime_t()).tqarg(newTopic));
emit topicHistoryChanged(); emit topicHistoryChanged();
} }
} }
@ -1530,14 +1530,14 @@ void Channel::setTopic(const TQString &nickname, const TQString &newTopic) // Ov
{ {
if(nickname == m_server->getNickname()) if(nickname == m_server->getNickname())
{ {
appendCommandMessage(i18n("Topic"), i18n("You set the channel topic to \"%1\".").arg(newTopic)); appendCommandMessage(i18n("Topic"), i18n("You set the channel topic to \"%1\".").tqarg(newTopic));
} }
else else
{ {
appendCommandMessage(i18n("Topic"), i18n("%1 sets the channel topic to \"%2\".").arg(nickname).arg(newTopic)); appendCommandMessage(i18n("Topic"), i18n("%1 sets the channel topic to \"%2\".").tqarg(nickname).tqarg(newTopic));
} }
m_topicHistory.prepend(TQString("%1 %2 %3").arg(TQDateTime::currentDateTime().toTime_t()).arg(nickname).arg(newTopic)); m_topicHistory.prepend(TQString("%1 %2 %3").tqarg(TQDateTime::tqcurrentDateTime().toTime_t()).tqarg(nickname).tqarg(newTopic));
TQString topic = Konversation::removeIrcMarkup(newTopic); TQString topic = Konversation::removeIrcMarkup(newTopic);
topicLine->setText(topic); topicLine->setText(topic);
@ -1557,11 +1557,11 @@ TQString Channel::getTopic()
void Channel::setTopicAuthor(const TQString& newAuthor, TQDateTime time) void Channel::setTopicAuthor(const TQString& newAuthor, TQDateTime time)
{ {
if (time.isNull() || !time.isValid()) if (time.isNull() || !time.isValid())
time=TQDateTime::currentDateTime(); time=TQDateTime::tqcurrentDateTime();
if(topicAuthorUnknown) if(topicAuthorUnknown)
{ {
m_topicHistory[0] = TQString("%1").arg(time.toTime_t()) + ' ' + newAuthor + ' ' + m_topicHistory[0].section(' ', 2); m_topicHistory[0] = TQString("%1").tqarg(time.toTime_t()) + ' ' + newAuthor + ' ' + m_topicHistory[0].section(' ', 2);
topicAuthorUnknown = false; topicAuthorUnknown = false;
emit topicHistoryChanged(); emit topicHistoryChanged();
@ -1599,14 +1599,14 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(toMe) if(toMe)
message=i18n("You give channel owner privileges to yourself."); message=i18n("You give channel owner privileges to yourself.");
else else
message=i18n("You give channel owner privileges to %1.").arg(parameter); message=i18n("You give channel owner privileges to %1.").tqarg(parameter);
} }
else else
{ {
if(toMe) if(toMe)
message=i18n("%1 gives channel owner privileges to you.").arg(sourceNick); message=i18n("%1 gives channel owner privileges to you.").tqarg(sourceNick);
else else
message=i18n("%1 gives channel owner privileges to %2.").arg(sourceNick).arg(parameter); message=i18n("%1 gives channel owner privileges to %2.").tqarg(sourceNick).tqarg(parameter);
} }
} }
else else
@ -1616,14 +1616,14 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(toMe) if(toMe)
message=i18n("You take channel owner privileges from yourself."); message=i18n("You take channel owner privileges from yourself.");
else else
message=i18n("You take channel owner privileges from %1.").arg(parameter); message=i18n("You take channel owner privileges from %1.").tqarg(parameter);
} }
else else
{ {
if(toMe) if(toMe)
message=i18n("%1 takes channel owner privileges from you.").arg(sourceNick); message=i18n("%1 takes channel owner privileges from you.").tqarg(sourceNick);
else else
message=i18n("%1 takes channel owner privileges from %2.").arg(sourceNick).arg(parameter); message=i18n("%1 takes channel owner privileges from %2.").tqarg(sourceNick).tqarg(parameter);
} }
} }
if(parameterChannelNick) if(parameterChannelNick)
@ -1642,14 +1642,14 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(toMe) if(toMe)
message=i18n("You give channel admin privileges to yourself."); message=i18n("You give channel admin privileges to yourself.");
else else
message=i18n("You give channel admin privileges to %1.").arg(parameter); message=i18n("You give channel admin privileges to %1.").tqarg(parameter);
} }
else else
{ {
if(toMe) if(toMe)
message=i18n("%1 gives channel admin privileges to you.").arg(sourceNick); message=i18n("%1 gives channel admin privileges to you.").tqarg(sourceNick);
else else
message=i18n("%1 gives channel admin privileges to %2.").arg(sourceNick).arg(parameter); message=i18n("%1 gives channel admin privileges to %2.").tqarg(sourceNick).tqarg(parameter);
} }
} }
else else
@ -1659,14 +1659,14 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(toMe) if(toMe)
message=i18n("You take channel admin privileges from yourself."); message=i18n("You take channel admin privileges from yourself.");
else else
message=i18n("You take channel admin privileges from %1.").arg(parameter); message=i18n("You take channel admin privileges from %1.").tqarg(parameter);
} }
else else
{ {
if(toMe) if(toMe)
message=i18n("%1 takes channel admin privileges from you.").arg(sourceNick); message=i18n("%1 takes channel admin privileges from you.").tqarg(sourceNick);
else else
message=i18n("%1 takes channel admin privileges from %2.").arg(sourceNick).arg(parameter); message=i18n("%1 takes channel admin privileges from %2.").tqarg(sourceNick).tqarg(parameter);
} }
} }
if(parameterChannelNick) if(parameterChannelNick)
@ -1685,14 +1685,14 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(toMe) if(toMe)
message=i18n("You give channel operator privileges to yourself."); message=i18n("You give channel operator privileges to yourself.");
else else
message=i18n("You give channel operator privileges to %1.").arg(parameter); message=i18n("You give channel operator privileges to %1.").tqarg(parameter);
} }
else else
{ {
if(toMe) if(toMe)
message=i18n("%1 gives channel operator privileges to you.").arg(sourceNick); message=i18n("%1 gives channel operator privileges to you.").tqarg(sourceNick);
else else
message=i18n("%1 gives channel operator privileges to %2.").arg(sourceNick).arg(parameter); message=i18n("%1 gives channel operator privileges to %2.").tqarg(sourceNick).tqarg(parameter);
} }
} }
else else
@ -1702,14 +1702,14 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(toMe) if(toMe)
message=i18n("You take channel operator privileges from yourself."); message=i18n("You take channel operator privileges from yourself.");
else else
message=i18n("You take channel operator privileges from %1.").arg(parameter); message=i18n("You take channel operator privileges from %1.").tqarg(parameter);
} }
else else
{ {
if(toMe) if(toMe)
message=i18n("%1 takes channel operator privileges from you.").arg(sourceNick); message=i18n("%1 takes channel operator privileges from you.").tqarg(sourceNick);
else else
message=i18n("%1 takes channel operator privileges from %2.").arg(sourceNick).arg(parameter); message=i18n("%1 takes channel operator privileges from %2.").tqarg(sourceNick).tqarg(parameter);
} }
} }
if(parameterChannelNick) if(parameterChannelNick)
@ -1728,14 +1728,14 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(toMe) if(toMe)
message=i18n("You give channel halfop privileges to yourself."); message=i18n("You give channel halfop privileges to yourself.");
else else
message=i18n("You give channel halfop privileges to %1.").arg(parameter); message=i18n("You give channel halfop privileges to %1.").tqarg(parameter);
} }
else else
{ {
if(toMe) if(toMe)
message=i18n("%1 gives channel halfop privileges to you.").arg(sourceNick); message=i18n("%1 gives channel halfop privileges to you.").tqarg(sourceNick);
else else
message=i18n("%1 gives channel halfop privileges to %2.").arg(sourceNick).arg(parameter); message=i18n("%1 gives channel halfop privileges to %2.").tqarg(sourceNick).tqarg(parameter);
} }
} }
else else
@ -1745,14 +1745,14 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(toMe) if(toMe)
message=i18n("You take channel halfop privileges from yourself."); message=i18n("You take channel halfop privileges from yourself.");
else else
message=i18n("You take channel halfop privileges from %1.").arg(parameter); message=i18n("You take channel halfop privileges from %1.").tqarg(parameter);
} }
else else
{ {
if(toMe) if(toMe)
message=i18n("%1 takes channel halfop privileges from you.").arg(sourceNick); message=i18n("%1 takes channel halfop privileges from you.").tqarg(sourceNick);
else else
message=i18n("%1 takes channel halfop privileges from %2.").arg(sourceNick).arg(parameter); message=i18n("%1 takes channel halfop privileges from %2.").tqarg(sourceNick).tqarg(parameter);
} }
} }
if(parameterChannelNick) if(parameterChannelNick)
@ -1771,12 +1771,12 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(fromMe) if(fromMe)
{ {
if(toMe) message=i18n("You give yourself permission to talk."); if(toMe) message=i18n("You give yourself permission to talk.");
else message=i18n("You give %1 permission to talk.").arg(parameter); else message=i18n("You give %1 permission to talk.").tqarg(parameter);
} }
else else
{ {
if(toMe) message=i18n("%1 gives you permission to talk.").arg(sourceNick); if(toMe) message=i18n("%1 gives you permission to talk.").tqarg(sourceNick);
else message=i18n("%1 gives %2 permission to talk.").arg(sourceNick).arg(parameter); else message=i18n("%1 gives %2 permission to talk.").tqarg(sourceNick).tqarg(parameter);
} }
} }
else else
@ -1784,12 +1784,12 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(fromMe) if(fromMe)
{ {
if(toMe) message=i18n("You take the permission to talk from yourself."); if(toMe) message=i18n("You take the permission to talk from yourself.");
else message=i18n("You take the permission to talk from %1.").arg(parameter); else message=i18n("You take the permission to talk from %1.").tqarg(parameter);
} }
else else
{ {
if(toMe) message=i18n("%1 takes the permission to talk from you.").arg(sourceNick); if(toMe) message=i18n("%1 takes the permission to talk from you.").tqarg(sourceNick);
else message=i18n("%1 takes the permission to talk from %2.").arg(sourceNick).arg(parameter); else message=i18n("%1 takes the permission to talk from %2.").tqarg(sourceNick).tqarg(parameter);
} }
} }
if(parameterChannelNick) if(parameterChannelNick)
@ -1803,12 +1803,12 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set the channel mode to 'no colors allowed'."); if(fromMe) message=i18n("You set the channel mode to 'no colors allowed'.");
else message=i18n("%1 sets the channel mode to 'no colors allowed'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'no colors allowed'.").tqarg(sourceNick);
} }
else else
{ {
if(fromMe) message=i18n("You set the channel mode to 'allow color codes'."); if(fromMe) message=i18n("You set the channel mode to 'allow color codes'.");
else message=i18n("%1 sets the channel mode to 'allow color codes'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'allow color codes'.").tqarg(sourceNick);
} }
break; break;
@ -1816,12 +1816,12 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set the channel mode to 'invite only'."); if(fromMe) message=i18n("You set the channel mode to 'invite only'.");
else message=i18n("%1 sets the channel mode to 'invite only'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'invite only'.").tqarg(sourceNick);
} }
else else
{ {
if(fromMe) message=i18n("You remove the 'invite only' mode from the channel."); if(fromMe) message=i18n("You remove the 'invite only' mode from the channel.");
else message=i18n("%1 removes the 'invite only' mode from the channel.").arg(sourceNick); else message=i18n("%1 removes the 'invite only' mode from the channel.").tqarg(sourceNick);
} }
modeI->setDown(plus); modeI->setDown(plus);
break; break;
@ -1830,12 +1830,12 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set the channel mode to 'moderated'."); if(fromMe) message=i18n("You set the channel mode to 'moderated'.");
else message=i18n("%1 sets the channel mode to 'moderated'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'moderated'.").tqarg(sourceNick);
} }
else else
{ {
if(fromMe) message=i18n("You set the channel mode to 'unmoderated'."); if(fromMe) message=i18n("You set the channel mode to 'unmoderated'.");
else message=i18n("%1 sets the channel mode to 'unmoderated'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'unmoderated'.").tqarg(sourceNick);
} }
modeM->setDown(plus); modeM->setDown(plus);
break; break;
@ -1844,12 +1844,12 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set the channel mode to 'no messages from outside'."); if(fromMe) message=i18n("You set the channel mode to 'no messages from outside'.");
else message=i18n("%1 sets the channel mode to 'no messages from outside'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'no messages from outside'.").tqarg(sourceNick);
} }
else else
{ {
if(fromMe) message=i18n("You set the channel mode to 'allow messages from outside'."); if(fromMe) message=i18n("You set the channel mode to 'allow messages from outside'.");
else message=i18n("%1 sets the channel mode to 'allow messages from outside'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'allow messages from outside'.").tqarg(sourceNick);
} }
modeN->setDown(plus); modeN->setDown(plus);
break; break;
@ -1858,12 +1858,12 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set the channel mode to 'private'."); if(fromMe) message=i18n("You set the channel mode to 'private'.");
else message=i18n("%1 sets the channel mode to 'private'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'private'.").tqarg(sourceNick);
} }
else else
{ {
if(fromMe) message=i18n("You set the channel mode to 'public'."); if(fromMe) message=i18n("You set the channel mode to 'public'.");
else message=i18n("%1 sets the channel mode to 'public'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'public'.").tqarg(sourceNick);
} }
modeP->setDown(plus); modeP->setDown(plus);
if(plus) modeS->setDown(false); if(plus) modeS->setDown(false);
@ -1873,12 +1873,12 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set the channel mode to 'secret'."); if(fromMe) message=i18n("You set the channel mode to 'secret'.");
else message=i18n("%1 sets the channel mode to 'secret'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'secret'.").tqarg(sourceNick);
} }
else else
{ {
if(fromMe) message=i18n("You set the channel mode to 'visible'."); if(fromMe) message=i18n("You set the channel mode to 'visible'.");
else message=i18n("%1 sets the channel mode to 'visible'.").arg(sourceNick); else message=i18n("%1 sets the channel mode to 'visible'.").tqarg(sourceNick);
} }
modeS->setDown(plus); modeS->setDown(plus);
if(plus) modeP->setDown(false); if(plus) modeP->setDown(false);
@ -1890,12 +1890,12 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You switch on 'topic protection'."); if(fromMe) message=i18n("You switch on 'topic protection'.");
else message=i18n("%1 switches on 'topic protection'.").arg(sourceNick); else message=i18n("%1 switches on 'topic protection'.").tqarg(sourceNick);
} }
else else
{ {
if(fromMe) message=i18n("You switch off 'topic protection'."); if(fromMe) message=i18n("You switch off 'topic protection'.");
else message=i18n("%1 switches off 'topic protection'.").arg(sourceNick); else message=i18n("%1 switches off 'topic protection'.").tqarg(sourceNick);
} }
modeT->setDown(plus); modeT->setDown(plus);
break; break;
@ -1903,13 +1903,13 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
case 'k': case 'k':
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set the channel key to '%1'.").arg(parameter); if(fromMe) message=i18n("You set the channel key to '%1'.").tqarg(parameter);
else message=i18n("%1 sets the channel key to '%2'.").arg(sourceNick).arg(parameter); else message=i18n("%1 sets the channel key to '%2'.").tqarg(sourceNick).tqarg(parameter);
} }
else else
{ {
if(fromMe) message=i18n("You remove the channel key."); if(fromMe) message=i18n("You remove the channel key.");
else message=i18n("%1 removes the channel key.").arg(sourceNick); else message=i18n("%1 removes the channel key.").tqarg(sourceNick);
} }
modeK->setDown(plus); modeK->setDown(plus);
break; break;
@ -1917,13 +1917,13 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
case 'l': case 'l':
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set the channel limit to %1 nicks.").arg(parameter); if(fromMe) message=i18n("You set the channel limit to %1 nicks.").tqarg(parameter);
else message=i18n("%1 sets the channel limit to %2 nicks.").arg(sourceNick).arg(parameter); else message=i18n("%1 sets the channel limit to %2 nicks.").tqarg(sourceNick).tqarg(parameter);
} }
else else
{ {
if(fromMe) message=i18n("You remove the channel limit."); if(fromMe) message=i18n("You remove the channel limit.");
else message=i18n("%1 removes the channel limit.").arg(sourceNick); else message=i18n("%1 removes the channel limit.").tqarg(sourceNick);
} }
modeL->setDown(plus); modeL->setDown(plus);
if(plus) limit->setText(parameter); if(plus) limit->setText(parameter);
@ -1933,51 +1933,51 @@ void Channel::updateMode(const TQString& sourceNick, char mode, bool plus, const
case 'b': case 'b':
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set a ban on %1.").arg(parameter); if(fromMe) message=i18n("You set a ban on %1.").tqarg(parameter);
else message=i18n("%1 sets a ban on %2.").arg(sourceNick).arg(parameter); else message=i18n("%1 sets a ban on %2.").tqarg(sourceNick).tqarg(parameter);
} }
else else
{ {
if(fromMe) message=i18n("You remove the ban on %1.").arg(parameter); if(fromMe) message=i18n("You remove the ban on %1.").tqarg(parameter);
else message=i18n("%1 removes the ban on %2.").arg(sourceNick).arg(parameter); else message=i18n("%1 removes the ban on %2.").tqarg(sourceNick).tqarg(parameter);
} }
break; break;
case 'e': case 'e':
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set a ban exception on %1.").arg(parameter); if(fromMe) message=i18n("You set a ban exception on %1.").tqarg(parameter);
else message=i18n("%1 sets a ban exception on %2.").arg(sourceNick).arg(parameter); else message=i18n("%1 sets a ban exception on %2.").tqarg(sourceNick).tqarg(parameter);
} }
else else
{ {
if(fromMe) message=i18n("You remove the ban exception on %1.").arg(parameter); if(fromMe) message=i18n("You remove the ban exception on %1.").tqarg(parameter);
else message=i18n("%1 removes the ban exception on %2.").arg(sourceNick).arg(parameter); else message=i18n("%1 removes the ban exception on %2.").tqarg(sourceNick).tqarg(parameter);
} }
break; break;
case 'I': case 'I':
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set invitation mask %1.").arg(parameter); if(fromMe) message=i18n("You set invitation mask %1.").tqarg(parameter);
else message=i18n("%1 sets invitation mask %2.").arg(sourceNick).arg(parameter); else message=i18n("%1 sets invitation mask %2.").tqarg(sourceNick).tqarg(parameter);
} }
else else
{ {
if(fromMe) message=i18n("You remove the invitation mask %1.").arg(parameter); if(fromMe) message=i18n("You remove the invitation mask %1.").tqarg(parameter);
else message=i18n("%1 removes the invitation mask %2.").arg(sourceNick).arg(parameter); else message=i18n("%1 removes the invitation mask %2.").tqarg(sourceNick).tqarg(parameter);
} }
break; break;
default: default:
if(plus) if(plus)
{ {
if(fromMe) message=i18n("You set channel mode +%1").arg(mode); if(fromMe) message=i18n("You set channel mode +%1").tqarg(mode);
else message=i18n("%1 sets channel mode +%2").arg(sourceNick).arg(mode); else message=i18n("%1 sets channel mode +%2").tqarg(sourceNick).tqarg(mode);
} }
else else
{ {
if (fromMe) message=i18n("You set channel mode -%1").arg(mode); if (fromMe) message=i18n("You set channel mode -%1").tqarg(mode);
else message= i18n("%1 sets channel mode -%2").arg(sourceNick).arg(mode); else message= i18n("%1 sets channel mode -%2").tqarg(sourceNick).tqarg(mode);
} }
} }
@ -2067,7 +2067,7 @@ void Channel::updateModeWidgets(char mode, bool plus, const TQString &parameter)
} }
else else
{ {
TQStringList removable = m_modeList.grep(TQRegExp(TQString("^%1.*").arg(mode))); TQStringList removable = m_modeList.grep(TQRegExp(TQString("^%1.*").tqarg(mode)));
for(TQStringList::iterator it = removable.begin(); it != removable.end(); ++it) for(TQStringList::iterator it = removable.begin(); it != removable.end(); ++it)
{ {
@ -2253,8 +2253,8 @@ void Channel::updateAppearance()
} }
else else
{ {
fg=colorGroup().foreground(); fg=tqcolorGroup().foreground();
bg=colorGroup().base(); bg=tqcolorGroup().base();
abg=KGlobalSettings::alternateBackgroundColor(); abg=KGlobalSettings::alternateBackgroundColor();
} }
@ -2393,12 +2393,12 @@ void Channel::refreshModeButtons()
TQString opOnly; TQString opOnly;
if(!enable) opOnly = i18n("You have to be an operator to change this."); if(!enable) opOnly = i18n("You have to be an operator to change this.");
TQToolTip::add(modeT, i18n("Topic can be changed by channel operator only. %1").arg(opOnly)); TQToolTip::add(modeT, i18n("Topic can be changed by channel operator only. %1").tqarg(opOnly));
TQToolTip::add(modeN, i18n("No messages to channel from clients on the outside. %1").arg(opOnly)); TQToolTip::add(modeN, i18n("No messages to channel from clients on the outside. %1").tqarg(opOnly));
TQToolTip::add(modeS, i18n("Secret channel. %1").arg(opOnly)); TQToolTip::add(modeS, i18n("Secret channel. %1").tqarg(opOnly));
TQToolTip::add(modeI, i18n("Invite only channel. %1").arg(opOnly)); TQToolTip::add(modeI, i18n("Invite only channel. %1").tqarg(opOnly));
TQToolTip::add(modeP, i18n("Private channel. %1").arg(opOnly)); TQToolTip::add(modeP, i18n("Private channel. %1").tqarg(opOnly));
TQToolTip::add(modeM, i18n("Moderated channel. %1").arg(opOnly)); TQToolTip::add(modeM, i18n("Moderated channel. %1").tqarg(opOnly));
TQToolTip::add(modeK, i18n("Protect channel with a password.")); TQToolTip::add(modeK, i18n("Protect channel with a password."));
TQToolTip::add(modeL, i18n("Set user limit to channel.")); TQToolTip::add(modeL, i18n("Set user limit to channel."));
@ -2538,7 +2538,7 @@ bool Channel::closeYourself(bool confirm)
{ {
int result=KMessageBox::Continue; int result=KMessageBox::Continue;
if (confirm) if (confirm)
result = KMessageBox::warningContinueCancel(this, i18n("Do you want to leave %1?").arg(getName()), result = KMessageBox::warningContinueCancel(this, i18n("Do you want to leave %1?").tqarg(getName()),
i18n("Leave Channel"), i18n("Leave"), "QuitChannelTab"); i18n("Leave Channel"), i18n("Leave"), "QuitChannelTab");
if (result==KMessageBox::Continue) if (result==KMessageBox::Continue)
@ -2668,7 +2668,7 @@ TQString Channel::getChannelEncoding() // virtual
TQString Channel::getChannelEncodingDefaultDesc() // virtual TQString Channel::getChannelEncodingDefaultDesc() // virtual
{ {
return i18n("Identity Default ( %1 )").arg(getServer()->getIdentity()->getCodecName()); return i18n("Identity Default ( %1 )").tqarg(getServer()->getIdentity()->getCodecName());
} }
void Channel::showNicknameBox(bool show) void Channel::showNicknameBox(bool show)
@ -2797,7 +2797,7 @@ void Channel::append(const TQString& nickname, const TQString& message)
Nick* nick = getNickByName(nickname); Nick* nick = getNickByName(nickname);
if(nick) { if(nick) {
nick->getChannelNick()->setTimeStamp(TQDateTime::currentDateTime().toTime_t()); nick->getChannelNick()->setTimeStamp(TQDateTime::tqcurrentDateTime().toTime_t());
} }
} }
@ -2811,7 +2811,7 @@ void Channel::appendAction(const TQString& nickname, const TQString& message)
Nick* nick = getNickByName(nickname); Nick* nick = getNickByName(nickname);
if(nick) { if(nick) {
nick->getChannelNick()->setTimeStamp(TQDateTime::currentDateTime().toTime_t()); nick->getChannelNick()->setTimeStamp(TQDateTime::tqcurrentDateTime().toTime_t());
} }
} }

@ -11,7 +11,7 @@
#include "channeldialog.h" #include "channeldialog.h"
#include "servergroupsettings.h" #include "servergroupsettings.h"
#include <layout.h> #include <tqlayout.h>
#include <tqframe.h> #include <tqframe.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlineedit.h> #include <tqlineedit.h>

@ -222,8 +222,8 @@ void ChannelListPanel::saveList()
TQTextStream stream(&listFile); TQTextStream stream(&listFile);
TQString header(i18n("Konversation Channel List: %1 - %2\n\n") TQString header(i18n("Konversation Channel List: %1 - %2\n\n")
.arg(m_server->getServerName()) .tqarg(m_server->getServerName())
.arg(TQDateTime::currentDateTime().toString())); .tqarg(TQDateTime::tqcurrentDateTime().toString()));
// send header to stream // send header to stream
stream << header; stream << header;
@ -483,8 +483,8 @@ void ChannelListPanel::applyFilterClicked()
void ChannelListPanel::updateUsersChannels() void ChannelListPanel::updateUsersChannels()
{ {
emit updateNumChannels(i18n("Channels: %1 (%2 shown)").arg(getNumChannels()).arg(getVisibleChannels())); emit updateNumChannels(i18n("Channels: %1 (%2 shown)").tqarg(getNumChannels()).tqarg(getVisibleChannels()));
emit updateNumUsers(i18n("Non-unique users: %1 (%2 shown)").arg(getNumUsers()).arg(getVisibleUsers())); emit updateNumUsers(i18n("Non-unique users: %1 (%2 shown)").tqarg(getNumUsers()).tqarg(getVisibleUsers()));
} }
bool ChannelListPanel::closeYourself() bool ChannelListPanel::closeYourself()
@ -585,7 +585,7 @@ void ChannelListPanel::serverOnline(bool online)
void ChannelListPanel::emitUpdateInfo() void ChannelListPanel::emitUpdateInfo()
{ {
TQString info; TQString info;
info = i18n("Channel List for %1").arg(m_server->getDisplayName()); info = i18n("Channel List for %1").tqarg(m_server->getDisplayName());
emit updateInfo(info); emit updateInfo(info);
} }

@ -35,7 +35,7 @@ namespace Konversation
{ {
ChannelOptionsDialog::ChannelOptionsDialog(Channel *channel) ChannelOptionsDialog::ChannelOptionsDialog(Channel *channel)
: KDialogBase(channel, "channelOptions", false, i18n("Channel Settings for %1").arg(channel->getName()), Ok|Cancel, Ok) : KDialogBase(channel, "channelOptions", false, i18n("Channel Settings for %1").tqarg(channel->getName()), Ok|Cancel, Ok)
{ {
Q_ASSERT(channel); Q_ASSERT(channel);
m_widget = new ChannelOptionsUI(this); m_widget = new ChannelOptionsUI(this);
@ -124,16 +124,16 @@ namespace Konversation
if(tmp.isEmpty() && plus) if(tmp.isEmpty() && plus)
{ {
m_channel->getServer()->queue(command.arg(m_channel->getName()).arg("+").arg(modeString[0]).arg(modeString.mid(1))); m_channel->getServer()->queue(command.tqarg(m_channel->getName()).tqarg("+").tqarg(modeString[0]).tqarg(modeString.mid(1)));
} }
else if(!tmp.isEmpty() && !plus) else if(!tmp.isEmpty() && !plus)
{ {
//FIXME: Bahamuth requires the key parameter for -k, but ircd breaks on -l with limit number. //FIXME: Bahamuth requires the key parameter for -k, but ircd breaks on -l with limit number.
//Hence two versions of this. //Hence two versions of this.
if (modeString[0] == 'k') if (modeString[0] == 'k')
m_channel->getServer()->queue(command.arg(m_channel->getName()).arg("-").arg(modeString[0]).arg(modeString.mid(1))); m_channel->getServer()->queue(command.tqarg(m_channel->getName()).tqarg("-").tqarg(modeString[0]).tqarg(modeString.mid(1)));
else else
m_channel->getServer()->queue(command.arg(m_channel->getName()).arg("-").arg(modeString[0]).arg("")); m_channel->getServer()->queue(command.tqarg(m_channel->getName()).tqarg("-").tqarg(modeString[0]).tqarg(""));
} }
} }
hide(); hide();

@ -215,7 +215,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout11</cstring> <cstring>tqlayout11</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -267,7 +267,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>211</width> <width>211</width>
<height>20</height> <height>20</height>
@ -289,7 +289,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout2</cstring> <cstring>tqlayout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -319,7 +319,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>301</width> <width>301</width>
<height>31</height> <height>31</height>
@ -383,7 +383,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>

@ -20,9 +20,9 @@
#include <tqdatetime.h> #include <tqdatetime.h>
#include <tqdir.h> #include <tqdir.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <layout.h> #include <tqlayout.h>
#include <klocale.h> #include <klocale.h>
#include <kdialog.h> #include <kdialog.h>
@ -219,7 +219,7 @@ void ChatWindow::setLogfileName(const TQString& name)
if(firstLog) if(firstLog)
{ {
// status panels get special treatment here, since they have no server at the beginning // status panels get special treatment here, since they have no server at the beginning
if (getType() == Status || getType() == DccChat) if (getType() == tqStatus || getType() == DccChat)
{ {
logName = name + ".log"; logName = name + ".log";
} }
@ -236,7 +236,7 @@ void ChatWindow::setLogfileName(const TQString& name)
cdIntoLogPath(); cdIntoLogPath();
// Show last log lines. This idea was stole ... um ... inspired by PMP :) // Show last log lines. This idea was stole ... um ... inspired by PMP :)
// Don't do this for the server status windows, though // Don't do this for the server status windows, though
if((getType() != Status) && logfile.open(IO_ReadOnly)) if((getType() != tqStatus) && logfile.open(IO_ReadOnly))
{ {
unsigned long filePosition; unsigned long filePosition;
@ -247,9 +247,9 @@ void ChatWindow::setLogfileName(const TQString& name)
TQStringList firstColumns; TQStringList firstColumns;
TQStringList messages; TQStringList messages;
int offset = 0; int offset = 0;
unsigned int lastPacketHeadPosition = backlog.device()->size(); unsigned int lastPacketHeadPosition = backlog.tqdevice()->size();
const unsigned int packetSize = 4096; const unsigned int packetSize = 4096;
while(messages.count() < (unsigned int)Preferences::backlogLines() && backlog.device()->size() > packetSize * offset) while(messages.count() < (unsigned int)Preferences::backlogLines() && backlog.tqdevice()->size() > packetSize * offset)
{ {
TQStringList firstColumnsInPacket; TQStringList firstColumnsInPacket;
TQStringList messagesInPacket; TQStringList messagesInPacket;
@ -257,30 +257,30 @@ void ChatWindow::setLogfileName(const TQString& name)
// packetSize * offset < size <= packetSize * ( offset + 1 ) // packetSize * offset < size <= packetSize * ( offset + 1 )
// Check if the log is bigger than packetSize * ( offset + 1 ) // Check if the log is bigger than packetSize * ( offset + 1 )
if(backlog.device()->size() > packetSize * ( offset + 1 )) if(backlog.tqdevice()->size() > packetSize * ( offset + 1 ))
{ {
// Set file pointer to the packet size above the offset // Set file pointer to the packet size above the offset
backlog.device()->at(backlog.device()->size() - packetSize * ( offset + 1 )); backlog.tqdevice()->at(backlog.tqdevice()->size() - packetSize * ( offset + 1 ));
// Skip first line, since it may be incomplete // Skip first line, since it may be incomplete
backlog.readLine(); backlog.readLine();
} }
else else
{ {
// Set file pointer to the head // Set file pointer to the head
backlog.device()->reset(); backlog.tqdevice()->reset();
} }
unsigned int currentPacketHeadPosition = backlog.device()->at(); unsigned int currentPacketHeadPosition = backlog.tqdevice()->at();
// Loop until end of file reached // Loop until end of file reached
while(!backlog.atEnd() && backlog.device()->at() < lastPacketHeadPosition) while(!backlog.atEnd() && backlog.tqdevice()->at() < lastPacketHeadPosition)
{ {
// remember actual file position to check for deadlocks // remember actual file position to check for deadlocks
filePosition = backlog.device()->at(); filePosition = backlog.tqdevice()->at();
backlogLine = backlog.readLine(); backlogLine = backlog.readLine();
// check for deadlocks // check for deadlocks
if(backlog.device()->at() == filePosition) backlog.device()->at(filePosition + 1); if(backlog.tqdevice()->at() == filePosition) backlog.tqdevice()->at(filePosition + 1);
// if a tab character is present in the line // if a tab character is present in the line
if(backlogLine.find('\t') != -1) if(backlogLine.find('\t') != -1)
@ -343,14 +343,14 @@ void ChatWindow::logText(const TQString& text)
if(firstLog) if(firstLog)
{ {
TQString intro(i18n("\n*** Logfile started\n*** on %1\n\n").arg(TQDateTime::currentDateTime().toString())); TQString intro(i18n("\n*** Logfile started\n*** on %1\n\n").tqarg(TQDateTime::tqcurrentDateTime().toString()));
logStream << intro; logStream << intro;
firstLog=false; firstLog=false;
} }
TQTime time=TQTime::currentTime(); TQTime time=TQTime::currentTime();
TQString logLine(TQString("[%1] [%2] %3\n").arg(TQDate::currentDate(Qt::LocalTime).toString()). TQString logLine(TQString("[%1] [%2] %3\n").tqarg(TQDate::tqcurrentDate(Qt::LocalTime).toString()).
arg(time.toString("hh:mm:ss")).arg(text)); tqarg(time.toString("hh:mm:ss")).tqarg(text));
logStream << logLine; logStream << logLine;

@ -35,7 +35,7 @@ class ChatWindow : public TQVBox
enum WindowType enum WindowType
{ {
Status=0, tqStatus=0,
Channel, Channel,
Query, Query,
DccChat, DccChat,
@ -165,7 +165,7 @@ class ChatWindow : public TQVBox
protected: protected:
/** Some children may handle the name themselves, and not want this public. /** Some tqchildren may handle the name themselves, and not want this public.
* Increase the visibility in the subclass if you want outsiders to call this. * Increase the visibility in the subclass if you want outsiders to call this.
* The name is the string that is shown in the tab. * The name is the string that is shown in the tab.
* @param newName The name to show in the tab * @param newName The name to show in the tab

@ -74,7 +74,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>191</width> <width>191</width>
<height>20</height> <height>20</height>
@ -129,7 +129,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>251</width> <width>251</width>
<height>20</height> <height>20</height>
@ -205,7 +205,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -233,7 +233,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -269,7 +269,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -320,7 +320,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>

@ -92,7 +92,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>410</width> <width>410</width>
<height>20</height> <height>20</height>
@ -137,7 +137,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>230</width> <width>230</width>
<height>20</height> <height>20</height>
@ -200,7 +200,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -236,7 +236,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>170</width> <width>170</width>
<height>20</height> <height>20</height>
@ -253,7 +253,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>190</width> <width>190</width>
<height>20</height> <height>20</height>
@ -331,7 +331,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>41</width> <width>41</width>
<height>20</height> <height>20</height>

@ -141,7 +141,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -158,7 +158,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -175,7 +175,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -192,7 +192,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -209,7 +209,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -226,7 +226,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -243,7 +243,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -260,7 +260,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -277,7 +277,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -294,7 +294,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -536,7 +536,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -553,7 +553,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -570,7 +570,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -587,7 +587,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -652,7 +652,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -669,7 +669,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -726,7 +726,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget> </widget>
<widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="12"> <widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="12">
<property name="name"> <property name="name">
<cstring>layout18</cstring> <cstring>tqlayout18</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -761,7 +761,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>271</width> <width>271</width>
<height>20</height> <height>20</height>
@ -962,7 +962,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -979,7 +979,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -996,7 +996,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -1013,7 +1013,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -1030,7 +1030,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -1047,7 +1047,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -1064,7 +1064,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -1081,7 +1081,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -1162,7 +1162,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -1179,7 +1179,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -1196,7 +1196,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -1213,7 +1213,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -1296,7 +1296,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>0</height> <height>0</height>

@ -78,7 +78,7 @@ namespace Konversation
pos += chanExp.cap(1).length(); pos += chanExp.cap(1).length();
// HACK:Use space as a placeholder for \ as TQt tries to be clever and does a replace to / in urls in TQTextEdit // HACK:Use space as a placeholder for \ as TQt tries to be clever and does a replace to / in urls in TQTextEdit
insertText = link.arg(TQString(href).replace('\\', " "), href); insertText = link.tqarg(TQString(href).replace('\\', " "), href);
filteredLine.replace(pos, urlLen, insertText); filteredLine.replace(pos, urlLen, insertText);
pos += insertText.length(); pos += insertText.length();
} }
@ -144,14 +144,14 @@ namespace Konversation
continue; continue;
} }
if (urlPattern.cap(1).startsWith("www.", false)) if (urlPattern.cap(1).tqstartsWith("www.", false))
protocol = "http://"; protocol = "http://";
else if (urlPattern.cap(1).isEmpty()) else if (urlPattern.cap(1).isEmpty())
protocol = "mailto:"; protocol = "mailto:";
// Use \x0b as a placeholder for & so we can readd them after changing all & in the normal text to &amp; // Use \x0b as a placeholder for & so we can readd them after changing all & in the normal text to &amp;
// HACK Replace % with \x03 in the url to keep TQt from doing stupid things // HACK Replace % with \x03 in the url to keep TQt from doing stupid things
insertText = link.arg(protocol, TQString(href).replace('&', "\x0b").replace('%', "\x03"), href) + append; insertText = link.tqarg(protocol, TQString(href).replace('&', "\x0b").replace('%', "\x03"), href) + append;
filteredLine.replace(pos, urlLen, insertText); filteredLine.replace(pos, urlLen, insertText);
pos += insertText.length(); pos += insertText.length();
KonversationApplication::instance()->storeUrl(fromNick, href); KonversationApplication::instance()->storeUrl(fromNick, href);

@ -30,7 +30,7 @@
#include <kurl.h> #include <kurl.h>
#include <kuser.h> #include <kuser.h>
#include <palette.h> #include <tqpalette.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <tqfileinfo.h> #include <tqfileinfo.h>

@ -60,7 +60,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>278</width> <width>278</width>
<height>20</height> <height>20</height>
@ -119,7 +119,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>280</width> <width>280</width>
<height>20</height> <height>20</height>
@ -138,7 +138,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>60</height> <height>60</height>

@ -203,15 +203,15 @@ void ConnectionManager::handleReconnect(Server* server)
server->getStatusView()->appendServerMessage(i18n("Info"), server->getStatusView()->appendServerMessage(i18n("Info"),
i18n("Trying to connect to %1 in %2 seconds.") i18n("Trying to connect to %1 in %2 seconds.")
.arg(settings.server().host()) .tqarg(settings.server().host())
.arg(Preferences::reconnectDelay())); .tqarg(Preferences::reconnectDelay()));
} }
else else
{ {
server->getStatusView()->appendServerMessage(i18n("Info"), server->getStatusView()->appendServerMessage(i18n("Info"),
i18n("Trying to reconnect to %1 in %2 seconds.") i18n("Trying to reconnect to %1 in %2 seconds.")
.arg(settings.server().host()) .tqarg(settings.server().host())
.arg(Preferences::reconnectDelay())); .tqarg(Preferences::reconnectDelay()));
} }
server->getConnectionSettings().incrementReconnectCount(); server->getConnectionSettings().incrementReconnectCount();
@ -437,8 +437,8 @@ bool ConnectionManager::reuseExistingConnection(ConnectionSettings& settings, bo
int result = KMessageBox::warningContinueCancel( int result = KMessageBox::warningContinueCancel(
mainWindow, mainWindow,
i18n("You are already connected to %1. Do you want to open another connection?") i18n("You are already connected to %1. Do you want to open another connection?")
.arg(dupe->getDisplayName()), .tqarg(dupe->getDisplayName()),
i18n("Already connected to %1").arg(dupe->getDisplayName()), i18n("Already connected to %1").tqarg(dupe->getDisplayName()),
i18n("Create connection"), i18n("Create connection"),
"ReuseExistingConnection"); "ReuseExistingConnection");
@ -453,12 +453,12 @@ bool ConnectionManager::reuseExistingConnection(ConnectionSettings& settings, bo
int result = KMessageBox::warningContinueCancel( int result = KMessageBox::warningContinueCancel(
mainWindow, mainWindow,
i18n("You are presently connected to %1 via '%2' (port %3). Do you want to switch to '%4' (port %5) instead?") i18n("You are presently connected to %1 via '%2' (port %3). Do you want to switch to '%4' (port %5) instead?")
.arg(dupe->getDisplayName()) .tqarg(dupe->getDisplayName())
.arg(dupe->getServerName()) .tqarg(dupe->getServerName())
.arg(dupe->getPort()) .tqarg(dupe->getPort())
.arg(settings.server().host()) .tqarg(settings.server().host())
.arg(settings.server().port()), .tqarg(settings.server().port()),
i18n("Already connected to %1").arg(dupe->getDisplayName()), i18n("Already connected to %1").tqarg(dupe->getDisplayName()),
i18n("Switch Server"), i18n("Switch Server"),
"ReconnectWithDifferentServer"); "ReconnectWithDifferentServer");
@ -513,7 +513,7 @@ bool ConnectionManager::validateIdentity(IdentityPtr identity, bool interactive)
{ {
int result = KMessageBox::warningContinueCancel(mainWindow, int result = KMessageBox::warningContinueCancel(mainWindow,
i18n("<qt>Your identity \"%1\" is not set up correctly:<br>%2</qt>") i18n("<qt>Your identity \"%1\" is not set up correctly:<br>%2</qt>")
.arg(identity->getName()).arg(errors), .tqarg(identity->getName()).tqarg(errors),
i18n("Identity Settings"), i18n("Identity Settings"),
i18n("Edit Identity...")); i18n("Edit Identity..."));

@ -114,7 +114,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>
@ -214,7 +214,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Maximum</enum> <enum>Maximum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>70</width> <width>70</width>
<height>20</height> <height>20</height>
@ -231,7 +231,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>70</width> <width>70</width>
<height>20</height> <height>20</height>
@ -248,7 +248,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>70</width> <width>70</width>
<height>20</height> <height>20</height>
@ -329,7 +329,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>21</height> <height>21</height>
@ -360,7 +360,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="text"> <property name="text">
<string>to</string> <string>to</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>
@ -396,7 +396,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>21</height> <height>21</height>
@ -427,7 +427,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="text"> <property name="text">
<string>to</string> <string>to</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>

@ -29,7 +29,7 @@
#include <tqvbox.h> #include <tqvbox.h>
#include <tqhostaddress.h> #include <tqhostaddress.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqsplitter.h> #include <tqsplitter.h>
#include <tqpopupmenu.h> #include <tqpopupmenu.h>
@ -134,7 +134,7 @@ void DccChat::listenForPartner()
m_listenSocket = DccCommon::createServerSocketAndListen( TQT_TQOBJECT(this), &failedReason ); m_listenSocket = DccCommon::createServerSocketAndListen( TQT_TQOBJECT(this), &failedReason );
if ( !m_listenSocket ) if ( !m_listenSocket )
{ {
getTextView()->appendServerMessage( i18n( "DCC" ), i18n( "Could not open a socket for listening: %1" ).arg( failedReason ) ); getTextView()->appendServerMessage( i18n( "DCC" ), i18n( "Could not open a socket for listening: %1" ).tqarg( failedReason ) );
return; return;
} }
@ -144,8 +144,8 @@ void DccChat::listenForPartner()
m_ownPort = DccCommon::getServerSocketPort( m_listenSocket ); m_ownPort = DccCommon::getServerSocketPort( m_listenSocket );
kdDebug() << "DccChat::listenForPartner(): using port " << m_ownPort << endl; kdDebug() << "DccChat::listenForPartner(): using port " << m_ownPort << endl;
getTextView()->appendServerMessage( i18n("DCC"), i18n("Offering DCC Chat connection to %1 on port %2...").arg( m_partnerNick ).arg( m_ownPort ) ); getTextView()->appendServerMessage( i18n("DCC"), i18n("Offering DCC Chat connection to %1 on port %2...").tqarg( m_partnerNick ).tqarg( m_ownPort ) );
m_sourceLine->setText(i18n( "DCC chat with %1 on port %2." ).arg( m_partnerNick ).arg( m_ownPort ) ); m_sourceLine->setText(i18n( "DCC chat with %1 on port %2." ).tqarg( m_partnerNick ).tqarg( m_ownPort ) );
kdDebug() << "DccChat::listenForPartner() [END]" << endl; kdDebug() << "DccChat::listenForPartner() [END]" << endl;
} }
@ -157,9 +157,9 @@ void DccChat::connectToPartner()
m_partnerHost=ip.toString(); m_partnerHost=ip.toString();
getTextView()->appendServerMessage( i18n( "DCC" ), i18n( "%1 = nickname, %2 = IP, %3 = port", getTextView()->appendServerMessage( i18n( "DCC" ), i18n( "%1 = nickname, %2 = IP, %3 = port",
"Establishing DCC Chat connection to %1 (%2:%3)..." ).arg( m_partnerNick ).arg( m_partnerHost ).arg( m_partnerPort ) ); "Establishing DCC Chat connection to %1 (%2:%3)..." ).tqarg( m_partnerNick ).tqarg( m_partnerHost ).tqarg( m_partnerPort ) );
m_sourceLine->setText( i18n( "%1 = nickname, %2 = IP, %3 = port", "DCC chat with %1 on %2:%3." ).arg( m_partnerNick ).arg( host ).arg( m_partnerPort ) ); m_sourceLine->setText( i18n( "%1 = nickname, %2 = IP, %3 = port", "DCC chat with %1 on %2:%3." ).tqarg( m_partnerNick ).tqarg( host ).tqarg( m_partnerPort ) );
m_dccSocket = new KNetwork::KStreamSocket( m_partnerHost, TQString::number( m_partnerPort ), TQT_TQOBJECT(this) ); m_dccSocket = new KNetwork::KStreamSocket( m_partnerHost, TQString::number( m_partnerPort ), TQT_TQOBJECT(this) );
@ -179,7 +179,7 @@ void DccChat::connectToPartner()
m_dccSocket->connect(); m_dccSocket->connect();
#if 0 #if 0
//getTextView()->appendServerMessage(i18n("DCC"),i18n("Looking for host %1...").arg(host)); //getTextView()->appendServerMessage(i18n("DCC"),i18n("Looking for host %1...").tqarg(host));
#endif #endif
} }
@ -195,14 +195,14 @@ void DccChat::lookupFinished()
void DccChat::dccChatConnectionSuccess() void DccChat::dccChatConnectionSuccess()
{ {
getTextView()->appendServerMessage( i18n( "DCC" ), i18n( "Established DCC Chat connection to %1." ).arg( m_partnerNick ) ); getTextView()->appendServerMessage( i18n( "DCC" ), i18n( "Established DCC Chat connection to %1." ).tqarg( m_partnerNick ) );
m_dccSocket->enableRead(true); m_dccSocket->enableRead(true);
m_dccChatInput->setEnabled(true); m_dccChatInput->setEnabled(true);
} }
void DccChat::dccChatBroken(int error) void DccChat::dccChatBroken(int error)
{ {
getTextView()->appendServerMessage(i18n("Error"),i18n("Connection broken, error code %1.").arg(error)); getTextView()->appendServerMessage(i18n("Error"),i18n("Connection broken, error code %1.").tqarg(error));
m_dccSocket->enableRead(false); m_dccSocket->enableRead(false);
m_dccSocket->blockSignals(true); m_dccSocket->blockSignals(true);
m_dccSocket->close(); m_dccSocket->close();
@ -241,7 +241,7 @@ void DccChat::readData()
if( ctcpCommand.lower() == "action" ) if( ctcpCommand.lower() == "action" )
appendAction( m_partnerNick, ctcpArgument ); appendAction( m_partnerNick, ctcpArgument );
else else
getTextView()->appendServerMessage( i18n( "CTCP" ), i18n( "Received unknown CTCP-%1 request from %2" ).arg( ctcp ).arg( m_partnerNick ) ); getTextView()->appendServerMessage( i18n( "CTCP" ), i18n( "Received unknown CTCP-%1 request from %2" ).tqarg( ctcp ).tqarg( m_partnerNick ) );
} }
else getTextView()->append( m_partnerNick, *itLine ); else getTextView()->append( m_partnerNick, *itLine );
} // endfor } // endfor
@ -295,7 +295,7 @@ void DccChat::sendDccChatText(const TQString& sendLine)
if (cmd == cc+"me") if (cmd == cc+"me")
{ {
appendAction( m_ownNick, line.section( " ", 1 ) ); appendAction( m_ownNick, line.section( " ", 1 ) );
line=TQString("\x01%1 %2\x01").arg("ACTION").arg(line.section(" ",1)); line=TQString("\x01%1 %2\x01").tqarg("ACTION").tqarg(line.section(" ",1));
} }
else if (cmd == cc+"close") else if (cmd == cc+"close")
{ {
@ -336,7 +336,7 @@ void DccChat::heardPartner()
m_dccSocket->enableRead(true); m_dccSocket->enableRead(true);
m_dccChatInput->setEnabled(true); m_dccChatInput->setEnabled(true);
getTextView()->appendServerMessage( i18n( "DCC" ), i18n( "Established DCC Chat connection to %1." ).arg( m_partnerNick ) ); getTextView()->appendServerMessage( i18n( "DCC" ), i18n( "Established DCC Chat connection to %1." ).tqarg( m_partnerNick ) );
} }
void DccChat::socketClosed() void DccChat::socketClosed()
@ -410,7 +410,7 @@ TQString DccChat::getChannelEncoding() // virtual
TQString DccChat::getChannelEncodingDefaultDesc() // virtual TQString DccChat::getChannelEncodingDefaultDesc() // virtual
{ {
return i18n("Default ( %1 )").arg(Konversation::IRCCharsets::self()->encodingForLocale()); return i18n("Default ( %1 )").tqarg(Konversation::IRCCharsets::self()->encodingForLocale());
} }
void DccChat::showEvent(TQShowEvent* /* event */) void DccChat::showEvent(TQShowEvent* /* event */)
@ -418,7 +418,7 @@ void DccChat::showEvent(TQShowEvent* /* event */)
if(m_initialShow) { if(m_initialShow) {
m_initialShow = false; m_initialShow = false;
TQValueList<int> sizes; TQValueList<int> sizes;
sizes << m_sourceLine->sizeHint().height() << (height() - m_sourceLine->sizeHint().height()); sizes << m_sourceLine->tqsizeHint().height() << (height() - m_sourceLine->tqsizeHint().height());
m_headerSplitter->setSizes(sizes); m_headerSplitter->setSizes(sizes);
} }
} }
@ -435,8 +435,8 @@ void DccChat::updateAppearance()
} }
else else
{ {
fg=colorGroup().foreground(); fg=tqcolorGroup().foreground();
bg=colorGroup().base(); bg=tqcolorGroup().base();
} }
m_dccChatInput->unsetPalette(); m_dccChatInput->unsetPalette();

@ -14,7 +14,7 @@
#include "dccrecipientdialog.h" #include "dccrecipientdialog.h"
#include <layout.h> #include <tqlayout.h>
#include <klineedit.h> #include <klineedit.h>
#include <klocale.h> #include <klocale.h>
@ -30,7 +30,7 @@ DccRecipientDialog::DccRecipientDialog(TQWidget* parent, const TQStringList &lis
// Create the top level widget // Create the top level widget
TQWidget* page=new TQWidget(this); TQWidget* page=new TQWidget(this);
setMainWidget(page); setMainWidget(page);
// Add the layout to the widget // Add the tqlayout to the widget
TQVBoxLayout* dialogLayout=new TQVBoxLayout(page); TQVBoxLayout* dialogLayout=new TQVBoxLayout(page);
dialogLayout->setSpacing(spacingHint()); dialogLayout->setSpacing(spacingHint());
// Add the nickname list widget // Add the nickname list widget

@ -15,7 +15,7 @@
#include <tqhbox.h> #include <tqhbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <kdebug.h> #include <kdebug.h>
@ -97,7 +97,7 @@ DccResumeDialog::DccResumeDialog(DccTransferRecv* item, const TQString& caption,
} }
updateDialogButtons(); updateDialogButtons();
setInitialSize(TQSize(500, sizeHint().height())); setInitialSize(TQSize(500, tqsizeHint().height()));
} }

@ -43,7 +43,7 @@ DccTransfer::DccTransfer( DccType dccType, TQObject* parent ) : TQObject(parent)
connect( &m_loggerTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( logTransfer() ) ); connect( &m_loggerTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( logTransfer() ) );
m_timeOffer = TQDateTime::currentDateTime(); m_timeOffer = TQDateTime::tqcurrentDateTime();
} }
DccTransfer::~DccTransfer() DccTransfer::~DccTransfer()
@ -60,7 +60,7 @@ DccTransfer::DccTransfer( const DccTransfer& obj )
m_bufferSize = 0; m_bufferSize = 0;
m_averageSpeed = obj.getAverageSpeed(); m_averageSpeed = obj.getAverageSpeed();
m_currentSpeed = obj.getCurrentSpeed(); m_currentSpeed = obj.getCurrentSpeed();
m_status = obj.getStatus(); m_status = obj.gettqStatus();
m_statusDetail = obj.getStatusDetail(); m_statusDetail = obj.getStatusDetail();
m_type = obj.getType(); m_type = obj.getType();
m_fileName = obj.getFileName(); m_fileName = obj.getFileName();
@ -88,20 +88,20 @@ DccTransfer::DccTransfer( const DccTransfer& obj )
void DccTransfer::setConnectionId( int id ) void DccTransfer::setConnectionId( int id )
{ {
if ( getStatus() == Configuring || getStatus() == Queued ) if ( gettqStatus() == Configuring || gettqStatus() == Queued )
m_connectionId = id; m_connectionId = id;
} }
void DccTransfer::setPartnerNick( const TQString& nick ) void DccTransfer::setPartnerNick( const TQString& nick )
{ {
if ( getStatus() == Configuring || getStatus() == Queued ) if ( gettqStatus() == Configuring || gettqStatus() == Queued )
m_partnerNick = nick; m_partnerNick = nick;
} }
bool DccTransfer::queue() bool DccTransfer::queue()
{ {
kdDebug() << "DccTransfer::queue()" << endl; kdDebug() << "DccTransfer::queue()" << endl;
if ( getStatus() != Configuring ) if ( gettqStatus() != Configuring )
return false; return false;
if ( m_fileName.isEmpty() ) if ( m_fileName.isEmpty() )
@ -110,13 +110,13 @@ bool DccTransfer::queue()
if ( m_connectionId == -1 || m_partnerNick.isEmpty() ) if ( m_connectionId == -1 || m_partnerNick.isEmpty() )
return false; return false;
setStatus( Queued ); settqStatus( Queued );
return true; return true;
} }
void DccTransfer::startTransferLogger() void DccTransfer::startTransferLogger()
{ {
m_timeTransferStarted = TQDateTime::currentDateTime(); m_timeTransferStarted = TQDateTime::tqcurrentDateTime();
m_loggerBaseTime.start(); m_loggerBaseTime.start();
m_loggerTimer.start( 100 ); m_loggerTimer.start( 100 );
} }
@ -124,7 +124,7 @@ void DccTransfer::startTransferLogger()
void DccTransfer::finishTransferLogger() void DccTransfer::finishTransferLogger()
{ {
if ( m_timeTransferFinished.isNull() ) if ( m_timeTransferFinished.isNull() )
m_timeTransferFinished = TQDateTime::currentDateTime(); m_timeTransferFinished = TQDateTime::tqcurrentDateTime();
m_loggerTimer.stop(); m_loggerTimer.stop();
updateTransferMeters(); updateTransferMeters();
} }
@ -137,21 +137,21 @@ void DccTransfer::logTransfer()
updateTransferMeters(); updateTransferMeters();
} }
void DccTransfer::setStatus( DccStatus status, const TQString& statusDetail ) void DccTransfer::settqStatus( DcctqStatus status, const TQString& statusDetail )
{ {
bool changed = ( status != m_status ); bool changed = ( status != m_status );
DccStatus oldStatus = m_status; DcctqStatus oldtqStatus = m_status;
m_status = status; m_status = status;
m_statusDetail = statusDetail; m_statusDetail = statusDetail;
if ( changed ) if ( changed )
emit statusChanged( this, m_status, oldStatus ); emit statusChanged( this, m_status, oldtqStatus );
} }
void DccTransfer::updateTransferMeters() void DccTransfer::updateTransferMeters()
{ {
const int timeToCalc = 5; const int timeToCalc = 5;
if ( getStatus() == Transferring ) if ( gettqStatus() == Transferring )
{ {
// update CurrentSpeed // update CurrentSpeed
@ -174,7 +174,7 @@ void DccTransfer::updateTransferMeters()
if ( m_transferLogTime.count() >= 2 ) if ( m_transferLogTime.count() >= 2 )
{ {
// FIXME: precision of average speed is too bad // FIXME: precision of average speed is too bad
m_averageSpeed = (double)( m_transferringPosition - m_transferStartPosition ) / (double)m_timeTransferStarted.secsTo( TQDateTime::currentDateTime() ); m_averageSpeed = (double)( m_transferringPosition - m_transferStartPosition ) / (double)m_timeTransferStarted.secsTo( TQDateTime::tqcurrentDateTime() );
m_currentSpeed = (double)( m_transferLogPosition.last() - m_transferLogPosition.front() ) / (double)( m_transferLogTime.last() - m_transferLogTime.front() ) * 1000; m_currentSpeed = (double)( m_transferLogPosition.last() - m_transferLogPosition.front() ) / (double)( m_transferLogTime.last() - m_transferLogTime.front() ) * 1000;
} }
else // avoid zero devision else // avoid zero devision
@ -240,7 +240,7 @@ DccTransfer::DccType DccTransfer::getType() const
return m_type; return m_type;
} }
DccTransfer::DccStatus DccTransfer::getStatus() const DccTransfer::DcctqStatus DccTransfer::gettqStatus() const
{ {
return m_status; return m_status;
} }

@ -39,7 +39,7 @@ class DccTransfer : public TQObject
Send Send
}; };
enum DccStatus enum DcctqStatus
{ {
Configuring = 0, // Not queud yet (this means that user can't see the item at this time) Configuring = 0, // Not queud yet (this means that user can't see the item at this time)
Queued, // Newly added DCC, waiting user's response Queued, // Newly added DCC, waiting user's response
@ -52,7 +52,7 @@ class DccTransfer : public TQObject
Aborted Aborted
}; };
enum UnavailableStatus enum UnavailabletqStatus
{ {
Calculating = -1, Calculating = -1,
NotInTransfer = -2, NotInTransfer = -2,
@ -66,7 +66,7 @@ class DccTransfer : public TQObject
DccTransfer( const DccTransfer& obj ); DccTransfer( const DccTransfer& obj );
DccType getType() const; DccType getType() const;
DccStatus getStatus() const; DcctqStatus gettqStatus() const;
const TQString& getStatusDetail() const; const TQString& getStatusDetail() const;
TQDateTime getTimeOffer() const; TQDateTime getTimeOffer() const;
int getConnectionId() const; int getConnectionId() const;
@ -100,7 +100,7 @@ class DccTransfer : public TQObject
signals: signals:
void transferStarted( DccTransfer* item ); void transferStarted( DccTransfer* item );
void done( DccTransfer* item ); void done( DccTransfer* item );
void statusChanged( DccTransfer* item, int newStatus, int oldStatus ); void statusChanged( DccTransfer* item, int newtqStatus, int oldtqStatus );
public slots: public slots:
virtual bool queue(); virtual bool queue();
@ -108,7 +108,7 @@ class DccTransfer : public TQObject
virtual void abort() {}; virtual void abort() {};
protected: protected:
void setStatus( DccStatus status, const TQString& statusDetail = TQString() ); void settqStatus( DcctqStatus status, const TQString& statusDetail = TQString() );
void startTransferLogger(); void startTransferLogger();
void finishTransferLogger(); void finishTransferLogger();
@ -122,7 +122,7 @@ class DccTransfer : public TQObject
protected: protected:
// transfer information // transfer information
DccType m_type; DccType m_type;
DccStatus m_status; DcctqStatus m_status;
TQString m_statusDetail; TQString m_statusDetail;
bool m_resumed; bool m_resumed;
bool m_reverse; bool m_reverse;

@ -61,7 +61,7 @@ void DccTransferDetailedInfoPanel::setItem( DccTransferPanelItem* item )
// If the file is already being transferred, the timer must be started here, // If the file is already being transferred, the timer must be started here,
// otherwise the information will not be updated every 0.5sec // otherwise the information will not be updated every 0.5sec
if (m_item->transfer()->getStatus() == DccTransfer::Transferring) if (m_item->transfer()->gettqStatus() == DccTransfer::Transferring)
m_autoViewUpdateTimer->start(500, false); m_autoViewUpdateTimer->start(500, false);
connect( m_item->transfer(), TQT_SIGNAL( statusChanged( DccTransfer*, int, int ) ), this, TQT_SLOT( slotTransferStatusChanged( DccTransfer*, int, int ) ) ); connect( m_item->transfer(), TQT_SIGNAL( statusChanged( DccTransfer*, int, int ) ), this, TQT_SLOT( slotTransferStatusChanged( DccTransfer*, int, int ) ) );
@ -83,10 +83,10 @@ void DccTransferDetailedInfoPanel::updateView()
// Location: // Location:
m_urlreqLocation->setURL( transfer->getFileURL().prettyURL() ); m_urlreqLocation->setURL( transfer->getFileURL().prettyURL() );
//m_urlreqLocation->lineEdit()->setFocusPolicy( transfer->getStatus() == DccTransfer::Queued ? StrongFocus : ClickFocus ); //m_urlreqLocation->lineEdit()->setFocusPolicy( transfer->gettqStatus() == DccTransfer::Queued ? StrongFocus : ClickFocus );
m_urlreqLocation->lineEdit()->setReadOnly( transfer->getStatus() != DccTransfer::Queued ); m_urlreqLocation->lineEdit()->setReadOnly( transfer->gettqStatus() != DccTransfer::Queued );
m_urlreqLocation->lineEdit()->setFrame( transfer->getStatus() == DccTransfer::Queued ); m_urlreqLocation->lineEdit()->setFrame( transfer->gettqStatus() == DccTransfer::Queued );
m_urlreqLocation->button()->setEnabled( transfer->getStatus() == DccTransfer::Queued ); m_urlreqLocation->button()->setEnabled( transfer->gettqStatus() == DccTransfer::Queued );
m_buttonOpenFolder->setEnabled( !m_urlreqLocation->lineEdit()->text().isEmpty() ); m_buttonOpenFolder->setEnabled( !m_urlreqLocation->lineEdit()->text().isEmpty() );
// Partner: // Partner:
@ -98,23 +98,23 @@ void DccTransferDetailedInfoPanel::updateView()
else else
partnerInfoServerName = i18n( "Unknown server" ); partnerInfoServerName = i18n( "Unknown server" );
TQString partnerInfo( i18n( "%1 on %2" ) TQString partnerInfo( i18n( "%1 on %2" )
.arg( transfer->getPartnerNick().isEmpty() ? "?" : transfer->getPartnerNick() ) .tqarg( transfer->getPartnerNick().isEmpty() ? "?" : transfer->getPartnerNick() )
.arg( partnerInfoServerName ) ); .tqarg( partnerInfoServerName ) );
if ( !transfer->getPartnerIp().isEmpty() ) if ( !transfer->getPartnerIp().isEmpty() )
partnerInfo += i18n( ", %1 (port %2)" ).arg( transfer->getPartnerIp() ).arg( transfer->getPartnerPort() ); partnerInfo += i18n( ", %1 (port %2)" ).tqarg( transfer->getPartnerIp() ).tqarg( transfer->getPartnerPort() );
m_labelPartner->setText( partnerInfo ); m_labelPartner->setText( partnerInfo );
// Self: // Self:
if ( transfer->getOwnIp().isEmpty() ) if ( transfer->getOwnIp().isEmpty() )
m_labelSelf->setText( "" ); m_labelSelf->setText( "" );
else else
m_labelSelf->setText( i18n( "%1 (port %2)" ).arg( transfer->getOwnIp() ).arg( transfer->getOwnPort() ) ); m_labelSelf->setText( i18n( "%1 (port %2)" ).tqarg( transfer->getOwnIp() ).tqarg( transfer->getOwnPort() ) );
// Status: // tqStatus:
if ( transfer->getStatus() == DccTransfer::Transferring ) if ( transfer->gettqStatus() == DccTransfer::Transferring )
m_labelStatus->setText( m_item->getStatusText() + " ( " + m_item->getCurrentSpeedPrettyText() + " )" ); m_labeltqStatus->setText( m_item->getStatusText() + " ( " + m_item->getCurrentSpeedPrettyText() + " )" );
else else
m_labelStatus->setText( transfer->getStatusDetail().isEmpty() ? m_item->getStatusText() : m_item->getStatusText() + " (" + transfer->getStatusDetail() + ')' ); m_labeltqStatus->setText( transfer->getStatusDetail().isEmpty() ? m_item->getStatusText() : m_item->getStatusText() + " (" + transfer->getStatusDetail() + ')' );
// Progress: // Progress:
m_progress->setProgress( transfer->getProgress() ); m_progress->setProgress( transfer->getProgress() );
@ -133,7 +133,7 @@ void DccTransferDetailedInfoPanel::updateView()
// Resumed: // Resumed:
if ( transfer->isResumed() ) if ( transfer->isResumed() )
m_labelIsResumed->setText( i18n( "Yes, %1" ).arg( KGlobal::locale()->formatNumber( transfer->getTransferStartPosition(), 0 ) ) ); m_labelIsResumed->setText( i18n( "Yes, %1" ).tqarg( KGlobal::locale()->formatNumber( transfer->getTransferStartPosition(), 0 ) ) );
else else
m_labelIsResumed->setText( i18n( "No" ) ); m_labelIsResumed->setText( i18n( "No" ) );
@ -146,7 +146,7 @@ void DccTransferDetailedInfoPanel::updateView()
// The transfer is still in progress // The transfer is still in progress
if ( transfer->getTimeTransferFinished().isNull() ) if ( transfer->getTimeTransferFinished().isNull() )
transferringTime = transfer->getTimeTransferStarted().secsTo( TQDateTime::currentDateTime() ); transferringTime = transfer->getTimeTransferStarted().secsTo( TQDateTime::tqcurrentDateTime() );
// The transfer has finished // The transfer has finished
else else
transferringTime = transfer->getTimeTransferStarted().secsTo( transfer->getTimeTransferFinished() ); transferringTime = transfer->getTimeTransferStarted().secsTo( transfer->getTimeTransferFinished() );
@ -176,15 +176,15 @@ void DccTransferDetailedInfoPanel::updateView()
m_labelTimeFinished->setText( "" ); m_labelTimeFinished->setText( "" );
} }
void DccTransferDetailedInfoPanel::slotTransferStatusChanged( DccTransfer* /* transfer */, int newStatus, int oldStatus ) void DccTransferDetailedInfoPanel::slotTransferStatusChanged( DccTransfer* /* transfer */, int newtqStatus, int oldtqStatus )
{ {
updateView(); updateView();
if ( newStatus == DccTransfer::Transferring ) if ( newtqStatus == DccTransfer::Transferring )
{ {
// start auto view-update timer // start auto view-update timer
m_autoViewUpdateTimer->start( 500, false ); m_autoViewUpdateTimer->start( 500, false );
} }
else if ( oldStatus == DccTransfer::Transferring ) else if ( oldtqStatus == DccTransfer::Transferring )
{ {
// stop auto view-update timer // stop auto view-update timer
m_autoViewUpdateTimer->stop(); m_autoViewUpdateTimer->stop();

@ -33,7 +33,7 @@ class DccTransferDetailedInfoPanel : public DccTransferDetailedInfoPanelUI
private slots: private slots:
void updateView(); void updateView();
void slotTransferStatusChanged( DccTransfer* transfer, int newStatus, int oldStatus ); void slotTransferStatusChanged( DccTransfer* transfer, int newtqStatus, int oldtqStatus );
void slotLocationChanged( const TQString& url ); void slotLocationChanged( const TQString& url );
void slotOpenFolderButtonClicked(); void slotOpenFolderButtonClicked();

@ -26,7 +26,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout7</cstring> <cstring>tqlayout7</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -71,7 +71,7 @@
<cstring>textLabel10</cstring> <cstring>textLabel10</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Status:</string> <string>tqStatus:</string>
</property> </property>
</widget> </widget>
<widget class="TQLabel" row="6" column="0"> <widget class="TQLabel" row="6" column="0">
@ -92,7 +92,7 @@
</widget> </widget>
<widget class="TQLabel" row="4" column="1"> <widget class="TQLabel" row="4" column="1">
<property name="name"> <property name="name">
<cstring>m_labelStatus</cstring> <cstring>m_labeltqStatus</cstring>
</property> </property>
</widget> </widget>
<widget class="TQLabel" row="2" column="1"> <widget class="TQLabel" row="2" column="1">
@ -115,7 +115,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="6" column="1"> <widget class="TQLayoutWidget" row="6" column="1">
<property name="name"> <property name="name">
<cstring>layout6</cstring> <cstring>tqlayout6</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -162,7 +162,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout26</cstring> <cstring>tqlayout26</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -170,7 +170,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout24</cstring> <cstring>tqlayout24</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -188,13 +188,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>130</width> <width>130</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -218,13 +218,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>130</width> <width>130</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -240,13 +240,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>130</width> <width>130</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -278,13 +278,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>130</width> <width>130</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -316,13 +316,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>130</width> <width>130</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -344,7 +344,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout25</cstring> <cstring>tqlayout25</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -370,7 +370,7 @@
<property name="name"> <property name="name">
<cstring>m_labelTimeFinished</cstring> <cstring>m_labelTimeFinished</cstring>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -386,13 +386,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>130</width> <width>130</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -424,13 +424,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>130</width> <width>130</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -438,7 +438,7 @@
<property name="name"> <property name="name">
<cstring>m_labelTimeOffered</cstring> <cstring>m_labelTimeOffered</cstring>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -454,7 +454,7 @@
<property name="name"> <property name="name">
<cstring>m_labelTimeStarted</cstring> <cstring>m_labelTimeStarted</cstring>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -470,7 +470,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>110</width> <width>110</width>
<height>20</height> <height>20</height>

@ -62,7 +62,7 @@ DccTransferRecv* DccTransferManager::resumeDownload( int connectionId, const TQS
TQValueListConstIterator< DccTransferRecv* > it; TQValueListConstIterator< DccTransferRecv* > it;
for ( it = m_recvItems.begin() ; it != m_recvItems.end() ; ++it ) for ( it = m_recvItems.begin() ; it != m_recvItems.end() ; ++it )
{ {
if ( ( (*it)->getStatus() == DccTransfer::Queued || (*it)->getStatus() == DccTransfer::WaitingRemote ) && if ( ( (*it)->gettqStatus() == DccTransfer::Queued || (*it)->gettqStatus() == DccTransfer::WaitingRemote ) &&
(*it)->getConnectionId() == connectionId && (*it)->getConnectionId() == connectionId &&
(*it)->getPartnerNick() == partnerNick && (*it)->getPartnerNick() == partnerNick &&
(*it)->getFileName() == fileName && (*it)->getFileName() == fileName &&
@ -92,7 +92,7 @@ DccTransferSend* DccTransferManager::resumeUpload( int connectionId, const TQStr
TQValueListConstIterator< DccTransferSend* > it; TQValueListConstIterator< DccTransferSend* > it;
for ( it = m_sendItems.begin() ; it != m_sendItems.end() ; ++it ) for ( it = m_sendItems.begin() ; it != m_sendItems.end() ; ++it )
{ {
if ( ( (*it)->getStatus() == DccTransfer::Queued || (*it)->getStatus() == DccTransfer::WaitingRemote ) && if ( ( (*it)->gettqStatus() == DccTransfer::Queued || (*it)->gettqStatus() == DccTransfer::WaitingRemote ) &&
(*it)->getConnectionId() == connectionId && (*it)->getConnectionId() == connectionId &&
(*it)->getPartnerNick() == partnerNick && (*it)->getPartnerNick() == partnerNick &&
(*it)->getFileName() == fileName && (*it)->getFileName() == fileName &&
@ -124,7 +124,7 @@ DccTransferSend* DccTransferManager::startReverseSending( int connectionId, cons
for ( it = m_sendItems.begin() ; it != m_sendItems.end() ; ++it ) for ( it = m_sendItems.begin() ; it != m_sendItems.end() ; ++it )
{ {
if ( if (
(*it)->getStatus() == DccTransfer::WaitingRemote && (*it)->gettqStatus() == DccTransfer::WaitingRemote &&
(*it)->getConnectionId() == connectionId && (*it)->getConnectionId() == connectionId &&
(*it)->getPartnerNick() == partnerNick && (*it)->getPartnerNick() == partnerNick &&
(*it)->getFileName() == fileName && (*it)->getFileName() == fileName &&
@ -155,8 +155,8 @@ bool DccTransferManager::isLocalFileInWritingProcess( const KURL& url ) const
TQValueListConstIterator< DccTransferRecv* > it; TQValueListConstIterator< DccTransferRecv* > it;
for ( it = m_recvItems.begin() ; it != m_recvItems.end() ; ++it ) for ( it = m_recvItems.begin() ; it != m_recvItems.end() ; ++it )
{ {
if ( ( (*it)->getStatus() == DccTransfer::Connecting || if ( ( (*it)->gettqStatus() == DccTransfer::Connecting ||
(*it)->getStatus() == DccTransfer::Transferring ) && (*it)->gettqStatus() == DccTransfer::Transferring ) &&
(*it)->getFileURL() == url ) (*it)->getFileURL() == url )
{ {
return true; return true;
@ -175,25 +175,25 @@ bool DccTransferManager::hasActiveTransfers()
TQValueListConstIterator< DccTransferSend* > it; TQValueListConstIterator< DccTransferSend* > it;
for ( it = m_sendItems.begin() ; it != m_sendItems.end() ; ++it ) for ( it = m_sendItems.begin() ; it != m_sendItems.end() ; ++it )
{ {
if ((*it)->getStatus() == DccTransfer::Transferring) if ((*it)->gettqStatus() == DccTransfer::Transferring)
return true; return true;
} }
TQValueListConstIterator< DccTransferRecv* > it2; TQValueListConstIterator< DccTransferRecv* > it2;
for ( it2 = m_recvItems.begin() ; it2 != m_recvItems.end() ; ++it2 ) for ( it2 = m_recvItems.begin() ; it2 != m_recvItems.end() ; ++it2 )
{ {
if ((*it2)->getStatus() == DccTransfer::Transferring) if ((*it2)->gettqStatus() == DccTransfer::Transferring)
return true; return true;
} }
return false; return false;
} }
void DccTransferManager::slotTransferStatusChanged( DccTransfer* item, int newStatus, int oldStatus ) void DccTransferManager::slotTransferStatusChanged( DccTransfer* item, int newtqStatus, int oldtqStatus )
{ {
kdDebug() << "DccTransferManager::slotTransferStatusChanged(): " << oldStatus << " -> " << newStatus << " " << item->getFileName() << " (" << item->getType() << ")" << endl; kdDebug() << "DccTransferManager::slotTransferStatusChanged(): " << oldtqStatus << " -> " << newtqStatus << " " << item->getFileName() << " (" << item->getType() << ")" << endl;
if ( newStatus == DccTransfer::Queued ) if ( newtqStatus == DccTransfer::Queued )
emit newTransferQueued( item ); emit newTransferQueued( item );
} }
@ -205,7 +205,7 @@ void DccTransferManager::slotSettingsChanged()
TQValueListConstIterator< DccTransferRecv* > it; TQValueListConstIterator< DccTransferRecv* > it;
for ( it = m_recvItems.begin() ; it != m_recvItems.end() ; ++it ) for ( it = m_recvItems.begin() ; it != m_recvItems.end() ; ++it )
{ {
if ( (*it)->getStatus() == DccTransfer::Queued && if ( (*it)->gettqStatus() == DccTransfer::Queued &&
(*it)->getFileURL().directory() == m_defaultIncomingFolder ) (*it)->getFileURL().directory() == m_defaultIncomingFolder )
{ {
KURL url; KURL url;

@ -79,7 +79,7 @@ class DccTransferManager : public TQObject
void initTransfer( DccTransfer* transfer ); void initTransfer( DccTransfer* transfer );
private slots: private slots:
void slotTransferStatusChanged( DccTransfer* item, int newStatus, int oldStatus ); void slotTransferStatusChanged( DccTransfer* item, int newtqStatus, int oldtqStatus );
void removeSendItem( DccTransfer* item ); void removeSendItem( DccTransfer* item );
void removeRecvItem( DccTransfer* item ); void removeRecvItem( DccTransfer* item );

@ -76,7 +76,7 @@ void DccTransferPanel::initGUI()
//m_listView->setColumnText(Column::TypeIcon, ""); //m_listView->setColumnText(Column::TypeIcon, "");
m_listView->setColumnText(Column::OfferDate, i18n("Started at")); m_listView->setColumnText(Column::OfferDate, i18n("Started at"));
m_listView->setColumnText(Column::Status, i18n("Status")); m_listView->setColumnText(Column::tqStatus, i18n("Status"));
m_listView->setColumnText(Column::FileName, i18n("File")); m_listView->setColumnText(Column::FileName, i18n("File"));
m_listView->setColumnText(Column::PartnerNick, i18n("Partner")); m_listView->setColumnText(Column::PartnerNick, i18n("Partner"));
m_listView->setColumnText(Column::Progress, i18n("Progress")); m_listView->setColumnText(Column::Progress, i18n("Progress"));
@ -201,7 +201,7 @@ void DccTransferPanel::updateButton()
DccTransferPanelItem* item = static_cast<DccTransferPanelItem*>( it.current() ); DccTransferPanelItem* item = static_cast<DccTransferPanelItem*>( it.current() );
DccTransfer::DccType type = item->transfer()->getType(); DccTransfer::DccType type = item->transfer()->getType();
DccTransfer::DccStatus status = item->transfer()->getStatus(); DccTransfer::DcctqStatus status = item->transfer()->gettqStatus();
selectAll = true; selectAll = true;
selectAllCompleted |= ( status >= DccTransfer::Done ); selectAllCompleted |= ( status >= DccTransfer::Done );
@ -276,7 +276,7 @@ void DccTransferPanel::acceptDcc()
{ {
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() ); DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
DccTransfer* transfer = item->transfer(); DccTransfer* transfer = item->transfer();
if( transfer->getType() == DccTransfer::Receive && transfer->getStatus() == DccTransfer::Queued ) if( transfer->getType() == DccTransfer::Receive && transfer->gettqStatus() == DccTransfer::Queued )
transfer->start(); transfer->start();
} }
++it; ++it;
@ -292,7 +292,7 @@ void DccTransferPanel::abortDcc()
{ {
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() ); DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
DccTransfer* transfer = item->transfer(); DccTransfer* transfer = item->transfer();
if( transfer->getStatus() < DccTransfer::Done ) if( transfer->gettqStatus() < DccTransfer::Done )
transfer->abort(); transfer->abort();
} }
++it; ++it;
@ -308,7 +308,7 @@ void DccTransferPanel::resendFile()
{ {
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() ); DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
DccTransfer* transfer = item->transfer(); DccTransfer* transfer = item->transfer();
if( transfer->getType() == DccTransfer::Send && transfer->getStatus() >= DccTransfer::Done ) if( transfer->getType() == DccTransfer::Send && transfer->gettqStatus() >= DccTransfer::Done )
{ {
DccTransferSend* newTransfer = KonversationApplication::instance()->getDccTransferManager()->newUpload(); DccTransferSend* newTransfer = KonversationApplication::instance()->getDccTransferManager()->newUpload();
@ -335,7 +335,7 @@ void DccTransferPanel::clearDcc()
{ {
DccTransferPanelItem* item = static_cast<DccTransferPanelItem*>( it.current() ); DccTransferPanelItem* item = static_cast<DccTransferPanelItem*>( it.current() );
// should we check that [item] is not null? // should we check that [item] is not null?
if( it.current()->isSelected() && item->transfer()->getStatus() >= DccTransfer::Done ) if( it.current()->isSelected() && item->transfer()->gettqStatus() >= DccTransfer::Done )
lst.append( it.current() ); lst.append( it.current() );
++it; ++it;
} }
@ -377,7 +377,7 @@ void DccTransferPanel::runDcc()
{ {
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() ); DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
DccTransfer* transfer = item->transfer(); DccTransfer* transfer = item->transfer();
if( transfer->getType() == DccTransfer::Send || transfer->getStatus() == DccTransfer::Done ) if( transfer->getType() == DccTransfer::Send || transfer->gettqStatus() == DccTransfer::Done )
item->runFile(); item->runFile();
} }
++it; ++it;
@ -392,7 +392,7 @@ void DccTransferPanel::showFileInfo()
if( it.current()->isSelected() ) if( it.current()->isSelected() )
{ {
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() ); DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
if( item->transfer()->getType() == DccTransfer::Send || item->transfer()->getStatus() == DccTransfer::Done ) if( item->transfer()->getType() == DccTransfer::Send || item->transfer()->gettqStatus() == DccTransfer::Done )
item->openFileInfoDialog(); item->openFileInfoDialog();
} }
++it; ++it;
@ -416,7 +416,7 @@ void DccTransferPanel::selectAllCompleted()
while ( it.current() ) while ( it.current() )
{ {
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() ); DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
m_listView->setSelected( *it, item->transfer()->getStatus() >= DccTransfer::Done ); m_listView->setSelected( *it, item->transfer()->gettqStatus() >= DccTransfer::Done );
++it; ++it;
} }
updateButton(); updateButton();

@ -39,7 +39,7 @@ class DccTransferPanel : public ChatWindow
{ {
TypeIcon, TypeIcon,
OfferDate, OfferDate,
Status, tqStatus,
FileName, FileName,
PartnerNick, PartnerNick,
Progress, Progress,

@ -67,10 +67,10 @@ DccTransferPanelItem::~DccTransferPanelItem()
void DccTransferPanelItem::updateView() void DccTransferPanelItem::updateView()
{ {
setPixmap( DccTransferPanel::Column::TypeIcon, getTypeIcon() ); setPixmap( DccTransferPanel::Column::TypeIcon, getTypeIcon() );
setPixmap( DccTransferPanel::Column::Status, getStatusIcon() ); setPixmap( DccTransferPanel::Column::tqStatus, getStatusIcon() );
setText( DccTransferPanel::Column::OfferDate, m_transfer->getTimeOffer().toString( "hh:mm:ss" ) ); setText( DccTransferPanel::Column::OfferDate, m_transfer->getTimeOffer().toString( "hh:mm:ss" ) );
setText( DccTransferPanel::Column::Status, getStatusText() ); setText( DccTransferPanel::Column::tqStatus, getStatusText() );
setText( DccTransferPanel::Column::FileName, m_transfer->getFileName() ); setText( DccTransferPanel::Column::FileName, m_transfer->getFileName() );
setText( DccTransferPanel::Column::PartnerNick, m_transfer->getPartnerNick() ); setText( DccTransferPanel::Column::PartnerNick, m_transfer->getPartnerNick() );
setText( DccTransferPanel::Column::Position, getPositionPrettyText() ); setText( DccTransferPanel::Column::Position, getPositionPrettyText() );
@ -104,9 +104,9 @@ int DccTransferPanelItem::compare( TQListViewItem* i, int col, bool ascending )
if ( m_transfer->getTimeOffer() < item->transfer()->getTimeOffer() ) return -1; if ( m_transfer->getTimeOffer() < item->transfer()->getTimeOffer() ) return -1;
return 0; return 0;
break; break;
case DccTransferPanel::Column::Status: case DccTransferPanel::Column::tqStatus:
if ( m_transfer->getStatus() > item->transfer()->getStatus() ) return 1; if ( m_transfer->gettqStatus() > item->transfer()->gettqStatus() ) return 1;
if ( m_transfer->getStatus() < item->transfer()->getStatus() ) return -1; if ( m_transfer->gettqStatus() < item->transfer()->gettqStatus() ) return -1;
return 0; return 0;
break; break;
case DccTransferPanel::Column::Position: case DccTransferPanel::Column::Position:
@ -130,11 +130,11 @@ int DccTransferPanelItem::compare( TQListViewItem* i, int col, bool ascending )
return TQListViewItem::compare( i, col, ascending ); return TQListViewItem::compare( i, col, ascending );
} }
void DccTransferPanelItem::slotStatusChanged( DccTransfer* /* transfer */, int newStatus, int /* oldStatus */ ) void DccTransferPanelItem::slotStatusChanged( DccTransfer* /* transfer */, int newtqStatus, int /* oldtqStatus */ )
{ {
updateView(); updateView();
if ( newStatus == DccTransfer::Transferring ) if ( newtqStatus == DccTransfer::Transferring )
startAutoViewUpdate(); startAutoViewUpdate();
} }
@ -156,9 +156,9 @@ void DccTransferPanelItem::stopAutoViewUpdate()
} }
} }
void DccTransferPanelItem::paintCell( TQPainter* painter, const TQColorGroup& colorgroup, int column, int width, int alignment ) // virtual public void DccTransferPanelItem::paintCell( TQPainter* painter, const TQColorGroup& colorgroup, int column, int width, int tqalignment ) // virtual public
{ {
KListViewItem::paintCell( painter, colorgroup, column, width, alignment ); KListViewItem::paintCell( painter, colorgroup, column, width, tqalignment );
if ( column == DccTransferPanel::Column::Progress ) if ( column == DccTransferPanel::Column::Progress )
showProgressBar(); showProgressBar();
} }
@ -167,7 +167,7 @@ void DccTransferPanelItem::showProgressBar()
{ {
if ( m_transfer->getFileSize() ) if ( m_transfer->getFileSize() )
{ {
TQRect rect = listView()->itemRect( this ); TQRect rect = listView()->tqitemRect( this );
TQHeader *head = listView()->header(); TQHeader *head = listView()->header();
rect.setLeft( head->sectionPos( DccTransferPanel::Column::Progress ) - head->offset() ); rect.setLeft( head->sectionPos( DccTransferPanel::Column::Progress ) - head->offset() );
rect.setWidth( head->sectionSize( DccTransferPanel::Column::Progress ) ); rect.setWidth( head->sectionSize( DccTransferPanel::Column::Progress ) );
@ -178,13 +178,13 @@ void DccTransferPanelItem::showProgressBar()
void DccTransferPanelItem::runFile() void DccTransferPanelItem::runFile()
{ {
if ( m_transfer->getType() == DccTransfer::Send || m_transfer->getStatus() == DccTransfer::Done ) if ( m_transfer->getType() == DccTransfer::Send || m_transfer->gettqStatus() == DccTransfer::Done )
new KRun( m_transfer->getFileURL(), listView() ); new KRun( m_transfer->getFileURL(), listView() );
} }
void DccTransferPanelItem::openFileInfoDialog() void DccTransferPanelItem::openFileInfoDialog()
{ {
if ( m_transfer->getType() == DccTransfer::Send || m_transfer->getStatus() == DccTransfer::Done ) if ( m_transfer->getType() == DccTransfer::Send || m_transfer->gettqStatus() == DccTransfer::Done )
{ {
TQStringList infoList; TQStringList infoList;
@ -229,7 +229,7 @@ void DccTransferPanelItem::openFileInfoDialog()
#ifdef USE_INFOLIST #ifdef USE_INFOLIST
KMessageBox::informationList( KMessageBox::informationList(
listView(), listView(),
i18n("Available information for file %1:").arg(path), i18n("Available information for file %1:").tqarg(path),
infoList, infoList,
i18n("File Information") i18n("File Information")
); );
@ -278,7 +278,7 @@ TQPixmap DccTransferPanelItem::getTypeIcon() const
TQPixmap DccTransferPanelItem::getStatusIcon() const TQPixmap DccTransferPanelItem::getStatusIcon() const
{ {
TQString icon; TQString icon;
switch ( m_transfer->getStatus() ) switch ( m_transfer->gettqStatus() )
{ {
case DccTransfer::Queued: case DccTransfer::Queued:
icon = "player_stop"; icon = "player_stop";
@ -306,7 +306,7 @@ TQPixmap DccTransferPanelItem::getStatusIcon() const
TQString DccTransferPanelItem::getStatusText() const TQString DccTransferPanelItem::getStatusText() const
{ {
DccTransfer::DccStatus status = m_transfer->getStatus(); DccTransfer::DcctqStatus status = m_transfer->gettqStatus();
DccTransfer::DccType type = m_transfer->getType(); DccTransfer::DccType type = m_transfer->getType();
if ( status == DccTransfer::Queued ) if ( status == DccTransfer::Queued )
@ -372,9 +372,9 @@ TQString DccTransferPanelItem::getCurrentSpeedPrettyText() const
TQString DccTransferPanelItem::getSenderAddressPrettyText() const TQString DccTransferPanelItem::getSenderAddressPrettyText() const
{ {
if ( m_transfer->getType() == DccTransfer::Send ) if ( m_transfer->getType() == DccTransfer::Send )
return TQString( "%1:%2" ).arg( m_transfer->getOwnIp() ).arg( m_transfer->getOwnPort() ); return TQString( "%1:%2" ).tqarg( m_transfer->getOwnIp() ).tqarg( m_transfer->getOwnPort() );
else else
return TQString( "%1:%2" ).arg( m_transfer->getPartnerIp() ).arg( m_transfer->getPartnerPort() ); return TQString( "%1:%2" ).tqarg( m_transfer->getPartnerIp() ).tqarg( m_transfer->getPartnerPort() );
} }
TQString DccTransferPanelItem::getSpeedPrettyText( transferspeed_t speed ) TQString DccTransferPanelItem::getSpeedPrettyText( transferspeed_t speed )
@ -384,7 +384,7 @@ TQString DccTransferPanelItem::getSpeedPrettyText( transferspeed_t speed )
else if ( speed == DccTransfer::NotInTransfer ) else if ( speed == DccTransfer::NotInTransfer )
return TQString(); return TQString();
else else
return i18n("%1/sec").arg( KIO::convertSize( (KIO::fileoffset_t)speed ) ); return i18n("%1/sec").tqarg( KIO::convertSize( (KIO::fileoffset_t)speed ) );
} }
TQString DccTransferPanelItem::secToHMS( long sec ) TQString DccTransferPanelItem::secToHMS( long sec )
@ -395,9 +395,9 @@ TQString DccTransferPanelItem::secToHMS( long sec )
// remHour can be more than 25, so we can't use TQTime here. // remHour can be more than 25, so we can't use TQTime here.
return TQString( "%1:%2:%3" ) return TQString( "%1:%2:%3" )
.arg( TQString::number( remHour ).rightJustify( 2, '0', false ) ) .tqarg( TQString::number( remHour ).rightJustify( 2, '0', false ) )
.arg( TQString::number( remMin ).rightJustify( 2, '0' ) ) .tqarg( TQString::number( remMin ).rightJustify( 2, '0' ) )
.arg( TQString::number( remSec ).rightJustify( 2, '0' ) ); .tqarg( TQString::number( remSec ).rightJustify( 2, '0' ) );
} }
#include "dcctransferpanelitem.moc" #include "dcctransferpanelitem.moc"

@ -46,7 +46,7 @@ class DccTransferPanelItem : public TQObject, public KListViewItem
DccTransferPanelItem( DccTransferPanel* panel, DccTransfer* transfer ); DccTransferPanelItem( DccTransferPanel* panel, DccTransfer* transfer );
virtual ~DccTransferPanelItem(); virtual ~DccTransferPanelItem();
virtual void paintCell( TQPainter* painter, const TQColorGroup& colorgroup, int column, int width, int alignment ); virtual void paintCell( TQPainter* painter, const TQColorGroup& colorgroup, int column, int width, int tqalignment );
virtual int compare( TQListViewItem* i, int col, bool ascending ) const; virtual int compare( TQListViewItem* i, int col, bool ascending ) const;
@ -71,7 +71,7 @@ class DccTransferPanelItem : public TQObject, public KListViewItem
static TQString secToHMS( long sec ); static TQString secToHMS( long sec );
private slots: private slots:
void slotStatusChanged( DccTransfer* transfer, int newStatus, int oldStatus ); void slotStatusChanged( DccTransfer* transfer, int newtqStatus, int oldtqStatus );
void updateView(); void updateView();
private: private:

@ -113,44 +113,44 @@ void DccTransferRecv::cleanUp()
// just for convenience // just for convenience
void DccTransferRecv::failed( const TQString& errorMessage ) void DccTransferRecv::failed( const TQString& errorMessage )
{ {
setStatus( Failed, errorMessage ); settqStatus( Failed, errorMessage );
cleanUp(); cleanUp();
emit done( this ); emit done( this );
} }
void DccTransferRecv::setPartnerIp( const TQString& ip ) void DccTransferRecv::setPartnerIp( const TQString& ip )
{ {
if ( getStatus() == Configuring ) if ( gettqStatus() == Configuring )
m_partnerIp = ip; m_partnerIp = ip;
} }
void DccTransferRecv::setPartnerPort( const TQString& port ) void DccTransferRecv::setPartnerPort( const TQString& port )
{ {
if ( getStatus() == Configuring ) if ( gettqStatus() == Configuring )
m_partnerPort = port; m_partnerPort = port;
} }
void DccTransferRecv::setFileSize( unsigned long fileSize ) void DccTransferRecv::setFileSize( unsigned long fileSize )
{ {
if ( getStatus() == Configuring ) if ( gettqStatus() == Configuring )
m_fileSize = fileSize; m_fileSize = fileSize;
} }
void DccTransferRecv::setFileName( const TQString& fileName ) void DccTransferRecv::setFileName( const TQString& fileName )
{ {
if ( getStatus() == Configuring ) if ( gettqStatus() == Configuring )
m_fileName = fileName; m_fileName = fileName;
} }
void DccTransferRecv::setFileURL( const KURL& url ) void DccTransferRecv::setFileURL( const KURL& url )
{ {
if ( getStatus() == Configuring || getStatus() == Queued ) if ( gettqStatus() == Configuring || gettqStatus() == Queued )
m_fileURL = url; m_fileURL = url;
} }
void DccTransferRecv::setReverse( bool reverse, const TQString& reverseToken ) void DccTransferRecv::setReverse( bool reverse, const TQString& reverseToken )
{ {
if ( getStatus() == Configuring ) if ( gettqStatus() == Configuring )
{ {
m_reverse = reverse; m_reverse = reverse;
if ( reverse ) if ( reverse )
@ -165,7 +165,7 @@ bool DccTransferRecv::queue()
{ {
kdDebug() << "DccTransferRecv::queue()" << endl; kdDebug() << "DccTransferRecv::queue()" << endl;
if ( getStatus() != Configuring ) if ( gettqStatus() != Configuring )
return false; return false;
if ( m_partnerIp.isEmpty() || m_partnerPort.isEmpty() ) if ( m_partnerIp.isEmpty() || m_partnerPort.isEmpty() )
@ -182,7 +182,7 @@ bool DccTransferRecv::queue()
// check if the sender IP is valid // check if the sender IP is valid
if ( m_partnerIp == "0.0.0.0" ) if ( m_partnerIp == "0.0.0.0" )
{ {
failed( i18n( "Invalid sender address (%1)" ).arg( m_partnerIp ) ); failed( i18n( "Invalid sender address (%1)" ).tqarg( m_partnerIp ) );
return false; return false;
} }
@ -237,7 +237,7 @@ void DccTransferRecv::abort() // public slot
m_writeCacheHandler->write( true ); // flush m_writeCacheHandler->write( true ); // flush
} }
setStatus( Aborted ); settqStatus( Aborted );
cleanUp(); cleanUp();
emit done( this ); emit done( this );
} }
@ -246,10 +246,10 @@ void DccTransferRecv::start() // public slot
{ {
kdDebug() << "DccTransferRecv::start() [BEGIN]" << endl; kdDebug() << "DccTransferRecv::start() [BEGIN]" << endl;
if ( getStatus() != Queued ) if ( gettqStatus() != Queued )
return; return;
setStatus( Preparing ); settqStatus( Preparing );
prepareLocalKio( false, false ); prepareLocalKio( false, false );
@ -270,7 +270,7 @@ void DccTransferRecv::prepareLocalKio( bool overwrite, bool resume, KIO::fileoff
{ {
askAndPrepareLocalKio( i18n( "<b>Cannot create the folder.</b><br>" askAndPrepareLocalKio( i18n( "<b>Cannot create the folder.</b><br>"
"Folder: %1<br>" ) "Folder: %1<br>" )
.arg( m_fileURL.upURL().prettyURL() ), .tqarg( m_fileURL.upURL().prettyURL() ),
DccResumeDialog::RA_Rename | DccResumeDialog::RA_Cancel, DccResumeDialog::RA_Rename | DccResumeDialog::RA_Cancel,
DccResumeDialog::RA_Rename ); DccResumeDialog::RA_Rename );
return; return;
@ -305,7 +305,7 @@ void DccTransferRecv::askAndPrepareLocalKio( const TQString& message, int enable
break; break;
case DccResumeDialog::RA_Cancel: case DccResumeDialog::RA_Cancel:
default: default:
setStatus( Queued ); settqStatus( Queued );
} }
} }
@ -352,7 +352,7 @@ void DccTransferRecv::slotLocalCanResume( KIO::Job* job, KIO::filesize_t size )
{ {
askAndPrepareLocalKio( i18n( "<b>The file is used by another transfer.</b><br>" askAndPrepareLocalKio( i18n( "<b>The file is used by another transfer.</b><br>"
"%1<br>" ) "%1<br>" )
.arg( m_fileURL.prettyURL() ), .tqarg( m_fileURL.prettyURL() ),
DccResumeDialog::RA_Rename | DccResumeDialog::RA_Cancel, DccResumeDialog::RA_Rename | DccResumeDialog::RA_Cancel,
DccResumeDialog::RA_Rename ); DccResumeDialog::RA_Rename );
} }
@ -365,8 +365,8 @@ void DccTransferRecv::slotLocalCanResume( KIO::Job* job, KIO::filesize_t size )
askAndPrepareLocalKio( i18n( "<b>A partial file exists.</b><br>" askAndPrepareLocalKio( i18n( "<b>A partial file exists.</b><br>"
"%1<br>" "%1<br>"
"Size of the partial file: %2 bytes<br>" ) "Size of the partial file: %2 bytes<br>" )
.arg( m_fileURL.prettyURL() ) .tqarg( m_fileURL.prettyURL() )
.arg( KGlobal::locale()->formatNumber( size, 0 ) ), .tqarg( KGlobal::locale()->formatNumber( size, 0 ) ),
DccResumeDialog::RA_Resume | DccResumeDialog::RA_Overwrite | DccResumeDialog::RA_Rename | DccResumeDialog::RA_Cancel, DccResumeDialog::RA_Resume | DccResumeDialog::RA_Overwrite | DccResumeDialog::RA_Rename | DccResumeDialog::RA_Cancel,
DccResumeDialog::RA_Resume, DccResumeDialog::RA_Resume,
size ); size );
@ -392,7 +392,7 @@ void DccTransferRecv::slotLocalGotResult( KIO::Job* job )
case KIO::ERR_FILE_ALREADY_EXIST: case KIO::ERR_FILE_ALREADY_EXIST:
askAndPrepareLocalKio( i18n( "<b>The file already exists.</b><br>" askAndPrepareLocalKio( i18n( "<b>The file already exists.</b><br>"
"%1<br>" ) "%1<br>" )
.arg( m_fileURL.prettyURL() ), .tqarg( m_fileURL.prettyURL() ),
DccResumeDialog::RA_Overwrite | DccResumeDialog::RA_Rename | DccResumeDialog::RA_Cancel, DccResumeDialog::RA_Overwrite | DccResumeDialog::RA_Rename | DccResumeDialog::RA_Cancel,
DccResumeDialog::RA_Overwrite ); DccResumeDialog::RA_Overwrite );
break; break;
@ -400,8 +400,8 @@ void DccTransferRecv::slotLocalGotResult( KIO::Job* job )
askAndPrepareLocalKio( i18n( "<b>Could not open the file.<br>" askAndPrepareLocalKio( i18n( "<b>Could not open the file.<br>"
"Error: %1</b><br>" "Error: %1</b><br>"
"%2<br>" ) "%2<br>" )
.arg( transferJob->error() ) .tqarg( transferJob->error() )
.arg( m_fileURL.prettyURL() ), .tqarg( m_fileURL.prettyURL() ),
DccResumeDialog::RA_Rename | DccResumeDialog::RA_Cancel, DccResumeDialog::RA_Rename | DccResumeDialog::RA_Cancel,
DccResumeDialog::RA_Rename ); DccResumeDialog::RA_Rename );
} }
@ -444,7 +444,7 @@ void DccTransferRecv::connectWithSender()
m_ownIp = DccCommon::getOwnIp( server ); m_ownIp = DccCommon::getOwnIp( server );
m_ownPort = TQString::number( DccCommon::getServerSocketPort( m_serverSocket ) ); m_ownPort = TQString::number( DccCommon::getServerSocketPort( m_serverSocket ) );
setStatus( WaitingRemote, i18n( "Waiting for connection" ) ); settqStatus( WaitingRemote, i18n( "Waiting for connection" ) );
server->dccReverseSendAck( m_partnerNick, m_fileName, DccCommon::textIpToNumericalIp( m_ownIp ), m_ownPort, m_fileSize, m_reverseToken ); server->dccReverseSendAck( m_partnerNick, m_fileName, DccCommon::textIpToNumericalIp( m_ownIp ), m_ownPort, m_fileSize, m_reverseToken );
@ -460,7 +460,7 @@ void DccTransferRecv::requestResume()
{ {
kdDebug() << "DccTransferRecv::requestResume()" << endl; kdDebug() << "DccTransferRecv::requestResume()" << endl;
setStatus( WaitingRemote, i18n( "Waiting for remote host's acceptance" ) ); settqStatus( WaitingRemote, i18n( "Waiting for remote host's acceptance" ) );
startConnectionTimer( 30 ); startConnectionTimer( 30 );
@ -503,7 +503,7 @@ void DccTransferRecv::connectToSendServer()
// connect to sender // connect to sender
setStatus( Connecting ); settqStatus( Connecting );
m_recvSocket = new KNetwork::KStreamSocket( m_partnerIp, m_partnerPort, this); m_recvSocket = new KNetwork::KStreamSocket( m_partnerIp, m_partnerPort, this);
@ -564,7 +564,7 @@ void DccTransferRecv::slotServerSocketReadyAccept()
void DccTransferRecv::slotServerSocketGotError( int /* errorCode*/ ) void DccTransferRecv::slotServerSocketGotError( int /* errorCode*/ )
{ {
failed( i18n( "Socket error: %1" ).arg( m_serverSocket->errorString() ) ); failed( i18n( "Socket error: %1" ).tqarg( m_serverSocket->errorString() ) );
} }
void DccTransferRecv::startReceiving() void DccTransferRecv::startReceiving()
@ -577,7 +577,7 @@ void DccTransferRecv::startReceiving()
connect( m_recvSocket, TQT_SIGNAL( readyWrite() ), this, TQT_SLOT( sendAck() ) ); connect( m_recvSocket, TQT_SIGNAL( readyWrite() ), this, TQT_SLOT( sendAck() ) );
connect( m_recvSocket, TQT_SIGNAL( closed() ), this, TQT_SLOT( slotSocketClosed() ) ); connect( m_recvSocket, TQT_SIGNAL( closed() ), this, TQT_SLOT( slotSocketClosed() ) );
setStatus( Transferring ); settqStatus( Transferring );
m_transferStartPosition = m_transferringPosition; m_transferStartPosition = m_transferringPosition;
@ -591,7 +591,7 @@ void DccTransferRecv::startReceiving()
void DccTransferRecv::connectionFailed( int errorCode ) void DccTransferRecv::connectionFailed( int errorCode )
{ {
kdDebug() << "DccTransferRecv::connectionFailed(): code = " << errorCode << ", string = " << m_recvSocket->KSocketBase::errorString() << endl; kdDebug() << "DccTransferRecv::connectionFailed(): code = " << errorCode << ", string = " << m_recvSocket->KSocketBase::errorString() << endl;
failed( i18n( "Connection failure: %1" ).arg( m_recvSocket->KSocketBase::errorString() ) ); failed( i18n( "Connection failure: %1" ).tqarg( m_recvSocket->KSocketBase::errorString() ) );
} }
void DccTransferRecv::readData() // slot void DccTransferRecv::readData() // slot
@ -633,7 +633,7 @@ void DccTransferRecv::sendAck() // slot
void DccTransferRecv::slotLocalWriteDone() // <-WriteCacheHandler::done() void DccTransferRecv::slotLocalWriteDone() // <-WriteCacheHandler::done()
{ {
kdDebug() << "DccTransferRecv::slotLocalWriteDone()" << endl; kdDebug() << "DccTransferRecv::slotLocalWriteDone()" << endl;
setStatus( Done ); settqStatus( Done );
cleanUp(); cleanUp();
emit done( this ); emit done( this );
} }
@ -642,7 +642,7 @@ void DccTransferRecv::slotLocalWriteDone() // <-WriteCacheHandler::done()
void DccTransferRecv::slotLocalGotWriteError( const TQString& errorString ) void DccTransferRecv::slotLocalGotWriteError( const TQString& errorString )
{ {
kdDebug() << "DccTransferRecv::slotLocalGotWriteError()" << endl; kdDebug() << "DccTransferRecv::slotLocalGotWriteError()" << endl;
failed( i18n( "KIO error: %1" ).arg( errorString ) ); failed( i18n( "KIO error: %1" ).tqarg( errorString ) );
} }
void DccTransferRecv::startConnectionTimer( int sec ) void DccTransferRecv::startConnectionTimer( int sec )
@ -670,7 +670,7 @@ void DccTransferRecv::connectionTimeout() // slot
void DccTransferRecv::slotSocketClosed() void DccTransferRecv::slotSocketClosed()
{ {
finishTransferLogger(); finishTransferLogger();
if ( getStatus() == Transferring ) if ( gettqStatus() == Transferring )
failed( i18n( "Remote user disconnected" ) ); failed( i18n( "Remote user disconnected" ) );
} }

@ -91,38 +91,38 @@ void DccTransferSend::cleanUp()
// just for convenience // just for convenience
void DccTransferSend::failed( const TQString& errorMessage ) void DccTransferSend::failed( const TQString& errorMessage )
{ {
setStatus( Failed, errorMessage ); settqStatus( Failed, errorMessage );
cleanUp(); cleanUp();
emit done( this ); emit done( this );
} }
void DccTransferSend::setFileURL( const KURL& url ) void DccTransferSend::setFileURL( const KURL& url )
{ {
if ( getStatus() == Configuring ) if ( gettqStatus() == Configuring )
m_fileURL = url; m_fileURL = url;
} }
void DccTransferSend::setFileName( const TQString& fileName ) void DccTransferSend::setFileName( const TQString& fileName )
{ {
if ( getStatus() == Configuring ) if ( gettqStatus() == Configuring )
m_fileName = fileName; m_fileName = fileName;
} }
void DccTransferSend::setOwnIp( const TQString& ownIp ) void DccTransferSend::setOwnIp( const TQString& ownIp )
{ {
if ( getStatus() == Configuring ) if ( gettqStatus() == Configuring )
m_ownIp = ownIp; m_ownIp = ownIp;
} }
void DccTransferSend::setFileSize( KIO::filesize_t fileSize ) void DccTransferSend::setFileSize( KIO::filesize_t fileSize )
{ {
if ( getStatus() == Configuring ) if ( gettqStatus() == Configuring )
m_fileSize = fileSize; m_fileSize = fileSize;
} }
void DccTransferSend::setReverse( bool reverse ) void DccTransferSend::setReverse( bool reverse )
{ {
if ( getStatus() == Configuring ) if ( gettqStatus() == Configuring )
m_reverse = reverse; m_reverse = reverse;
} }
@ -130,7 +130,7 @@ bool DccTransferSend::queue()
{ {
kdDebug() << "DccTransferSend::queue()" << endl; kdDebug() << "DccTransferSend::queue()" << endl;
if ( getStatus() != Configuring ) if ( gettqStatus() != Configuring )
return false; return false;
if ( m_ownIp.isEmpty() ) if ( m_ownIp.isEmpty() )
@ -170,7 +170,7 @@ bool DccTransferSend::queue()
//Check the file exists //Check the file exists
if ( !KIO::NetAccess::exists( m_fileURL, true, NULL ) ) if ( !KIO::NetAccess::exists( m_fileURL, true, NULL ) )
{ {
failed( i18n( "The url \"%1\" does not exist" ).arg( m_fileURL.prettyURL() ) ); failed( i18n( "The url \"%1\" does not exist" ).tqarg( m_fileURL.prettyURL() ) );
return false; return false;
} }
@ -178,7 +178,7 @@ bool DccTransferSend::queue()
//Download the file. Does nothing if it's local (file:/) //Download the file. Does nothing if it's local (file:/)
if ( !KIO::NetAccess::download( m_fileURL, m_tmpFile, NULL ) ) if ( !KIO::NetAccess::download( m_fileURL, m_tmpFile, NULL ) )
{ {
failed( i18n( "Could not retrieve \"%1\"" ).arg( m_fileURL.prettyURL() ) ); failed( i18n( "Could not retrieve \"%1\"" ).tqarg( m_fileURL.prettyURL() ) );
kdDebug() << "DccTransferSend::DccTransferSend(): KIO::NetAccess::download() failed. reason: " << KIO::NetAccess::lastErrorString() << endl; kdDebug() << "DccTransferSend::DccTransferSend(): KIO::NetAccess::download() failed. reason: " << KIO::NetAccess::lastErrorString() << endl;
return false; return false;
} }
@ -187,7 +187,7 @@ bool DccTransferSend::queue()
if ( m_fileName.isEmpty() ) if ( m_fileName.isEmpty() )
{ {
bool pressedOk; bool pressedOk;
m_fileName = KInputDialog::getText( i18n( "Enter Filename" ), i18n( "<qt>The file that you are sending to <i>%1</i> does not have a filename.<br>Please enter a filename to be presented to the receiver, or cancel the dcc transfer</qt>" ).arg( getPartnerNick() ), "unknown", &pressedOk, NULL ); m_fileName = KInputDialog::getText( i18n( "Enter Filename" ), i18n( "<qt>The file that you are sending to <i>%1</i> does not have a filename.<br>Please enter a filename to be presented to the receiver, or cancel the dcc transfer</qt>" ).tqarg( getPartnerNick() ), "unknown", &pressedOk, NULL );
if ( !pressedOk ) if ( !pressedOk )
{ {
@ -217,7 +217,7 @@ void DccTransferSend::abort() // public slot
{ {
kdDebug() << "DccTransferSend::abort()" << endl; kdDebug() << "DccTransferSend::abort()" << endl;
setStatus( Aborted ); settqStatus( Aborted );
cleanUp(); cleanUp();
emit done( this ); emit done( this );
} }
@ -226,7 +226,7 @@ void DccTransferSend::start() // public slot
{ {
kdDebug() << "DccTransferSend::start()" << endl; kdDebug() << "DccTransferSend::start()" << endl;
if ( getStatus() != Queued ) if ( gettqStatus() != Queued )
return; return;
// common procedure // common procedure
@ -283,7 +283,7 @@ void DccTransferSend::start() // public slot
server->dccPassiveSendRequest( m_partnerNick, m_fileName, getNumericalIpText( m_ownIp ), m_fileSize, m_reverseToken ); server->dccPassiveSendRequest( m_partnerNick, m_fileName, getNumericalIpText( m_ownIp ), m_fileSize, m_reverseToken );
} }
setStatus( WaitingRemote, i18n( "Waiting remote user's acceptance" ) ); settqStatus( WaitingRemote, i18n( "Waiting remote user's acceptance" ) );
} }
void DccTransferSend::connectToReceiver( const TQString& partnerHost, const TQString& partnerPort ) void DccTransferSend::connectToReceiver( const TQString& partnerHost, const TQString& partnerPort )
@ -300,7 +300,7 @@ void DccTransferSend::connectToReceiver( const TQString& partnerHost, const TQSt
connect( m_sendSocket, TQT_SIGNAL( connected( const KResolverEntry& ) ), this, TQT_SLOT( startSending() ) ); connect( m_sendSocket, TQT_SIGNAL( connected( const KResolverEntry& ) ), this, TQT_SLOT( startSending() ) );
connect( m_sendSocket, TQT_SIGNAL( gotError( int ) ), this, TQT_SLOT( slotConnectionFailed( int ) ) ); connect( m_sendSocket, TQT_SIGNAL( gotError( int ) ), this, TQT_SLOT( slotConnectionFailed( int ) ) );
setStatus( Connecting ); settqStatus( Connecting );
m_sendSocket->connect(); m_sendSocket->connect();
} }
@ -309,7 +309,7 @@ bool DccTransferSend::setResume( unsigned long position )
{ {
kdDebug() << "DccTransferSend::setResume(): position=" << position << endl; kdDebug() << "DccTransferSend::setResume(): position=" << position << endl;
if ( getStatus() > WaitingRemote ) if ( gettqStatus() > WaitingRemote )
return false; return false;
if ( position >= m_fileSize ) if ( position >= m_fileSize )
@ -359,13 +359,13 @@ void DccTransferSend::startSending()
m_file.at( m_transferringPosition ); m_file.at( m_transferringPosition );
m_transferStartPosition = m_transferringPosition; m_transferStartPosition = m_transferringPosition;
setStatus( Transferring ); settqStatus( Transferring );
m_sendSocket->enableWrite( true ); m_sendSocket->enableWrite( true );
m_sendSocket->enableRead( m_fastSend ); m_sendSocket->enableRead( m_fastSend );
startTransferLogger(); // initialize CPS counter, ETA counter, etc... startTransferLogger(); // initialize CPS counter, ETA counter, etc...
} }
else else
failed( i18n( "Could not open the file: %1" ).arg( getTQFileErrorString( m_file.status() ) ) ); failed( i18n( "Could not open the file: %1" ).tqarg( getTQFileErrorString( m_file.status() ) ) );
} }
void DccTransferSend::writeData() // slot void DccTransferSend::writeData() // slot
@ -407,7 +407,7 @@ void DccTransferSend::getAck() // slot
{ {
kdDebug() << "DccTransferSend::getAck(): Received final ACK." << endl; kdDebug() << "DccTransferSend::getAck(): Received final ACK." << endl;
finishTransferLogger(); finishTransferLogger();
setStatus( Done ); settqStatus( Done );
cleanUp(); cleanUp();
emit done( this ); emit done( this );
break; // for safe break; // for safe
@ -418,7 +418,7 @@ void DccTransferSend::getAck() // slot
void DccTransferSend::slotGotSocketError( int errorCode ) void DccTransferSend::slotGotSocketError( int errorCode )
{ {
kdDebug() << "DccTransferSend::slotGotSocketError(): code = " << errorCode << " string = " << m_serverSocket->errorString() << endl; kdDebug() << "DccTransferSend::slotGotSocketError(): code = " << errorCode << " string = " << m_serverSocket->errorString() << endl;
failed( i18n( "Socket error: %1" ).arg( m_serverSocket->errorString() ) ); failed( i18n( "Socket error: %1" ).tqarg( m_serverSocket->errorString() ) );
} }
void DccTransferSend::startConnectionTimer( int sec ) void DccTransferSend::startConnectionTimer( int sec )
@ -445,7 +445,7 @@ void DccTransferSend::slotConnectionTimeout() // slot
void DccTransferSend::slotConnectionFailed( int /* errorCode */ ) void DccTransferSend::slotConnectionFailed( int /* errorCode */ )
{ {
failed( i18n( "Connection failure: %1" ).arg( m_sendSocket->KSocketBase::errorString() ) ); failed( i18n( "Connection failure: %1" ).tqarg( m_sendSocket->KSocketBase::errorString() ) );
} }
void DccTransferSend::slotServerSocketClosed() void DccTransferSend::slotServerSocketClosed()
@ -457,7 +457,7 @@ void DccTransferSend::slotSendSocketClosed()
{ {
kdDebug() << "DccTransferSend::slotSendSocketClosed()" << endl; kdDebug() << "DccTransferSend::slotSendSocketClosed()" << endl;
finishTransferLogger(); finishTransferLogger();
if ( getStatus() == Transferring && m_transferringPosition < (KIO::fileoffset_t)m_fileSize ) if ( gettqStatus() == Transferring && m_transferringPosition < (KIO::fileoffset_t)m_fileSize )
failed( i18n( "Remote user disconnected" ) ); failed( i18n( "Remote user disconnected" ) );
} }
@ -472,16 +472,16 @@ TQString DccTransferSend::getTQFileErrorString( int code )
errorString=i18n("The operation was successful. Should never happen in an error dialog."); errorString=i18n("The operation was successful. Should never happen in an error dialog.");
break; break;
case IO_ReadError: case IO_ReadError:
errorString=i18n("Could not read from file \"%1\".").arg( m_fileName ); errorString=i18n("Could not read from file \"%1\".").tqarg( m_fileName );
break; break;
case IO_WriteError: case IO_WriteError:
errorString=i18n("Could not write to file \"%1\".").arg( m_fileName ); errorString=i18n("Could not write to file \"%1\".").tqarg( m_fileName );
break; break;
case IO_FatalError: case IO_FatalError:
errorString=i18n("A fatal unrecoverable error occurred."); errorString=i18n("A fatal unrecoverable error occurred.");
break; break;
case IO_OpenError: case IO_OpenError:
errorString=i18n("Could not open file \"%1\".").arg( m_fileName ); errorString=i18n("Could not open file \"%1\".").tqarg( m_fileName );
break; break;
// Same case value? Damn! // Same case value? Damn!
@ -499,7 +499,7 @@ TQString DccTransferSend::getTQFileErrorString( int code )
errorString=i18n("An unspecified error happened on close."); errorString=i18n("An unspecified error happened on close.");
break; break;
default: default:
errorString=i18n("Unknown error. Code %1").arg(code); errorString=i18n("Unknown error. Code %1").tqarg(code);
break; break;
} }

@ -15,7 +15,7 @@
#include "konversationapplication.h" #include "konversationapplication.h"
#include "servergroupsettings.h" #include "servergroupsettings.h"
#include <layout.h> #include <tqlayout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
@ -37,8 +37,8 @@ KDialogBase::Ok,true)
TQWidget* page=new TQWidget(this); TQWidget* page=new TQWidget(this);
setMainWidget(page); setMainWidget(page);
TQHBoxLayout* layout = new TQHBoxLayout(page); TQHBoxLayout* tqlayout = new TQHBoxLayout(page);
layout->setSpacing(spacingHint()); tqlayout->setSpacing(spacingHint());
TQLabel* networkNameLabel=new TQLabel(i18n("&Network name:"),page); TQLabel* networkNameLabel=new TQLabel(i18n("&Network name:"),page);
TQString networkNameWT = i18n( TQString networkNameWT = i18n(
@ -80,10 +80,10 @@ KDialogBase::Ok,true)
if(*it == network) m_networkNameCombo->setCurrentItem(m_networkNameCombo->count()-1); if(*it == network) m_networkNameCombo->setCurrentItem(m_networkNameCombo->count()-1);
} }
layout->addWidget(networkNameLabel); tqlayout->addWidget(networkNameLabel);
layout->addWidget(m_networkNameCombo); tqlayout->addWidget(m_networkNameCombo);
layout->addWidget(nicknameLabel); tqlayout->addWidget(nicknameLabel);
layout->addWidget(m_nicknameInput); tqlayout->addWidget(m_nicknameInput);
setButtonOK(KGuiItem(i18n("&OK"),"button_ok",i18n("Change notify information"))); setButtonOK(KGuiItem(i18n("&OK"),"button_ok",i18n("Change notify information")));
setButtonCancel(KGuiItem(i18n("&Cancel"),"button_cancel",i18n("Discards all changes made"))); setButtonCancel(KGuiItem(i18n("&Cancel"),"button_cancel",i18n("Discards all changes made")));

@ -159,7 +159,7 @@ namespace Konversation
for(EmotIconMap::iterator it = self()->m_emotIconMap.begin(); it != self()->m_emotIconMap.end(); ++it) for(EmotIconMap::iterator it = self()->m_emotIconMap.begin(); it != self()->m_emotIconMap.end(); ++it)
{ {
TQRegExp regExp(TQString("(^|\\s)%1($|\\s)").arg(it.data())); TQRegExp regExp(TQString("(^|\\s)%1($|\\s)").tqarg(it.data()));
filteredTxt.replace(regExp, " <img width=\"" + TQString::number(fm.height()) + "\" height=\"" + TQString::number(fm.height()) filteredTxt.replace(regExp, " <img width=\"" + TQString::number(fm.height()) + "\" height=\"" + TQString::number(fm.height())
+ "\" src=\"" + it.key() + "\" alt=\"" + it.data() + "\">&nbsp;"); + "\" src=\"" + it.key() + "\" alt=\"" + it.data() + "\">&nbsp;");
} }

@ -54,7 +54,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>161</height> <height>161</height>

@ -60,7 +60,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>31</width> <width>31</width>
<height>20</height> <height>20</height>
@ -88,7 +88,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>31</width> <width>31</width>
<height>20</height> <height>20</height>
@ -301,7 +301,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>

@ -228,7 +228,7 @@ void Highlight_Config::highlightColorChanged(const TQColor& newColor)
if(!newItemSelected && item) if(!newItemSelected && item)
{ {
item->setColor(newColor); item->setColor(newColor);
item->repaint(); item->tqrepaint();
emit modified(); emit modified();
} }
} }
@ -327,7 +327,7 @@ void Highlight_Config::saveSettings()
int i = 0; int i = 0;
for(Highlight* hl = hiList.first(); hl; hl = hiList.next()) for(Highlight* hl = hiList.first(); hl; hl = hiList.next())
{ {
config->setGroup(TQString("Highlight%1").arg(i)); config->setGroup(TQString("Highlight%1").tqarg(i));
config->writeEntry("Pattern", hl->getPattern()); config->writeEntry("Pattern", hl->getPattern());
config->writeEntry("RegExp", hl->getRegExp()); config->writeEntry("RegExp", hl->getRegExp());
config->writeEntry("Color", hl->getColor()); config->writeEntry("Color", hl->getColor());
@ -339,9 +339,9 @@ void Highlight_Config::saveSettings()
Preferences::setHighlightList(hiList); Preferences::setHighlightList(hiList);
// Remove unused entries... // Remove unused entries...
while(config->hasGroup(TQString("Highlight%1").arg(i))) while(config->hasGroup(TQString("Highlight%1").tqarg(i)))
{ {
config->deleteGroup(TQString("Highlight%1").arg(i)); config->deleteGroup(TQString("Highlight%1").tqarg(i));
i++; i++;
} }

@ -93,7 +93,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="4" rowspan="5" colspan="1"> <widget class="TQLayoutWidget" row="0" column="4" rowspan="5" colspan="1">
<property name="name"> <property name="name">
<cstring>layout13</cstring> <cstring>tqlayout13</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -141,7 +141,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>250</height> <height>250</height>
@ -362,7 +362,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>120</width> <width>120</width>
<height>20</height> <height>20</height>
@ -379,7 +379,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -396,7 +396,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>21</height> <height>21</height>

@ -35,12 +35,12 @@ HighlightViewItem::~HighlightViewItem()
{ {
} }
void HighlightViewItem::paintCell(TQPainter* p, const TQColorGroup &cg, int column, int width, int alignment) void HighlightViewItem::paintCell(TQPainter* p, const TQColorGroup &cg, int column, int width, int tqalignment)
{ {
// copy all colors from cg and only then change needed colors // copy all colors from cg and only then change needed colors
itemColorGroup=cg; itemColorGroup=cg;
itemColorGroup.setColor(TQColorGroup::Text, itemColor); itemColorGroup.setColor(TQColorGroup::Text, itemColor);
TQCheckListItem::paintCell(p, itemColorGroup, column, width, alignment); TQCheckListItem::paintCell(p, itemColorGroup, column, width, tqalignment);
} }
HighlightViewItem* HighlightViewItem::itemBelow() HighlightViewItem* HighlightViewItem::itemBelow()

@ -67,6 +67,6 @@ class HighlightViewItem : public TQCheckListItem
bool m_changed; // true if the checkbox has been changed bool m_changed; // true if the checkbox has been changed
void stateChange(bool newState); // reimplemented to store changed value void stateChange(bool newState); // reimplemented to store changed value
void paintCell(TQPainter* p, const TQColorGroup &cg, int column, int width, int alignment); void paintCell(TQPainter* p, const TQColorGroup &cg, int column, int width, int tqalignment);
}; };
#endif #endif

@ -15,7 +15,7 @@
#include "identity.h" #include "identity.h"
#include "irccharsets.h" #include "irccharsets.h"
#include <textcodec.h> #include <tqtextcodec.h>
#include <kdebug.h> #include <kdebug.h>
#include <kglobal.h> #include <kglobal.h>

@ -15,7 +15,7 @@
#include "irccharsets.h" #include "irccharsets.h"
#include <tqframe.h> #include <tqframe.h>
#include <layout.h> #include <tqlayout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqvaluelist.h> #include <tqvaluelist.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
@ -90,7 +90,7 @@ namespace Konversation
TQGroupBox* nicknameGBox = new TQGroupBox(0, Qt::Horizontal, i18n("Nickname"), generalWidget); TQGroupBox* nicknameGBox = new TQGroupBox(0, Qt::Horizontal, i18n("Nickname"), generalWidget);
nicknameGBox->setMargin(marginHint()); nicknameGBox->setMargin(marginHint());
TQGridLayout* nicknameLayout = new TQGridLayout(nicknameGBox->layout(), 1, 2, spacingHint()); TQGridLayout* nicknameLayout = new TQGridLayout(nicknameGBox->tqlayout(), 1, 2, spacingHint());
m_nicknameLBox = new TQListBox(nicknameGBox); m_nicknameLBox = new TQListBox(nicknameGBox);
TQWhatsThis::add(m_nicknameLBox, i18n("This is your list of nicknames. A nickname is the name that other users will know you by. You may use any name you desire. The first character must be a letter.\n\nSince nicknames must be unique across an entire IRC network, your desired name may be rejected by the server because someone else is already using that nickname. Enter alternate nicknames for yourself. If your first choice is rejected by the server, Konversation will try the alternate nicknames.")); TQWhatsThis::add(m_nicknameLBox, i18n("This is your list of nicknames. A nickname is the name that other users will know you by. You may use any name you desire. The first character must be a letter.\n\nSince nicknames must be unique across an entire IRC network, your desired name may be rejected by the server because someone else is already using that nickname. Enter alternate nicknames for yourself. If your first choice is rejected by the server, Konversation will try the alternate nicknames."));
@ -126,7 +126,7 @@ namespace Konversation
TQGroupBox* autoIdentifyGBox = new TQGroupBox(0, Qt::Horizontal, i18n("Auto Identify"), generalWidget); TQGroupBox* autoIdentifyGBox = new TQGroupBox(0, Qt::Horizontal, i18n("Auto Identify"), generalWidget);
autoIdentifyGBox->setMargin(marginHint()); autoIdentifyGBox->setMargin(marginHint());
TQGridLayout* autoIdentifyLayout = new TQGridLayout(autoIdentifyGBox->layout(), 1, 2, spacingHint()); TQGridLayout* autoIdentifyLayout = new TQGridLayout(autoIdentifyGBox->tqlayout(), 1, 2, spacingHint());
TQLabel* botLabel=new TQLabel(i18n("Ser&vice:"), autoIdentifyGBox); TQLabel* botLabel=new TQLabel(i18n("Ser&vice:"), autoIdentifyGBox);
TQWhatsThis::add(botLabel,i18n("Service name can be <b><i>nickserv</i></b> or a network dependant name like <b><i>nickserv@services.dal.net</i></b>")); TQWhatsThis::add(botLabel,i18n("Service name can be <b><i>nickserv</i></b> or a network dependant name like <b><i>nickserv@services.dal.net</i></b>"));
@ -167,7 +167,7 @@ namespace Konversation
m_automaticAwayGBox->setCheckable(true); m_automaticAwayGBox->setCheckable(true);
m_automaticAwayGBox->setColumnLayout(0, Qt::Horizontal); m_automaticAwayGBox->setColumnLayout(0, Qt::Horizontal);
m_automaticAwayGBox->setMargin(marginHint()); m_automaticAwayGBox->setMargin(marginHint());
TQGridLayout* automaticAwayLayout = new TQGridLayout(m_automaticAwayGBox->layout(), 1, 2, spacingHint()); TQGridLayout* automaticAwayLayout = new TQGridLayout(m_automaticAwayGBox->tqlayout(), 1, 2, spacingHint());
TQWhatsThis::add(m_automaticAwayGBox, i18n("If you check this box, Konversation will automatically set all connections using this Identity away when the screensaver starts or after a period of user inactivity configured below.")); TQWhatsThis::add(m_automaticAwayGBox, i18n("If you check this box, Konversation will automatically set all connections using this Identity away when the screensaver starts or after a period of user inactivity configured below."));
@ -198,7 +198,7 @@ namespace Konversation
m_awayMessageGBox->setCheckable(true); m_awayMessageGBox->setCheckable(true);
m_awayMessageGBox->setColumnLayout(0, Qt::Horizontal); m_awayMessageGBox->setColumnLayout(0, Qt::Horizontal);
m_awayMessageGBox->setMargin(marginHint()); m_awayMessageGBox->setMargin(marginHint());
TQGridLayout* messagesLayout = new TQGridLayout(m_awayMessageGBox->layout(), 1, 2, spacingHint()); TQGridLayout* messagesLayout = new TQGridLayout(m_awayMessageGBox->tqlayout(), 1, 2, spacingHint());
TQWhatsThis::add(m_awayMessageGBox, i18n("If you check this box, Konversation will automatically send the Away message to all channels joined with this Identity. <b>%s</b> is replaced with <b>msg</b>. Whenever you perform an <b>/away</b> command, the Return message will be displayed in all channels joined with this Identity.")); TQWhatsThis::add(m_awayMessageGBox, i18n("If you check this box, Konversation will automatically send the Away message to all channels joined with this Identity. <b>%s</b> is replaced with <b>msg</b>. Whenever you perform an <b>/away</b> command, the Return message will be displayed in all channels joined with this Identity."));

@ -145,7 +145,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="2" rowspan="3" colspan="1"> <widget class="TQLayoutWidget" row="0" column="2" rowspan="3" colspan="1">
<property name="name"> <property name="name">
<cstring>layout20</cstring> <cstring>tqlayout20</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -185,7 +185,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>40</height> <height>40</height>

@ -201,17 +201,17 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("CTCP"), server->appendMessageToFrontmost(i18n("CTCP"),
i18n("Received CTCP-PING request from %1 to channel %2, sending answer.") i18n("Received CTCP-PING request from %1 to channel %2, sending answer.")
.arg(sourceNick).arg(parameterList[0]) .tqarg(sourceNick).tqarg(parameterList[0])
); );
} }
else else
{ {
server->appendMessageToFrontmost(i18n("CTCP"), server->appendMessageToFrontmost(i18n("CTCP"),
i18n("Received CTCP-%1 request from %2, sending answer.") i18n("Received CTCP-%1 request from %2, sending answer.")
.arg("PING").arg(sourceNick) .tqarg("PING").tqarg(sourceNick)
); );
} }
server->ctcpReply(sourceNick,TQString("PING %1").arg(ctcpArgument)); server->ctcpReply(sourceNick,TQString("PING %1").tqarg(ctcpArgument));
} }
} }
@ -224,14 +224,14 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("CTCP"), server->appendMessageToFrontmost(i18n("CTCP"),
i18n("Received Version request from %1 to channel %2.") i18n("Received Version request from %1 to channel %2.")
.arg(sourceNick).arg(parameterList[0]) .tqarg(sourceNick).tqarg(parameterList[0])
); );
} }
else else
{ {
server->appendMessageToFrontmost(i18n("CTCP"), server->appendMessageToFrontmost(i18n("CTCP"),
i18n("Received Version request from %1.") i18n("Received Version request from %1.")
.arg(sourceNick) .tqarg(sourceNick)
); );
} }
@ -244,7 +244,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
// Do not internationalize the below version string // Do not internationalize the below version string
reply = TQString("Konversation %1 (C) 2002-2008 by the Konversation team") reply = TQString("Konversation %1 (C) 2002-2008 by the Konversation team")
.arg(TQString(KONVI_VERSION)); .tqarg(TQString(KONVI_VERSION));
} }
server->ctcpReply(sourceNick,"VERSION "+reply); server->ctcpReply(sourceNick,"VERSION "+reply);
} }
@ -298,7 +298,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("DCC"), server->appendMessageToFrontmost(i18n("DCC"),
i18n("Received invalid DCC SEND request from %1.") i18n("Received invalid DCC SEND request from %1.")
.arg(sourceNick) .tqarg(sourceNick)
); );
} }
} }
@ -313,7 +313,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("DCC"), server->appendMessageToFrontmost(i18n("DCC"),
i18n("Received invalid DCC ACCEPT request from %1.") i18n("Received invalid DCC ACCEPT request from %1.")
.arg(sourceNick) .tqarg(sourceNick)
); );
} }
} }
@ -328,7 +328,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("DCC"), server->appendMessageToFrontmost(i18n("DCC"),
i18n("Received invalid DCC RESUME request from %1.") i18n("Received invalid DCC RESUME request from %1.")
.arg(sourceNick) .tqarg(sourceNick)
); );
} }
} }
@ -344,7 +344,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("DCC"), server->appendMessageToFrontmost(i18n("DCC"),
i18n("Received invalid DCC CHAT request from %1.") i18n("Received invalid DCC CHAT request from %1.")
.arg(sourceNick) .tqarg(sourceNick)
); );
} }
} }
@ -352,7 +352,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("DCC"), server->appendMessageToFrontmost(i18n("DCC"),
i18n("Unknown DCC command %1 received from %2.") i18n("Unknown DCC command %1 received from %2.")
.arg(ctcpArgument).arg(sourceNick) .tqarg(ctcpArgument).tqarg(sourceNick)
); );
} }
} }
@ -361,7 +361,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("CTCP"), server->appendMessageToFrontmost(i18n("CTCP"),
i18n("Received CTCP-%1 request from %2, sending answer.") i18n("Received CTCP-%1 request from %2, sending answer.")
.arg("CLIENTINFO").arg(sourceNick) .tqarg("CLIENTINFO").tqarg(sourceNick)
); );
server->ctcpReply(sourceNick,TQString("CLIENTINFO ACTION CLIENTINFO DCC PING TIME VERSION")); server->ctcpReply(sourceNick,TQString("CLIENTINFO ACTION CLIENTINFO DCC PING TIME VERSION"));
} }
@ -369,9 +369,9 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("CTCP"), server->appendMessageToFrontmost(i18n("CTCP"),
i18n("Received CTCP-%1 request from %2, sending answer.") i18n("Received CTCP-%1 request from %2, sending answer.")
.arg("TIME").arg(sourceNick) .tqarg("TIME").tqarg(sourceNick)
); );
server->ctcpReply(sourceNick,TQString("TIME ")+TQDateTime::currentDateTime().toString()); server->ctcpReply(sourceNick,TQString("TIME ")+TQDateTime::tqcurrentDateTime().toString());
} }
// No known CTCP request, give a general message // No known CTCP request, give a general message
@ -384,12 +384,12 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
parameterList[0], parameterList[0],
"CTCP", "CTCP",
i18n("Received unknown CTCP-%1 request from %2 to Channel %3.") i18n("Received unknown CTCP-%1 request from %2 to Channel %3.")
.arg(ctcp).arg(sourceNick).arg(parameterList[0]) .tqarg(ctcp).tqarg(sourceNick).tqarg(parameterList[0])
); );
else else
server->appendMessageToFrontmost(i18n("CTCP"), server->appendMessageToFrontmost(i18n("CTCP"),
i18n("Received unknown CTCP-%1 request from %2.") i18n("Received unknown CTCP-%1 request from %2.")
.arg(ctcp).arg(sourceNick) .tqarg(ctcp).tqarg(sourceNick)
); );
} }
} }
@ -414,7 +414,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
server->appendServerMessageToChannel(parameterList[0], i18n("Notice"), server->appendServerMessageToChannel(parameterList[0], i18n("Notice"),
i18n("-%1 to %2- %3") i18n("-%1 to %2- %3")
.arg(sourceNick).arg(parameterList[0]).arg(trailing) .tqarg(sourceNick).tqarg(parameterList[0]).tqarg(trailing)
); );
} }
// Private notice // Private notice
@ -431,7 +431,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
// pong reply, calculate turnaround time // pong reply, calculate turnaround time
if(replyReason.lower()=="ping") if(replyReason.lower()=="ping")
{ {
int dateArrived=TQDateTime::currentDateTime().toTime_t(); int dateArrived=TQDateTime::tqcurrentDateTime().toTime_t();
int dateSent=reply.toInt(); int dateSent=reply.toInt();
int time = dateArrived-dateSent; int time = dateArrived-dateSent;
TQString unit = "seconds"; TQString unit = "seconds";
@ -441,9 +441,9 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
server->appendMessageToFrontmost(i18n("CTCP"), server->appendMessageToFrontmost(i18n("CTCP"),
i18n("Received CTCP-PING reply from %1: %2 %3.") i18n("Received CTCP-PING reply from %1: %2 %3.")
.arg(sourceNick) .tqarg(sourceNick)
.arg(time) .tqarg(time)
.arg(unit) .tqarg(unit)
); );
} }
// all other ctcp replies get a general message // all other ctcp replies get a general message
@ -451,7 +451,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("CTCP"), server->appendMessageToFrontmost(i18n("CTCP"),
i18n("Received CTCP-%1 reply from %2: %3.") i18n("Received CTCP-%1 reply from %2: %3.")
.arg(replyReason).arg(sourceNick).arg(reply) .tqarg(replyReason).tqarg(sourceNick).tqarg(reply)
); );
} }
} }
@ -474,7 +474,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
if(nickInfo) if(nickInfo)
nickInfo->setIdentified(true); nickInfo->setIdentified(true);
} }
server->appendMessageToFrontmost(i18n("Notice"), i18n("-%1- %2").arg(sourceNick).arg(trailing)); server->appendMessageToFrontmost(i18n("Notice"), i18n("-%1- %2").tqarg(sourceNick).tqarg(trailing));
} }
} }
} }
@ -608,7 +608,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
server->appendMessageToFrontmost(i18n("Invite"), server->appendMessageToFrontmost(i18n("Invite"),
i18n("%1 invited you to channel %2.") i18n("%1 invited you to channel %2.")
.arg(sourceNick).arg(channel) .tqarg(sourceNick).tqarg(channel)
); );
emit invitation(sourceNick,channel); emit invitation(sourceNick,channel);
} }
@ -668,7 +668,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
} }
else if(command=="notice") else if(command=="notice")
{ {
server->appendStatusMessage(i18n("Notice"),i18n("-%1- %2").arg(prefix).arg(trailing)); server->appendStatusMessage(i18n("Notice"),i18n("-%1- %2").tqarg(prefix).tqarg(trailing));
} }
else if(command=="kick") else if(command=="kick")
{ {
@ -714,10 +714,10 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
server->appendStatusMessage(i18n("Welcome"), server->appendStatusMessage(i18n("Welcome"),
i18n("Server %1 (Version %2), User modes: %3, Channel modes: %4") i18n("Server %1 (Version %2), User modes: %3, Channel modes: %4")
.arg(parameterList[1]) .tqarg(parameterList[1])
.arg(parameterList[2]) .tqarg(parameterList[2])
.arg(parameterList[3]) .tqarg(parameterList[3])
.arg(parameterList[4]) .tqarg(parameterList[4])
); );
server->setAllowedChannelModes(parameterList[4]); server->setAllowedChannelModes(parameterList[4]);
break; break;
@ -781,7 +781,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
} }
case RPL_UMODEIS: case RPL_UMODEIS:
{ {
TQString message=TQString("%1 %2").arg(i18n("Your personal modes are:")).arg(parameterList.join(" ").section(' ',1) + ' '+trailing); TQString message=TQString("%1 %2").tqarg(i18n("Your personal modes are:")).tqarg(parameterList.join(" ").section(' ',1) + ' '+trailing);
server->appendMessageToFrontmost("Info", message); server->appendMessageToFrontmost("Info", message);
break; break;
} }
@ -853,7 +853,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
case RPL_CHANNELURLIS: case RPL_CHANNELURLIS:
{// :niven.freenode.net 328 argonel #channel :http://www.buggeroff.com/ {// :niven.freenode.net 328 argonel #channel :http://www.buggeroff.com/
server->appendCommandMessageToChannel(parameterList[1], i18n("URL"), server->appendCommandMessageToChannel(parameterList[1], i18n("URL"),
i18n("Channel URL: %1").arg(trailing)); i18n("Channel URL: %1").tqarg(trailing));
break; break;
} }
case RPL_CHANNELCREATED: case RPL_CHANNELCREATED:
@ -862,7 +862,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
when.setTime_t(parameterList[2].toUInt()); when.setTime_t(parameterList[2].toUInt());
server->appendCommandMessageToChannel(parameterList[1],i18n("Created"), server->appendCommandMessageToChannel(parameterList[1],i18n("Created"),
i18n("This channel was created on %1.") i18n("This channel was created on %1.")
.arg(when.toString(Qt::LocalDate)) .tqarg(when.toString(Qt::LocalDate))
); );
if(Preferences::autoWhoContinuousEnabled()) if(Preferences::autoWhoContinuousEnabled())
@ -877,7 +877,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
// Display message only if this was not an automatic request. // Display message only if this was not an automatic request.
if(getAutomaticRequest("WHOIS",parameterList[1])==0) if(getAutomaticRequest("WHOIS",parameterList[1])==0)
{ {
server->appendMessageToFrontmost(i18n("Whois"),i18n("%1 is logged in as %2.").arg(parameterList[1]).arg(parameterList[2])); server->appendMessageToFrontmost(i18n("Whois"),i18n("%1 is logged in as %2.").tqarg(parameterList[1]).tqarg(parameterList[2]));
} }
break; break;
} }
@ -927,7 +927,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
// Topic set messages // Topic set messages
case RPL_NOTOPIC: case RPL_NOTOPIC:
{ {
server->appendMessageToFrontmost(i18n("TOPIC"),i18n("The channel %1 has no topic set.").arg(parameterList[1]) /*.arg(parameterList[2])*/); //FIXME ok, whats the second parameter supposed to be? server->appendMessageToFrontmost(i18n("TOPIC"),i18n("The channel %1 has no topic set.").tqarg(parameterList[1]) /*.tqarg(parameterList[2])*/); //FIXME ok, whats the second parameter supposed to be?
break; break;
} }
@ -946,7 +946,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
} }
else else
{ {
server->appendMessageToFrontmost(i18n("Topic"),i18n("The channel topic for %1 is: \"%2\"").arg(parameterList[1]).arg(topic)); server->appendMessageToFrontmost(i18n("Topic"),i18n("The channel topic for %1 is: \"%2\"").tqarg(parameterList[1]).tqarg(topic));
} }
break; break;
@ -962,15 +962,15 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
server->appendCommandMessageToChannel(parameterList[1],i18n("Topic"), server->appendCommandMessageToChannel(parameterList[1],i18n("Topic"),
i18n("The topic was set by %1 on %2.") i18n("The topic was set by %1 on %2.")
.arg(parameterList[2]).arg(when.toString(Qt::LocalDate)), .tqarg(parameterList[2]).tqarg(when.toString(Qt::LocalDate)),
false); false);
} }
else else
{ {
server->appendMessageToFrontmost(i18n("Topic"),i18n("The topic for %1 was set by %2 on %3.") server->appendMessageToFrontmost(i18n("Topic"),i18n("The topic for %1 was set by %2 on %3.")
.arg(parameterList[1]) .tqarg(parameterList[1])
.arg(parameterList[2]) .tqarg(parameterList[2])
.arg(when.toString(Qt::LocalDate)) .tqarg(when.toString(Qt::LocalDate))
); );
setAutomaticRequest("TOPIC",parameterList[1],false); setAutomaticRequest("TOPIC",parameterList[1],false);
} }
@ -983,7 +983,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
// Display message only if this was not an automatic request. // Display message only if this was not an automatic request.
if(getAutomaticRequest("WHOIS",parameterList[1])==0) if(getAutomaticRequest("WHOIS",parameterList[1])==0)
{ {
server->appendMessageToFrontmost(i18n("Whois"),i18n("%1 is actually using the host %2.").arg(parameterList[1]).arg(parameterList[2])); server->appendMessageToFrontmost(i18n("Whois"),i18n("%1 is actually using the host %2.").tqarg(parameterList[1]).tqarg(parameterList[2]));
} }
break; break;
} }
@ -993,11 +993,11 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
// IP resolve purposes, and clear it from the automaticRequest list // IP resolve purposes, and clear it from the automaticRequest list
if(getAutomaticRequest("DNS",parameterList[1])==0) if(getAutomaticRequest("DNS",parameterList[1])==0)
{ {
server->appendMessageToFrontmost(i18n("Error"),i18n("%1: No such nick/channel.").arg(parameterList[1])); server->appendMessageToFrontmost(i18n("Error"),i18n("%1: No such nick/channel.").tqarg(parameterList[1]));
} }
else if(getAutomaticRequest("WHOIS",parameterList[1])==0) //Display message only if this was not an automatic request. else if(getAutomaticRequest("WHOIS",parameterList[1])==0) //Display message only if this was not an automatic request.
{ {
server->appendMessageToFrontmost(i18n("Error"),i18n("No such nick: %1.").arg(parameterList[1])); server->appendMessageToFrontmost(i18n("Error"),i18n("No such nick: %1.").tqarg(parameterList[1]));
setAutomaticRequest("DNS", parameterList[1], false); setAutomaticRequest("DNS", parameterList[1], false);
} }
@ -1008,7 +1008,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
// Display message only if this was not an automatic request. // Display message only if this was not an automatic request.
if(getAutomaticRequest("WHOIS",parameterList[1])==0) if(getAutomaticRequest("WHOIS",parameterList[1])==0)
{ {
server->appendMessageToFrontmost(i18n("Error"),i18n("%1: No such channel.").arg(parameterList[1])); server->appendMessageToFrontmost(i18n("Error"),i18n("%1: No such channel.").tqarg(parameterList[1]));
} }
break; break;
} }
@ -1036,7 +1036,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
server->obtainNickInfo(server->getNickname()) ; server->obtainNickInfo(server->getNickname()) ;
server->renameNick(server->getNickname(), newNick); server->renameNick(server->getNickname(), newNick);
// Show message // Show message
server->appendMessageToFrontmost(i18n("Nick"), i18n("Nickname already in use. Trying %1.").arg(newNick)); server->appendMessageToFrontmost(i18n("Nick"), i18n("Nickname already in use. Trying %1.").tqarg(newNick));
// Send nickchange request to the server // Send nickchange request to the server
server->queue("NICK "+newNick); server->queue("NICK "+newNick);
} }
@ -1062,7 +1062,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
server->obtainNickInfo(server->getNickname()) ; server->obtainNickInfo(server->getNickname()) ;
server->renameNick(server->getNickname(), newNick); server->renameNick(server->getNickname(), newNick);
server->appendMessageToFrontmost(i18n("Nick"), i18n("Erroneus nickname. Changing nick to %1." ).arg(newNick)) ; server->appendMessageToFrontmost(i18n("Nick"), i18n("Erroneus nickname. Changing nick to %1." ).tqarg(newNick)) ;
server->queue("NICK "+newNick); server->queue("NICK "+newNick);
} }
} }
@ -1070,7 +1070,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
} }
case ERR_NOTONCHANNEL: case ERR_NOTONCHANNEL:
{ {
server->appendMessageToFrontmost(i18n("Error"),i18n("You are not on %1.").arg(parameterList[1])); server->appendMessageToFrontmost(i18n("Error"),i18n("You are not on %1.").tqarg(parameterList[1]));
break; break;
} }
@ -1115,14 +1115,14 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
TQString current(trailing.section(' ',3)); TQString current(trailing.section(' ',3));
//TQString max(trailing.section(' ',5,5)); //TQString max(trailing.section(' ',5,5));
server->appendStatusMessage(i18n("Users"),i18n("Current users on the network: %1").arg(current)); server->appendStatusMessage(i18n("Users"),i18n("Current users on the network: %1").tqarg(current));
break; break;
} }
case RPL_LOCALUSERS: // Current local users: 589 Max: 845 case RPL_LOCALUSERS: // Current local users: 589 Max: 845
{ {
TQString current(trailing.section(' ',3)); TQString current(trailing.section(' ',3));
//TQString max(trailing.section(' ',5,5)); //TQString max(trailing.section(' ',5,5));
server->appendStatusMessage(i18n("Users"),i18n("Current users on %1: %2.").arg(prefix).arg(current)); server->appendStatusMessage(i18n("Users"),i18n("Current users on %1: %2.").tqarg(prefix).tqarg(current));
break; break;
} }
case RPL_ISON: case RPL_ISON:
@ -1145,7 +1145,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
if(getAutomaticRequest("WHOIS",parameterList[1])==0) if(getAutomaticRequest("WHOIS",parameterList[1])==0)
{ {
server->appendMessageToFrontmost(i18n("Away"),i18n("%1 is away: %2") server->appendMessageToFrontmost(i18n("Away"),i18n("%1 is away: %2")
.arg(parameterList[1]).arg(trailing) .tqarg(parameterList[1]).tqarg(trailing)
); );
} }
@ -1155,7 +1155,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("Invite"), server->appendMessageToFrontmost(i18n("Invite"),
i18n("You invited %1 to channel %2.") i18n("You invited %1 to channel %2.")
.arg(parameterList[1]).arg(parameterList[2]) .tqarg(parameterList[1]).tqarg(parameterList[2])
); );
break; break;
} }
@ -1173,7 +1173,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
NickInfo* nickInfo = server->getNickInfo(parameterList[1]); NickInfo* nickInfo = server->getNickInfo(parameterList[1]);
if(nickInfo) if(nickInfo)
{ {
nickInfo->setHostmask(i18n("%1@%2").arg(parameterList[2]).arg(parameterList[3])); nickInfo->setHostmask(i18n("%1@%2").tqarg(parameterList[2]).tqarg(parameterList[3]));
nickInfo->setRealName(trailing); nickInfo->setRealName(trailing);
} }
// Display message only if this was not an automatic request. // Display message only if this was not an automatic request.
@ -1184,10 +1184,10 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
escapedRealName.replace("<","&lt;").replace(">","&gt;"); escapedRealName.replace("<","&lt;").replace(">","&gt;");
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 is %2@%3 (%4)") i18n("%1 is %2@%3 (%4)")
.arg(parameterList[1]) .tqarg(parameterList[1])
.arg(parameterList[2]) .tqarg(parameterList[2])
.arg(parameterList[3]) .tqarg(parameterList[3])
.arg(escapedRealName), false); // Don't parse any urls .tqarg(escapedRealName), false); // Don't parse any urls
} }
else else
{ {
@ -1200,17 +1200,17 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
TQString ip = resolved.first().address().nodeName(); TQString ip = resolved.first().address().nodeName();
server->appendMessageToFrontmost(i18n("DNS"), server->appendMessageToFrontmost(i18n("DNS"),
i18n("Resolved %1 (%2) to address: %3") i18n("Resolved %1 (%2) to address: %3")
.arg(parameterList[1]) .tqarg(parameterList[1])
.arg(parameterList[3]) .tqarg(parameterList[3])
.arg(ip) .tqarg(ip)
); );
} }
else else
{ {
server->appendMessageToFrontmost(i18n("Error"), server->appendMessageToFrontmost(i18n("Error"),
i18n("Unable to resolve address for %1 (%2)") i18n("Unable to resolve address for %1 (%2)")
.arg(parameterList[1]) .tqarg(parameterList[1])
.arg(parameterList[3]) .tqarg(parameterList[3])
); );
} }
@ -1235,7 +1235,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
// Prints "psn is an identified user" // Prints "psn is an identified user"
//server->appendStatusMessage(i18n("Whois"),parameterList.join(" ").section(' ',1)+' '+trailing); //server->appendStatusMessage(i18n("Whois"),parameterList.join(" ").section(' ',1)+' '+trailing);
// The above line works fine, but can't be i18n'ised. So use the below instead.. I hope this is okay. // The above line works fine, but can't be i18n'ised. So use the below instead.. I hope this is okay.
server->appendMessageToFrontmost(i18n("Whois"), i18n("%1 is an identified user.").arg(parameterList[1])); server->appendMessageToFrontmost(i18n("Whois"), i18n("%1 is an identified user.").tqarg(parameterList[1]));
} }
break; break;
} }
@ -1250,7 +1250,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
bool bAway = parameterList[6].upper().startsWith("G"); bool bAway = parameterList[6].upper().startsWith("G");
if(nickInfo) if(nickInfo)
{ {
nickInfo->setHostmask(i18n("%1@%2").arg(parameterList[2]).arg(parameterList[3])); nickInfo->setHostmask(i18n("%1@%2").tqarg(parameterList[2]).tqarg(parameterList[3]));
//Strip off the "0 " //Strip off the "0 "
nickInfo->setRealName(trailing.section(" ", 1)); nickInfo->setRealName(trailing.section(" ", 1));
nickInfo->setAway(bAway); nickInfo->setAway(bAway);
@ -1265,11 +1265,11 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
if(getAutomaticRequest("WHO",whoRequestList.front())==0) if(getAutomaticRequest("WHO",whoRequestList.front())==0)
{ {
server->appendMessageToFrontmost(i18n("Who"), server->appendMessageToFrontmost(i18n("Who"),
i18n("%1 is %2@%3 (%4)%5").arg(parameterList[5]) i18n("%1 is %2@%3 (%4)%5").tqarg(parameterList[5])
.arg(parameterList[2]) .tqarg(parameterList[2])
.arg(parameterList[3]) .tqarg(parameterList[3])
.arg(trailing.section(" ", 1)) .tqarg(trailing.section(" ", 1))
.arg(bAway?i18n(" (Away)"):TQString()) .tqarg(bAway?i18n(" (Away)"):TQString())
, false); // Don't parse as url , false); // Don't parse as url
} }
} }
@ -1287,7 +1287,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("Who"), server->appendMessageToFrontmost(i18n("Who"),
i18n("End of /WHO list for %1") i18n("End of /WHO list for %1")
.arg(parameterList[1])); .tqarg(parameterList[1]));
} }
else else
{ {
@ -1372,43 +1372,43 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 is a user on channels: %2") i18n("%1 is a user on channels: %2")
.arg(parameterList[1]) .tqarg(parameterList[1])
.arg(userChannels.join(" ")) .tqarg(userChannels.join(" "))
); );
} }
if(voiceChannels.count()) if(voiceChannels.count())
{ {
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 has voice on channels: %2") i18n("%1 has voice on channels: %2")
.arg(parameterList[1]).arg(voiceChannels.join(" ")) .tqarg(parameterList[1]).tqarg(voiceChannels.join(" "))
); );
} }
if(halfopChannels.count()) if(halfopChannels.count())
{ {
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 is a halfop on channels: %2") i18n("%1 is a halfop on channels: %2")
.arg(parameterList[1]).arg(halfopChannels.join(" ")) .tqarg(parameterList[1]).tqarg(halfopChannels.join(" "))
); );
} }
if(opChannels.count()) if(opChannels.count())
{ {
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 is an operator on channels: %2") i18n("%1 is an operator on channels: %2")
.arg(parameterList[1]).arg(opChannels.join(" ")) .tqarg(parameterList[1]).tqarg(opChannels.join(" "))
); );
} }
if(ownerChannels.count()) if(ownerChannels.count())
{ {
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 is owner of channels: %2") i18n("%1 is owner of channels: %2")
.arg(parameterList[1]).arg(ownerChannels.join(" ")) .tqarg(parameterList[1]).tqarg(ownerChannels.join(" "))
); );
} }
if(adminChannels.count()) if(adminChannels.count())
{ {
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 is admin on channels: %2") i18n("%1 is admin on channels: %2")
.arg(parameterList[1]).arg(adminChannels.join(" ")) .tqarg(parameterList[1]).tqarg(adminChannels.join(" "))
); );
} }
} }
@ -1430,8 +1430,8 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
if(getAutomaticRequest("WHOIS",parameterList[1])==0) if(getAutomaticRequest("WHOIS",parameterList[1])==0)
{ {
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 is online via %2 (%3).").arg(parameterList[1]) i18n("%1 is online via %2 (%3).").tqarg(parameterList[1])
.arg(parameterList[2]).arg(trailing) .tqarg(parameterList[2]).tqarg(trailing)
); );
} }
break; break;
@ -1443,7 +1443,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 is available for help.") i18n("%1 is available for help.")
.arg(parameterList[1]) .tqarg(parameterList[1])
); );
} }
break; break;
@ -1454,9 +1454,9 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
if(getAutomaticRequest("WHOIS",parameterList[1])==0) if(getAutomaticRequest("WHOIS",parameterList[1])==0)
{ {
if (trailing.lower().simplifyWhiteSpace().startsWith("is an irc operator")) if (trailing.lower().simplifyWhiteSpace().startsWith("is an irc operator"))
server->appendMessageToFrontmost(i18n("Whois"),i18n("%1 is an IRC Operator.").arg(parameterList[1])); server->appendMessageToFrontmost(i18n("Whois"),i18n("%1 is an IRC Operator.").tqarg(parameterList[1]));
else else
server->appendMessageToFrontmost(i18n("Whois"),TQString("%1 %2").arg(parameterList[1]).arg(trailing)); server->appendMessageToFrontmost(i18n("Whois"),TQString("%1 %2").tqarg(parameterList[1]).tqarg(trailing));
} }
break; break;
} }
@ -1482,8 +1482,8 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 = name of person, %2 = (x days), %3 = (x hours), %4 = (x minutes), %5 = (x seconds)", i18n("%1 = name of person, %2 = (x days), %3 = (x hours), %4 = (x minutes), %5 = (x seconds)",
"%1 has been idle for %2, %3, %4, and %5.") "%1 has been idle for %2, %3, %4, and %5.")
.arg(parameterList[1]) .tqarg(parameterList[1])
.arg(daysString).arg(hoursString).arg(minutesString).arg(secondsString) .tqarg(daysString).tqarg(hoursString).tqarg(minutesString).tqarg(secondsString)
); );
// or longer than an hour // or longer than an hour
} }
@ -1495,8 +1495,8 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 = name of person, %2 = (x hours), %3 = (x minutes), %4 = (x seconds)", i18n("%1 = name of person, %2 = (x hours), %3 = (x minutes), %4 = (x seconds)",
"%1 has been idle for %2, %3, and %4.") "%1 has been idle for %2, %3, and %4.")
.arg(parameterList[1]) .tqarg(parameterList[1])
.arg(hoursString).arg(minutesString).arg(secondsString) .tqarg(hoursString).tqarg(minutesString).tqarg(secondsString)
); );
// or longer than a minute // or longer than a minute
} }
@ -1507,8 +1507,8 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 = name of person, %2 = (x minutes), %3 = (x seconds)", i18n("%1 = name of person, %2 = (x minutes), %3 = (x seconds)",
"%1 has been idle for %2 and %3.") "%1 has been idle for %2 and %3.")
.arg(parameterList[1]) .tqarg(parameterList[1])
.arg(minutesString).arg(secondsString) .tqarg(minutesString).tqarg(secondsString)
); );
// or just some seconds // or just some seconds
} }
@ -1516,7 +1516,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 has been idle for 1 second.", "%1 has been idle for %n seconds.", seconds) i18n("%1 has been idle for 1 second.", "%1 has been idle for %n seconds.", seconds)
.arg(parameterList[1]) .tqarg(parameterList[1])
); );
} }
} }
@ -1535,7 +1535,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("Whois"), server->appendMessageToFrontmost(i18n("Whois"),
i18n("%1 has been online since %2.") i18n("%1 has been online since %2.")
.arg(parameterList[1]).arg(when.toString(Qt::LocalDate)) .tqarg(parameterList[1]).tqarg(when.toString(Qt::LocalDate))
); );
} }
} }
@ -1586,10 +1586,10 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
server->appendMessageToFrontmost(i18n("Userhost"), server->appendMessageToFrontmost(i18n("Userhost"),
i18n("%1 = nick, %2 = shows if nick is op, %3 = hostmask, %4 = shows away", "%1%2 is %3%4.") i18n("%1 = nick, %2 = shows if nick is op, %3 = hostmask, %4 = shows away", "%1%2 is %3%4.")
.arg(nick) .tqarg(nick)
.arg((ircOp) ? i18n(" (IRC Operator)") : TQString()) .tqarg((ircOp) ? i18n(" (IRC Operator)") : TQString())
.arg(mask) .tqarg(mask)
.arg((away) ? i18n(" (away)") : TQString())); .tqarg((away) ? i18n(" (away)") : TQString()));
} }
// was this an automatic request? // was this an automatic request?
@ -1614,7 +1614,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
TQString message; TQString message;
message=i18n("%1 (%n user): %2", "%1 (%n users): %2", parameterList[2].toInt()); message=i18n("%1 (%n user): %2", "%1 (%n users): %2", parameterList[2].toInt());
server->appendMessageToFrontmost(i18n("List"),message.arg(parameterList[1]).arg(trailing)); server->appendMessageToFrontmost(i18n("List"),message.tqarg(parameterList[1]).tqarg(trailing));
} }
else // send them to /LIST window else // send them to /LIST window
{ {
@ -1668,7 +1668,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
TQDateTime when; TQDateTime when;
when.setTime_t(parameterList[4].toUInt()); when.setTime_t(parameterList[4].toUInt());
server->appendMessageToFrontmost(i18n("BanList:%1").arg(parameterList[1]), i18n("BanList message: e.g. *!*@aol.com set by MrGrim on <date>", "%1 set by %2 on %3").arg(parameterList[2]).arg(parameterList[3].section('!', 0, 0)).arg(when.toString(Qt::LocalDate))); server->appendMessageToFrontmost(i18n("BanList:%1").tqarg(parameterList[1]), i18n("BanList message: e.g. *!*@aol.com set by MrGrim on <date>", "%1 set by %2 on %3").tqarg(parameterList[2]).tqarg(parameterList[3].section('!', 0, 0)).tqarg(when.toString(Qt::LocalDate)));
} }
break; break;
} }
@ -1678,7 +1678,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
{ {
setAutomaticRequest("BANLIST", parameterList[1], false); setAutomaticRequest("BANLIST", parameterList[1], false);
} else { } else {
server->appendMessageToFrontmost(i18n("BanList:%1").arg(parameterList[1]), i18n("End of Ban List.")); server->appendMessageToFrontmost(i18n("BanList:%1").tqarg(parameterList[1]), i18n("End of Ban List."));
} }
break; break;
} }
@ -1706,7 +1706,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
} }
case ERR_UNAVAILRESOURCE: case ERR_UNAVAILRESOURCE:
{ {
server->appendMessageToFrontmost(i18n("Error"),i18n("%1 is currently unavailable.").arg(parameterList[1])); server->appendMessageToFrontmost(i18n("Error"),i18n("%1 is currently unavailable.").tqarg(parameterList[1]));
break; break;
} }
@ -1722,7 +1722,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
} }
case ERR_UNKNOWNCOMMAND: case ERR_UNKNOWNCOMMAND:
{ {
server->appendMessageToFrontmost(i18n("Error"),i18n("%1: Unknown command.").arg(parameterList[1])); server->appendMessageToFrontmost(i18n("Error"),i18n("%1: Unknown command.").tqarg(parameterList[1]));
break; break;
} }
@ -1734,7 +1734,7 @@ void InputFilter::parseServerCommand(const TQString &prefix, const TQString &com
} }
case ERR_NEEDMOREPARAMS: case ERR_NEEDMOREPARAMS:
{ {
server->appendMessageToFrontmost(i18n("Error"),i18n("%1: This command requires more parameters.").arg(parameterList[1])); server->appendMessageToFrontmost(i18n("Error"),i18n("%1: This command requires more parameters.").tqarg(parameterList[1]));
break; break;
} }
@ -1776,7 +1776,7 @@ void InputFilter::parseModes(const TQString &sourceNick, const TQStringList &par
} }
else else
{ //XXX someone might care about the potentially unnecessary plural here { //XXX someone might care about the potentially unnecessary plural here
message = TQString("%1 %2 %3").arg(sourceNick).arg(i18n("has changed your personal modes:")).arg(modestring); message = TQString("%1 %2 %3").tqarg(sourceNick).tqarg(i18n("has changed your personal modes:")).tqarg(modestring);
} }
} }
if (!message.isEmpty()) if (!message.isEmpty())

@ -12,7 +12,7 @@
#include <tqglobal.h> #include <tqglobal.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <kcharsets.h> #include <kcharsets.h>
#include <kdebug.h> #include <kdebug.h>
#include <kglobal.h> #include <kglobal.h>
@ -130,7 +130,7 @@ namespace Konversation
// setup m_shortNameAliases // setup m_shortNameAliases
// use only [a-z0-9] for keys! // use only [a-z0-9] for keys!
m_shortNameAliases["unicode"] = "utf8"; m_shortNameAliases["tqunicode"] = "utf8";
m_shortNameAliases["latin1"] = "iso-8859-1"; m_shortNameAliases["latin1"] = "iso-8859-1";
// setup m_shortNames, m_descriptiveNames, m_simplifiedShortNames // setup m_shortNames, m_descriptiveNames, m_simplifiedShortNames

@ -32,7 +32,7 @@
<property name="text"> <property name="text">
<string>Preview</string> <string>Preview</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">

@ -19,7 +19,7 @@
#include "ircview.h" #include "ircview.h"
#include <tqrichtext_p.h> #include <tqrichtext_p.h>
#include <clipboard.h> #include <tqclipboard.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <tqdom.h> #include <tqdom.h>
#include <tqevent.h> #include <tqevent.h>
@ -61,7 +61,7 @@ IRCInput::IRCInput(TQWidget* parent) : KTextEdit(parent)
connect(completionBox, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(insertCompletion(const TQString&))); connect(completionBox, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(insertCompletion(const TQString&)));
// widget may not be resized vertically // widget may not be resized vertically
setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding,TQSizePolicy::Fixed)); tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding,TQSizePolicy::Fixed));
//NoWrap coupled with the size policy constrains the line edit to be one row high //NoWrap coupled with the size policy constrains the line edit to be one row high
setWordWrap(m_multiRow ? WidgetWidth : NoWrap); setWordWrap(m_multiRow ? WidgetWidth : NoWrap);
@ -130,7 +130,7 @@ void IRCInput::updateAppearance()
{ {
m_multiRow = Preferences::useMultiRowInputBox(); m_multiRow = Preferences::useMultiRowInputBox();
setWordWrap(m_multiRow ? WidgetWidth : NoWrap); setWordWrap(m_multiRow ? WidgetWidth : NoWrap);
m_lastHeight=heightForWidth(sizeHint().width()); m_lastHeight=heightForWidth(tqsizeHint().width());
ensureCursorVisible(); //appears to trigger updateGeometry ensureCursorVisible(); //appears to trigger updateGeometry
} }
@ -144,7 +144,7 @@ void IRCInput::resizeContents( int w, int h )
} }
// widget must be only one line high - luckily QT will enforce this via wrappping policy // widget must be only one line high - luckily QT will enforce this via wrappping policy
TQSize IRCInput::sizeHint() const TQSize IRCInput::tqsizeHint() const
{ {
constPolish(); constPolish();
@ -371,7 +371,7 @@ void IRCInput::paste(bool useSelection)
void IRCInput::paste() void IRCInput::paste()
{ {
TQClipboard *cb = KApplication::kApplication()->clipboard(); TQClipboard *cb = KApplication::kApplication()->tqclipboard();
setFocus(); setFocus();
// Copy text from the clipboard (paste) // Copy text from the clipboard (paste)
@ -476,7 +476,7 @@ bool IRCInput::checkPaste(TQString& text)
(this, (this,
i18n("<qt>You are attempting to paste a large portion of text (%1 bytes or %2 lines) into " i18n("<qt>You are attempting to paste a large portion of text (%1 bytes or %2 lines) into "
"the chat. This can cause connection resets or flood kills. " "the chat. This can cause connection resets or flood kills. "
"Do you really want to continue?</qt>").arg(text.length()).arg(lines+1), "Do you really want to continue?</qt>").tqarg(text.length()).tqarg(lines+1),
i18n("Large Paste Warning"), i18n("Large Paste Warning"),
i18n("Paste"), i18n("Paste"),
i18n("&Edit..."), i18n("&Edit..."),

@ -38,7 +38,7 @@ class IRCInput : public KTextEdit
int getOldCursorPosition(); int getOldCursorPosition();
TQString lastCompletion() const { return m_lastCompletion; } TQString lastCompletion() const { return m_lastCompletion; }
virtual TQSize sizeHint() const; virtual TQSize tqsizeHint() const;
TQString text() const; TQString text() const;
signals: signals:

@ -28,12 +28,12 @@
#include "notificationhandler.h" #include "notificationhandler.h"
#include <tqrichtext_p.h> #include <tqrichtext_p.h>
#include <stylesheet.h> #include <tqstylesheet.h>
#include <tqstringlist.h> #include <tqstringlist.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <textbrowser.h> #include <tqtextbrowser.h>
#include <clipboard.h> #include <tqclipboard.h>
#include <brush.h> #include <tqbrush.h>
#include <tqevent.h> #include <tqevent.h>
#include <tqdragobject.h> #include <tqdragobject.h>
#include <tqpopupmenu.h> #include <tqpopupmenu.h>
@ -267,7 +267,7 @@ void IRCView::highlightedSlot(const TQString& _link)
m_currentNick = link.mid(1); m_currentNick = link.mid(1);
m_nickPopup->changeTitle(m_nickPopupId,m_currentNick); m_nickPopup->changeTitle(m_nickPopupId,m_currentNick);
m_isOnNick = true; m_isOnNick = true;
emit setStatusBarTempText(i18n("Open a query with %1").arg(m_currentNick)); emit setStatusBarTempText(i18n("Open a query with %1").tqarg(m_currentNick));
} }
else else
{ {
@ -284,7 +284,7 @@ void IRCView::highlightedSlot(const TQString& _link)
m_channelPopup->changeTitle(m_channelPopupId,prettyId); m_channelPopup->changeTitle(m_channelPopupId,prettyId);
m_isOnChannel = true; m_isOnChannel = true;
emit setStatusBarTempText(i18n("Join the channel %1").arg(m_currentChannel)); emit setStatusBarTempText(i18n("Join the channel %1").tqarg(m_currentChannel));
} }
} }
@ -353,7 +353,7 @@ void IRCView::replaceDecoration(TQString& line, char decoration, char replacemen
while((pos=line.find(decoration))!=-1) while((pos=line.find(decoration))!=-1)
{ {
line.replace(pos,1,(decorated) ? TQString("</%1>").arg(replacement) : TQString("<%1>").arg(replacement)); line.replace(pos,1,(decorated) ? TQString("</%1>").tqarg(replacement) : TQString("<%1>").tqarg(replacement));
decorated = !decorated; decorated = !decorated;
} }
} }
@ -532,7 +532,7 @@ bool doHighlight, bool parseURL, bool self)
(whoSent.find(needleReg) != -1)); (whoSent.find(needleReg) != -1));
// remember captured patterns for later // remember captured patterns for later
captures=needleReg.capturedTexts(); captures=needleReg.tqcapturedTexts();
} }
else else
@ -573,7 +573,7 @@ bool doHighlight, bool parseURL, bool self)
// replace %0 - %9 in regex groups // replace %0 - %9 in regex groups
for(unsigned int capture=0;capture<captures.count();capture++) for(unsigned int capture=0;capture<captures.count();capture++)
{ {
m_autoTextToSend.replace(TQString("%%1").arg(capture),captures[capture]); m_autoTextToSend.replace(TQString("%%1").tqarg(capture),captures[capture]);
} }
m_autoTextToSend.replace(TQRegExp("%[0-9]"),TQString()); m_autoTextToSend.replace(TQRegExp("%[0-9]"),TQString());
} }
@ -645,7 +645,7 @@ TQString IRCView::createNickLine(const TQString& nick, bool encapsulateNick, boo
for (uint index = 0; index < nick.length(); index++) for (uint index = 0; index < nick.length(); index++)
{ {
nickvalue += nick[index].unicode(); nickvalue += nick[index].tqunicode();
} }
nickColor = Preferences::nickColor((nickvalue % 8)).name(); nickColor = Preferences::nickColor((nickvalue % 8)).name();
@ -692,9 +692,9 @@ void IRCView::append(const TQString& nick,const TQString& message)
line = "<p><font color=\"" + channelColor + "\">%1" + nickLine + " %3</font></p>\n"; line = "<p><font color=\"" + channelColor + "\">%1" + nickLine + " %3</font></p>\n";
} }
line = line.arg(timeStamp(), nick, filter(message, channelColor, nick, true)); line = line.tqarg(timeStamp(), nick, filter(message, channelColor, nick, true));
emit textToLog(TQString("<%1>\t%2").arg(nick).arg(message)); emit textToLog(TQString("<%1>\t%2").tqarg(nick).tqarg(message));
doAppend(line); doAppend(line);
} }
@ -874,9 +874,9 @@ void IRCView::appendQuery(const TQString& nick, const TQString& message, bool in
line = "<p><font color=\"" + queryColor + "\">%1 " + nickLine + " %3</font></p>\n"; line = "<p><font color=\"" + queryColor + "\">%1 " + nickLine + " %3</font></p>\n";
} }
line = line.arg(timeStamp(), nick, filter(message, queryColor, nick, true)); line = line.tqarg(timeStamp(), nick, filter(message, queryColor, nick, true));
emit textToLog(TQString("<%1>\t%2").arg(nick).arg(message)); emit textToLog(TQString("<%1>\t%2").tqarg(nick).tqarg(message));
doAppend(line); doAppend(line);
} }
@ -917,9 +917,9 @@ void IRCView::appendAction(const TQString& nick,const TQString& message)
line = "<p><font color=\"" + actionColor + "\">%1 * " + nickLine + " %3</font></p>\n"; line = "<p><font color=\"" + actionColor + "\">%1 * " + nickLine + " %3</font></p>\n";
} }
line = line.arg(timeStamp(), nick, filter(message, actionColor, nick, true)); line = line.tqarg(timeStamp(), nick, filter(message, actionColor, nick, true));
emit textToLog(TQString("\t * %1 %2").arg(nick).arg(message)); emit textToLog(TQString("\t * %1 %2").tqarg(nick).tqarg(message));
doAppend(line); doAppend(line);
} }
@ -951,11 +951,11 @@ void IRCView::appendServerMessage(const TQString& type, const TQString& message,
} }
if(type != i18n("Notify")) if(type != i18n("Notify"))
line = line.arg(timeStamp(), type, filter(message, serverColor, 0 , true, parseURL)); line = line.tqarg(timeStamp(), type, filter(message, serverColor, 0 , true, parseURL));
else else
line = "<font color=\"" + serverColor + "\">"+line.arg(timeStamp(), type, message)+"</font>"; line = "<font color=\"" + serverColor + "\">"+line.tqarg(timeStamp(), type, message)+"</font>";
emit textToLog(TQString("%1\t%2").arg(type).arg(message)); emit textToLog(TQString("%1\t%2").tqarg(type).tqarg(message));
doAppend(line); doAppend(line);
} }
@ -993,9 +993,9 @@ void IRCView::appendCommandMessage(const TQString& type,const TQString& message,
line = "<p><font color=\"" + commandColor + "\">%1 %2 %3</font></p>\n"; line = "<p><font color=\"" + commandColor + "\">%1 %2 %3</font></p>\n";
} }
line = line.arg(timeStamp(), prefix, filter(message, commandColor, 0, true, parseURL, self)); line = line.tqarg(timeStamp(), prefix, filter(message, commandColor, 0, true, parseURL, self));
emit textToLog(TQString("%1\t%2").arg(type).arg(message)); emit textToLog(TQString("%1\t%2").tqarg(type).tqarg(message));
doAppend(line, self); doAppend(line, self);
} }
@ -1031,7 +1031,7 @@ void IRCView::appendBacklogMessage(const TQString& firstColumn,const TQString& r
line = "<p><font color=\"" + backlogColor + "\">%1 %2 %3</font></p>\n"; line = "<p><font color=\"" + backlogColor + "\">%1 %2 %3</font></p>\n";
} }
line = line.arg(time, nick, filter(message, backlogColor, NULL, false, false)); line = line.tqarg(time, nick, filter(message, backlogColor, NULL, false, false));
doAppend(line); doAppend(line);
} }
@ -1251,7 +1251,7 @@ void IRCView::contentsMouseMoveEvent(TQMouseEvent* ev)
if (m_server && m_urlToDrag.startsWith("##")) if (m_server && m_urlToDrag.startsWith("##"))
{ {
//FIXME consistent IRC URL serialization //FIXME consistent IRC URL serialization
ux = TQString("irc://%1:%2/%3").arg(m_server->getServerName()).arg(m_server->getPort()).arg(m_urlToDrag.mid(2)); ux = TQString("irc://%1:%2/%3").tqarg(m_server->getServerName()).tqarg(m_server->getPort()).tqarg(m_urlToDrag.mid(2));
} }
else if (m_urlToDrag.startsWith("#")) else if (m_urlToDrag.startsWith("#"))
{ {
@ -1344,7 +1344,7 @@ bool IRCView::contextMenu(TQContextMenuEvent* ce)
break; break;
case CopyUrl: case CopyUrl:
{ {
TQClipboard *cb = KApplication::kApplication()->clipboard(); TQClipboard *cb = KApplication::kApplication()->tqclipboard();
cb->setText(m_urlToCopy,TQClipboard::Selection); cb->setText(m_urlToCopy,TQClipboard::Selection);
cb->setText(m_urlToCopy,TQClipboard::Clipboard); cb->setText(m_urlToCopy,TQClipboard::Clipboard);
break; break;
@ -1545,7 +1545,7 @@ void IRCView::searchAgain()
if(!find(m_pattern, m_caseSensitive, m_wholeWords, m_forward, &m_findParagraph, &m_findIndex)) if(!find(m_pattern, m_caseSensitive, m_wholeWords, m_forward, &m_findParagraph, &m_findIndex))
{ {
KMessageBox::information(this,i18n("No matches found for \"%1\".").arg(m_pattern),i18n("Information")); KMessageBox::information(this,i18n("No matches found for \"%1\".").tqarg(m_pattern),i18n("Information"));
} }
} }
@ -1621,8 +1621,8 @@ TQPopupMenu* IRCView::getPopup() const
} }
// for more information about these RTFM // for more information about these RTFM
// http://www.unicode.org/reports/tr9/ // http://www.tqunicode.org/reports/tr9/
// http://www.w3.org/TR/unicode-xml/ // http://www.w3.org/TR/tqunicode-xml/
TQChar IRCView::LRM = (ushort)0x200e; // Right-to-Left Mark TQChar IRCView::LRM = (ushort)0x200e; // Right-to-Left Mark
TQChar IRCView::RLM = (ushort)0x200f; // Left-to-Right Mark TQChar IRCView::RLM = (ushort)0x200f; // Left-to-Right Mark
TQChar IRCView::LRE = (ushort)0x202a; // Left-to-Right Embedding TQChar IRCView::LRE = (ushort)0x202a; // Left-to-Right Embedding
@ -1705,14 +1705,14 @@ TQString IRCView::timeStamp()
if(!Preferences::showDate()) if(!Preferences::showDate())
{ {
timeString = TQString("<font color=\"" + timeColor + "\">[%1]</font> ").arg(time.toString(timeFormat)); timeString = TQString("<font color=\"" + timeColor + "\">[%1]</font> ").tqarg(time.toString(timeFormat));
} }
else else
{ {
TQDate date = TQDate::currentDate(); TQDate date = TQDate::tqcurrentDate();
timeString = TQString("<font color=\"" + timeString = TQString("<font color=\"" +
timeColor + "\">[%1 %2]</font> ") timeColor + "\">[%1 %2]</font> ")
.arg(KGlobal::locale()->formatDate(date, true /*short format*/), .tqarg(KGlobal::locale()->formatDate(date, true /*short format*/),
time.toString(timeFormat)); time.toString(timeFormat));
} }

@ -84,14 +84,14 @@ void IRCViewBox::searchNext(bool reversed)
if (match) if (match)
{ {
m_searchBar->setHasMatch(true); m_searchBar->setHasMatch(true);
m_searchBar->setStatus(TQPixmap(), ""); m_searchBar->settqStatus(TQPixmap(), "");
return; return;
} }
if (!m_matchedOnce) if (!m_matchedOnce)
{ {
m_searchBar->setHasMatch(false); m_searchBar->setHasMatch(false);
m_searchBar->setStatus(getIcon("messagebox_warning"), m_searchBar->settqStatus(getIcon("messagebox_warning"),
i18n("Phrase not found")); i18n("Phrase not found"));
return; return;
} }
@ -105,13 +105,13 @@ void IRCViewBox::searchNext(bool reversed)
if (!match) if (!match)
{ {
m_searchBar->setHasMatch(false); m_searchBar->setHasMatch(false);
m_searchBar->setStatus(getIcon("messagebox_warning"), m_searchBar->settqStatus(getIcon("messagebox_warning"),
i18n("Phrase not found")); i18n("Phrase not found"));
return; return;
} }
m_searchBar->setHasMatch(true); m_searchBar->setHasMatch(true);
m_searchBar->setStatus(getIcon("messagebox_info"), m_searchBar->settqStatus(getIcon("messagebox_info"),
i18n("Wrapped search")); i18n("Wrapped search"));
} }
@ -126,12 +126,12 @@ void IRCViewBox::slotSearchChanged(const TQString& pattern)
if (match) if (match)
{ {
m_searchBar->setHasMatch(true); m_searchBar->setHasMatch(true);
m_searchBar->setStatus(TQPixmap(), ""); m_searchBar->settqStatus(TQPixmap(), "");
} }
else else
{ {
m_searchBar->setHasMatch(false); m_searchBar->setHasMatch(false);
m_searchBar->setStatus(getIcon("messagebox_warning"), m_searchBar->settqStatus(getIcon("messagebox_warning"),
i18n("Phrase not found")); i18n("Phrase not found"));
} }

@ -26,7 +26,7 @@ namespace Konversation
{ {
JoinChannelDialog::JoinChannelDialog(Server* server, TQWidget *parent, const char *name) JoinChannelDialog::JoinChannelDialog(Server* server, TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n("Join Channel on %1").arg(server->getDisplayName()), Ok|Cancel, Ok) : KDialogBase(parent, name, true, i18n("Join Channel on %1").tqarg(server->getDisplayName()), Ok|Cancel, Ok)
{ {
m_server = server; m_server = server;
m_widget = new JoinChannelUI(this); m_widget = new JoinChannelUI(this);

@ -128,13 +128,13 @@ void KonvDCOP::info(const TQString& string)
void KonvDCOP::debug(const TQString& string) void KonvDCOP::debug(const TQString& string)
{ {
kdDebug() << "KonvDCOP::debug()" << endl; kdDebug() << "KonvDCOP::debug()" << endl;
emit dcopInfo(TQString("Debug: %1").arg(string)); emit dcopInfo(TQString("Debug: %1").tqarg(string));
} }
void KonvDCOP::error(const TQString& string) void KonvDCOP::error(const TQString& string)
{ {
kdDebug() << "KonvDCOP::error()" << endl; kdDebug() << "KonvDCOP::error()" << endl;
emit dcopInfo(TQString("Error: %1").arg(string)); emit dcopInfo(TQString("Error: %1").tqarg(string));
} }
void KonvDCOP::insertMarkerLine() void KonvDCOP::insertMarkerLine()
@ -153,7 +153,7 @@ TQString KonvDCOP::getNickname(const TQString& serverName)
if (!server) if (!server)
{ {
error( i18n( "getNickname: Server %1 is not found." ).arg( serverName ) ); error( i18n( "getNickname: Server %1 is not found." ).tqarg( serverName ) );
return TQString(); return TQString();
} }

@ -31,7 +31,7 @@
#include "commit.h" #include "commit.h"
#include "version.h" #include "version.h"
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <tqfileinfo.h> #include <tqfileinfo.h>
@ -343,7 +343,7 @@ void KonversationApplication::readOptions()
osd->setShadow(Preferences::oSDDrawShadow()); osd->setShadow(Preferences::oSDDrawShadow());
osd->setOffset(Preferences::oSDOffsetX(), Preferences::oSDOffsetY()); osd->setOffset(Preferences::oSDOffsetX(), Preferences::oSDOffsetY());
osd->setAlignment((OSDWidget::Alignment)Preferences::oSDAlignment()); osd->tqsetAlignment((OSDWidget::Alignment)Preferences::oSDAlignment());
if(Preferences::oSDUseCustomColors()) if(Preferences::oSDUseCustomColors())
{ {
@ -446,9 +446,9 @@ void KonversationApplication::readOptions()
TQStringList buttonList(Preferences::quickButtonList()); TQStringList buttonList(Preferences::quickButtonList());
// Read all quick buttons // Read all quick buttons
int index=0; int index=0;
while(config->hasKey(TQString("Button%1").arg(index))) while(config->hasKey(TQString("Button%1").tqarg(index)))
{ {
buttonList.append(config->readEntry(TQString("Button%1").arg(index++))); buttonList.append(config->readEntry(TQString("Button%1").tqarg(index++)));
} // while } // while
// Put back the changed button list // Put back the changed button list
Preferences::setQuickButtonList(buttonList); Preferences::setQuickButtonList(buttonList);
@ -462,10 +462,10 @@ void KonversationApplication::readOptions()
TQStringList autoreplaceList(Preferences::autoreplaceList()); TQStringList autoreplaceList(Preferences::autoreplaceList());
// Read all entries // Read all entries
index=0; index=0;
while(config->hasKey(TQString("Autoreplace%1").arg(index))) while(config->hasKey(TQString("Autoreplace%1").tqarg(index)))
{ {
// read entry and get length of the string // read entry and get length of the string
TQString entry=config->readEntry(TQString("Autoreplace%1").arg(index++)); TQString entry=config->readEntry(TQString("Autoreplace%1").tqarg(index++));
unsigned int length=entry.length()-1; unsigned int length=entry.length()-1;
// if there's a "#" in the end, strip it (used to preserve blanks at the end of the replacement text) // if there's a "#" in the end, strip it (used to preserve blanks at the end of the replacement text)
// there should always be one, but older versions did not do it, so we check first // there should always be one, but older versions did not do it, so we check first
@ -494,9 +494,9 @@ void KonversationApplication::readOptions()
{ {
int i = 0; int i = 0;
while(config->hasGroup(TQString("Highlight%1").arg(i))) while(config->hasGroup(TQString("Highlight%1").tqarg(i)))
{ {
config->setGroup(TQString("Highlight%1").arg(i)); config->setGroup(TQString("Highlight%1").tqarg(i));
Preferences::addHighlight(config->readEntry("Pattern"), Preferences::addHighlight(config->readEntry("Pattern"),
config->readBoolEntry("RegExp"), config->readBoolEntry("RegExp"),
config->readColorEntry("Color"), config->readColorEntry("Color"),
@ -512,9 +512,9 @@ void KonversationApplication::readOptions()
if(config->hasKey("Ignore0")) Preferences::clearIgnoreList(); if(config->hasKey("Ignore0")) Preferences::clearIgnoreList();
// Read all ignores // Read all ignores
index=0; index=0;
while(config->hasKey(TQString("Ignore%1").arg(index))) while(config->hasKey(TQString("Ignore%1").tqarg(index)))
{ {
Preferences::addIgnore(config->readEntry(TQString("Ignore%1").arg(index++))); Preferences::addIgnore(config->readEntry(TQString("Ignore%1").tqarg(index++)));
} }
// Aliases // Aliases
@ -563,7 +563,7 @@ void KonversationApplication::saveOptions(bool updateGUI)
for(IdentityList::ConstIterator it = identityList.begin(); it != identityList.end(); ++it) for(IdentityList::ConstIterator it = identityList.begin(); it != identityList.end(); ++it)
{ {
IdentityPtr identity = (*it); IdentityPtr identity = (*it);
config->setGroup(TQString("Identity %1").arg(index)); config->setGroup(TQString("Identity %1").tqarg(index));
config->writeEntry("Name",identity->getName()); config->writeEntry("Name",identity->getName());
config->writeEntry("Ident",identity->getIdent()); config->writeEntry("Ident",identity->getIdent());
@ -643,7 +643,7 @@ void KonversationApplication::saveOptions(bool updateGUI)
for(it2 = serverlist.begin(); it2 != serverlist.end(); ++it2) for(it2 = serverlist.begin(); it2 != serverlist.end(); ++it2)
{ {
groupName = TQString("Server %1").arg(index2); groupName = TQString("Server %1").tqarg(index2);
servers.append(groupName); servers.append(groupName);
config->setGroup(groupName); config->setGroup(groupName);
config->writeEntry("Server", (*it2).host()); config->writeEntry("Server", (*it2).host());
@ -658,7 +658,7 @@ void KonversationApplication::saveOptions(bool updateGUI)
for(it3 = channelList.begin(); it3 != channelList.end(); ++it3) for(it3 = channelList.begin(); it3 != channelList.end(); ++it3)
{ {
groupName = TQString("Channel %1").arg(index3); groupName = TQString("Channel %1").tqarg(index3);
channels.append(groupName); channels.append(groupName);
config->setGroup(groupName); config->setGroup(groupName);
config->writeEntry("Name", (*it3).name()); config->writeEntry("Name", (*it3).name());
@ -671,7 +671,7 @@ void KonversationApplication::saveOptions(bool updateGUI)
for(it3 = channelList.begin(); it3 != channelList.end(); ++it3) for(it3 = channelList.begin(); it3 != channelList.end(); ++it3)
{ {
groupName = TQString("Channel %1").arg(index3); groupName = TQString("Channel %1").tqarg(index3);
channelHistory.append(groupName); channelHistory.append(groupName);
config->setGroup(groupName); config->setGroup(groupName);
config->writeEntry("Name", (*it3).name()); config->writeEntry("Name", (*it3).name());
@ -680,7 +680,7 @@ void KonversationApplication::saveOptions(bool updateGUI)
index3++; index3++;
} }
config->setGroup(TQString("ServerGroup %1").arg(TQString::number(index).rightJustify(width,'0'))); config->setGroup(TQString("ServerGroup %1").tqarg(TQString::number(index).rightJustify(width,'0')));
config->writeEntry("Name", (*it)->name()); config->writeEntry("Name", (*it)->name());
config->writeEntry("Identity", (*it)->identity()->getName()); config->writeEntry("Identity", (*it)->identity()->getName());
config->writeEntry("ServerList", servers); config->writeEntry("ServerList", servers);
@ -704,7 +704,7 @@ void KonversationApplication::saveOptions(bool updateGUI)
index=0; index=0;
while(item) while(item)
{ {
config->writeEntry(TQString("Ignore%1").arg(index),TQString("%1,%2").arg(item->getName()).arg(item->getFlags())); config->writeEntry(TQString("Ignore%1").tqarg(index),TQString("%1,%2").tqarg(item->getName()).tqarg(item->getFlags()));
item=ignoreList.next(); item=ignoreList.next();
index++; index++;
} }
@ -856,12 +856,12 @@ TQString KonversationApplication::doAutoreplace(const TQString& text,bool output
if(index != -1) if(index != -1)
{ {
// remember captured patterns // remember captured patterns
TQStringList captures = needleReg.capturedTexts(); TQStringList captures = needleReg.tqcapturedTexts();
// replace %0 - %9 in regex groups // replace %0 - %9 in regex groups
for(unsigned int capture=0;capture<captures.count();capture++) for(unsigned int capture=0;capture<captures.count();capture++)
{ {
replacement.replace(TQString("%%1").arg(capture),captures[capture]); replacement.replace(TQString("%%1").tqarg(capture),captures[capture]);
} }
replacement.replace(TQRegExp("%[0-9]"),TQString()); replacement.replace(TQRegExp("%[0-9]"),TQString());
// replace input with replacement // replace input with replacement

@ -89,7 +89,7 @@ class KonversationApplication : public KUniqueApplication
static KonversationApplication* instance(); static KonversationApplication* instance();
/** For dcop and addressbook, a user can be specified as user@irc.server.net /** For dcop and addressbook, a user can be specified as user@irc.server.net
* or user\@servergroup or using the unicode separator symbol 0xE120 instead * or user\@servergroup or using the tqunicode separator symbol 0xE120 instead
* of the "@". This function takes a string like the above examples, and * of the "@". This function takes a string like the above examples, and
* modifies ircnick and serverOrGroup to contain the split up string. If * modifies ircnick and serverOrGroup to contain the split up string. If
* the string doesn't have an @ or 0xE120, ircnick is set to the * the string doesn't have an @ or 0xE120, ircnick is set to the

@ -246,8 +246,8 @@ KonversationMainWindow::KonversationMainWindow() : KMainWindow(0,"main_window",
for (uint i = 1; i <= 10; ++i) for (uint i = 1; i <= 10; ++i)
{ {
KAction* tabSelectionAction = new KAction(i18n("Go to Tab %1").arg(i), 0, KShortcut(TQString("Alt+%1").arg(i%10)), KAction* tabSelectionAction = new KAction(i18n("Go to Tab %1").tqarg(i), 0, KShortcut(TQString("Alt+%1").tqarg(i%10)),
tabSelectionMapper, TQT_SLOT(map()), actionCollection(), TQString("go_to_tab_%1").arg(i).local8Bit()); tabSelectionMapper, TQT_SLOT(map()), actionCollection(), TQString("go_to_tab_%1").tqarg(i).local8Bit());
tabSelectionMapper->setMapping( tabSelectionAction, i-1); tabSelectionMapper->setMapping( tabSelectionAction, i-1);
} }
@ -487,7 +487,7 @@ void KonversationMainWindow::toggleMenubar(bool dontShowWarning)
{ {
TQString accel = hideMenuBarAction->shortcut().toString(); TQString accel = hideMenuBarAction->shortcut().toString();
KMessageBox::information(this, KMessageBox::information(this,
i18n("<qt>This will hide the menu bar completely. You can show it again by typing %1.</qt>").arg(accel), i18n("<qt>This will hide the menu bar completely. You can show it again by typing %1.</qt>").tqarg(accel),
"Hide menu bar","HideMenuBarWarning"); "Hide menu bar","HideMenuBarWarning");
} }
menuBar()->hide(); menuBar()->hide();

@ -33,7 +33,7 @@ KonversationStatusBar::KonversationStatusBar(KonversationMainWindow* window)
m_mainLabel = new KSqueezedTextLabel(m_window->statusBar(),"mainLabel"); m_mainLabel = new KSqueezedTextLabel(m_window->statusBar(),"mainLabel");
setMainLabelText(i18n("Ready.")); setMainLabelText(i18n("Ready."));
m_mainLabel->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); m_mainLabel->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed));
m_mainLabel->setMinimumWidth(0); m_mainLabel->setMinimumWidth(0);
// KSqueezedLabel calculates the wrong height. Popular workaround. // KSqueezedLabel calculates the wrong height. Popular workaround.
@ -148,9 +148,9 @@ void KonversationStatusBar::updateLagLabel(Server* lagServer, int msec)
if (msec == -1) if (msec == -1)
lagString += i18n("Lag: Unknown"); lagString += i18n("Lag: Unknown");
else if (msec < 1000) else if (msec < 1000)
lagString += i18n("Lag: %1 ms").arg(msec); lagString += i18n("Lag: %1 ms").tqarg(msec);
else else
lagString += i18n("Lag: %1 s").arg(msec / 1000); lagString += i18n("Lag: %1 s").tqarg(msec / 1000);
m_lagLabel->setText(lagString); m_lagLabel->setText(lagString);
@ -179,8 +179,8 @@ void KonversationStatusBar::setTooLongLag(Server* lagServer, int msec)
const TQString hoursString = i18n("1 hour", "%n hours", (hours % 24)); const TQString hoursString = i18n("1 hour", "%n hours", (hours % 24));
const TQString minutesString = i18n("1 minute", "%n minutes", (minutes % 60)); const TQString minutesString = i18n("1 minute", "%n minutes", (minutes % 60));
const TQString secondsString = i18n("1 second", "%n seconds", (seconds % 60)); const TQString secondsString = i18n("1 second", "%n seconds", (seconds % 60));
lagString = i18n("%1 = name of server, %2 = (x days), %3 = (x hours), %4 = (x minutes), %5 = (x seconds)", "No answer from server %1 for more than %2, %3, %4, and %5.").arg(lagServer->getServerName()) lagString = i18n("%1 = name of server, %2 = (x days), %3 = (x hours), %4 = (x minutes), %5 = (x seconds)", "No answer from server %1 for more than %2, %3, %4, and %5.").tqarg(lagServer->getServerName())
.arg(daysString).arg(hoursString).arg(minutesString).arg(secondsString); .tqarg(daysString).tqarg(hoursString).tqarg(minutesString).tqarg(secondsString);
// or longer than an hour // or longer than an hour
} }
else if (hours) else if (hours)
@ -188,21 +188,21 @@ void KonversationStatusBar::setTooLongLag(Server* lagServer, int msec)
const TQString hoursString = i18n("1 hour", "%n hours", hours); const TQString hoursString = i18n("1 hour", "%n hours", hours);
const TQString minutesString = i18n("1 minute", "%n minutes", (minutes % 60)); const TQString minutesString = i18n("1 minute", "%n minutes", (minutes % 60));
const TQString secondsString = i18n("1 second", "%n seconds", (seconds % 60)); const TQString secondsString = i18n("1 second", "%n seconds", (seconds % 60));
lagString = i18n("%1 = name of server, %2 = (x hours), %3 = (x minutes), %4 = (x seconds)", "No answer from server %1 for more than %2, %3, and %4.").arg(lagServer->getServerName()) lagString = i18n("%1 = name of server, %2 = (x hours), %3 = (x minutes), %4 = (x seconds)", "No answer from server %1 for more than %2, %3, and %4.").tqarg(lagServer->getServerName())
.arg(hoursString).arg(minutesString).arg(secondsString); .tqarg(hoursString).tqarg(minutesString).tqarg(secondsString);
// or longer than a minute // or longer than a minute
} }
else if (minutes) else if (minutes)
{ {
const TQString minutesString = i18n("1 minute", "%n minutes", minutes); const TQString minutesString = i18n("1 minute", "%n minutes", minutes);
const TQString secondsString = i18n("1 second", "%n seconds", (seconds % 60)); const TQString secondsString = i18n("1 second", "%n seconds", (seconds % 60));
lagString = i18n("%1 = name of server, %2 = (x minutes), %3 = (x seconds)", "No answer from server %1 for more than %2 and %3.").arg(lagServer->getServerName()) lagString = i18n("%1 = name of server, %2 = (x minutes), %3 = (x seconds)", "No answer from server %1 for more than %2 and %3.").tqarg(lagServer->getServerName())
.arg(minutesString).arg(secondsString); .tqarg(minutesString).tqarg(secondsString);
// or just some seconds // or just some seconds
} }
else else
{ {
lagString = i18n("No answer from server %1 for more than 1 second.", "No answer from server %1 for more than %n seconds.", seconds).arg(lagServer->getServerName()); lagString = i18n("No answer from server %1 for more than 1 second.", "No answer from server %1 for more than %n seconds.", seconds).tqarg(lagServer->getServerName());
} }
setMainLabelText(lagString); setMainLabelText(lagString);
@ -211,7 +211,7 @@ void KonversationStatusBar::setTooLongLag(Server* lagServer, int msec)
if (lagServer==m_window->getViewContainer()->getFrontServer()) if (lagServer==m_window->getViewContainer()->getFrontServer())
{ {
TQString lagString = lagServer->getServerName() + " - "; TQString lagString = lagServer->getServerName() + " - ";
lagString.append(i18n("Lag: %1 s").arg(msec/1000)); lagString.append(i18n("Lag: %1 s").tqarg(msec/1000));
if (m_lagLabel->isHidden()) m_lagLabel->show(); if (m_lagLabel->isHidden()) m_lagLabel->show();
m_lagLabel->setText(lagString); m_lagLabel->setText(lagString);

@ -63,7 +63,7 @@ KonviBookmarkHandler::~KonviBookmarkHandler()
void KonviBookmarkHandler::slotEditBookmarks() void KonviBookmarkHandler::slotEditBookmarks()
{ {
KProcess proc; KProcess proc;
proc << TQString::fromLatin1("keditbookmarks"); proc << TQString::tqfromLatin1("keditbookmarks");
proc << "--nobrowser"; proc << "--nobrowser";
proc << "--caption" << i18n("Konversation Bookmarks Editor"); proc << "--caption" << i18n("Konversation Bookmarks Editor");
proc << m_file; proc << m_file;

@ -44,7 +44,7 @@
#include <kiconloader.h> #include <kiconloader.h>
#include <kdebug.h> #include <kdebug.h>
#include <layout.h> #include <tqlayout.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <tqmap.h> #include <tqmap.h>

@ -98,7 +98,7 @@ namespace Konversation
kdDebug() << "Addressbook::presenceString() called with an empty uid" << endl; kdDebug() << "Addressbook::presenceString() called with an empty uid" << endl;
return TQString("Error"); return TQString("Error");
} }
switch( presenceStatus(uid)) switch( presencetqStatus(uid))
{ {
case 0: case 0:
return ""; return "";
@ -113,7 +113,7 @@ namespace Konversation
} }
return TQString("Error"); return TQString("Error");
} }
int Addressbook::presenceStatus(const TQString &uid) int Addressbook::presencetqStatus(const TQString &uid)
{ {
return presenceStatusByAddressee(addressBook->findByUid(uid)); return presenceStatusByAddressee(addressBook->findByUid(uid));
} }
@ -125,7 +125,7 @@ namespace Konversation
kdDebug() << "Addressbook::canReceiveFiles() called with empty uid" << endl; kdDebug() << "Addressbook::canReceiveFiles() called with empty uid" << endl;
return false; return false;
} }
int presence = presenceStatus(uid); int presence = presencetqStatus(uid);
return (presence == 4) || (presence == 3); return (presence == 4) || (presence == 3);
} }
@ -137,7 +137,7 @@ namespace Konversation
return false; return false;
} }
//this should return false if they are offline. //this should return false if they are offline.
int result = presenceStatus(uid); int result = presencetqStatus(uid);
if(result == 3 || result == 4) return true; if(result == 3 || result == 4) return true;
return false; return false;
} }
@ -161,7 +161,7 @@ namespace Konversation
if(!isPresent(uid)) if(!isPresent(uid))
return TQPixmap(); return TQPixmap();
switch(presenceStatus(uid)) switch(presencetqStatus(uid))
{ {
case 0: //Unknown case 0: //Unknown
case 1: //Offline case 1: //Offline
@ -226,7 +226,7 @@ namespace Konversation
{ {
TQString user = addressee.fullEmail(); TQString user = addressee.fullEmail();
if(!user.isEmpty()) user = " (" + user + ')'; if(!user.isEmpty()) user = " (" + user + ')';
focusAndShowErrorMessage(i18n("Another KDE application tried to use Konversation for instant messaging, but the requested user%1 is not online.").arg(user)); focusAndShowErrorMessage(i18n("Another KDE application tried to use Konversation for instant messaging, but the requested user%1 is not online.").tqarg(user));
return; return;
} }
@ -286,7 +286,7 @@ void Addressbook::sendFile(const TQString &uid, const KURL &sourceURL, const TQS
{ {
TQString user = addressee.fullEmail(); TQString user = addressee.fullEmail();
if(!user.isEmpty()) user = " (" + user + ')'; if(!user.isEmpty()) user = " (" + user + ')';
focusAndShowErrorMessage(i18n("Another KDE application tried to use Konversation to send a file to a contact, but the requested user%1 is not currently online.").arg(user)); focusAndShowErrorMessage(i18n("Another KDE application tried to use Konversation to send a file to a contact, but the requested user%1 is not currently online.").tqarg(user));
return; return;
} }
nickInfo->getServer()->addDccSend(nickInfo->getNickname(), sourceURL, altFileName, fileSize); nickInfo->getServer()->addDccSend(nickInfo->getNickname(), sourceURL, altFileName, fileSize);
@ -331,7 +331,7 @@ void Addressbook::emitContactPresenceChanged(const TQString &uid)
return; return;
}; };
emitContactPresenceChanged(uid, presenceStatus(uid)); emitContactPresenceChanged(uid, presencetqStatus(uid));
} }
} //NAMESPACE } //NAMESPACE

@ -52,7 +52,7 @@ namespace Konversation
// metadata // metadata
TQPixmap icon( const TQString &uid ); TQPixmap icon( const TQString &uid );
TQString context( const TQString &uid ); TQString context( const TQString &uid );
virtual int presenceStatus(const TQString &uid); virtual int presencetqStatus(const TQString &uid);
// App capabilities // App capabilities
TQStringList protocols(); TQStringList protocols();

@ -194,7 +194,7 @@ namespace Konversation
lnick_servergroup = lnick + TQChar(0xE120) + servergroup.lower(); lnick_servergroup = lnick + TQChar(0xE120) + servergroup.lower();
//We should now have lnick = ircnick, and versions with servername and servergroup - //We should now have lnick = ircnick, and versions with servername and servergroup -
// like johnflux, johnflux@freenode, or johnflux@irc.kde.org except with the unicode // like johnflux, johnflux@freenode, or johnflux@irc.kde.org except with the tqunicode
// separator char 0xe120 instead of the @ // separator char 0xe120 instead of the @
kdDebug() << "nick" << ircnick<< endl; kdDebug() << "nick" << ircnick<< endl;
@ -463,9 +463,9 @@ namespace Konversation
else else
{ {
if(nicksWithoutAddressee.count() > 1) if(nicksWithoutAddressee.count() > 1)
message = i18n("Some of the contacts (%1) that you have selected are not associated with addressbook contacts. ").arg(nicksWithoutAddressee.join(", ")); message = i18n("Some of the contacts (%1) that you have selected are not associated with addressbook contacts. ").tqarg(nicksWithoutAddressee.join(", "));
else else
message = i18n("One of the contacts (%1) that you have selected is not associated with an addressbook contact. ").arg(nicksWithoutAddressee.join(", ")); message = i18n("One of the contacts (%1) that you have selected is not associated with an addressbook contact. ").tqarg(nicksWithoutAddressee.join(", "));
} }
message += i18n("You can right click on a contact, and choose to edit the Addressbook Associations to link them to a contact in your addressbook."); message += i18n("You can right click on a contact, and choose to edit the Addressbook Associations to link them to a contact in your addressbook.");
} }
@ -481,15 +481,15 @@ namespace Konversation
else else
{ {
if(nicksWithoutEmails.count() > 1) if(nicksWithoutEmails.count() > 1)
message = i18n("Some of the contacts (%1) that you have selected do not have an email address associated with them. ").arg(nicksWithoutEmails.join(", ")); message = i18n("Some of the contacts (%1) that you have selected do not have an email address associated with them. ").tqarg(nicksWithoutEmails.join(", "));
else else
message = i18n("One of the contacts (%1) that you have selected does not have an email address associated with them. ").arg(nicksWithoutEmails.join(", ")); message = i18n("One of the contacts (%1) that you have selected does not have an email address associated with them. ").tqarg(nicksWithoutEmails.join(", "));
} }
message += i18n("You can right click on a contact, and choose to edit the addressbook contact, adding an email for them."); message += i18n("You can right click on a contact, and choose to edit the addressbook contact, adding an email for them.");
} }
else else
{ {
message = i18n("Some of the contacts (%1) that you have selected are not associated with addressbook contacts, and some of the contacts (%2) do not have an email address associated with them. ").arg(nicksWithoutAddressee.join(", ").arg(nicksWithoutEmails.join(", "))); message = i18n("Some of the contacts (%1) that you have selected are not associated with addressbook contacts, and some of the contacts (%2) do not have an email address associated with them. ").tqarg(nicksWithoutAddressee.join(", ").tqarg(nicksWithoutEmails.join(", ")));
message += i18n("You can right click on a contact, and choose to edit the Addressbook Associations to link them to a contact in your addressbook, and choose to edit the addressbook contact, adding an email for them."); message += i18n("You can right click on a contact, and choose to edit the Addressbook Associations to link them to a contact in your addressbook, and choose to edit the addressbook contact, adding an email for them.");
} }
if(nicksWithEmails.isEmpty()) if(nicksWithEmails.isEmpty())

@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "addresseeitem.h" #include "addresseeitem.h"
#include <layout.h> #include <tqlayout.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqgroupbox.h> #include <tqgroupbox.h>
#include <tqregexp.h> #include <tqregexp.h>

@ -88,7 +88,7 @@ class KIMIface : virtual public DCOPObject
* @param uid the KABC uid you want the presence for. * @param uid the KABC uid you want the presence for.
* @return a numeric representation of presence - currently one of 0 (Unknown), 1 (Offline), 2 (Connecting), 3 (Away), 4 (Online) * @return a numeric representation of presence - currently one of 0 (Unknown), 1 (Offline), 2 (Connecting), 3 (Away), 4 (Online)
*/ */
virtual int presenceStatus( const TQString & uid ) = 0; virtual int presencetqStatus( const TQString & uid ) = 0;
/** /**
* Indicate if a given uid can receive files * Indicate if a given uid can receive files
* @param uid the KABC uid you are interested in. * @param uid the KABC uid you are interested in.
@ -175,7 +175,7 @@ class KIMIface : virtual public DCOPObject
* Indicates that a contact's presence has changed * Indicates that a contact's presence has changed
* @param uid the contact whose presence changed. * @param uid the contact whose presence changed.
* @param appId the dcop application id of the program the signal originates from. * @param appId the dcop application id of the program the signal originates from.
* @param presence the new numeric presence @ref presenceStatus * @param presence the new numeric presence @ref presencetqStatus
*/ */
void contactPresenceChanged( TQString uid, TQCString appId, int presence ); void contactPresenceChanged( TQString uid, TQCString appId, int presence );
}; };

@ -28,7 +28,7 @@ Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
@ -115,13 +115,13 @@ void LinkAddressbookUI::slotLoadAddressees()
/*AddresseeItem *item =*/ new AddresseeItem( m_mainWidget->addresseeListView, (*it)); /*AddresseeItem *item =*/ new AddresseeItem( m_mainWidget->addresseeListView, (*it));
if(num_contacts_with_nick == 0) if(num_contacts_with_nick == 0)
m_mainWidget->lblHeader->setText(i18n("Choose the person who '%1' is.").arg(m_ircnick)); m_mainWidget->lblHeader->setText(i18n("Choose the person who '%1' is.").tqarg(m_ircnick));
else if(num_contacts_with_nick == 1 && realname.isEmpty()) else if(num_contacts_with_nick == 1 && realname.isEmpty())
m_mainWidget->lblHeader->setText(i18n("Currently '%1' is associated with a contact.").arg(m_ircnick)); m_mainWidget->lblHeader->setText(i18n("Currently '%1' is associated with a contact.").tqarg(m_ircnick));
else if(num_contacts_with_nick == 1 && !realname.isEmpty()) else if(num_contacts_with_nick == 1 && !realname.isEmpty())
m_mainWidget->lblHeader->setText(i18n("Currently '%1' is associated with contact '%2'.").arg(m_ircnick).arg(realname)); m_mainWidget->lblHeader->setText(i18n("Currently '%1' is associated with contact '%2'.").tqarg(m_ircnick).tqarg(realname));
else else
m_mainWidget->lblHeader->setText(i18n("<qt><b>Warning:</b> '%1' is currently being listed as belonging to multiple contacts. Please select the correct contact.</qt>").arg(m_ircnick)); m_mainWidget->lblHeader->setText(i18n("<qt><b>Warning:</b> '%1' is currently being listed as belonging to multiple contacts. Please select the correct contact.</qt>").tqarg(m_ircnick));
} }

@ -37,7 +37,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>405</width> <width>405</width>
<height>20</height> <height>20</height>
@ -125,7 +125,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout1</cstring> <cstring>tqlayout1</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -52,17 +52,17 @@ namespace Konversation
return; return;
TQString toolTip; TQString toolTip;
TQRect itemRect = m_listView->itemRect( item ); TQRect tqitemRect = m_listView->tqitemRect( item );
uint leftMargin = m_listView->treeStepSize() * uint leftMargin = m_listView->treeStepSize() *
( item->depth() + ( m_listView->rootIsDecorated() ? 1 : 0 ) ) + ( item->depth() + ( m_listView->rootIsDecorated() ? 1 : 0 ) ) +
m_listView->itemMargin(); m_listView->itemMargin();
uint xAdjust = itemRect.left() + leftMargin; uint xAdjust = tqitemRect.left() + leftMargin;
uint yAdjust = itemRect.top(); uint yAdjust = tqitemRect.top();
TQPoint relativePos( pos.x() - xAdjust, pos.y() - yAdjust ); TQPoint relativePos( pos.x() - xAdjust, pos.y() - yAdjust );
toolTip = Konversation::removeIrcMarkup(nick->getChannelNick()->tooltip()); toolTip = Konversation::removeIrcMarkup(nick->getChannelNick()->tooltip());
if(!toolTip.isEmpty()) if(!toolTip.isEmpty())
tip(itemRect, toolTip); tip(tqitemRect, toolTip);
} }
} // namespace Konversation } // namespace Konversation

@ -51,17 +51,17 @@ namespace Konversation
if(!nickInfo ) if(!nickInfo )
return; return;
TQString toolTip; TQString toolTip;
TQRect itemRect = m_listView->itemRect( item ); TQRect tqitemRect = m_listView->tqitemRect( item );
uint leftMargin = m_listView->treeStepSize() * uint leftMargin = m_listView->treeStepSize() *
( item->depth() + ( m_listView->rootIsDecorated() ? 1 : 0 ) ) + ( item->depth() + ( m_listView->rootIsDecorated() ? 1 : 0 ) ) +
m_listView->itemMargin(); m_listView->itemMargin();
uint xAdjust = itemRect.left() + leftMargin; uint xAdjust = tqitemRect.left() + leftMargin;
uint yAdjust = itemRect.top(); uint yAdjust = tqitemRect.top();
TQPoint relativePos( pos.x() - xAdjust, pos.y() - yAdjust ); TQPoint relativePos( pos.x() - xAdjust, pos.y() - yAdjust );
toolTip = nickInfo->tooltip(); toolTip = nickInfo->tooltip();
if(!toolTip.isEmpty()) if(!toolTip.isEmpty())
tip(itemRect, toolTip); tip(tqitemRect, toolTip);
} }
} // namespace Konversation } // namespace Konversation

@ -92,7 +92,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>10</height> <height>10</height>

@ -17,15 +17,15 @@
#include "ircview.h" #include "ircview.h"
#include "ircviewbox.h" #include "ircviewbox.h"
#include <layout.h> #include <tqlayout.h>
#include <tqfile.h> #include <tqfile.h>
#include <textstream.h> #include <tqtextstream.h>
#include <tqdockarea.h> #include <tqdockarea.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <tqspinbox.h> #include <tqspinbox.h>
#include <stylesheet.h> #include <tqstylesheet.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
#include <kdialog.h> #include <kdialog.h>
@ -111,8 +111,8 @@ void LogfileReader::updateView()
stream.setEncoding(TQTextStream::UnicodeUTF8); stream.setEncoding(TQTextStream::UnicodeUTF8);
// Set file pointer to <pos> bytes from the end // Set file pointer to <pos> bytes from the end
if(stream.device()->size()>pos) if(stream.tqdevice()->size()>pos)
stream.device()->at(stream.device()->size()-pos); stream.tqdevice()->at(stream.tqdevice()->size()-pos);
// Skip first line, since it may be incomplete // Skip first line, since it may be incomplete
stream.readLine(); stream.readLine();
TQString str; TQString str;

@ -13,7 +13,7 @@
#include "multilinetextedit.h" #include "multilinetextedit.h"
#include "konversationapplication.h" #include "konversationapplication.h"
#include <layout.h> #include <tqlayout.h>
#include <klocale.h> #include <klocale.h>
@ -28,7 +28,7 @@ KGuiItem(i18n("Add &Quotation Indicators")))
// Create the top level widget // Create the top level widget
TQWidget* page=new TQWidget(this); TQWidget* page=new TQWidget(this);
setMainWidget(page); setMainWidget(page);
// Add the layout to the widget // Add the tqlayout to the widget
TQVBoxLayout* dialogLayout=new TQVBoxLayout(page); TQVBoxLayout* dialogLayout=new TQVBoxLayout(page);
dialogLayout->setSpacing(spacingHint()); dialogLayout->setSpacing(spacingHint());
// add the text editor // add the text editor

@ -44,7 +44,7 @@ void MultilineTextEdit::drawWhitespaces()
TQPainter pa(viewport()); TQPainter pa(viewport());
// get a sane color // get a sane color
TQColor col=colorGroup().link(); TQColor col=tqcolorGroup().link();
// and a brush of the same color // and a brush of the same color
TQBrush fillBrush(col); TQBrush fillBrush(col);
// use it for line drawing // use it for line drawing

@ -12,7 +12,7 @@
#ifndef MULTILINETEXTEDIT_H #ifndef MULTILINETEXTEDIT_H
#define MULTILINETEXTEDIT_H #define MULTILINETEXTEDIT_H
#include <textedit.h> #include <tqtextedit.h>
class TQPaintEvent; class TQPaintEvent;

@ -14,7 +14,7 @@
#include "nick.h" #include "nick.h"
#include "addressbook.h" #include "addressbook.h"
#include <textstream.h> #include <tqtextstream.h>
#include <kdebug.h> #include <kdebug.h>
#include <klistview.h> #include <klistview.h>
@ -124,7 +124,7 @@ void Nick::refresh()
} }
setText(2, calculateLabel2()); setText(2, calculateLabel2());
repaint(); tqrepaint();
if(m_flags != flags) if(m_flags != flags)
{ {
@ -238,7 +238,7 @@ void Nick::paintCell(TQPainter * p, const TQColorGroup & cg, int column, int wid
if(nickInfo->isAway()) if(nickInfo->isAway())
{ {
cg2.setColor(TQColorGroup::Text, kapp->palette(listView()).disabled().text()); cg2.setColor(TQColorGroup::Text, kapp->tqpalette(listView()).disabled().text());
} }
KListViewItem::paintCell(p,cg2,column,width,align); KListViewItem::paintCell(p,cg2,column,width,align);

@ -85,7 +85,7 @@ uint NickInfo::getNickColor()
for (uint index = 0; index < m_nickname.length(); index++) for (uint index = 0; index < m_nickname.length(); index++)
{ {
nickvalue += m_nickname[index].unicode(); nickvalue += m_nickname[index].tqunicode();
} }
m_nickColor = (nickvalue % 8) + 1; m_nickColor = (nickvalue % 8) + 1;
@ -99,7 +99,7 @@ bool NickInfo::isIdentified() const { return m_identified; }
TQString NickInfo::getPrettyOnlineSince() const TQString NickInfo::getPrettyOnlineSince() const
{ {
TQString prettyOnlineSince; TQString prettyOnlineSince;
int daysto = m_onlineSince.date().daysTo( TQDate::currentDate()); int daysto = m_onlineSince.date().daysTo( TQDate::tqcurrentDate());
if(daysto == 0) prettyOnlineSince = i18n("Today"); if(daysto == 0) prettyOnlineSince = i18n("Today");
else if(daysto == 1) prettyOnlineSince = i18n("Yesterday"); else if(daysto == 1) prettyOnlineSince = i18n("Yesterday");
else prettyOnlineSince = m_onlineSince.toString("ddd d MMMM yyyy"); else prettyOnlineSince = m_onlineSince.toString("ddd d MMMM yyyy");

@ -54,7 +54,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget> </widget>
<widget class="TQCheckBox" row="3" column="0"> <widget class="TQCheckBox" row="3" column="0">
<property name="name"> <property name="name">
<cstring>kcfg_SortByStatus</cstring> <cstring>kcfg_SortBytqStatus</cstring>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy> <sizepolicy>
@ -133,13 +133,13 @@ the Free Software Foundation; either version 2 of the License, or
</widget> </widget>
<connections> <connections>
<connection> <connection>
<sender>kcfg_SortByStatus</sender> <sender>kcfg_SortBytqStatus</sender>
<signal>toggled(bool)</signal> <signal>toggled(bool)</signal>
<receiver>sortOrder</receiver> <receiver>sortOrder</receiver>
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
</connection> </connection>
<connection> <connection>
<sender>kcfg_SortByStatus</sender> <sender>kcfg_SortBytqStatus</sender>
<signal>toggled(bool)</signal> <signal>toggled(bool)</signal>
<receiver>orderHintLabel</receiver> <receiver>orderHintLabel</receiver>
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
@ -148,7 +148,7 @@ the Free Software Foundation; either version 2 of the License, or
<tabstops> <tabstops>
<tabstop>kcfg_ChannelDoubleClickAction</tabstop> <tabstop>kcfg_ChannelDoubleClickAction</tabstop>
<tabstop>kcfg_SortCaseInsensitive</tabstop> <tabstop>kcfg_SortCaseInsensitive</tabstop>
<tabstop>kcfg_SortByStatus</tabstop> <tabstop>kcfg_SortBytqStatus</tabstop>
<tabstop>sortOrder</tabstop> <tabstop>sortOrder</tabstop>
</tabstops> </tabstops>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>

@ -86,14 +86,14 @@ KListView(parent)
int newitem; int newitem;
newitem = popup->insertItem(i18n("Open &Query"),Konversation::OpenQuery); newitem = popup->insertItem(i18n("Open &Query"),Konversation::OpenQuery);
popup->setWhatsThis(newitem, "<qt>Start a private chat between you and this person.<p/><em>Technical note:</em><br>The conversation between you and this person will be sent via the server. This means that the conversation will be affected by server lag, server stability, and will be terminated when you disconnect from the server.</qt>"); popup->tqsetWhatsThis(newitem, "<qt>Start a private chat between you and this person.<p/><em>Technical note:</em><br>The conversation between you and this person will be sent via the server. This means that the conversation will be affected by server lag, server stability, and will be terminated when you disconnect from the server.</qt>");
newitem = popup->insertItem(i18n("Open DCC &Chat"),Konversation::StartDccChat); newitem = popup->insertItem(i18n("Open DCC &Chat"),Konversation::StartDccChat);
popup->setWhatsThis(newitem, "<qt>Start a private <em>D</em>irect <em>C</em>lient <em>C</em>onnection chat between you and this person.<p/><em>Technical note:</em><br />The conversation between you and this person will be sent directly. This means it is independent from the server - so if the server connection fails, or use disconnect, your DCC Chat will be unaffected. It also means that no irc server admin can view or spy on this chat.</qt>"); popup->tqsetWhatsThis(newitem, "<qt>Start a private <em>D</em>irect <em>C</em>lient <em>C</em>onnection chat between you and this person.<p/><em>Technical note:</em><br />The conversation between you and this person will be sent directly. This means it is independent from the server - so if the server connection fails, or use disconnect, your DCC Chat will be unaffected. It also means that no irc server admin can view or spy on this chat.</qt>");
if (kapp->authorize("allow_downloading")) if (kapp->authorize("allow_downloading"))
{ {
newitem = popup->insertItem(SmallIcon("2rightarrow"),i18n("Send &File..."),Konversation::DccSend); newitem = popup->insertItem(SmallIcon("2rightarrow"),i18n("Send &File..."),Konversation::DccSend);
popup->setWhatsThis(newitem, "<qt>Send a file to this person. If you are having problem sending files, or they are sending slowly, see the Konversation Handbook and DCC preferences page.</qt>"); popup->tqsetWhatsThis(newitem, "<qt>Send a file to this person. If you are having problem sending files, or they are sending slowly, see the Konversation Handbook and DCC preferences page.</qt>");
} }
popup->insertItem(SmallIconSet("mail_generic"),i18n("&Send Email..."), Konversation::SendEmail); popup->insertItem(SmallIconSet("mail_generic"),i18n("&Send Email..."), Konversation::SendEmail);

@ -28,7 +28,7 @@
#include "viewcontainer.h" #include "viewcontainer.h"
#include "nicksonlineitem.h" #include "nicksonlineitem.h"
#include <layout.h> #include <tqlayout.h>
#include <tqstringlist.h> #include <tqstringlist.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
@ -102,7 +102,7 @@ NicksOnline::NicksOnline(TQWidget* parent): ChatWindow(parent)
"When you select a nickname in the list above, the buttons here are used " "When you select a nickname in the list above, the buttons here are used "
"to associate the nickname with an entry in KAddressBook."); "to associate the nickname with an entry in KAddressBook.");
TQWhatsThis::add(addressbookLabel, addressbookLabelWT); TQWhatsThis::add(addressbookLabel, addressbookLabelWT);
addressbookLabel->setAlignment(TQt::AlignRight | TQt::AlignVCenter); addressbookLabel->tqsetAlignment(TQt::AlignRight | TQt::AlignVCenter);
m_editContactButton = new TQPushButton(i18n("Edit C&ontact..."), m_editContactButton = new TQPushButton(i18n("Edit C&ontact..."),
buttonBox, "nicksonline_editcontact_button"); buttonBox, "nicksonline_editcontact_button");
TQString editContactButtonWT = i18n( TQString editContactButtonWT = i18n(
@ -249,12 +249,12 @@ bool& needWhois)
niInfo += " (" + nickInfo->getRealName() + ')'; niInfo += " (" + nickInfo->getRealName() + ')';
if (!nickInfo->getNetServer().isEmpty()) if (!nickInfo->getNetServer().isEmpty())
{ {
niInfo += i18n( " online via %1" ).arg( nickInfo->getNetServer() ); niInfo += i18n( " online via %1" ).tqarg( nickInfo->getNetServer() );
if (!nickInfo->getNetServerInfo().isEmpty()) if (!nickInfo->getNetServerInfo().isEmpty())
niInfo += " (" + nickInfo->getNetServerInfo() + ')'; niInfo += " (" + nickInfo->getNetServerInfo() + ')';
} }
if (!nickInfo->getOnlineSince().isNull()) if (!nickInfo->getOnlineSince().isNull())
niInfo += i18n( " since %1" ).arg( nickInfo->getPrettyOnlineSince() ); niInfo += i18n( " since %1" ).tqarg( nickInfo->getPrettyOnlineSince() );
} }
needWhois = niInfo.isEmpty(); needWhois = niInfo.isEmpty();
if (!info.isEmpty() && !needWhois) info += ' '; if (!info.isEmpty() && !needWhois) info += ' ';

@ -19,7 +19,7 @@
#include "trayicon.h" #include "trayicon.h"
#include "server.h" #include "server.h"
#include <stylesheet.h> #include <tqstylesheet.h>
#include <knotifyclient.h> #include <knotifyclient.h>
#include <kstringhandler.h> #include <kstringhandler.h>
@ -50,7 +50,7 @@ namespace Konversation
TQString cleanedMessage = TQStyleSheet::escape(Konversation::removeIrcMarkup(message)); TQString cleanedMessage = TQStyleSheet::escape(Konversation::removeIrcMarkup(message));
TQString cutup = addLineBreaks(cleanedMessage); TQString cutup = addLineBreaks(cleanedMessage);
KNotifyClient::event(m_mainWindow->winId(), "message", TQString("<qt>&lt;%1&gt; %2</qt>").arg(fromNick).arg(cutup)); KNotifyClient::event(m_mainWindow->winId(), "message", TQString("<qt>&lt;%1&gt; %2</qt>").tqarg(fromNick).tqarg(cutup));
if(!Preferences::trayNotifyOnlyOwnNick()) if(!Preferences::trayNotifyOnlyOwnNick())
{ {
@ -76,7 +76,7 @@ namespace Konversation
TQString cleanedMessage = TQStyleSheet::escape(Konversation::removeIrcMarkup(message)); TQString cleanedMessage = TQStyleSheet::escape(Konversation::removeIrcMarkup(message));
TQString cutup = addLineBreaks(cleanedMessage); TQString cutup = addLineBreaks(cleanedMessage);
KNotifyClient::event(m_mainWindow->winId(), "nick", TQString("<qt>&lt;%1&gt; %2</qt>").arg(fromNick).arg(cutup)); KNotifyClient::event(m_mainWindow->winId(), "nick", TQString("<qt>&lt;%1&gt; %2</qt>").tqarg(fromNick).tqarg(cutup));
startTrayNotification(chatWin); startTrayNotification(chatWin);
@ -86,7 +86,7 @@ namespace Konversation
(!m_mainWindow->isActiveWindow() || (!m_mainWindow->isActiveWindow() ||
(chatWin != m_mainWindow->getViewContainer()->getFrontView()))) (chatWin != m_mainWindow->getViewContainer()->getFrontView())))
{ {
konvApp->osd->showOSD(i18n("[HighLight] (%1) <%2> %3").arg(chatWin->getName()).arg(fromNick).arg(cleanedMessage)); konvApp->osd->showOSD(i18n("[HighLight] (%1) <%2> %3").tqarg(chatWin->getName()).tqarg(fromNick).tqarg(cleanedMessage));
} }
} }
@ -102,7 +102,7 @@ namespace Konversation
TQString cleanedMessage = TQStyleSheet::escape(Konversation::removeIrcMarkup(message)); TQString cleanedMessage = TQStyleSheet::escape(Konversation::removeIrcMarkup(message));
TQString cutup = addLineBreaks(cleanedMessage); TQString cutup = addLineBreaks(cleanedMessage);
KNotifyClient::event(m_mainWindow->winId(), "queryMessage", TQString("<qt>&lt;%1&gt; %2</qt>").arg(fromNick).arg(cutup)); KNotifyClient::event(m_mainWindow->winId(), "queryMessage", TQString("<qt>&lt;%1&gt; %2</qt>").tqarg(fromNick).tqarg(cutup));
startTrayNotification(chatWin); startTrayNotification(chatWin);
@ -111,7 +111,7 @@ namespace Konversation
if(Preferences::oSDShowQuery() && (!m_mainWindow->isActiveWindow() || if(Preferences::oSDShowQuery() && (!m_mainWindow->isActiveWindow() ||
(chatWin != m_mainWindow->getViewContainer()->getFrontView()))) (chatWin != m_mainWindow->getViewContainer()->getFrontView())))
{ {
konvApp->osd->showOSD(i18n("[Query] <%1> %2").arg(fromNick).arg(cleanedMessage)); konvApp->osd->showOSD(i18n("[Query] <%1> %2").tqarg(fromNick).tqarg(cleanedMessage));
} }
} }
@ -135,14 +135,14 @@ namespace Konversation
if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway()) if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway())
return; return;
KNotifyClient::event(m_mainWindow->winId(), "join", i18n("%1 joined %2").arg(nick, chatWin->getName())); KNotifyClient::event(m_mainWindow->winId(), "join", i18n("%1 joined %2").tqarg(nick, chatWin->getName()));
// OnScreen Message // OnScreen Message
if(Preferences::oSDShowChannelEvent() && if(Preferences::oSDShowChannelEvent() &&
(!m_mainWindow->isActiveWindow() || (chatWin != m_mainWindow->getViewContainer()->getFrontView()))) (!m_mainWindow->isActiveWindow() || (chatWin != m_mainWindow->getViewContainer()->getFrontView())))
{ {
KonversationApplication* konvApp = static_cast<KonversationApplication*>(kapp); KonversationApplication* konvApp = static_cast<KonversationApplication*>(kapp);
konvApp->osd->showOSD(i18n("%1 joined %2").arg(nick, chatWin->getName())); konvApp->osd->showOSD(i18n("%1 joined %2").tqarg(nick, chatWin->getName()));
} }
} }
@ -154,14 +154,14 @@ namespace Konversation
if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway()) if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway())
return; return;
KNotifyClient::event(m_mainWindow->winId(), "part", i18n("%1 parted %2").arg(nick, chatWin->getName())); KNotifyClient::event(m_mainWindow->winId(), "part", i18n("%1 parted %2").tqarg(nick, chatWin->getName()));
// OnScreen Message // OnScreen Message
if(Preferences::oSDShowChannelEvent() && if(Preferences::oSDShowChannelEvent() &&
(!m_mainWindow->isActiveWindow() || (chatWin != m_mainWindow->getViewContainer()->getFrontView()))) (!m_mainWindow->isActiveWindow() || (chatWin != m_mainWindow->getViewContainer()->getFrontView())))
{ {
KonversationApplication* konvApp = static_cast<KonversationApplication*>(kapp); KonversationApplication* konvApp = static_cast<KonversationApplication*>(kapp);
konvApp->osd->showOSD(i18n("%1 parted %2").arg(nick, chatWin->getName())); konvApp->osd->showOSD(i18n("%1 parted %2").tqarg(nick, chatWin->getName()));
} }
} }
@ -173,7 +173,7 @@ namespace Konversation
if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway()) if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway())
return; return;
KNotifyClient::event(m_mainWindow->winId(), "part", i18n("%1 quit %2").arg(nick, chatWin->getServer()->getServerName())); KNotifyClient::event(m_mainWindow->winId(), "part", i18n("%1 quit %2").tqarg(nick, chatWin->getServer()->getServerName()));
} }
void NotificationHandler::nickChange(ChatWindow* chatWin, const TQString& oldNick, const TQString& newNick) void NotificationHandler::nickChange(ChatWindow* chatWin, const TQString& oldNick, const TQString& newNick)
@ -184,7 +184,7 @@ namespace Konversation
if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway()) if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway())
return; return;
KNotifyClient::event(m_mainWindow->winId(), "nickchange", i18n("%1 changed nickname to %2").arg(oldNick, newNick)); KNotifyClient::event(m_mainWindow->winId(), "nickchange", i18n("%1 changed nickname to %2").tqarg(oldNick, newNick));
} }
void NotificationHandler::dccIncoming(ChatWindow* chatWin, const TQString& fromNick) void NotificationHandler::dccIncoming(ChatWindow* chatWin, const TQString& fromNick)
@ -195,7 +195,7 @@ namespace Konversation
if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway()) if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway())
return; return;
KNotifyClient::event(m_mainWindow->winId(), "dcc_incoming", i18n("%1 wants to send a file to you").arg(fromNick)); KNotifyClient::event(m_mainWindow->winId(), "dcc_incoming", i18n("%1 wants to send a file to you").tqarg(fromNick));
} }
void NotificationHandler::mode(ChatWindow* chatWin, const TQString& /*nick*/) void NotificationHandler::mode(ChatWindow* chatWin, const TQString& /*nick*/)
@ -220,7 +220,7 @@ namespace Konversation
startTrayNotification(chatWin); startTrayNotification(chatWin);
KNotifyClient::event(m_mainWindow->winId(), "query", KNotifyClient::event(m_mainWindow->winId(), "query",
i18n("%1 has started a conversation (query) with you.").arg(fromNick)); i18n("%1 has started a conversation (query) with you.").tqarg(fromNick));
} }
void NotificationHandler::nickOnline(ChatWindow* chatWin, const TQString& nick) void NotificationHandler::nickOnline(ChatWindow* chatWin, const TQString& nick)
@ -232,7 +232,7 @@ namespace Konversation
return; return;
KNotifyClient::event(m_mainWindow->winId(), "notify", KNotifyClient::event(m_mainWindow->winId(), "notify",
i18n("%1 is online (%2).").arg(nick).arg(chatWin->getServer()->getServerName())); i18n("%1 is online (%2).").tqarg(nick).tqarg(chatWin->getServer()->getServerName()));
} }
void NotificationHandler::nickOffline(ChatWindow* chatWin, const TQString& nick) void NotificationHandler::nickOffline(ChatWindow* chatWin, const TQString& nick)
@ -244,7 +244,7 @@ namespace Konversation
return; return;
KNotifyClient::event(m_mainWindow->winId(), "notify", KNotifyClient::event(m_mainWindow->winId(), "notify",
i18n("%1 went offline (%2).").arg(nick).arg(chatWin->getServer()->getServerName())); i18n("%1 went offline (%2).").tqarg(nick).tqarg(chatWin->getServer()->getServerName()));
} }
void NotificationHandler::kick(ChatWindow* chatWin, const TQString& channel,const TQString& nick) void NotificationHandler::kick(ChatWindow* chatWin, const TQString& channel,const TQString& nick)
@ -256,7 +256,7 @@ namespace Konversation
return; return;
KNotifyClient::event(m_mainWindow->winId(), "kick", KNotifyClient::event(m_mainWindow->winId(), "kick",
i18n("You are kicked by %1 from %2").arg(nick).arg(channel)); i18n("You are kicked by %1 from %2").tqarg(nick).tqarg(channel));
} }
void NotificationHandler::dccChat(ChatWindow* chatWin, const TQString& nick) void NotificationHandler::dccChat(ChatWindow* chatWin, const TQString& nick)
@ -268,7 +268,7 @@ namespace Konversation
return; return;
KNotifyClient::event(m_mainWindow->winId(), "dccChat", KNotifyClient::event(m_mainWindow->winId(), "dccChat",
i18n("%1 started a dcc chat with you").arg(nick)); i18n("%1 started a dcc chat with you").tqarg(nick));
} }
void NotificationHandler::highlight(ChatWindow* chatWin, const TQString& fromNick, const TQString& message) void NotificationHandler::highlight(ChatWindow* chatWin, const TQString& fromNick, const TQString& message)
@ -288,10 +288,10 @@ namespace Konversation
// if there was no nick associated, this must be a command message, so don't try displaying // if there was no nick associated, this must be a command message, so don't try displaying
// an empty nick in <> // an empty nick in <>
if(fromNick.isEmpty()) if(fromNick.isEmpty())
konvApp->osd->showOSD(i18n("[HighLight] (%1) *** %2").arg(chatWin->getName()).arg(message)); konvApp->osd->showOSD(i18n("[HighLight] (%1) *** %2").tqarg(chatWin->getName()).tqarg(message));
// normal highlight message // normal highlight message
else else
konvApp->osd->showOSD(i18n("[HighLight] (%1) <%2> %3").arg(chatWin->getName()).arg(fromNick).arg(message)); konvApp->osd->showOSD(i18n("[HighLight] (%1) <%2> %3").tqarg(chatWin->getName()).tqarg(fromNick).tqarg(message));
} }
} }
@ -301,7 +301,7 @@ namespace Konversation
return; return;
KNotifyClient::event(m_mainWindow->winId(), "connectionFailure", KNotifyClient::event(m_mainWindow->winId(), "connectionFailure",
i18n("Failed to connect to %1").arg(server)); i18n("Failed to connect to %1").tqarg(server));
} }
void NotificationHandler::channelJoin(ChatWindow* chatWin, const TQString& channel) void NotificationHandler::channelJoin(ChatWindow* chatWin, const TQString& channel)
@ -312,7 +312,7 @@ namespace Konversation
if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway()) if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway())
return; return;
KNotifyClient::event(m_mainWindow->winId(), "channelJoin", i18n("You have joined %1.").arg(channel)); KNotifyClient::event(m_mainWindow->winId(), "channelJoin", i18n("You have joined %1.").tqarg(channel));
} }
TQString NotificationHandler::addLineBreaks(const TQString& string) TQString NotificationHandler::addLineBreaks(const TQString& string)

@ -34,7 +34,7 @@ OSDWidget::OSDWidget( const TQString &appName, TQWidget *parent, const char *nam
, m_appName( appName ) , m_appName( appName )
, m_duration( 5000 ) , m_duration( 5000 )
, m_shadow( true ) , m_shadow( true )
, m_alignment( Middle ) , m_tqalignment( Middle )
, m_screen( 0 ) , m_screen( 0 )
, m_y( MARGIN ) , m_y( MARGIN )
, m_dirty( false ) , m_dirty( false )
@ -206,9 +206,9 @@ void OSDWidget::setOffset( int /*x*/, int y )
reposition(); reposition();
} }
void OSDWidget::setAlignment( Alignment a ) void OSDWidget::tqsetAlignment( Alignment a )
{ {
m_alignment = a; m_tqalignment = a;
reposition(); reposition();
} }
@ -277,7 +277,7 @@ void OSDWidget::reposition( TQSize newSize )
//TODO m_y is the middle of the OSD, and don't exceed screen margins //TODO m_y is the middle of the OSD, and don't exceed screen margins
switch ( m_alignment ) switch ( m_tqalignment )
{ {
case Left: case Left:
break; break;
@ -371,12 +371,12 @@ void OSDPreviewWidget::mouseMoveEvent( TQMouseEvent *e )
if( eGlobalPosX < (hcenter-snapZone) ) if( eGlobalPosX < (hcenter-snapZone) )
{ {
m_alignment = Left; m_tqalignment = Left;
destination.rx() = MARGIN; destination.rx() = MARGIN;
} }
else if( eGlobalPosX > (hcenter+snapZone) ) else if( eGlobalPosX > (hcenter+snapZone) )
{ {
m_alignment = Right; m_tqalignment = Right;
destination.rx() = screen.width() - MARGIN - width(); destination.rx() = screen.width() - MARGIN - width();
} }
else else
@ -388,10 +388,10 @@ void OSDPreviewWidget::mouseMoveEvent( TQMouseEvent *e )
if( eGlobalPosY >= (vcenter-snapZone) && eGlobalPosY <= (vcenter+snapZone) ) if( eGlobalPosY >= (vcenter-snapZone) && eGlobalPosY <= (vcenter+snapZone) )
{ {
m_alignment = Center; m_tqalignment = Center;
destination.ry() = vcenter - height()/2; destination.ry() = vcenter - height()/2;
} }
else m_alignment = Middle; else m_tqalignment = Middle;
} }
destination += screen.topLeft(); destination += screen.topLeft();
@ -402,7 +402,7 @@ void OSDPreviewWidget::mouseMoveEvent( TQMouseEvent *e )
// the code was taken from pilotDaemon.cc in KPilot // the code was taken from pilotDaemon.cc in KPilot
// static // static
OSDWidget::KDesktopLockStatus OSDWidget::isKDesktopLockRunning() OSDWidget::KDesktopLocktqStatus OSDWidget::isKDesktopLockRunning()
{ {
if (!Preferences::oSDCheckDesktopLock()) if (!Preferences::oSDCheckDesktopLock())
return NotLocked; return NotLocked;

@ -41,14 +41,14 @@ class OSDWidget : public TQWidget
void setTextColor(const TQColor &newcolor); void setTextColor(const TQColor &newcolor);
void setBackgroundColor(const TQColor &newColor); void setBackgroundColor(const TQColor &newColor);
void setOffset( int x, int y ); void setOffset( int x, int y );
void setAlignment(Alignment); void tqsetAlignment(Alignment);
void setScreen(uint screen); void setScreen(uint screen);
void setText(const TQString &text) { m_currentText = text; refresh(); } void setText(const TQString &text) { m_currentText = text; refresh(); }
void unsetColors(); void unsetColors();
int screen() { return m_screen; } int screen() { return m_screen; }
int alignment() { return m_alignment; } int tqalignment() { return m_tqalignment; }
int y() { return m_y; } int y() { return m_y; }
signals: signals:
@ -79,8 +79,8 @@ class OSDWidget : public TQWidget
/* called after most set*() calls to update the OSD */ /* called after most set*() calls to update the OSD */
void refresh(); void refresh();
enum KDesktopLockStatus { NotLocked=0, Locked=1, DCOPError=2 }; enum KDesktopLocktqStatus { NotLocked=0, Locked=1, DCOPError=2 };
static KDesktopLockStatus isKDesktopLockRunning(); static KDesktopLocktqStatus isKDesktopLockRunning();
static const int MARGIN = 15; static const int MARGIN = 15;
@ -93,7 +93,7 @@ class OSDWidget : public TQWidget
TQString m_currentText; TQString m_currentText;
bool m_shadow; bool m_shadow;
Alignment m_alignment; Alignment m_tqalignment;
int m_screen; int m_screen;
uint m_y; uint m_y;

@ -108,7 +108,7 @@ void OSD_Config::saveSettings()
//x is ignored anyway, but leave incase we use in future //x is ignored anyway, but leave incase we use in future
konvApp->osd->setOffset(kcfg_OSDOffsetX->value(), kcfg_OSDOffsetY->value()); konvApp->osd->setOffset(kcfg_OSDOffsetX->value(), kcfg_OSDOffsetY->value());
konvApp->osd->setAlignment((OSDWidget::Alignment)kcfg_OSDAlignment->value()); konvApp->osd->tqsetAlignment((OSDWidget::Alignment)kcfg_OSDAlignment->value());
} }
} }
@ -116,7 +116,7 @@ void OSD_Config::saveSettings()
void OSD_Config::showEvent(TQShowEvent*) void OSD_Config::showEvent(TQShowEvent*)
{ {
//Update the preview //Update the preview
m_pOSDPreview->setAlignment((OSDWidget::Alignment)( kcfg_OSDAlignment->value() ) ); m_pOSDPreview->tqsetAlignment((OSDWidget::Alignment)( kcfg_OSDAlignment->value() ) );
m_pOSDPreview->setOffset(kcfg_OSDOffsetX->value(),kcfg_OSDOffsetY->value()); m_pOSDPreview->setOffset(kcfg_OSDOffsetX->value(),kcfg_OSDOffsetY->value());
m_pOSDPreview->setShown(kcfg_UseOSD->isChecked()); m_pOSDPreview->setShown(kcfg_UseOSD->isChecked());
@ -143,7 +143,7 @@ void OSD_Config::slotPositionChanged()
{ {
kcfg_OSDScreen->setCurrentItem(m_pOSDPreview->screen()); kcfg_OSDScreen->setCurrentItem(m_pOSDPreview->screen());
kcfg_OSDAlignment->setValue( m_pOSDPreview->alignment() ); kcfg_OSDAlignment->setValue( m_pOSDPreview->tqalignment() );
kcfg_OSDOffsetX->setValue( m_pOSDPreview->x()); kcfg_OSDOffsetX->setValue( m_pOSDPreview->x());
kcfg_OSDOffsetY->setValue( m_pOSDPreview->y()); kcfg_OSDOffsetY->setValue( m_pOSDPreview->y());
} }

@ -29,7 +29,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>10</height> <height>10</height>
@ -263,7 +263,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>31</height> <height>31</height>
@ -340,7 +340,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>21</height> <height>21</height>

@ -29,7 +29,7 @@
#include <tqregexp.h> #include <tqregexp.h>
#include <tqmap.h> #include <tqmap.h>
#include <tqvaluelist.h> #include <tqvaluelist.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <klocale.h> #include <klocale.h>
#include <kdebug.h> #include <kdebug.h>
@ -181,8 +181,8 @@ namespace Konversation
// someone didn't notice leading spaces // someone didn't notice leading spaces
{ {
TQString testNickServ( inputLine.stripWhiteSpace() ); TQString testNickServ( inputLine.stripWhiteSpace() );
if(testNickServ.startsWith(commandChar+"nickserv", false) if(testNickServ.tqstartsWith(commandChar+"nickserv", false)
|| testNickServ.startsWith(commandChar+"ns", false)) || testNickServ.tqstartsWith(commandChar+"ns", false))
{ {
inputLine = testNickServ; inputLine = testNickServ;
} }
@ -334,7 +334,7 @@ namespace Konversation
else if(parameter == "off") else if(parameter == "off")
konvApp->showQueueTuner(false); konvApp->showQueueTuner(false);
else else
result = usage(i18n("Usage: %1queuetuner [on | off]").arg(commandChar)); result = usage(i18n("Usage: %1queuetuner [on | off]").tqarg(commandChar));
return result; return result;
} }
@ -380,7 +380,7 @@ namespace Konversation
if (channelName.isEmpty()) if (channelName.isEmpty())
{ {
if (destination.isEmpty() || !isAChannel(destination)) if (destination.isEmpty() || !isAChannel(destination))
return usage(i18n("Usage: %1JOIN <channel> [password]").arg(commandChar)); return usage(i18n("Usage: %1JOIN <channel> [password]").tqarg(commandChar));
channelName=destination; channelName=destination;
} }
else if (!isAChannel(channelName)) else if (!isAChannel(channelName))
@ -413,7 +413,7 @@ namespace Konversation
if(victim.isEmpty()) if(victim.isEmpty())
{ {
result = usage(i18n("Usage: %1KICK <nick> [reason]").arg(commandChar)); result = usage(i18n("Usage: %1KICK <nick> [reason]").tqarg(commandChar));
} }
else else
{ {
@ -431,7 +431,7 @@ namespace Konversation
} }
else else
{ {
result = error(i18n("%1KICK only works from within channels.").arg(commandChar)); result = error(i18n("%1KICK only works from within channels.").tqarg(commandChar));
} }
return result; return result;
@ -451,7 +451,7 @@ namespace Konversation
} }
else else
{ {
result = error(i18n("%1PART without parameters only works from within a channel or a query.").arg(commandChar)); result = error(i18n("%1PART without parameters only works from within a channel or a query.").tqarg(commandChar));
} }
} }
else else
@ -481,7 +481,7 @@ namespace Konversation
} }
else else
{ {
result = error(i18n("%1PART without channel name only works from within a channel.").arg(commandChar)); result = error(i18n("%1PART without channel name only works from within a channel.").tqarg(commandChar));
} }
} }
} }
@ -503,7 +503,7 @@ namespace Konversation
} }
else else
{ {
result = error(i18n("%1TOPIC without parameters only works from within a channel.").arg(commandChar)); result = error(i18n("%1TOPIC without parameters only works from within a channel.").tqarg(commandChar));
} }
} }
else else
@ -545,7 +545,7 @@ namespace Konversation
} }
else else
{ {
result = error(i18n("%1TOPIC without channel name only works from within a channel.").arg(commandChar)); result = error(i18n("%1TOPIC without channel name only works from within a channel.").tqarg(commandChar));
} }
} }
} }
@ -572,7 +572,7 @@ namespace Konversation
result.toServer = "NAMES "; result.toServer = "NAMES ";
if (parameter.isNull()) if (parameter.isNull())
{ {
return error(i18n("%1NAMES with no target may disconnect you from the server. Specify '*' if you really want this.").arg(commandChar)); return error(i18n("%1NAMES with no target may disconnect you from the server. Specify '*' if you really want this.").tqarg(commandChar));
} }
else if (parameter != TQChar('*')) else if (parameter != TQChar('*'))
{ {
@ -593,7 +593,7 @@ namespace Konversation
else if (parm.isEmpty()) // this can only mean one thing.. we're in the Server tab else if (parm.isEmpty()) // this can only mean one thing.. we're in the Server tab
m_server->closeYourself(false); m_server->closeYourself(false);
else else
return usage(i18n("Usage: %1close [window] closes the named channel or query tab, or the current tab if none specified.").arg(commandChar)); return usage(i18n("Usage: %1close [window] closes the named channel or query tab, or the current tab if none specified.").tqarg(commandChar));
return OutputFilterResult(); return OutputFilterResult();
} }
@ -619,13 +619,13 @@ namespace Konversation
if(parameter.isEmpty() || message.isEmpty()) if(parameter.isEmpty() || message.isEmpty())
{ {
result = usage(i18n("Usage: %1NOTICE <recipient> <message>").arg(commandChar)); result = usage(i18n("Usage: %1NOTICE <recipient> <message>").tqarg(commandChar));
} }
else else
{ {
result.typeString = i18n("Notice"); result.typeString = i18n("Notice");
result.toServer = "NOTICE " + recipient + " :" + message; result.toServer = "NOTICE " + recipient + " :" + message;
result.output=i18n("%1 is the message, %2 the recipient nickname","Sending notice \"%2\" to %1.").arg(recipient).arg(message); result.output=i18n("%1 is the message, %2 the recipient nickname","Sending notice \"%2\" to %1.").tqarg(recipient).tqarg(message);
result.type = Program; result.type = Program;
} }
@ -644,7 +644,7 @@ namespace Konversation
} }
else else
{ {
result = usage(i18n("Usage: %1ME text").arg(commandChar)); result = usage(i18n("Usage: %1ME text").tqarg(commandChar));
} }
return result; return result;
@ -681,7 +681,7 @@ namespace Konversation
else if (message.startsWith(commandChar+"me")) else if (message.startsWith(commandChar+"me"))
{ {
result.toServer = "PRIVMSG " + recipient + " :" + '\x01' + "ACTION " + message.mid(4) + '\x01'; result.toServer = "PRIVMSG " + recipient + " :" + '\x01' + "ACTION " + message.mid(4) + '\x01';
output = TQString("* %1 %2").arg(myNick).arg(message.mid(4)); output = TQString("* %1 %2").tqarg(myNick).tqarg(message.mid(4));
} }
else else
{ {
@ -762,14 +762,14 @@ namespace Konversation
if (request == "PING") if (request == "PING")
{ {
unsigned int time_t = TQDateTime::currentDateTime().toTime_t(); unsigned int time_t = TQDateTime::tqcurrentDateTime().toTime_t();
result.toServer = TQString("PRIVMSG %1 :\x01PING %2\x01").arg(recipient).arg(time_t); result.toServer = TQString("PRIVMSG %1 :\x01PING %2\x01").tqarg(recipient).tqarg(time_t);
result.output = i18n("Sending CTCP-%1 request to %2.").arg("PING").arg(recipient); result.output = i18n("Sending CTCP-%1 request to %2.").tqarg("PING").tqarg(recipient);
} }
else else
{ {
result.toServer = "PRIVMSG " + recipient + " :" + '\x01' + out + '\x01'; result.toServer = "PRIVMSG " + recipient + " :" + '\x01' + out + '\x01';
result.output = i18n("Sending CTCP-%1 request to %2.").arg(out).arg(recipient); result.output = i18n("Sending CTCP-%1 request to %2.").tqarg(out).tqarg(recipient);
} }
result.typeString = i18n("CTCP"); result.typeString = i18n("CTCP");
@ -863,7 +863,7 @@ namespace Konversation
else if(parameterList.count()>2) else if(parameterList.count()>2)
{ {
// TODO: make sure this will work: // TODO: make sure this will work:
//output=i18n("Usage: %1DCC SEND nickname [fi6lename] [filename] ...").arg(commandChar); //output=i18n("Usage: %1DCC SEND nickname [fi6lename] [filename] ...").tqarg(commandChar);
KURL fileURL(parameterList[2]); KURL fileURL(parameterList[2]);
//We could easily check if the remote file exists, but then we might //We could easily check if the remote file exists, but then we might
@ -874,12 +874,12 @@ namespace Konversation
} }
else else
{ {
result = error(i18n("File \"%1\" does not exist.").arg(parameterList[2])); result = error(i18n("File \"%1\" does not exist.").tqarg(parameterList[2]));
} }
} }
else // Don't know how this should happen, but ... else // Don't know how this should happen, but ...
{ {
result = usage(i18n("Usage: %1DCC [SEND nickname filename]").arg(commandChar)); result = usage(i18n("Usage: %1DCC [SEND nickname filename]").tqarg(commandChar));
} }
} }
// TODO: DCC Chat etc. comes here // TODO: DCC Chat etc. comes here
@ -891,12 +891,12 @@ namespace Konversation
} }
else else
{ {
result = usage(i18n("Usage: %1DCC [CHAT nickname]").arg(commandChar)); result = usage(i18n("Usage: %1DCC [CHAT nickname]").tqarg(commandChar));
} }
} }
else else
{ {
result = error(i18n("Unrecognized command %1DCC %2. Possible commands are SEND, CHAT, CLOSE.").arg(commandChar).arg(parameterList[0])); result = error(i18n("Unrecognized command %1DCC %2. Possible commands are SEND, CHAT, CLOSE.").tqarg(commandChar).tqarg(parameterList[0]));
} }
} }
@ -993,7 +993,7 @@ namespace Konversation
if(parameter.isEmpty()) if(parameter.isEmpty())
{ {
result = usage(i18n("Usage: %1INVITE <nick> [channel]").arg(commandChar)); result = usage(i18n("Usage: %1INVITE <nick> [channel]").tqarg(commandChar));
} }
else else
{ {
@ -1008,7 +1008,7 @@ namespace Konversation
} }
else else
{ {
result = error(i18n("%1INVITE without channel name works only from within channels.").arg(commandChar)); result = error(i18n("%1INVITE without channel name works only from within channels.").tqarg(commandChar));
} }
} }
@ -1020,7 +1020,7 @@ namespace Konversation
} }
else else
{ {
result = error(i18n("%1 is not a channel.").arg(channel)); result = error(i18n("%1 is not a channel.").tqarg(channel));
} }
} }
} }
@ -1034,7 +1034,7 @@ namespace Konversation
if(parameter.isEmpty()) if(parameter.isEmpty())
{ {
result = usage(i18n("Usage: %1EXEC <script> [parameter list]").arg(commandChar)); result = usage(i18n("Usage: %1EXEC <script> [parameter list]").tqarg(commandChar));
} }
else else
{ {
@ -1067,7 +1067,7 @@ namespace Konversation
} }
else else
{ {
result = usage(i18n("Usage: %1RAW [OPEN | CLOSE]").arg(commandChar)); result = usage(i18n("Usage: %1RAW [OPEN | CLOSE]").tqarg(commandChar));
} }
return result; return result;
@ -1110,7 +1110,7 @@ namespace Konversation
if(list.isEmpty()) if(list.isEmpty())
result.output = i18n("Current notify list is empty."); result.output = i18n("Current notify list is empty.");
else else
result.output = i18n("Current notify list: %1").arg(list); result.output = i18n("Current notify list: %1").tqarg(list);
result.type = Program; result.type = Program;
return result; return result;
@ -1191,9 +1191,9 @@ namespace Konversation
{ {
// destination is no channel => error // destination is no channel => error
if (!kick) if (!kick)
result = error(i18n("%1BAN without channel name works only from inside a channel.").arg(commandChar)); result = error(i18n("%1BAN without channel name works only from inside a channel.").tqarg(commandChar));
else else
result = error(i18n("%1KICKBAN without channel name works only from inside a channel.").arg(commandChar)); result = error(i18n("%1KICKBAN without channel name works only from inside a channel.").tqarg(commandChar));
// no usage information after error // no usage information after error
showUsage = false; showUsage = false;
@ -1226,9 +1226,9 @@ namespace Konversation
if (showUsage) if (showUsage)
{ {
if (!kick) if (!kick)
result = usage(i18n("Usage: %1BAN [-HOST | -DOMAIN | -USERHOST | -USERDOMAIN] [channel] <user|mask>").arg(commandChar)); result = usage(i18n("Usage: %1BAN [-HOST | -DOMAIN | -USERHOST | -USERDOMAIN] [channel] <user|mask>").tqarg(commandChar));
else else
result = usage(i18n("Usage: %1KICKBAN [-HOST | -DOMAIN | -USERHOST | -USERDOMAIN] [channel] <user|mask> [reason]").arg(commandChar)); result = usage(i18n("Usage: %1KICKBAN [-HOST | -DOMAIN | -USERHOST | -USERDOMAIN] [channel] <user|mask> [reason]").tqarg(commandChar));
} }
return result; return result;
@ -1268,7 +1268,7 @@ namespace Konversation
else else
{ {
// destination is no channel => error // destination is no channel => error
result = error(i18n("%1UNBAN without channel name works only from inside a channel.").arg(commandChar)); result = error(i18n("%1UNBAN without channel name works only from inside a channel.").tqarg(commandChar));
// no usage information after error // no usage information after error
showUsage = false; showUsage = false;
} }
@ -1283,7 +1283,7 @@ namespace Konversation
if(showUsage) if(showUsage)
{ {
result = usage(i18n("Usage: %1UNBAN [channel] pattern").arg(commandChar)); result = usage(i18n("Usage: %1UNBAN [channel] pattern").tqarg(commandChar));
} }
return result; return result;
@ -1331,7 +1331,7 @@ namespace Konversation
Preferences::addIgnore(parameterList[index] + ',' + TQString::number(value)); Preferences::addIgnore(parameterList[index] + ',' + TQString::number(value));
} }
result.output = i18n("Added %1 to your ignore list.").arg(parameterList.join(", ")); result.output = i18n("Added %1 to your ignore list.").tqarg(parameterList.join(", "));
result.typeString = i18n("Ignore"); result.typeString = i18n("Ignore");
result.type = Program; result.type = Program;
@ -1342,7 +1342,7 @@ namespace Konversation
if(showUsage) if(showUsage)
{ {
result = usage(i18n("Usage: %1IGNORE [ -ALL ] <user 1> <user 2> ... <user n>").arg(commandChar)); result = usage(i18n("Usage: %1IGNORE [ -ALL ] <user 1> <user 2> ... <user n>").tqarg(commandChar));
} }
return result; return result;
@ -1354,7 +1354,7 @@ namespace Konversation
if(parameter.isEmpty()) if(parameter.isEmpty())
{ {
result = usage(i18n("Usage: %1UNIGNORE <user 1> <user 2> ... <user n>").arg(commandChar)); result = usage(i18n("Usage: %1UNIGNORE <user 1> <user 2> ... <user n>").tqarg(commandChar));
} }
else else
{ {
@ -1404,19 +1404,19 @@ namespace Konversation
// Print all successful unignores, in case there were any // Print all successful unignores, in case there were any
if (succeeded.count()>=1) if (succeeded.count()>=1)
{ {
m_server->appendMessageToFrontmost(i18n("Ignore"),i18n("Removed %1 from your ignore list.").arg(succeeded.join(", "))); m_server->appendMessageToFrontmost(i18n("Ignore"),i18n("Removed %1 from your ignore list.").tqarg(succeeded.join(", ")));
} }
// One failed unignore // One failed unignore
if (failed.count()==1) if (failed.count()==1)
{ {
m_server->appendMessageToFrontmost(i18n("Error"),i18n("No such ignore: %1").arg(failed.join(", "))); m_server->appendMessageToFrontmost(i18n("Error"),i18n("No such ignore: %1").tqarg(failed.join(", ")));
} }
// Multiple failed unignores // Multiple failed unignores
if (failed.count()>1) if (failed.count()>1)
{ {
m_server->appendMessageToFrontmost(i18n("Error"),i18n("No such ignores: %1").arg(failed.join(", "))); m_server->appendMessageToFrontmost(i18n("Error"),i18n("No such ignores: %1").tqarg(failed.join(", ")));
} }
} }
@ -1429,7 +1429,7 @@ namespace Konversation
if(parameter.isEmpty()) if(parameter.isEmpty())
{ {
result = usage(i18n("Usage: %1TQUOTE command list").arg(commandChar)); result = usage(i18n("Usage: %1TQUOTE command list").tqarg(commandChar));
} }
else else
{ {
@ -1445,7 +1445,7 @@ namespace Konversation
if(parameter.isEmpty()) if(parameter.isEmpty())
{ {
result = usage(i18n("Usage: %1SAY text").arg(commandChar)); result = usage(i18n("Usage: %1SAY text").tqarg(commandChar));
} }
else else
{ {
@ -1507,7 +1507,7 @@ namespace Konversation
if(parameter.isEmpty()) if(parameter.isEmpty())
{ {
result = usage(i18n("Usage: %1AME text").arg(commandChar)); result = usage(i18n("Usage: %1AME text").tqarg(commandChar));
} }
emit multiServerCommand("me", parameter); emit multiServerCommand("me", parameter);
@ -1520,7 +1520,7 @@ namespace Konversation
if(parameter.isEmpty()) if(parameter.isEmpty())
{ {
result = usage(i18n("Usage: %1AMSG text").arg(commandChar)); result = usage(i18n("Usage: %1AMSG text").tqarg(commandChar));
} }
emit multiServerCommand("msg", parameter); emit multiServerCommand("msg", parameter);
@ -1562,7 +1562,7 @@ namespace Konversation
} }
else else
{ {
result = usage(i18n("Usage: %1OMSG text").arg(commandChar)); result = usage(i18n("Usage: %1OMSG text").tqarg(commandChar));
} }
return result; return result;
@ -1577,11 +1577,11 @@ namespace Konversation
result.toServer = "NOTICE @"+destination+" :"+parameter; result.toServer = "NOTICE @"+destination+" :"+parameter;
result.typeString = i18n("Notice"); result.typeString = i18n("Notice");
result.type = Program; result.type = Program;
result.output = i18n("Sending notice \"%1\" to %2.").arg(parameter, destination); result.output = i18n("Sending notice \"%1\" to %2.").tqarg(parameter, destination);
} }
else else
{ {
result = usage(i18n("Usage: %1ONOTICE text").arg(commandChar)); result = usage(i18n("Usage: %1ONOTICE text").tqarg(commandChar));
} }
return result; return result;
@ -1594,7 +1594,7 @@ namespace Konversation
if (charset.isEmpty ()) if (charset.isEmpty ())
{ {
result = info (i18n("Current encoding is: %1") result = info (i18n("Current encoding is: %1")
.arg(m_server->getIdentity()->getCodec()->name())); .tqarg(m_server->getIdentity()->getCodec()->name()));
return result; return result;
} }
@ -1604,7 +1604,7 @@ namespace Konversation
{ {
m_server->getIdentity()->setCodecName(shortName); m_server->getIdentity()->setCodecName(shortName);
emit encodingChanged(); emit encodingChanged();
result = info (i18n("Switched to %1 encoding.").arg(shortName)); result = info (i18n("Switched to %1 encoding.").tqarg(shortName));
} }
else else
{ {
@ -1620,7 +1620,7 @@ namespace Konversation
TQStringList parms = TQStringList::split(" ", parameter); TQStringList parms = TQStringList::split(" ", parameter);
if (parms.count() == (0 >> parms.count() > 2)) if (parms.count() == (0 >> parms.count() > 2))
return usage(i18n("Usage: %1setkey [<nick|channel>] <key> sets the encryption key for nick or channel. %2setkey <key> when in a channel or query tab to set the key for it.").arg(commandChar).arg(commandChar) ); return usage(i18n("Usage: %1setkey [<nick|channel>] <key> sets the encryption key for nick or channel. %2setkey <key> when in a channel or query tab to set the key for it.").tqarg(commandChar).tqarg(commandChar) );
else if (parms.count() == 1) else if (parms.count() == 1)
parms.prepend(destination); parms.prepend(destination);
@ -1631,7 +1631,7 @@ namespace Konversation
else if (m_server->getQueryByName(parms[0])) else if (m_server->getQueryByName(parms[0]))
m_server->getQueryByName(parms[0])->setEncryptedOutput(true); m_server->getQueryByName(parms[0])->setEncryptedOutput(true);
return info(i18n("The key for %1 has been set.").arg(parms[0])); return info(i18n("The key for %1 has been set.").tqarg(parms[0]));
} }
OutputFilterResult OutputFilter::parseDelKey(const TQString& prametr) OutputFilterResult OutputFilter::parseDelKey(const TQString& prametr)
@ -1639,7 +1639,7 @@ namespace Konversation
TQString parameter(prametr.isEmpty()?destination:prametr); TQString parameter(prametr.isEmpty()?destination:prametr);
if(parameter.isEmpty() || parameter.contains(' ')) if(parameter.isEmpty() || parameter.contains(' '))
return usage(i18n("Usage: %1delkey <nick> or <channel> deletes the encryption key for nick or channel").arg(commandChar)); return usage(i18n("Usage: %1delkey <nick> or <channel> deletes the encryption key for nick or channel").tqarg(commandChar));
m_server->setKeyForRecipient(parameter, ""); m_server->setKeyForRecipient(parameter, "");
@ -1648,7 +1648,7 @@ namespace Konversation
else if (m_server->getQueryByName(parameter)) else if (m_server->getQueryByName(parameter))
m_server->getQueryByName(parameter)->setEncryptedOutput(false); m_server->getQueryByName(parameter)->setEncryptedOutput(false);
return info(i18n("The key for %1 has been deleted.").arg(parameter)); return info(i18n("The key for %1 has been deleted.").tqarg(parameter));
} }
OutputFilterResult OutputFilter::parseShowKey(const TQString& prametr) OutputFilterResult OutputFilter::parseShowKey(const TQString& prametr)
@ -1657,9 +1657,9 @@ namespace Konversation
TQString key(m_server->getKeyForRecipient(parameter)); TQString key(m_server->getKeyForRecipient(parameter));
TQWidget *mw=KonversationApplication::instance()->getMainWindow(); TQWidget *mw=KonversationApplication::instance()->getMainWindow();
if (!key.isEmpty()) if (!key.isEmpty())
KMessageBox::information(mw, i18n("The key for %1 is \"%2\".").arg(parameter).arg(key), i18n("Blowfish")); KMessageBox::information(mw, i18n("The key for %1 is \"%2\".").tqarg(parameter).tqarg(key), i18n("Blowfish"));
else else
KMessageBox::information(mw, i18n("No key has been set for %1.").arg(parameter)); KMessageBox::information(mw, i18n("No key has been set for %1.").tqarg(parameter));
OutputFilterResult result; OutputFilterResult result;
return result; return result;
} }
@ -1679,7 +1679,7 @@ namespace Konversation
if(parameter.isEmpty()) if(parameter.isEmpty())
{ {
result = usage(i18n("Usage: %1DNS <nick>").arg(commandChar)); result = usage(i18n("Usage: %1DNS <nick>").tqarg(commandChar));
} }
else else
{ {
@ -1702,12 +1702,12 @@ namespace Konversation
if (KNetwork::KReverseResolver::resolve(socketAddress,resolvedTarget,serv)) if (KNetwork::KReverseResolver::resolve(socketAddress,resolvedTarget,serv))
{ {
result.typeString = i18n("DNS"); result.typeString = i18n("DNS");
result.output = i18n("Resolved %1 to: %2").arg(target).arg(resolvedTarget); result.output = i18n("Resolved %1 to: %2").tqarg(target).tqarg(resolvedTarget);
result.type = Program; result.type = Program;
} }
else else
{ {
result = error(i18n("Unable to resolve %1").arg(target)); result = error(i18n("Unable to resolve %1").tqarg(target));
} }
#else #else
result = error(i18n("Reverse-resolving requires KDE version 3.5.1 or higher.")); result = error(i18n("Reverse-resolving requires KDE version 3.5.1 or higher."));
@ -1724,12 +1724,12 @@ namespace Konversation
{ {
TQString resolvedTarget = resolved.first().address().nodeName(); TQString resolvedTarget = resolved.first().address().nodeName();
result.typeString = i18n("DNS"); result.typeString = i18n("DNS");
result.output = i18n("Resolved %1 to: %2").arg(target).arg(resolvedTarget); result.output = i18n("Resolved %1 to: %2").tqarg(target).tqarg(resolvedTarget);
result.type = Program; result.type = Program;
} }
else else
{ {
result = error(i18n("Unable to resolve %1").arg(target)); result = error(i18n("Unable to resolve %1").tqarg(target));
} }
} }
// Parameter is either host nor IP, so request a lookup from server, which in // Parameter is either host nor IP, so request a lookup from server, which in
@ -1773,7 +1773,7 @@ namespace Konversation
if(parameter.isEmpty()) if(parameter.isEmpty())
{ {
result = usage(i18n("Usage: %1KILL <nick> [comment]").arg(commandChar)); result = usage(i18n("Usage: %1KILL <nick> [comment]").tqarg(commandChar));
} }
else else
{ {

@ -26,9 +26,9 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <textstream.h> #include <tqtextstream.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
#include <tqsplitter.h> #include <tqsplitter.h>
@ -57,10 +57,10 @@ Query::Query(TQWidget* parent, TQString _name) : ChatWindow(parent)
awayState=false; awayState=false;
TQHBox *box = new TQHBox(m_headerSplitter); TQHBox *box = new TQHBox(m_headerSplitter);
addresseeimage = new TQLabel(box, "query_image"); addresseeimage = new TQLabel(box, "query_image");
addresseeimage->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); addresseeimage->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
addresseeimage->hide(); addresseeimage->hide();
addresseelogoimage = new TQLabel(box, "query_logo_image"); addresseelogoimage = new TQLabel(box, "query_logo_image");
addresseelogoimage->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); addresseelogoimage->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
addresseelogoimage->hide(); addresseelogoimage->hide();
queryHostmask=new Konversation::TopicLabel(box, "query_hostmask"); queryHostmask=new Konversation::TopicLabel(box, "query_hostmask");
@ -284,8 +284,8 @@ void Query::updateAppearance()
} }
else else
{ {
fg=colorGroup().foreground(); fg=tqcolorGroup().foreground();
bg=colorGroup().base(); bg=tqcolorGroup().base();
} }
queryInput->unsetPalette(); queryInput->unsetPalette();
@ -365,7 +365,7 @@ void Query::showEvent(TQShowEvent*)
if(m_initialShow) { if(m_initialShow) {
m_initialShow = false; m_initialShow = false;
TQValueList<int> sizes; TQValueList<int> sizes;
sizes << queryHostmask->sizeHint().height() << (height() - queryHostmask->sizeHint().height()); sizes << queryHostmask->tqsizeHint().height() << (height() - queryHostmask->tqsizeHint().height());
m_headerSplitter->setSizes(sizes); m_headerSplitter->setSizes(sizes);
} }
} }
@ -385,7 +385,7 @@ void Query::popup(int id)
case Konversation::IgnoreNick: case Konversation::IgnoreNick:
{ {
if (KMessageBox::warningContinueCancel(this, i18n("Do you want to ignore %1?").arg(name), if (KMessageBox::warningContinueCancel(this, i18n("Do you want to ignore %1?").tqarg(name),
i18n("Ignore"), i18n("Ignore"), "IgnoreNick") == KMessageBox::Continue) i18n("Ignore"), i18n("Ignore"), "IgnoreNick") == KMessageBox::Continue)
{ {
sendQueryText(Preferences::commandChar()+"IGNORE -ALL "+name); sendQueryText(Preferences::commandChar()+"IGNORE -ALL "+name);
@ -405,7 +405,7 @@ void Query::popup(int id)
} }
case Konversation::UnignoreNick: case Konversation::UnignoreNick:
{ {
TQString question = i18n("Do you want to stop ignoring %1?").arg(name); TQString question = i18n("Do you want to stop ignoring %1?").tqarg(name);
if (KMessageBox::warningContinueCancel(this, question, i18n("Unignore"), i18n("Unignore"), "UnignoreNick") == if (KMessageBox::warningContinueCancel(this, question, i18n("Unignore"), i18n("Unignore"), "UnignoreNick") ==
KMessageBox::Continue) KMessageBox::Continue)
@ -590,14 +590,14 @@ TQString Query::getChannelEncoding() // virtual
TQString Query::getChannelEncodingDefaultDesc() // virtual TQString Query::getChannelEncodingDefaultDesc() // virtual
{ {
return i18n("Identity Default ( %1 )").arg(getServer()->getIdentity()->getCodecName()); return i18n("Identity Default ( %1 )").tqarg(getServer()->getIdentity()->getCodecName());
} }
bool Query::closeYourself(bool confirm) bool Query::closeYourself(bool confirm)
{ {
int result = KMessageBox::Continue; int result = KMessageBox::Continue;
if (confirm) if (confirm)
result=KMessageBox::warningContinueCancel(this, i18n("Do you want to close your query with %1?").arg(getName()), i18n("Close Query"), i18n("Close"), "QuitQueryTab"); result=KMessageBox::warningContinueCancel(this, i18n("Do you want to close your query with %1?").tqarg(getName()), i18n("Close Query"), i18n("Close"), "QuitQueryTab");
if (result == KMessageBox::Continue) if (result == KMessageBox::Continue)
{ {
@ -659,14 +659,14 @@ void Query::quitNick(const TQString& reason)
if (displayReason.isEmpty()) if (displayReason.isEmpty())
{ {
appendCommandMessage(i18n("Quit"),i18n("%1 has left this server.").arg(getName()),false); appendCommandMessage(i18n("Quit"),i18n("%1 has left this server.").tqarg(getName()),false);
} }
else else
{ {
if (displayReason.find(TQRegExp("[\\0000-\\0037]"))!=-1) if (displayReason.find(TQRegExp("[\\0000-\\0037]"))!=-1)
displayReason+="\017"; displayReason+="\017";
appendCommandMessage(i18n("Quit"),i18n("%1 has left this server (%2).").arg(getName()).arg(displayReason),false); appendCommandMessage(i18n("Quit"),i18n("%1 has left this server (%2).").tqarg(getName()).tqarg(displayReason),false);
} }
} }

@ -32,7 +32,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout92</cstring> <cstring>tqlayout92</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -54,7 +54,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>34</height> <height>34</height>
@ -96,7 +96,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>33</height> <height>33</height>
@ -132,7 +132,7 @@
</property> </property>
<widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout164</cstring> <cstring>tqlayout164</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -185,7 +185,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>layout242</cstring> <cstring>tqlayout242</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -239,7 +239,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="1"> <widget class="TQLayoutWidget" row="0" column="1">
<property name="name"> <property name="name">
<cstring>layout236_2_2</cstring> <cstring>tqlayout236_2_2</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -314,7 +314,7 @@
</property> </property>
<widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout163</cstring> <cstring>tqlayout163</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -367,7 +367,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="1"> <widget class="TQLayoutWidget" row="0" column="1">
<property name="name"> <property name="name">
<cstring>layout236_2</cstring> <cstring>tqlayout236_2</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -415,7 +415,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>layout240</cstring> <cstring>tqlayout240</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -496,7 +496,7 @@
</property> </property>
<widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout161</cstring> <cstring>tqlayout161</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -552,7 +552,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>layout237</cstring> <cstring>tqlayout237</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -606,7 +606,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="1"> <widget class="TQLayoutWidget" row="0" column="1">
<property name="name"> <property name="name">
<cstring>layout236</cstring> <cstring>tqlayout236</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -681,7 +681,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout88</cstring> <cstring>tqlayout88</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">

@ -98,7 +98,7 @@ void QuickButtons_Config::saveSettings()
for(unsigned int index=0;index<newList.count();index++) for(unsigned int index=0;index<newList.count();index++)
{ {
// write the current button's name and definition // write the current button's name and definition
config->writeEntry(TQString("Button%1").arg(index),newList[index]); config->writeEntry(TQString("Button%1").tqarg(index),newList[index]);
} // for } // for
} }
// if there were no buttons at all, write a dummy entry to prevent KConfigXT from "optimizing" // if there were no buttons at all, write a dummy entry to prevent KConfigXT from "optimizing"

@ -63,7 +63,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="1" column="0"> <widget class="TQLayoutWidget" row="1" column="0">
<property name="name"> <property name="name">
<cstring>layout3</cstring> <cstring>tqlayout3</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -161,7 +161,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="1" rowspan="3" colspan="1"> <widget class="TQLayoutWidget" row="0" column="1" rowspan="3" colspan="1">
<property name="name"> <property name="name">
<cstring>layout1</cstring> <cstring>tqlayout1</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -193,7 +193,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>230</height> <height>230</height>

@ -15,7 +15,7 @@
#include "quickconnectdialog.h" #include "quickconnectdialog.h"
#include "konversationapplication.h" #include "konversationapplication.h"
#include <layout.h> #include <tqlayout.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
@ -31,9 +31,9 @@ KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true)
TQWidget* page = new TQWidget(this); TQWidget* page = new TQWidget(this);
setMainWidget(page); setMainWidget(page);
TQGridLayout* layout = new TQGridLayout(page, 2, 4); TQGridLayout* tqlayout = new TQGridLayout(page, 2, 4);
layout->setSpacing(spacingHint()); tqlayout->setSpacing(spacingHint());
layout->setColStretch(1, 10); tqlayout->setColStretch(1, 10);
TQLabel* hostNameLabel = new TQLabel(i18n("&Server host:"), page); TQLabel* hostNameLabel = new TQLabel(i18n("&Server host:"), page);
TQString hostNameWT = i18n("Enter the host of the network here."); TQString hostNameWT = i18n("Enter the host of the network here.");
@ -66,17 +66,17 @@ KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true)
sslCheckBox = new TQCheckBox(page, "sslCheckBox"); sslCheckBox = new TQCheckBox(page, "sslCheckBox");
sslCheckBox->setText(i18n("&Use SSL")); sslCheckBox->setText(i18n("&Use SSL"));
layout->addWidget(hostNameLabel, 0, 0); tqlayout->addWidget(hostNameLabel, 0, 0);
layout->addWidget(hostNameInput, 0, 1); tqlayout->addWidget(hostNameInput, 0, 1);
layout->addWidget(portLabel, 0, 2); tqlayout->addWidget(portLabel, 0, 2);
layout->addWidget(portInput, 0, 3); tqlayout->addWidget(portInput, 0, 3);
layout->addWidget(nickLabel, 1, 0); tqlayout->addWidget(nickLabel, 1, 0);
layout->addWidget(nickInput, 1, 1); tqlayout->addWidget(nickInput, 1, 1);
layout->addWidget(passwordLabel, 1, 2); tqlayout->addWidget(passwordLabel, 1, 2);
layout->addWidget(passwordInput, 1, 3); tqlayout->addWidget(passwordInput, 1, 3);
layout->addWidget(sslCheckBox, 2, 0); tqlayout->addWidget(sslCheckBox, 2, 0);
hostNameInput->setFocus(); hostNameInput->setFocus();

@ -14,7 +14,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqtimer.h> #include <tqtimer.h>
#include <palette.h> #include <tqpalette.h>
#include <tqaccel.h> #include <tqaccel.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqpixmap.h> #include <tqpixmap.h>
@ -126,7 +126,7 @@ void SearchBar::slotFind()
m_searchEdit->unsetPalette(); m_searchEdit->unsetPalette();
m_findNextButton->setEnabled(false); m_findNextButton->setEnabled(false);
m_findPreviousButton->setEnabled(false); m_findPreviousButton->setEnabled(false);
setStatus(TQPixmap(), ""); settqStatus(TQPixmap(), "");
return; return;
} }
@ -140,7 +140,7 @@ void SearchBar::slotFindNext()
m_searchEdit->unsetPalette(); m_searchEdit->unsetPalette();
m_findNextButton->setEnabled(false); m_findNextButton->setEnabled(false);
m_findPreviousButton->setEnabled(false); m_findPreviousButton->setEnabled(false);
setStatus(TQPixmap(), ""); settqStatus(TQPixmap(), "");
return; return;
} }
@ -154,7 +154,7 @@ void SearchBar::slotFindPrevious()
m_searchEdit->unsetPalette(); m_searchEdit->unsetPalette();
m_findNextButton->setEnabled(false); m_findNextButton->setEnabled(false);
m_findPreviousButton->setEnabled(false); m_findPreviousButton->setEnabled(false);
setStatus(TQPixmap(), ""); settqStatus(TQPixmap(), "");
return; return;
} }
@ -170,7 +170,7 @@ void SearchBar::setHasMatch(bool value)
m_findPreviousButton->setEnabled(value); m_findPreviousButton->setEnabled(value);
} }
void SearchBar::setStatus(const TQPixmap& pix, const TQString& text) void SearchBar::settqStatus(const TQPixmap& pix, const TQString& text)
{ {
if(!text.isEmpty()) { if(!text.isEmpty()) {
m_statusPixLabel->show(); m_statusPixLabel->show();

@ -34,7 +34,7 @@ class SearchBar : public SearchBarBase
~SearchBar(); ~SearchBar();
void setHasMatch(bool value); void setHasMatch(bool value);
void setStatus(const TQPixmap& pix, const TQString& text); void settqStatus(const TQPixmap& pix, const TQString& text);
TQString pattern() const; TQString pattern() const;

@ -44,7 +44,7 @@
#include <tqregexp.h> #include <tqregexp.h>
#include <tqhostaddress.h> #include <tqhostaddress.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqdatetime.h> #include <tqdatetime.h>
#include <kapplication.h> #include <kapplication.h>
@ -324,7 +324,7 @@ void Server::connectSignals()
connect(&m_inputFilter, TQT_SIGNAL(addToChannelList(const TQString&, int, const TQString& )), connect(&m_inputFilter, TQT_SIGNAL(addToChannelList(const TQString&, int, const TQString& )),
this, TQT_SLOT(addToChannelList(const TQString&, int, const TQString& ))); this, TQT_SLOT(addToChannelList(const TQString&, int, const TQString& )));
// Status View // tqStatus View
connect(this, TQT_SIGNAL(serverOnline(bool)), getStatusView(), TQT_SLOT(serverOnline(bool))); connect(this, TQT_SIGNAL(serverOnline(bool)), getStatusView(), TQT_SLOT(serverOnline(bool)));
// Scripts // Scripts
@ -413,8 +413,8 @@ void Server::connectToIRCServer()
// set up the connection details // set up the connection details
setPrefixes(m_serverNickPrefixModes, m_serverNickPrefixes); setPrefixes(m_serverNickPrefixModes, m_serverNickPrefixes);
getStatusView()->appendServerMessage(i18n("Info"),i18n("Looking for server %1:%2...") getStatusView()->appendServerMessage(i18n("Info"),i18n("Looking for server %1:%2...")
.arg(getConnectionSettings().server().host()) .tqarg(getConnectionSettings().server().host())
.arg(getConnectionSettings().server().port())); .tqarg(getConnectionSettings().server().port()));
// reset InputFilter (auto request info, /WHO request info) // reset InputFilter (auto request info, /WHO request info)
m_inputFilter.reset(); m_inputFilter.reset();
} }
@ -534,8 +534,8 @@ void Server::lookupFinished()
{ {
// inform user about the error // inform user about the error
getStatusView()->appendServerMessage(i18n("Error"),i18n("Server %1 not found: %2") getStatusView()->appendServerMessage(i18n("Error"),i18n("Server %1 not found: %2")
.arg(getConnectionSettings().server().host()) .tqarg(getConnectionSettings().server().host())
.arg(m_socket->KSocketBase::errorString(m_socket->error()))); .tqarg(m_socket->KSocketBase::errorString(m_socket->error())));
m_socket->resetStatus(); m_socket->resetStatus();
@ -607,8 +607,8 @@ void Server::broken(int state)
static_cast<KonversationApplication*>(kapp)->notificationHandler()->connectionFailure(getStatusView(), getServerName()); static_cast<KonversationApplication*>(kapp)->notificationHandler()->connectionFailure(getStatusView(), getServerName());
TQString error = i18n("Connection to Server %1 lost: %2.") TQString error = i18n("Connection to Server %1 lost: %2.")
.arg(getConnectionSettings().server().host()) .tqarg(getConnectionSettings().server().host())
.arg(KNetwork::KSocketBase::errorString((KNetwork::KSocketBase::SocketError)state)); .tqarg(KNetwork::KSocketBase::errorString((KNetwork::KSocketBase::SocketError)state));
getStatusView()->appendServerMessage(i18n("Error"), error); getStatusView()->appendServerMessage(i18n("Error"), error);
@ -619,9 +619,9 @@ void Server::broken(int state)
void Server::sslError(const TQString& reason) void Server::sslError(const TQString& reason)
{ {
TQString error = i18n("Could not connect to %1:%2 using SSL encryption.Maybe the server does not support SSL, or perhaps you have the wrong port? %3") TQString error = i18n("Could not connect to %1:%2 using SSL encryption.Maybe the server does not support SSL, or perhaps you have the wrong port? %3")
.arg(getConnectionSettings().server().host()) .tqarg(getConnectionSettings().server().host())
.arg(getConnectionSettings().server().port()) .tqarg(getConnectionSettings().server().port())
.arg(reason); .tqarg(reason);
getStatusView()->appendServerMessage(i18n("SSL Connection Error"),error); getStatusView()->appendServerMessage(i18n("SSL Connection Error"),error);
updateConnectionState(Konversation::SSDeliberatelyDisconnected); updateConnectionState(Konversation::SSDeliberatelyDisconnected);
@ -707,7 +707,7 @@ void Server::quitServer()
m_socket->close(); m_socket->close();
getStatusView()->appendServerMessage(i18n("Info"), i18n("Disconnected from %1.").arg(getConnectionSettings().server().host())); getStatusView()->appendServerMessage(i18n("Info"), i18n("Disconnected from %1.").tqarg(getConnectionSettings().server().host()));
} }
void Server::notifyAction(const TQString& nick) void Server::notifyAction(const TQString& nick)
@ -857,7 +857,7 @@ TQString Server::getNextNickname()
if (newNick.isNull()) if (newNick.isNull())
{ {
TQString inputText = i18n("No nicknames from the \"%1\" identity were accepted by the connection \"%2\".\nPlease enter a new one or press Cancel to disconnect:").arg(getIdentity()->getName()).arg(getDisplayName()); TQString inputText = i18n("No nicknames from the \"%1\" identity were accepted by the connection \"%2\".\nPlease enter a new one or press Cancel to disconnect:").tqarg(getIdentity()->getName()).tqarg(getDisplayName());
newNick = KInputDialog::getText(i18n("Nickname error"), inputText, newNick = KInputDialog::getText(i18n("Nickname error"), inputText,
TQString(), 0, getStatusView(), "NickChangeDialog"); TQString(), 0, getStatusView(), "NickChangeDialog");
} }
@ -908,7 +908,7 @@ void Server::incoming()
{ {
getStatusView()->appendServerMessage(i18n("Error"), getStatusView()->appendServerMessage(i18n("Error"),
i18n("There was an error reading the data from the server: %1"). i18n("There was an error reading the data from the server: %1").
arg(m_socket->KSocketBase::errorString())); tqarg(m_socket->KSocketBase::errorString()));
broken(m_socket->error()); broken(m_socket->error());
return; return;
@ -1633,7 +1633,7 @@ void Server::requestDccSend(const TQString &a_recipient)
":lastDccDir", ":lastDccDir",
TQString(), TQString(),
getViewContainer()->getWindow(), getViewContainer()->getWindow(),
i18n("Select File(s) to Send to %1").arg(recipient) i18n("Select File(s) to Send to %1").tqarg(recipient)
); );
KURL::List::iterator it; KURL::List::iterator it;
for ( it = fileURLs.begin() ; it != fileURLs.end() ; ++it ) for ( it = fileURLs.begin() ; it != fileURLs.end() ; ++it )
@ -1709,7 +1709,7 @@ void Server::addDccGet(const TQString &sourceNick, const TQStringList &dccArgume
appendMessageToFrontmost( i18n( "DCC" ), appendMessageToFrontmost( i18n( "DCC" ),
i18n( "%1 offers to send you \"%2\" (%3)..." ) i18n( "%1 offers to send you \"%2\" (%3)..." )
.arg( newDcc->getPartnerNick(), .tqarg( newDcc->getPartnerNick(),
showfile, showfile,
( newDcc->getFileSize() == 0 ) ? i18n( "unknown size" ) : KIO::convertSize( newDcc->getFileSize() ) ) ); ( newDcc->getFileSize() == 0 ) ? i18n( "unknown size" ) : KIO::convertSize( newDcc->getFileSize() ) ) );
@ -1725,7 +1725,7 @@ void Server::openDccChat(const TQString& nickname)
void Server::requestDccChat(const TQString& partnerNick, const TQString& numericalOwnIp, const TQString& ownPort) void Server::requestDccChat(const TQString& partnerNick, const TQString& numericalOwnIp, const TQString& ownPort)
{ {
queue(TQString("PRIVMSG %1 :\001DCC CHAT chat %2 %3\001").arg(partnerNick).arg(numericalOwnIp).arg(ownPort)); queue(TQString("PRIVMSG %1 :\001DCC CHAT chat %2 %3\001").tqarg(partnerNick).tqarg(numericalOwnIp).tqarg(ownPort));
} }
void Server::dccSendRequest(const TQString &partner, const TQString &fileName, const TQString &address, const TQString &port, unsigned long size) void Server::dccSendRequest(const TQString &partner, const TQString &fileName, const TQString &address, const TQString &port, unsigned long size)
@ -1740,7 +1740,7 @@ void Server::dccSendRequest(const TQString &partner, const TQString &fileName, c
appendMessageToFrontmost( i18n( "DCC" ), appendMessageToFrontmost( i18n( "DCC" ),
i18n( "Asking %1 to accept upload of \"%2\" (%3)..." ) i18n( "Asking %1 to accept upload of \"%2\" (%3)..." )
.arg( partner, .tqarg( partner,
showfile, showfile,
( size == 0 ) ? i18n( "unknown size" ) : KIO::convertSize( size ) ) ); ( size == 0 ) ? i18n( "unknown size" ) : KIO::convertSize( size ) ) );
} }
@ -1790,7 +1790,7 @@ void Server::startReverseDccSendTransfer(const TQString& sourceNick,const TQStri
appendMessageToFrontmost( i18n( "Error" ), appendMessageToFrontmost( i18n( "Error" ),
i18n( "%1 = file name, %2 = nickname", i18n( "%1 = file name, %2 = nickname",
"Received invalid passive DCC send acceptance message for \"%1\" from %2." ) "Received invalid passive DCC send acceptance message for \"%1\" from %2." )
.arg( showfile, .tqarg( showfile,
sourceNick ) ); sourceNick ) );
} }
@ -1817,7 +1817,7 @@ void Server::resumeDccGetTransfer(const TQString &sourceNick, const TQStringList
appendMessageToFrontmost( i18n( "DCC" ), appendMessageToFrontmost( i18n( "DCC" ),
i18n( "%1 = file name, %2 = nickname of sender, %3 = percentage of file size, %4 = file size", i18n( "%1 = file name, %2 = nickname of sender, %3 = percentage of file size, %4 = file size",
"Resuming download of \"%1\" from %2 starting at %3% of %4..." ) "Resuming download of \"%1\" from %2 starting at %3% of %4..." )
.arg( showfile, .tqarg( showfile,
sourceNick, sourceNick,
TQString::number( dccTransfer->getProgress() ), TQString::number( dccTransfer->getProgress() ),
( dccTransfer->getFileSize() == 0 ) ? i18n( "unknown size" ) : KIO::convertSize( dccTransfer->getFileSize() ) ) ); ( dccTransfer->getFileSize() == 0 ) ? i18n( "unknown size" ) : KIO::convertSize( dccTransfer->getFileSize() ) ) );
@ -1827,7 +1827,7 @@ void Server::resumeDccGetTransfer(const TQString &sourceNick, const TQStringList
appendMessageToFrontmost( i18n( "Error" ), appendMessageToFrontmost( i18n( "Error" ),
i18n( "%1 = file name, %2 = nickname", i18n( "%1 = file name, %2 = nickname",
"Received invalid resume acceptance message for \"%1\" from %2." ) "Received invalid resume acceptance message for \"%1\" from %2." )
.arg( showfile, .tqarg( showfile,
sourceNick ) ); sourceNick ) );
} }
} }
@ -1852,7 +1852,7 @@ void Server::resumeDccSendTransfer(const TQString &sourceNick, const TQStringLis
appendMessageToFrontmost( i18n( "DCC" ), appendMessageToFrontmost( i18n( "DCC" ),
i18n( "%1 = file name, %2 = nickname of recipient, %3 = percentage of file size, %4 = file size", i18n( "%1 = file name, %2 = nickname of recipient, %3 = percentage of file size, %4 = file size",
"Resuming upload of \"%1\" to %2 starting at %3% of %4...") "Resuming upload of \"%1\" to %2 starting at %3% of %4...")
.arg( showfile, .tqarg( showfile,
sourceNick, sourceNick,
TQString::number(dccTransfer->getProgress()), TQString::number(dccTransfer->getProgress()),
( dccTransfer->getFileSize() == 0 ) ? i18n( "unknown size" ) : KIO::convertSize( dccTransfer->getFileSize() ) ) ); ( dccTransfer->getFileSize() == 0 ) ? i18n( "unknown size" ) : KIO::convertSize( dccTransfer->getFileSize() ) ) );
@ -1867,7 +1867,7 @@ void Server::resumeDccSendTransfer(const TQString &sourceNick, const TQStringLis
appendMessageToFrontmost( i18n( "Error" ), appendMessageToFrontmost( i18n( "Error" ),
i18n( "%1 = file name, %2 = nickname", i18n( "%1 = file name, %2 = nickname",
"Received invalid resume request for \"%1\" from %2." ) "Received invalid resume request for \"%1\" from %2." )
.arg( showfile, .tqarg( showfile,
sourceNick ) ); sourceNick ) );
} }
} }
@ -1882,12 +1882,12 @@ void Server::dccGetDone(DccTransfer* item)
if(showfile.startsWith("\"") && showfile.endsWith("\"")) if(showfile.startsWith("\"") && showfile.endsWith("\""))
showfile = showfile.mid(1, showfile.length() - 2); showfile = showfile.mid(1, showfile.length() - 2);
if(item->getStatus()==DccTransfer::Done) if(item->gettqStatus()==DccTransfer::Done)
appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of sender", appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of sender",
"Download of \"%1\" from %2 finished.").arg(showfile, item->getPartnerNick())); "Download of \"%1\" from %2 finished.").tqarg(showfile, item->getPartnerNick()));
else if(item->getStatus()==DccTransfer::Failed) else if(item->gettqStatus()==DccTransfer::Failed)
appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of sender", appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of sender",
"Download of \"%1\" from %2 failed. Reason: %3.").arg(showfile, "Download of \"%1\" from %2 failed. Reason: %3.").tqarg(showfile,
item->getPartnerNick(), item->getStatusDetail())); item->getPartnerNick(), item->getStatusDetail()));
} }
@ -1901,16 +1901,16 @@ void Server::dccSendDone(DccTransfer* item)
if(showfile.startsWith("\"") && showfile.endsWith("\"")) if(showfile.startsWith("\"") && showfile.endsWith("\""))
showfile = showfile.mid(1, showfile.length() - 2); showfile = showfile.mid(1, showfile.length() - 2);
if(item->getStatus()==DccTransfer::Done) if(item->gettqStatus()==DccTransfer::Done)
appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of recipient", appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of recipient",
"Upload of \"%1\" to %2 finished.").arg(showfile, item->getPartnerNick())); "Upload of \"%1\" to %2 finished.").tqarg(showfile, item->getPartnerNick()));
else if(item->getStatus()==DccTransfer::Failed) else if(item->gettqStatus()==DccTransfer::Failed)
appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of recipient", appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of recipient",
"Upload of \"%1\" to %2 failed. Reason: %3.").arg(showfile, item->getPartnerNick(), "Upload of \"%1\" to %2 failed. Reason: %3.").tqarg(showfile, item->getPartnerNick(),
item->getStatusDetail())); item->getStatusDetail()));
} }
void Server::dccStatusChanged(DccTransfer *item, int newStatus, int oldStatus) void Server::dccStatusChanged(DccTransfer *item, int newtqStatus, int oldtqStatus)
{ {
if(!item) if(!item)
return; return;
@ -1923,17 +1923,17 @@ void Server::dccStatusChanged(DccTransfer *item, int newStatus, int oldStatus)
if ( item->getType() == DccTransfer::Send ) if ( item->getType() == DccTransfer::Send )
{ {
// when resuming, a message about the receiver's acceptance has been shown already, so suppress this message // when resuming, a message about the receiver's acceptance has been shown already, so suppress this message
if ( newStatus == DccTransfer::Transferring && oldStatus == DccTransfer::WaitingRemote && !item->isResumed() ) if ( newtqStatus == DccTransfer::Transferring && oldtqStatus == DccTransfer::WaitingRemote && !item->isResumed() )
appendMessageToFrontmost( i18n( "DCC" ), i18n( "%1 = file name, %2 nickname of recipient", appendMessageToFrontmost( i18n( "DCC" ), i18n( "%1 = file name, %2 nickname of recipient",
"Sending \"%1\" to %2...").arg( showfile, item->getPartnerNick() ) ); "Sending \"%1\" to %2...").tqarg( showfile, item->getPartnerNick() ) );
} }
else // type == Receive else // type == Receive
{ {
if ( newStatus == DccTransfer::Transferring && !item->isResumed() ) if ( newtqStatus == DccTransfer::Transferring && !item->isResumed() )
{ {
appendMessageToFrontmost( i18n( "DCC" ), appendMessageToFrontmost( i18n( "DCC" ),
i18n( "%1 = file name, %2 = file size, %3 = nickname of sender", "Downloading \"%1\" (%2) from %3...") i18n( "%1 = file name, %2 = file size, %3 = nickname of sender", "Downloading \"%1\" (%2) from %3...")
.arg( showfile, .tqarg( showfile,
( item->getFileSize() == 0 ) ? i18n( "unknown size" ) : KIO::convertSize( item->getFileSize() ), ( item->getFileSize() == 0 ) ? i18n( "unknown size" ) : KIO::convertSize( item->getFileSize() ),
item->getPartnerNick() ) ); item->getPartnerNick() ) );
} }
@ -2068,7 +2068,7 @@ void Server::updateChannelMode(const TQString &updater, const TQString &channelN
if (plus) if (plus)
{ {
TQDateTime when; TQDateTime when;
addBan(channelName, TQString("%1 %2 %3").arg(parameter).arg(updater).arg(TQDateTime::currentDateTime().toTime_t())); addBan(channelName, TQString("%1 %2 %3").tqarg(parameter).tqarg(updater).tqarg(TQDateTime::tqcurrentDateTime().toTime_t()));
} else { } else {
removeBan(channelName, parameter); removeBan(channelName, parameter);
} }
@ -2299,7 +2299,7 @@ NickInfoPtr Server::setWatchedNickOnline(const TQString& nickname)
if (!addressee.isEmpty()) Konversation::Addressbook::self()->emitContactPresenceChanged(addressee.uid()); if (!addressee.isEmpty()) Konversation::Addressbook::self()->emitContactPresenceChanged(addressee.uid());
appendMessageToFrontmost(i18n("Notify"),"<a href=\"#"+nickname+"\">"+ appendMessageToFrontmost(i18n("Notify"),"<a href=\"#"+nickname+"\">"+
i18n("%1 is online (%2).").arg(nickname).arg(getServerName())+"</a>", getStatusView()); i18n("%1 is online (%2).").tqarg(nickname).tqarg(getServerName())+"</a>", getStatusView());
static_cast<KonversationApplication*>(kapp)->notificationHandler()->nickOnline(getStatusView(), nickname); static_cast<KonversationApplication*>(kapp)->notificationHandler()->nickOnline(getStatusView(), nickname);
@ -2316,7 +2316,7 @@ void Server::setWatchedNickOffline(const TQString& nickname, const NickInfoPtr n
emit watchedNickChanged(this, nickname, false); emit watchedNickChanged(this, nickname, false);
appendMessageToFrontmost(i18n("Notify"), i18n("%1 went offline (%2).").arg(nickname).arg(getServerName()), getStatusView()); appendMessageToFrontmost(i18n("Notify"), i18n("%1 went offline (%2).").tqarg(nickname).tqarg(getServerName()), getStatusView());
static_cast<KonversationApplication*>(kapp)->notificationHandler()->nickOffline(getStatusView(), nickname); static_cast<KonversationApplication*>(kapp)->notificationHandler()->nickOffline(getStatusView(), nickname);
@ -2727,7 +2727,7 @@ void Server::appendCommandMessageToChannel(const TQString& channel,const TQStrin
} }
else else
{ {
appendStatusMessage(command, TQString("%1 %2").arg(channel).arg(message)); appendStatusMessage(command, TQString("%1 %2").tqarg(channel).tqarg(message));
} }
} }
@ -2895,7 +2895,7 @@ void Server::invitation(const TQString& nick,const TQString& channel)
{ {
if(KMessageBox::questionYesNo(getViewContainer()->getWindow(), if(KMessageBox::questionYesNo(getViewContainer()->getWindow(),
i18n("You were invited by %1 to join channel %2. " i18n("You were invited by %1 to join channel %2. "
"Do you accept the invitation?").arg(nick).arg(channel), "Do you accept the invitation?").tqarg(nick).tqarg(channel),
i18n("Invitation"), i18n("Invitation"),
i18n("Join"), i18n("Join"),
i18n("Ignore"), i18n("Ignore"),
@ -2907,12 +2907,12 @@ void Server::invitation(const TQString& nick,const TQString& channel)
void Server::scriptNotFound(const TQString& name) void Server::scriptNotFound(const TQString& name)
{ {
appendMessageToFrontmost(i18n("DCOP"),i18n("Error: Could not find script \"%1\".").arg(name)); appendMessageToFrontmost(i18n("DCOP"),i18n("Error: Could not find script \"%1\".").tqarg(name));
} }
void Server::scriptExecutionError(const TQString& name) void Server::scriptExecutionError(const TQString& name)
{ {
appendMessageToFrontmost(i18n("DCOP"),i18n("Error: Could not execute script \"%1\". Check file permissions.").arg(name)); appendMessageToFrontmost(i18n("DCOP"),i18n("Error: Could not execute script \"%1\". Check file permissions.").tqarg(name));
} }
bool Server::isAChannel(const TQString &channel) const bool Server::isAChannel(const TQString &channel) const
@ -3226,7 +3226,7 @@ TQString Server::awayTime() const
if (m_away) if (m_away)
{ {
int diff = TQDateTime::currentDateTime().toTime_t() - m_awayTime; int diff = TQDateTime::tqcurrentDateTime().toTime_t() - m_awayTime;
int num = diff / 3600; int num = diff / 3600;
if (num < 10) if (num < 10)
@ -3254,7 +3254,7 @@ TQString Server::awayTime() const
void Server::startAwayTimer() void Server::startAwayTimer()
{ {
m_awayTime = TQDateTime::currentDateTime().toTime_t(); m_awayTime = TQDateTime::tqcurrentDateTime().toTime_t();
} }
KABC::Addressee Server::getOfflineNickAddressee(TQString& nickname) KABC::Addressee Server::getOfflineNickAddressee(TQString& nickname)

@ -502,7 +502,7 @@ void resetNickSelection();
void resumeDccSendTransfer(const TQString& sourceNick,const TQStringList& dccArguments); void resumeDccSendTransfer(const TQString& sourceNick,const TQStringList& dccArguments);
void dccGetDone(DccTransfer* item); void dccGetDone(DccTransfer* item);
void dccSendDone(DccTransfer* item); void dccSendDone(DccTransfer* item);
void dccStatusChanged(DccTransfer* item, int newStatus, int oldStatus); void dccStatusChanged(DccTransfer* item, int newtqStatus, int oldtqStatus);
void scriptNotFound(const TQString& name); void scriptNotFound(const TQString& name);
void scriptExecutionError(const TQString& name); void scriptExecutionError(const TQString& name);
void userhost(const TQString& nick,const TQString& hostmask,bool away,bool ircOp); void userhost(const TQString& nick,const TQString& hostmask,bool away,bool ircOp);

@ -12,7 +12,7 @@
#include "serverdialog.h" #include "serverdialog.h"
#include "serversettings.h" #include "serversettings.h"
#include <layout.h> #include <tqlayout.h>
#include <tqframe.h> #include <tqframe.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlineedit.h> #include <tqlineedit.h>

@ -22,7 +22,7 @@
#include "servergroupdialogui.h" #include "servergroupdialogui.h"
#include <tqframe.h> #include <tqframe.h>
#include <layout.h> #include <tqlayout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqcombobox.h> #include <tqcombobox.h>

@ -185,7 +185,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>0</width> <width>0</width>
<height>20</height> <height>20</height>
@ -264,7 +264,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>255</width> <width>255</width>
<height>20</height> <height>20</height>

@ -18,7 +18,7 @@
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqframe.h> #include <tqframe.h>
#include <layout.h> #include <tqlayout.h>
#include <tqstringlist.h> #include <tqstringlist.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
#include <tqheader.h> #include <tqheader.h>
@ -133,14 +133,14 @@ namespace Konversation
showAtStartup->setChecked(Preferences::showServerList()); showAtStartup->setChecked(Preferences::showServerList());
connect(showAtStartup, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setShowAtStartup(bool))); connect(showAtStartup, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setShowAtStartup(bool)));
TQGridLayout* layout = new TQGridLayout(mainWidget, 5, 2, 0, spacingHint()); TQGridLayout* tqlayout = new TQGridLayout(mainWidget, 5, 2, 0, spacingHint());
layout->addMultiCellWidget(m_serverList, 0, 3, 0, 0); tqlayout->addMultiCellWidget(m_serverList, 0, 3, 0, 0);
layout->addWidget(m_addButton, 0, 1); tqlayout->addWidget(m_addButton, 0, 1);
layout->addWidget(m_editButton, 1, 1); tqlayout->addWidget(m_editButton, 1, 1);
layout->addWidget(m_delButton, 2, 1); tqlayout->addWidget(m_delButton, 2, 1);
layout->addMultiCellWidget(showAtStartup, 4, 4, 0, 1); tqlayout->addMultiCellWidget(showAtStartup, 4, 4, 0, 1);
layout->setRowStretch(3, 10); tqlayout->setRowStretch(3, 10);
m_serverList->setFocus(); m_serverList->setFocus();
@ -287,12 +287,12 @@ namespace Konversation
if (parent && parent->childCount() == 1) if (parent && parent->childCount() == 1)
{ {
KMessageBox::error(this, i18n("You cannot delete %1.\n\nThe network %2 needs to have at least one server.").arg(item->name()).arg(parent->name())); KMessageBox::error(this, i18n("You cannot delete %1.\n\nThe network %2 needs to have at least one server.").tqarg(item->name()).tqarg(parent->name()));
return; return;
} }
else if (parent && parent->childCount() == parent->selectedChildrenCount()) else if (parent && parent->childCount() == parent->selectedChildrenCount())
{ {
KMessageBox::error(this, i18n("You cannot delete the selected servers.\n\nThe network %1 needs to have at least one server.").arg(parent->name())); KMessageBox::error(this, i18n("You cannot delete the selected servers.\n\nThe network %1 needs to have at least one server.").tqarg(parent->name()));
return; return;
} }
} }
@ -309,7 +309,7 @@ namespace Konversation
if (selectedItems.count()>1) if (selectedItems.count()>1)
question = i18n("Do you really want to delete the selected entries?"); question = i18n("Do you really want to delete the selected entries?");
else else
question = i18n("Do you really want to delete %1?").arg(item->name()); question = i18n("Do you really want to delete %1?").tqarg(item->name());
if (KMessageBox::warningContinueCancel(this,question) == KMessageBox::Cancel) if (KMessageBox::warningContinueCancel(this,question) == KMessageBox::Cancel)
{ {
@ -483,7 +483,7 @@ namespace Konversation
} }
m_serverList->setUpdatesEnabled(true); m_serverList->setUpdatesEnabled(true);
m_serverList->repaint(); m_serverList->tqrepaint();
} }
TQListViewItem* ServerListDialog::insertServerGroup(ServerGroupSettingsPtr serverGroup) TQListViewItem* ServerListDialog::insertServerGroup(ServerGroupSettingsPtr serverGroup)

@ -66,7 +66,7 @@ void ServerListView::findDrop(const TQPoint &pos, TQListViewItem *&parent, TQLis
else else
{ {
// Get the closest item before us ('atpos' or the one above, if any) // Get the closest item before us ('atpos' or the one above, if any)
if (p.y() - itemRect(atpos).topLeft().y() < (atpos->height()/2)) if (p.y() - tqitemRect(atpos).topLeft().y() < (atpos->height()/2))
above = atpos->itemAbove(); above = atpos->itemAbove();
else else
above = atpos; above = atpos;

@ -91,7 +91,7 @@ const TQString SSLSocket::details()
{ {
int strength = d->kssl->connectionInfo().getCipherUsedBits(); int strength = d->kssl->connectionInfo().getCipherUsedBits();
TQString details = i18n("Connection is secured with %1 bit SSL.").arg(strength); TQString details = i18n("Connection is secured with %1 bit SSL.").tqarg(strength);
return details; return details;
} }
@ -228,7 +228,7 @@ int SSLSocket::verifyCertificate()
"does not match the one the " "does not match the one the "
"certificate was issued to."); "certificate was issued to.");
result = KMessageBox::warningYesNoCancel( m_serverParent, result = KMessageBox::warningYesNoCancel( m_serverParent,
msg.arg(hostname), msg.tqarg(hostname),
i18n("Server Authentication"), i18n("Server Authentication"),
KGuiItem(i18n("Details")), KGuiItem(i18n("Details")),
KGuiItem(i18n("Continue")), KGuiItem(i18n("Continue")),
@ -265,7 +265,7 @@ int SSLSocket::verifyCertificate()
"does not match the one the " "does not match the one the "
"certificate was issued to."); "certificate was issued to.");
result = KMessageBox::warningYesNoCancel( m_serverParent, result = KMessageBox::warningYesNoCancel( m_serverParent,
msg.arg(hostname), msg.tqarg(hostname),
i18n("Server Authentication"), i18n("Server Authentication"),
KGuiItem(i18n("Details")), KGuiItem(i18n("Details")),
KGuiItem(i18n("Continue")), KGuiItem(i18n("Continue")),
@ -277,7 +277,7 @@ int SSLSocket::verifyCertificate()
TQString msg = i18n("The server (%1) certificate failed the " TQString msg = i18n("The server (%1) certificate failed the "
"authenticity test."); "authenticity test.");
result = KMessageBox::warningYesNoCancel( m_serverParent, result = KMessageBox::warningYesNoCancel( m_serverParent,
msg.arg(hostname), msg.tqarg(hostname),
i18n("Server Authentication"), i18n("Server Authentication"),
KGuiItem(i18n("Details")), KGuiItem(i18n("Details")),
KGuiItem(i18n("Continue")), KGuiItem(i18n("Continue")),

@ -22,7 +22,7 @@
#include <tqcombobox.h> #include <tqcombobox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <kdebug.h> #include <kdebug.h>
@ -32,7 +32,7 @@
StatusPanel::StatusPanel(TQWidget* parent) : ChatWindow(parent) StatusPanel::StatusPanel(TQWidget* parent) : ChatWindow(parent)
{ {
setType(ChatWindow::Status); setType(ChatWindow::tqStatus);
setChannelEncodingSupported(true); setChannelEncodingSupported(true);
@ -164,8 +164,8 @@ void StatusPanel::updateAppearance()
} }
else else
{ {
fg=colorGroup().foreground(); fg=tqcolorGroup().foreground();
bg=colorGroup().base(); bg=tqcolorGroup().base();
} }
statusInput->unsetPalette(); statusInput->unsetPalette();
@ -270,14 +270,14 @@ bool StatusPanel::closeYourself(bool confirm)
// that due to string freeze at the moment. // that due to string freeze at the moment.
if (confirm && !m_server->isConnected()) if (confirm && !m_server->isConnected())
{ {
result = KMessageBox::warningContinueCancel(this, i18n("Do you really want to close '%1'?\n\n All associated tabs will be closed as well.").arg(getName()), result = KMessageBox::warningContinueCancel(this, i18n("Do you really want to close '%1'?\n\n All associated tabs will be closed as well.").tqarg(getName()),
i18n("Close Tab"), i18n("Close"), "QuitServerTab"); i18n("Close Tab"), i18n("Close"), "QuitServerTab");
} }
else else
{ {
result = KMessageBox::warningContinueCancel( result = KMessageBox::warningContinueCancel(
this, this,
i18n("Do you want to disconnect from '%1'?\n\n All associated tabs will be closed as well.").arg(m_server->getServerName()), i18n("Do you want to disconnect from '%1'?\n\n All associated tabs will be closed as well.").tqarg(m_server->getServerName()),
i18n("Disconnect From Server"), i18n("Disconnect From Server"),
i18n("Disconnect"), i18n("Disconnect"),
"QuitServerTab"); "QuitServerTab");
@ -347,7 +347,7 @@ TQString StatusPanel::getChannelEncoding() // virtual
// virtual // virtual
TQString StatusPanel::getChannelEncodingDefaultDesc() TQString StatusPanel::getChannelEncodingDefaultDesc()
{ {
return i18n("Identity Default ( %1 )").arg(getServer()->getIdentity()->getCodecName()); return i18n("Identity Default ( %1 )").tqarg(getServer()->getIdentity()->getCodecName());
} }
//Used to disable functions when not connected //Used to disable functions when not connected

@ -73,7 +73,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="whatsThis" stdset="0"> <property name="whatsThis" stdset="0">
<string>Application events occur in Konsole tabs, the DCC Status tab and other application tabs not used directly for chatting.</string> <string>Application events occur in Konsole tabs, the DCC tqStatus tab and other application tabs not used directly for chatting.</string>
</property> </property>
</widget> </widget>
<spacer row="5" column="3"> <spacer row="5" column="3">
@ -86,7 +86,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>21</height> <height>21</height>
@ -122,7 +122,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>21</height> <height>21</height>
@ -154,7 +154,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>60</width> <width>60</width>
<height>21</height> <height>21</height>
@ -208,7 +208,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -225,7 +225,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>21</height> <height>21</height>
@ -283,7 +283,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>50</width> <width>50</width>
<height>20</height> <height>20</height>
@ -337,7 +337,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>60</height> <height>60</height>

@ -39,7 +39,7 @@ the Free Software Foundation; either version 2 of the License, or
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout2</cstring> <cstring>tqlayout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -83,7 +83,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>111</width> <width>111</width>
<height>20</height> <height>20</height>
@ -178,7 +178,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>100</height> <height>100</height>

@ -19,7 +19,7 @@
#include "konversationapplication.h" #include "konversationapplication.h"
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqvbox.h> #include <tqvbox.h>
@ -245,7 +245,7 @@ void Theme_Config::removeTheme()
dir = m_dirs[iconThemeIndex->currentItem()]; dir = m_dirs[iconThemeIndex->currentItem()];
int remove = KMessageBox::warningContinueCancel(0L, int remove = KMessageBox::warningContinueCancel(0L,
i18n("Do you want to remove %1 ?").arg(themeName), i18n("Do you want to remove %1 ?").tqarg(themeName),
i18n("Remove Theme"), i18n("Remove Theme"),
KStdGuiItem::del(), KStdGuiItem::del(),
"warningRemoveTheme" "warningRemoveTheme"

@ -29,7 +29,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="3"> <widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="3">
<property name="name"> <property name="name">
<cstring>layout17</cstring> <cstring>tqlayout17</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -66,7 +66,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>131</width> <width>131</width>
<height>20</height> <height>20</height>
@ -77,7 +77,7 @@
<property name="name"> <property name="name">
<cstring>frame3_2</cstring> <cstring>frame3_2</cstring>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -103,7 +103,7 @@
<property name="text"> <property name="text">
<string></string> <string></string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">
@ -117,7 +117,7 @@
<property name="text"> <property name="text">
<string></string> <string></string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">
@ -131,7 +131,7 @@
<property name="text"> <property name="text">
<string></string> <string></string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">
@ -145,7 +145,7 @@
<property name="text"> <property name="text">
<string></string> <string></string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">
@ -159,7 +159,7 @@
<property name="text"> <property name="text">
<string></string> <string></string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">
@ -173,7 +173,7 @@
<property name="text"> <property name="text">
<string></string> <string></string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">
@ -187,7 +187,7 @@
<property name="text"> <property name="text">
<string></string> <string></string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">

@ -19,7 +19,7 @@
#include <tqsimplerichtext.h> #include <tqsimplerichtext.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <clipboard.h> #include <tqclipboard.h>
#include <krun.h> #include <krun.h>
#include <kprocess.h> #include <kprocess.h>
@ -60,13 +60,13 @@ namespace Konversation
{ {
} }
TQSize TopicLabel::minimumSizeHint() const TQSize TopicLabel::tqminimumSizeHint() const
{ {
int minHeight = fontMetrics().lineSpacing() + fontMetrics().descent(); int minHeight = fontMetrics().lineSpacing() + fontMetrics().descent();
return TQSize(0, minHeight); return TQSize(0, minHeight);
} }
TQSize TopicLabel::sizeHint() const TQSize TopicLabel::tqsizeHint() const
{ {
int minHeight = fontMetrics().lineSpacing() + fontMetrics().descent(); int minHeight = fontMetrics().lineSpacing() + fontMetrics().descent();
return TQSize(0, minHeight); return TQSize(0, minHeight);
@ -114,8 +114,8 @@ namespace Konversation
removeSelection(); removeSelection();
KURL ux = KURL::fromPathOrURL(urlToDrag); KURL ux = KURL::fromPathOrURL(urlToDrag);
//FIXME consistent IRC URL serialization //FIXME consistent IRC URL serialization
if (urlToDrag.startsWith("##")) ux=TQString("irc://%1:%2/%3").arg(m_server->getServerName()). if (urlToDrag.startsWith("##")) ux=TQString("irc://%1:%2/%3").tqarg(m_server->getServerName()).
arg(m_server->getPort()).arg(urlToDrag.mid(2)); tqarg(m_server->getPort()).tqarg(urlToDrag.mid(2));
KURLDrag* u=new KURLDrag(ux,viewport()); KURLDrag* u=new KURLDrag(ux,viewport());
u->drag(); u->drag();
} }
@ -199,7 +199,7 @@ namespace Konversation
break; break;
case CopyUrl: case CopyUrl:
{ {
TQClipboard *cb = KApplication::kApplication()->clipboard(); TQClipboard *cb = KApplication::kApplication()->tqclipboard();
cb->setText(m_urlToCopy,TQClipboard::Selection); cb->setText(m_urlToCopy,TQClipboard::Selection);
cb->setText(m_urlToCopy,TQClipboard::Clipboard); cb->setText(m_urlToCopy,TQClipboard::Clipboard);
break; break;
@ -377,7 +377,7 @@ namespace Konversation
m_channelPopup->changeTitle(m_channelPopupId,prettyId); m_channelPopup->changeTitle(m_channelPopupId,prettyId);
m_isOnChannel = true; m_isOnChannel = true;
emit setStatusBarTempText(i18n("Join the channel %1").arg(m_currentChannel)); emit setStatusBarTempText(i18n("Join the channel %1").tqarg(m_currentChannel));
} }
} }
} }

@ -33,8 +33,8 @@ namespace Konversation
explicit TopicLabel(TQWidget *parent = 0, const char *name = 0); explicit TopicLabel(TQWidget *parent = 0, const char *name = 0);
~TopicLabel(); ~TopicLabel();
TQSize minimumSizeHint() const; TQSize tqminimumSizeHint() const;
TQSize sizeHint() const; TQSize tqsizeHint() const;
void setServer(Server* server); void setServer(Server* server);
enum PopupIDs { Copy,CopyUrl,SelectAll,Bookmark }; enum PopupIDs { Copy,CopyUrl,SelectAll,Bookmark };

@ -21,9 +21,9 @@
#include <tqhbox.h> #include <tqhbox.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <clipboard.h> #include <tqclipboard.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
#include <layout.h> #include <tqlayout.h>
#include <kapplication.h> #include <kapplication.h>
#include <kactionclasses.h> #include <kactionclasses.h>
@ -40,7 +40,7 @@
UrlCatcher::UrlCatcher(TQWidget* parent) : ChatWindow(parent) UrlCatcher::UrlCatcher(TQWidget* parent) : ChatWindow(parent)
{ {
layout()->setAutoAdd(false); tqlayout()->setAutoAdd(false);
setName(i18n("URL Catcher")); setName(i18n("URL Catcher"));
setType(ChatWindow::UrlCatcher); setType(ChatWindow::UrlCatcher);
@ -96,9 +96,9 @@ UrlCatcher::UrlCatcher(TQWidget* parent) : ChatWindow(parent)
saveListButton->setEnabled(false); saveListButton->setEnabled(false);
clearListButton->setEnabled(false); clearListButton->setEnabled(false);
layout()->add(searchWidget); tqlayout()->add(searchWidget);
layout()->add(urlListView); tqlayout()->add(urlListView);
layout()->add(buttonBox); tqlayout()->add(buttonBox);
urlSelected(); urlSelected();
} }
@ -167,7 +167,7 @@ void UrlCatcher::copyUrlClicked()
TQListViewItem* item=urlListView->selectedItem(); TQListViewItem* item=urlListView->selectedItem();
if(item) if(item)
{ {
TQClipboard *cb=KApplication::kApplication()->clipboard(); TQClipboard *cb=KApplication::kApplication()->tqclipboard();
cb->setText(item->text(1),TQClipboard::Selection); cb->setText(item->text(1),TQClipboard::Selection);
cb->setText(item->text(1),TQClipboard::Clipboard); cb->setText(item->text(1),TQClipboard::Clipboard);
} }

@ -157,7 +157,7 @@ void ViewContainer::setupTabWidget()
KPushButton* closeBtn = new KPushButton(m_tabWidget); KPushButton* closeBtn = new KPushButton(m_tabWidget);
closeBtn->setPixmap(KGlobal::iconLoader()->loadIcon("tab_remove", KIcon::Small)); closeBtn->setPixmap(KGlobal::iconLoader()->loadIcon("tab_remove", KIcon::Small));
closeBtn->resize(22, 22); closeBtn->resize(22, 22);
closeBtn->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); closeBtn->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
m_tabWidget->setCornerWidget(closeBtn); m_tabWidget->setCornerWidget(closeBtn);
connect(closeBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(closeCurrentView())); connect(closeBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(closeCurrentView()));
@ -220,7 +220,7 @@ void ViewContainer::setupViewTree()
{ {
ChatWindow* view = static_cast<ChatWindow*>(m_tabWidget->page(i)); ChatWindow* view = static_cast<ChatWindow*>(m_tabWidget->page(i));
if (view->getType() == ChatWindow::Status) if (view->getType() == ChatWindow::tqStatus)
{ {
if (view == m_frontView) if (view == m_frontView)
m_viewTree->addView(view->getName(), view, m_tabWidget->tabIconSet(view), true); m_viewTree->addView(view->getName(), view, m_tabWidget->tabIconSet(view), true);
@ -233,7 +233,7 @@ void ViewContainer::setupViewTree()
{ {
ChatWindow* view = static_cast<ChatWindow*>(m_tabWidget->page(i)); ChatWindow* view = static_cast<ChatWindow*>(m_tabWidget->page(i));
if (!view->getType() == ChatWindow::Status) if (!view->getType() == ChatWindow::tqStatus)
{ {
if (view == m_frontView) if (view == m_frontView)
m_viewTree->addView(view->getName(), view, m_tabWidget->tabIconSet(view), true); m_viewTree->addView(view->getName(), view, m_tabWidget->tabIconSet(view), true);
@ -426,7 +426,7 @@ void ViewContainer::updateViewActions(int index)
if (action) action->setEnabled(index < (m_tabWidget->count() - 1)); if (action) action->setEnabled(index < (m_tabWidget->count() - 1));
} }
if (server && (viewType == ChatWindow::Status || server == m_frontServer)) if (server && (viewType == ChatWindow::tqStatus || server == m_frontServer))
{ {
action = actionCollection()->action("reconnect_server"); action = actionCollection()->action("reconnect_server");
if (action) action->setEnabled(true); if (action) action->setEnabled(true);
@ -457,7 +457,7 @@ void ViewContainer::updateViewActions(int index)
if (notifyAction) if (notifyAction)
{ {
notifyAction->setEnabled(viewType == ChatWindow::Channel || viewType == ChatWindow::Query || notifyAction->setEnabled(viewType == ChatWindow::Channel || viewType == ChatWindow::Query ||
viewType == ChatWindow::Status || viewType == ChatWindow::Konsole || viewType == ChatWindow::tqStatus || viewType == ChatWindow::Konsole ||
viewType == ChatWindow::DccTransferPanel || viewType == ChatWindow::RawLog); viewType == ChatWindow::DccTransferPanel || viewType == ChatWindow::RawLog);
notifyAction->setChecked(view->notificationsEnabled()); notifyAction->setChecked(view->notificationsEnabled());
} }
@ -542,7 +542,7 @@ void ViewContainer::updateViewActions(int index)
name = name.replace('&', "&&"); name = name.replace('&', "&&");
channelListAction->setEnabled(true); channelListAction->setEnabled(true);
channelListAction->setChecked(m_frontServer->getChannelListPanel()); channelListAction->setChecked(m_frontServer->getChannelListPanel());
channelListAction->setText(i18n("Channel &List for %1").arg(name)); channelListAction->setText(i18n("Channel &List for %1").tqarg(name));
} }
else else
{ {
@ -562,7 +562,7 @@ void ViewContainer::updateViewActions(int index)
{ {
TQString name = view->getName(); TQString name = view->getName();
name = name.replace('&', "&&"); name = name.replace('&', "&&");
action->setText(i18n("&Open Logfile for %1").arg(name)); action->setText(i18n("&Open Logfile for %1").tqarg(name));
} }
} }
@ -573,7 +573,7 @@ void ViewContainer::updateViewActions(int index)
if (action && view->getType() == ChatWindow::Channel) if (action && view->getType() == ChatWindow::Channel)
{ {
action->setEnabled(true); action->setEnabled(true);
action->setText(i18n("&Channel Settings for %1...").arg(view->getName())); action->setText(i18n("&Channel Settings for %1...").tqarg(view->getName()));
} }
else if (action) else if (action)
{ {
@ -702,7 +702,7 @@ void ViewContainer::updateFrontView()
{ {
case ChatWindow::Channel: case ChatWindow::Channel:
case ChatWindow::Query: case ChatWindow::Query:
case ChatWindow::Status: case ChatWindow::tqStatus:
case ChatWindow::ChannelList: case ChatWindow::ChannelList:
case ChatWindow::RawLog: case ChatWindow::RawLog:
emit setStatusBarLagLabelShown(true); emit setStatusBarLagLabelShown(true);
@ -729,7 +729,7 @@ void ViewContainer::updateViews(const Konversation::ServerGroupSettings* serverG
if (serverGroup) if (serverGroup)
{ {
if (view->getType() == ChatWindow::Status && view->getServer()->getServerGroup() == serverGroup) if (view->getType() == ChatWindow::tqStatus && view->getServer()->getServerGroup() == serverGroup)
{ {
TQString label = view->getServer()->getDisplayName(); TQString label = view->getServer()->getDisplayName();
@ -762,7 +762,7 @@ void ViewContainer::updateViews(const Konversation::ServerGroupSettings* serverG
if (!Preferences::tabNotificationsText()) if (!Preferences::tabNotificationsText())
m_viewTree->setViewColor(view, m_window->colorGroup().foreground()); m_viewTree->setViewColor(view, m_window->tqcolorGroup().foreground());
} }
else if (m_tabWidget) else if (m_tabWidget)
{ {
@ -773,7 +773,7 @@ void ViewContainer::updateViews(const Konversation::ServerGroupSettings* serverG
m_tabWidget->setTabIconSet(view, images->getCloseIcon()); m_tabWidget->setTabIconSet(view, images->getCloseIcon());
if (!Preferences::tabNotificationsText()) if (!Preferences::tabNotificationsText())
m_tabWidget->setTabColor(view, m_window->colorGroup().foreground()); m_tabWidget->setTabColor(view, m_window->tqcolorGroup().foreground());
} }
if (Preferences::tabNotificationsLeds() || Preferences::tabNotificationsText()) if (Preferences::tabNotificationsLeds() || Preferences::tabNotificationsText())
@ -1040,7 +1040,7 @@ void ViewContainer::unsetViewNotification(ChatWindow* view)
m_viewTree->setViewIcon(view, images->getPrivateLed(false)); m_viewTree->setViewIcon(view, images->getPrivateLed(false));
break; break;
case ChatWindow::Status: case ChatWindow::tqStatus:
m_viewTree->setViewIcon(view, images->getServerLed(false)); m_viewTree->setViewIcon(view, images->getServerLed(false));
break; break;
@ -1051,19 +1051,19 @@ void ViewContainer::unsetViewNotification(ChatWindow* view)
} }
TQColor textColor = (Preferences::inputFieldsBackgroundColor() TQColor textColor = (Preferences::inputFieldsBackgroundColor()
? Preferences::color(Preferences::ChannelMessage) : m_window->colorGroup().foreground()); ? Preferences::color(Preferences::ChannelMessage) : m_window->tqcolorGroup().foreground());
if (view->getType() == ChatWindow::Channel) if (view->getType() == ChatWindow::Channel)
{ {
Channel *channel = static_cast<Channel*>(view); Channel *channel = static_cast<Channel*>(view);
if (!channel->joined()) if (!channel->joined())
textColor = KonversationApplication::instance()->palette(m_viewTree).disabled().text(); textColor = KonversationApplication::instance()->tqpalette(m_viewTree).disabled().text();
} }
else if (view->getType() == ChatWindow::Query) else if (view->getType() == ChatWindow::Query)
{ {
if (!view->getServer()->isConnected()) if (!view->getServer()->isConnected())
textColor = KonversationApplication::instance()->palette(m_tabWidget).disabled().text(); textColor = KonversationApplication::instance()->tqpalette(m_tabWidget).disabled().text();
} }
m_viewTree->setViewColor(view, textColor); m_viewTree->setViewColor(view, textColor);
@ -1083,7 +1083,7 @@ void ViewContainer::unsetViewNotification(ChatWindow* view)
m_tabWidget->setTabIconSet(view, images->getPrivateLed(false)); m_tabWidget->setTabIconSet(view, images->getPrivateLed(false));
break; break;
case ChatWindow::Status: case ChatWindow::tqStatus:
m_tabWidget->setTabIconSet(view, images->getServerLed(false)); m_tabWidget->setTabIconSet(view, images->getServerLed(false));
break; break;
@ -1093,19 +1093,19 @@ void ViewContainer::unsetViewNotification(ChatWindow* view)
} }
} }
TQColor textColor = m_window->colorGroup().foreground(); TQColor textColor = m_window->tqcolorGroup().foreground();
if (view->getType() == ChatWindow::Channel) if (view->getType() == ChatWindow::Channel)
{ {
Channel *channel = static_cast<Channel*>(view); Channel *channel = static_cast<Channel*>(view);
if (!channel->joined()) if (!channel->joined())
textColor = KonversationApplication::instance()->palette(m_tabWidget).disabled().text(); textColor = KonversationApplication::instance()->tqpalette(m_tabWidget).disabled().text();
} }
else if (view->getType() == ChatWindow::Query) else if (view->getType() == ChatWindow::Query)
{ {
if (!view->getServer()->isConnected()) if (!view->getServer()->isConnected())
textColor = KonversationApplication::instance()->palette(m_tabWidget).disabled().text(); textColor = KonversationApplication::instance()->tqpalette(m_tabWidget).disabled().text();
} }
m_tabWidget->setTabColor(view, textColor); m_tabWidget->setTabColor(view, textColor);
@ -1196,7 +1196,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
{ {
tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex)); tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex));
if (tmp_ChatWindow->getType() == ChatWindow::Status && tmp_ChatWindow->getServer() == view->getServer()) if (tmp_ChatWindow->getType() == ChatWindow::tqStatus && tmp_ChatWindow->getServer() == view->getServer())
{ {
for (int index = sindex + 1; index < m_tabWidget->count(); index++) for (int index = sindex + 1; index < m_tabWidget->count(); index++)
{ {
@ -1226,7 +1226,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
{ {
tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex)); tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex));
if (tmp_ChatWindow->getType() == ChatWindow::Status && tmp_ChatWindow->getServer() == view->getServer()) if (tmp_ChatWindow->getType() == ChatWindow::tqStatus && tmp_ChatWindow->getServer() == view->getServer())
{ {
placement = sindex + 1; placement = sindex + 1;
break; break;
@ -1245,7 +1245,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
{ {
tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex)); tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex));
if (tmp_ChatWindow->getType() == ChatWindow::Status && tmp_ChatWindow->getServer() == view->getServer()) if (tmp_ChatWindow->getType() == ChatWindow::tqStatus && tmp_ChatWindow->getServer() == view->getServer())
{ {
for (int index = sindex + 1; index < m_tabWidget->count(); index++) for (int index = sindex + 1; index < m_tabWidget->count(); index++)
{ {
@ -1276,7 +1276,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
tmp_ChatWindow = static_cast<ChatWindow*>(m_tabWidget->page(sindex)); tmp_ChatWindow = static_cast<ChatWindow*>(m_tabWidget->page(sindex));
wtype = tmp_ChatWindow->getType(); wtype = tmp_ChatWindow->getType();
if (wtype != ChatWindow::Status && wtype != ChatWindow::Channel if (wtype != ChatWindow::tqStatus && wtype != ChatWindow::Channel
&& wtype != ChatWindow::RawLog && wtype != ChatWindow::Query && wtype != ChatWindow::RawLog && wtype != ChatWindow::Query
&& wtype != ChatWindow::DccChat && wtype != ChatWindow::ChannelList) && wtype != ChatWindow::DccChat && wtype != ChatWindow::ChannelList)
{ {
@ -1286,7 +1286,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
} }
break; break;
case ChatWindow::Status: case ChatWindow::tqStatus:
if (Preferences::tabNotificationsLeds()) if (Preferences::tabNotificationsLeds())
iconSet = images->getServerLed(false); iconSet = images->getServerLed(false);
else if (Preferences::closeButtons()) else if (Preferences::closeButtons())
@ -1299,7 +1299,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex)); tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex));
if (tmp_ChatWindow->getType() != ChatWindow::Channel if (tmp_ChatWindow->getType() != ChatWindow::Channel
&& tmp_ChatWindow->getType() != ChatWindow::Status && tmp_ChatWindow->getType() != ChatWindow::tqStatus
&& tmp_ChatWindow->getType() != ChatWindow::RawLog && tmp_ChatWindow->getType() != ChatWindow::RawLog
&& tmp_ChatWindow->getType() != ChatWindow::Query && tmp_ChatWindow->getType() != ChatWindow::Query
&& tmp_ChatWindow->getType() != ChatWindow::DccChat) && tmp_ChatWindow->getType() != ChatWindow::DccChat)
@ -1624,14 +1624,14 @@ void ViewContainer::updateViewEncoding(ChatWindow* view)
if (codecAction) if (codecAction)
{ {
if(viewType == ChatWindow::Channel || viewType == ChatWindow::Query || viewType == ChatWindow::Status) if(viewType == ChatWindow::Channel || viewType == ChatWindow::Query || viewType == ChatWindow::tqStatus)
{ {
codecAction->setEnabled(view->isChannelEncodingSupported()); codecAction->setEnabled(view->isChannelEncodingSupported());
TQString encoding = view->getChannelEncoding(); TQString encoding = view->getChannelEncoding();
if(m_frontServer) if(m_frontServer)
{ {
codecAction->changeItem(0, i18n("Default encoding", "Default ( %1 )").arg(m_frontServer->getIdentity()->getCodecName())); codecAction->changeItem(0, i18n("Default encoding", "Default ( %1 )").tqarg(m_frontServer->getIdentity()->getCodecName()));
} }
if(encoding.isEmpty()) if(encoding.isEmpty())
@ -1682,7 +1682,7 @@ void ViewContainer::showViewContextMenu(TQWidget* tab, const TQPoint& pos)
} }
} }
if (viewType == ChatWindow::Status) if (viewType == ChatWindow::tqStatus)
{ {
TQPtrList<KAction> serverActions; TQPtrList<KAction> serverActions;
KAction* action = actionCollection()->action("disconnect_server"); KAction* action = actionCollection()->action("disconnect_server");
@ -1825,7 +1825,7 @@ void ViewContainer::appendToFrontmost(const TQString& type,const TQString& messa
} }
// This might happen if canBeFrontView() is false for active ChatWindow // This might happen if canBeFrontView() is false for active ChatWindow
// and the view does not belong to any server (e.g. DCC Status View). // and the view does not belong to any server (e.g. DCC tqStatus View).
// Discard message in this case. // Discard message in this case.
if (!serverView) return; if (!serverView) return;
@ -1957,7 +1957,7 @@ void ViewContainer::openLogFile()
ChatWindow* view=static_cast<ChatWindow*>(m_frontView); ChatWindow* view=static_cast<ChatWindow*>(m_frontView);
ChatWindow::WindowType viewType=view->getType(); ChatWindow::WindowType viewType=view->getType();
if (viewType==ChatWindow::Channel || viewType==ChatWindow::Query || if (viewType==ChatWindow::Channel || viewType==ChatWindow::Query ||
viewType==ChatWindow::Status || viewType==ChatWindow::DccChat) viewType==ChatWindow::tqStatus || viewType==ChatWindow::DccChat)
{ {
openLogFile(view->getName(), view->logFileName()); openLogFile(view->getName(), view->logFileName());
} }
@ -1969,7 +1969,7 @@ void ViewContainer::openLogFile(const TQString& caption, const TQString& file)
if (!file.isEmpty()) if (!file.isEmpty())
{ {
LogfileReader* logReader = new LogfileReader(m_tabWidget, file); LogfileReader* logReader = new LogfileReader(m_tabWidget, file);
addView(logReader, i18n("Logfile of %1").arg(caption)); addView(logReader, i18n("Logfile of %1").tqarg(caption));
logReader->setServer(0); logReader->setServer(0);
} }
} }

@ -56,7 +56,7 @@ void ViewTree::ToolTip::maybeTip (const TQPoint &pos)
ViewTreeItem* view = static_cast<ViewTreeItem*>(viewTree->itemAt(pos)); ViewTreeItem* view = static_cast<ViewTreeItem*>(viewTree->itemAt(pos));
if (view && view->isTruncated()) tip(viewTree->itemRect(view), view->getName()); if (view && view->isTruncated()) tip(viewTree->tqitemRect(view), view->getName());
} }
@ -503,7 +503,7 @@ void ViewTree::enableCloseButton()
bool ViewTree::isAboveIcon(TQPoint point, ViewTreeItem* item) bool ViewTree::isAboveIcon(TQPoint point, ViewTreeItem* item)
{ {
TQPoint inItem = point - itemRect(item).topLeft(); TQPoint inItem = point - tqitemRect(item).topLeft();
int MARGIN = 2; int MARGIN = 2;
int LED_ICON_SIZE = 14; int LED_ICON_SIZE = 14;
@ -748,7 +748,7 @@ void ViewTree::findDrop(const TQPoint &pos, TQListViewItem *&parent, TQListViewI
else else
{ {
// Get the closest item before us ('atpos' or the one above, if any). // Get the closest item before us ('atpos' or the one above, if any).
if (p.y() - itemRect(atpos).topLeft().y() < (atpos->height()/2)) if (p.y() - tqitemRect(atpos).topLeft().y() < (atpos->height()/2))
above = atpos->itemAbove(); above = atpos->itemAbove();
else else
above = atpos; above = atpos;
@ -913,7 +913,7 @@ ViewTreeItem* ViewTree::getParentItemForView(ChatWindow* view)
while (item) while (item)
{ {
if (item->getViewType() == ChatWindow::Status if (item->getViewType() == ChatWindow::tqStatus
&& item->getView() && item->getView()
&& item->getView()->getServer() == server) && item->getView()->getServer() == server)
{ {

@ -173,7 +173,7 @@ void ViewTreeItem::setColor(TQColor color)
{ {
m_color = color; m_color = color;
m_customColorSet = true; m_customColorSet = true;
repaint(); tqrepaint();
} }
} }
@ -201,7 +201,7 @@ void ViewTreeItem::setHighlighted(bool highlight)
if (m_isHighlighted != highlight) if (m_isHighlighted != highlight)
{ {
m_isHighlighted = highlight; m_isHighlighted = highlight;
repaint(); tqrepaint();
} }
} }
@ -246,7 +246,7 @@ bool ViewTreeItem::sortLast() const
{ {
if (!m_isSeparator) if (!m_isSeparator)
{ {
if (getViewType() == ChatWindow::Status if (getViewType() == ChatWindow::tqStatus
|| getViewType() == ChatWindow::Channel || getViewType() == ChatWindow::Channel
|| getViewType() == ChatWindow::Query || getViewType() == ChatWindow::Query
|| getViewType() == ChatWindow::RawLog || getViewType() == ChatWindow::RawLog

@ -106,7 +106,7 @@ command is placed in the &lt;b&gt;Input Line&lt;/b&gt; on the server window.&lt;
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>150</width> <width>150</width>
<height>20</height> <height>20</height>
@ -273,7 +273,7 @@ When the nickname watcher is turned on, you will be notified when the nicknames
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="4" rowspan="2" colspan="1"> <widget class="TQLayoutWidget" row="0" column="4" rowspan="2" colspan="1">
<property name="name"> <property name="name">
<cstring>layout3</cstring> <cstring>tqlayout3</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -333,7 +333,7 @@ When the nickname watcher is turned on, you will be notified when the nicknames
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>160</height> <height>160</height>

Loading…
Cancel
Save