diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloateravatarinfo.cpp | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/linden/indra/newview/llfloateravatarinfo.cpp b/linden/indra/newview/llfloateravatarinfo.cpp index c4b8167..c7341b6 100644 --- a/linden/indra/newview/llfloateravatarinfo.cpp +++ b/linden/indra/newview/llfloateravatarinfo.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llfloateravatarinfo.cpp | 2 | * @file llfloateravatarinfo.cpp |
3 | * @brief LLFloaterAvatarInfo class implementation | 3 | * @brief LLFloaterAvatarInfo 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 | /** |
@@ -51,6 +54,7 @@ | |||
51 | #include "llbutton.h" | 54 | #include "llbutton.h" |
52 | #include "llcallingcard.h" | 55 | #include "llcallingcard.h" |
53 | #include "llcheckboxctrl.h" | 56 | #include "llcheckboxctrl.h" |
57 | #include "llcommandhandler.h" | ||
54 | #include "llfloaterworldmap.h" | 58 | #include "llfloaterworldmap.h" |
55 | #include "llfloatermute.h" | 59 | #include "llfloatermute.h" |
56 | #include "llinventoryview.h" | 60 | #include "llinventoryview.h" |
@@ -75,18 +79,34 @@ | |||
75 | const char FLOATER_TITLE[] = "Profile"; | 79 | const char FLOATER_TITLE[] = "Profile"; |
76 | const LLRect FAI_RECT(0, 530, 420, 0); | 80 | const LLRect FAI_RECT(0, 530, 420, 0); |
77 | 81 | ||
78 | const S32 RULER0 = 90; | ||
79 | const S32 RULER1 = RULER0 + 5; | ||
80 | const S32 RULER2 = RULER1 + 75; | ||
81 | const S32 RULER3 = RULER2 + 90; | ||
82 | const S32 RULER4 = RULER3 + 10; | ||
83 | |||
84 | //----------------------------------------------------------------------------- | 82 | //----------------------------------------------------------------------------- |
85 | // Globals | 83 | // Globals |
86 | //----------------------------------------------------------------------------- | 84 | //----------------------------------------------------------------------------- |
87 | 85 | ||
88 | LLMap< const LLUUID, LLFloaterAvatarInfo* > gAvatarInfoInstances; | 86 | LLMap< const LLUUID, LLFloaterAvatarInfo* > gAvatarInfoInstances; |
89 | 87 | ||
88 | class LLAgentHandler : public LLCommandHandler | ||
89 | { | ||
90 | public: | ||
91 | LLAgentHandler() : LLCommandHandler("agent") { } | ||
92 | bool handle(const std::vector<std::string>& params) | ||
93 | { | ||
94 | if (params.size() < 2) return false; | ||
95 | LLUUID agent_id; | ||
96 | if (!agent_id.set(params[0], FALSE)) | ||
97 | { | ||
98 | return false; | ||
99 | } | ||
100 | |||
101 | if (params[1] == "about") | ||
102 | { | ||
103 | LLFloaterAvatarInfo::showFromDirectory(agent_id); | ||
104 | return true; | ||
105 | } | ||
106 | return false; | ||
107 | } | ||
108 | }; | ||
109 | LLAgentHandler gAgentHandler; | ||
90 | 110 | ||
91 | //----------------------------------------------------------------------------- | 111 | //----------------------------------------------------------------------------- |
92 | // Member functions | 112 | // Member functions |