aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatergroupinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloatergroupinfo.cpp')
-rw-r--r--linden/indra/newview/llfloatergroupinfo.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloatergroupinfo.cpp b/linden/indra/newview/llfloatergroupinfo.cpp
index 6187692..3ddf968 100644
--- a/linden/indra/newview/llfloatergroupinfo.cpp
+++ b/linden/indra/newview/llfloatergroupinfo.cpp
@@ -2,6 +2,8 @@
2 * @file llfloatergroupinfo.cpp 2 * @file llfloatergroupinfo.cpp
3 * @brief LLFloaterGroupInfo class implementation 3 * @brief LLFloaterGroupInfo class implementation
4 * 4 *
5 * $LicenseInfo:firstyear=2002&license=viewergpl$
6 *
5 * Copyright (c) 2002-2007, Linden Research, Inc. 7 * Copyright (c) 2002-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29/** 32/**
@@ -39,6 +42,7 @@
39 42
40#include "llagent.h" 43#include "llagent.h"
41#include "llcachename.h" 44#include "llcachename.h"
45#include "llcommandhandler.h"
42#include "llpanelgroup.h" 46#include "llpanelgroup.h"
43#include "llviewermessage.h" // for inventory_offer_callback 47#include "llviewermessage.h" // for inventory_offer_callback
44 48
@@ -51,6 +55,33 @@ const LLRect FGI_RECT(0, 530, 420, 0);
51// 55//
52std::map<LLUUID, LLFloaterGroupInfo*> LLFloaterGroupInfo::sInstances; 56std::map<LLUUID, LLFloaterGroupInfo*> LLFloaterGroupInfo::sInstances;
53 57
58class LLGroupHandler : public LLCommandHandler
59{
60public:
61 LLGroupHandler() : LLCommandHandler("group") { }
62 bool handle(const std::vector<std::string>& tokens)
63 {
64 if (tokens.size() < 2)
65 {
66 return false;
67 }
68
69 LLUUID group_id;
70 if (!group_id.set(tokens[0], FALSE))
71 {
72 return false;
73 }
74
75 if (tokens[1] == "about")
76 {
77 LLFloaterGroupInfo::showFromUUID(group_id);
78 return true;
79 }
80 return false;
81 }
82};
83LLGroupHandler gGroupHandler;
84
54//----------------------------------------------------------------------------- 85//-----------------------------------------------------------------------------
55// Implementation 86// Implementation
56//----------------------------------------------------------------------------- 87//-----------------------------------------------------------------------------