diff options
Diffstat (limited to 'konversation/src/notificationhandler.cpp')
-rw-r--r-- | konversation/src/notificationhandler.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/konversation/src/notificationhandler.cpp b/konversation/src/notificationhandler.cpp index 7b615e0..82cdd12 100644 --- a/konversation/src/notificationhandler.cpp +++ b/konversation/src/notificationhandler.cpp @@ -29,10 +29,10 @@ namespace Konversation { - NotificationHandler::NotificationHandler(KonversationApplication* parent, const char* name) - : TQObject(parent, name) + NotificationHandler::NotificationHandler(KonversationApplication* tqparent, const char* name) + : TQObject(tqparent, name) { - m_mainWindow = parent->getMainWindow(); + m_mainWindow = tqparent->getMainWindow(); } NotificationHandler::~NotificationHandler() @@ -50,7 +50,7 @@ namespace Konversation TQString cleanedMessage = TQStyleSheet::escape(Konversation::removeIrcMarkup(message)); TQString cutup = addLineBreaks(cleanedMessage); - KNotifyClient::event(m_mainWindow->winId(), "message", TQString("<qt><%1> %2</qt>").arg(fromNick).arg(cutup)); + KNotifyClient::event(m_mainWindow->winId(), "message", TQString("<qt><%1> %2</qt>").tqarg(fromNick).tqarg(cutup)); if(!Preferences::trayNotifyOnlyOwnNick()) { @@ -76,7 +76,7 @@ namespace Konversation TQString cleanedMessage = TQStyleSheet::escape(Konversation::removeIrcMarkup(message)); TQString cutup = addLineBreaks(cleanedMessage); - KNotifyClient::event(m_mainWindow->winId(), "nick", TQString("<qt><%1> %2</qt>").arg(fromNick).arg(cutup)); + KNotifyClient::event(m_mainWindow->winId(), "nick", TQString("<qt><%1> %2</qt>").tqarg(fromNick).tqarg(cutup)); startTrayNotification(chatWin); @@ -86,7 +86,7 @@ namespace Konversation (!m_mainWindow->isActiveWindow() || (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 cutup = addLineBreaks(cleanedMessage); - KNotifyClient::event(m_mainWindow->winId(), "queryMessage", TQString("<qt><%1> %2</qt>").arg(fromNick).arg(cutup)); + KNotifyClient::event(m_mainWindow->winId(), "queryMessage", TQString("<qt><%1> %2</qt>").tqarg(fromNick).tqarg(cutup)); startTrayNotification(chatWin); @@ -111,7 +111,7 @@ namespace Konversation if(Preferences::oSDShowQuery() && (!m_mainWindow->isActiveWindow() || (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()) 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 if(Preferences::oSDShowChannelEvent() && (!m_mainWindow->isActiveWindow() || (chatWin != m_mainWindow->getViewContainer()->getFrontView()))) { 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()) 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 if(Preferences::oSDShowChannelEvent() && (!m_mainWindow->isActiveWindow() || (chatWin != m_mainWindow->getViewContainer()->getFrontView()))) { 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()) 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) @@ -184,7 +184,7 @@ namespace Konversation if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway()) 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) @@ -195,7 +195,7 @@ namespace Konversation if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway()) 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*/) @@ -220,7 +220,7 @@ namespace Konversation startTrayNotification(chatWin); 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) @@ -232,7 +232,7 @@ namespace Konversation return; 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) @@ -244,7 +244,7 @@ namespace Konversation return; 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) @@ -256,7 +256,7 @@ namespace Konversation return; 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) @@ -268,7 +268,7 @@ namespace Konversation return; 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) @@ -288,10 +288,10 @@ namespace Konversation // if there was no nick associated, this must be a command message, so don't try displaying // an empty nick in <> 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 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; 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) @@ -312,7 +312,7 @@ namespace Konversation if (Preferences::disableNotifyWhileAway() && chatWin->getServer() && chatWin->getServer()->isAway()) 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) |