diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloateravatarinfo.h | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloateravatarinfo.h b/linden/indra/newview/llfloateravatarinfo.h new file mode 100644 index 0000000..ee7cebb --- /dev/null +++ b/linden/indra/newview/llfloateravatarinfo.h | |||
@@ -0,0 +1,101 @@ | |||
1 | /** | ||
2 | * @file llfloateravatarinfo.h | ||
3 | * @brief LLFloaterAvatarInfo class definition | ||
4 | * | ||
5 | * Copyright (c) 2002-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | /** | ||
29 | * Avatar information as shown in a floating window from right-click | ||
30 | * Profile. Used for editing your own avatar info. Just a wrapper | ||
31 | * for LLPanelAvatar, shared with the Find directory. | ||
32 | */ | ||
33 | |||
34 | #ifndef LL_LLFLOATERAVATARINFO_H | ||
35 | #define LL_LLFLOATERAVATARINFO_H | ||
36 | |||
37 | #include "llfloater.h" | ||
38 | #include "llpreview.h" | ||
39 | #include "lluuid.h" | ||
40 | #include "llpanelavatar.h" | ||
41 | |||
42 | class LLButton; | ||
43 | class LLCheckBoxCtrl; | ||
44 | class LLDropTarget; | ||
45 | class LLInventoryItem; | ||
46 | class LLLineEditor; | ||
47 | class LLMessageSystem; | ||
48 | class LLScrollListCtrl; | ||
49 | class LLTabContainer; | ||
50 | class LLTextBox; | ||
51 | class LLTextEditor; | ||
52 | class LLTextureCtrl; | ||
53 | class LLUICtrl; | ||
54 | class LLViewerImage; | ||
55 | class LLViewerObject; | ||
56 | |||
57 | class LLFloaterAvatarInfo | ||
58 | : public LLPreview | ||
59 | { | ||
60 | public: | ||
61 | |||
62 | static void* createPanelAvatar(void* data); | ||
63 | |||
64 | virtual BOOL postBuild(); | ||
65 | static void onCommitNotes(LLUICtrl*, void* userdata); | ||
66 | |||
67 | |||
68 | LLFloaterAvatarInfo(const std::string& name, const LLRect &rect, const LLUUID &avatar_id ); | ||
69 | /*virtual*/ ~LLFloaterAvatarInfo(); | ||
70 | |||
71 | /*virtual*/ void draw(); | ||
72 | |||
73 | /*virtual*/ void loadAsset(); | ||
74 | /*virtual*/ EAssetStatus getAssetStatus(); | ||
75 | |||
76 | // Enables rate button, enables IM | ||
77 | static void showFromObject(const LLUUID &avatar_id, std::string tab_name = ""); | ||
78 | |||
79 | // Disables the rate button, enables IM | ||
80 | static void showFromDirectory(const LLUUID &avatar_id); | ||
81 | |||
82 | // Enables all buttons | ||
83 | static void showFromAvatar(LLViewerObject *object); | ||
84 | |||
85 | // Enables most buttons | ||
86 | static void showFromFriend(const LLUUID& agent_id, BOOL online); | ||
87 | |||
88 | static LLFloaterAvatarInfo* getInstance(const LLUUID &id); | ||
89 | static void showProfileCallback(S32 option, void *userdata); | ||
90 | void resetGroupList(); | ||
91 | |||
92 | private: | ||
93 | |||
94 | protected: | ||
95 | LLUUID mAvatarID; // for which avatar is this window? | ||
96 | LLPanelAvatar* mPanelAvatarp; | ||
97 | EOnlineStatus mSuggestedOnlineStatus; | ||
98 | }; | ||
99 | |||
100 | |||
101 | #endif | ||