summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-08-13 19:37:05 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-08-13 19:37:05 +0000
commitb9b4a4d9347053a3834ca2928063136948f09d1d (patch)
treec2affaf017c2967989ff0b4a2b125d348736a04a /indra/newview/llviewermenu.cpp
parent0a3b9e8e141a6f38ecbdf6020312e7a89b153bc4 (diff)
QAR-782 Merge featurettes batch #2
merge featurettes-6-merge-2 -> release dataserver-is-deprecated
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp27
1 files changed, 23 insertions, 4 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 5d2b8e43ba..52cbcf85a9 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -1036,8 +1036,7 @@ void init_client_menu(LLMenuGL* menu)
menu->appendSeparator();
menu->append(new LLMenuItemToggleGL("Show Updates",
- &gShowObjectUpdates,
- 'U', MASK_ALT | MASK_SHIFT | MASK_CONTROL));
+ &gShowObjectUpdates));
menu->appendSeparator();
@@ -2912,8 +2911,7 @@ void request_friendship(const LLUUID& dest_id)
}
if (!fullname.empty())
{
- LLPanelFriends::requestFriendship(dest_id, fullname);
- LLNotifyBox::showXml("OfferedFriendship", args);
+ LLPanelFriends::requestFriendshipDialog(dest_id, fullname);
}
else
{
@@ -4493,6 +4491,25 @@ class LLToolsStopAllAnimations : public view_listener_t
}
};
+class LLToolsReleaseKeys : public view_listener_t
+{
+ bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
+ {
+ gAgent.forceReleaseControls();
+
+ return true;
+ }
+};
+
+class LLToolsEnableReleaseKeys : public view_listener_t
+{
+ bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
+ {
+ gMenuHolder->findControl(userdata["control"].asString())->setValue( gAgent.anyControlGrabbed() );
+ return true;
+ }
+};
+
//void handle_hinge(void*)
//{
// LLSelectMgr::getInstance()->sendHinge(1);
@@ -7825,6 +7842,8 @@ void initialize_menus()
addMenu(new LLToolsLink(), "Tools.Link");
addMenu(new LLToolsUnlink(), "Tools.Unlink");
addMenu(new LLToolsStopAllAnimations(), "Tools.StopAllAnimations");
+ addMenu(new LLToolsReleaseKeys(), "Tools.ReleaseKeys");
+ addMenu(new LLToolsEnableReleaseKeys(), "Tools.EnableReleaseKeys");
addMenu(new LLToolsLookAtSelection(), "Tools.LookAtSelection");
addMenu(new LLToolsBuyOrTake(), "Tools.BuyOrTake");
addMenu(new LLToolsTakeCopy(), "Tools.TakeCopy");