linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #04339
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2581: Added 'Clear chat' to HubFrame and PrivateFrame chat context menus
------------------------------------------------------------
revno: 2581
committer: iceman50 <bdcdevel@xxxxxxxxx>
branch nick: dcplusplus
timestamp: Sun 2011-07-24 15:09:23 -0500
message:
Added 'Clear chat' to HubFrame and PrivateFrame chat context menus
modified:
win32/HubFrame.cpp
win32/PrivateFrame.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'win32/HubFrame.cpp'
--- win32/HubFrame.cpp 2011-07-03 17:15:51 +0000
+++ win32/HubFrame.cpp 2011-07-24 20:09:23 +0000
@@ -1136,6 +1136,11 @@
MenuPtr menu = chat->getMenu();
menu->setTitle(escapeMenu(getText()), getParent()->getIcon(this));
+
+ menu->appendItem(T_("Clear chat"), [this] {
+ chat->setSelection();
+ chat->replaceSelection(_T(""));
+ });
prepareMenu(menu, UserCommand::CONTEXT_HUB, url);
=== modified file 'win32/PrivateFrame.cpp'
--- win32/PrivateFrame.cpp 2011-06-07 16:58:55 +0000
+++ win32/PrivateFrame.cpp 2011-07-24 20:09:23 +0000
@@ -337,6 +337,11 @@
MenuPtr menu = chat->getMenu();
menu->setTitle(escapeMenu(getText()), getParent()->getIcon(this));
+
+ menu->appendItem(T_("Clear chat"), [this] {
+ chat->setSelection();
+ chat->replaceSelection(_T(""));
+ });
prepareMenu(menu, UserCommand::CONTEXT_USER, ClientManager::getInstance()->getHubs(replyTo.getUser().user->getCID(),
replyTo.getUser().hint, priv));