[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [Konversation] 1025811: Added dialog to close queries on ignore
From: Dario Abatianni <eisfuchs () tigress ! com>
Date: 2010-07-01 13:27:08
Message-ID: 20100701132708.1E2FFBB551A () projects ! kde ! org
[Download RAW message or body]
commit 10258118f4ac9c08a6de45392b429551c0d12f7a
Author: Dario Abatianni <eisfuchs@tigress.com>
Date: Fri Dec 5 15:33:50 2003 +0000
Added dialog to close queries on ignore
svn path=/trunk/kdeextragear-2/konversation/; revision=271376
diff --git a/TODO b/TODO
index 8572e72..4ab63b9 100644
--- a/TODO
+++ b/TODO
@@ -12,7 +12,6 @@ additionally do some kind of marker to the lines that came in while being away;
Per nick coloring in channel discussion
Use checkForUtf8 to make non-UTF8-users able to at least read UTF8.
DCC RESUME should start counting cps from the beginning
-Close query on RMB Ignore ([x] don't ask again)
Make coloring of list view and input lines an option
Context menu on nick in nick should contain hostmask, realname, etc. infos (in a sub-menu)
Check for channel or user parameter in mode changes to take care of duplicate mode chars
diff --git a/konversation/prefspagedialogs.cpp b/konversation/prefspagedialogs.cpp
index 1546a26..147b5f2 100644
--- a/konversation/prefspagedialogs.cpp
+++ b/konversation/prefspagedialogs.cpp
@@ -24,6 +24,7 @@ PrefsPageDialogs::PrefsPageDialogs(QFrame* newParent,Preferences* newPreferences
PrefsPage(newParent,newPreferences)
{
QStringList dialogDefinitions;
+
dialogDefinitions.append("HideMenuBarWarning " +i18n("Warning on hiding the main window \
menu")); dialogDefinitions.append("LargePaste " +i18n("Warning on pasting large portions \
of text")); dialogDefinitions.append("ResumeTransfer " +i18n("Question on what to do on DCC \
resume")); @@ -31,6 +32,7 @@ PrefsPageDialogs::PrefsPageDialogs(QFrame* newParent,Preferences* \
newPreferences dialogDefinitions.append("ChannelListWarning " +i18n("Warning on high traffic \
with channel list")); dialogDefinitions.append("ChannelListNoServerSelected "+i18n("The channel list can \
only be opened from server-aware tabs")); dialogDefinitions.append("QuitServerTab " \
+i18n("Quit server when you hit the tab's close button")); + \
dialogDefinitions.append("CloseQueryAfterIgnore " +i18n("Question on closing queries after ignoring \
the nickname"));
QVBoxLayout* dialogsLayout=new QVBoxLayout(parentFrame,marginHint(),spacingHint(),"dialogs_layout");
diff --git a/konversation/query.cpp b/konversation/query.cpp
index 3446792..b22cc4e 100644
--- a/konversation/query.cpp
+++ b/konversation/query.cpp
@@ -20,6 +20,7 @@
#include <klocale.h>
#include <kstddirs.h>
#include <kdebug.h>
+#include <kmessagebox.h>
#include "query.h"
#include "server.h"
@@ -202,7 +203,17 @@ void Query::popup(int id)
if(id==POPUP_WHOIS)
sendQueryText(KonversationApplication::preferences.getCommandChar()+"WHOIS "+getName());
else if(id==POPUP_IGNORE)
+ {
sendQueryText(KonversationApplication::preferences.getCommandChar()+"IGNORE -ALL "+getName()+"!*");
+ int rc=KMessageBox::questionYesNo(this,
+ i18n("Do you want to close this query after ignoring this \
nickname?"), + i18n("Close This Query"),
+ KStdGuiItem::yes(),
+ KStdGuiItem::no(),
+ "CloseQueryAfterIgnore");
+
+ if(rc==KStdGuiItem::Yes) closeYourself();
+ }
else
kdDebug() << "Query::popup(): Popup id " << id << " does not belong to me!" << endl;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic