diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llfloatertopobjects.h | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloatertopobjects.h | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloatertopobjects.h b/linden/indra/newview/llfloatertopobjects.h new file mode 100644 index 0000000..a1494a3 --- /dev/null +++ b/linden/indra/newview/llfloatertopobjects.h | |||
@@ -0,0 +1,105 @@ | |||
1 | /** | ||
2 | * @file llfloatertopobjects.h | ||
3 | * @brief Shows top colliders or top scripts | ||
4 | * | ||
5 | * Copyright (c) 2005-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 | #ifndef LL_LLFLOATERTOPOBJECTS_H | ||
29 | #define LL_LLFLOATERTOPOBJECTS_H | ||
30 | |||
31 | #include "llfloater.h" | ||
32 | |||
33 | class LLUICtrl; | ||
34 | |||
35 | class LLFloaterTopObjects : public LLFloater | ||
36 | { | ||
37 | public: | ||
38 | // Opens the floater on screen. | ||
39 | static void show(); | ||
40 | |||
41 | // Opens the floater if it's not on-screen. | ||
42 | // Juggles the UI based on method = "scripts" or "colliders" | ||
43 | static void handle_land_reply(LLMessageSystem* msg, void** data); | ||
44 | void handleReply(LLMessageSystem* msg, void** data); | ||
45 | |||
46 | void clearList(); | ||
47 | void updateSelectionInfo(); | ||
48 | virtual BOOL postBuild(); | ||
49 | |||
50 | static void onRefresh(void* data); | ||
51 | |||
52 | static void setMode(U32 mode) { if (sInstance) sInstance->mCurrentMode = mode; } | ||
53 | |||
54 | private: | ||
55 | LLFloaterTopObjects(); | ||
56 | ~LLFloaterTopObjects(); | ||
57 | |||
58 | void initColumns(LLCtrlListInterface *list); | ||
59 | |||
60 | static void onCommitObjectsList(LLUICtrl* ctrl, void* data); | ||
61 | static void onDoubleClickObjectsList(void* data); | ||
62 | static void onClickShowBeacon(void* data); | ||
63 | |||
64 | void doToObjects(int action, bool all); | ||
65 | |||
66 | static void onReturnAll(void* data); | ||
67 | static void onReturnSelected(void* data); | ||
68 | static void onDisableAll(void* data); | ||
69 | static void onDisableSelected(void* data); | ||
70 | |||
71 | static void callbackReturnAll(S32 option, void* userdata); | ||
72 | static void callbackDisableAll(S32 option, void* userdata); | ||
73 | |||
74 | static void onGetByOwnerName(LLUICtrl* ctrl, void* data); | ||
75 | static void onGetByObjectName(LLUICtrl* ctrl, void* data); | ||
76 | |||
77 | static void onGetByOwnerNameClicked(void* data) { onGetByOwnerName(NULL, data); }; | ||
78 | static void onGetByObjectNameClicked(void* data) { onGetByObjectName(NULL, data); }; | ||
79 | |||
80 | void showBeacon(); | ||
81 | |||
82 | private: | ||
83 | LLString mMethod; | ||
84 | |||
85 | LLSD mObjectListData; | ||
86 | std::vector<LLUUID> mObjectListIDs; | ||
87 | |||
88 | U32 mCurrentMode; | ||
89 | U32 mFlags; | ||
90 | LLString mFilter; | ||
91 | |||
92 | BOOL mInitialized; | ||
93 | |||
94 | F32 mtotalScore; | ||
95 | |||
96 | enum | ||
97 | { | ||
98 | ACTION_RETURN = 0, | ||
99 | ACTION_DISABLE | ||
100 | }; | ||
101 | |||
102 | static LLFloaterTopObjects* sInstance; | ||
103 | }; | ||
104 | |||
105 | #endif | ||