aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatermap.h
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-18 17:58:27 -0700
committerMcCabe Maxsted2009-10-18 17:58:27 -0700
commite4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch)
tree9410962bbb582eedbec448139e217f2714050777 /linden/indra/newview/llfloatermap.h
parentStarted 1.3.0 branch (diff)
parentUpdated and added some Linux libs. (diff)
downloadmeta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.zip
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.gz
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.bz2
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.xz
Merged working branch of 1.2 into LL 1.23 merge
Diffstat (limited to 'linden/indra/newview/llfloatermap.h')
-rw-r--r--linden/indra/newview/llfloatermap.h71
1 files changed, 70 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloatermap.h b/linden/indra/newview/llfloatermap.h
index ec2db27..c457b9f 100644
--- a/linden/indra/newview/llfloatermap.h
+++ b/linden/indra/newview/llfloatermap.h
@@ -34,6 +34,7 @@
34#define LL_LLFLOATERMAP_H 34#define LL_LLFLOATERMAP_H
35 35
36#include "llfloater.h" 36#include "llfloater.h"
37#include "llscrolllistctrl.h"
37 38
38class LLNetMap; 39class LLNetMap;
39 40
@@ -47,16 +48,84 @@ public:
47 48
48 static void* createPanelMiniMap(void* data); 49 static void* createPanelMiniMap(void* data);
49 50
51 static void updateRadar();
52 static LLUUID getSelected();
53 // returns true if agent_id belongs to a developer listed in llfloatermap.cpp
54 static bool isImpDev(LLUUID agent_id);
55
56 bool isTyping(LLUUID agent_id);
57 void updateTypingList(LLUUID agent_id, bool remove);
58
50 BOOL postBuild(); 59 BOOL postBuild();
51 60
52 /*virtual*/ void draw(); 61 /*virtual*/ void draw();
53 /*virtual*/ void onOpen(); 62 /*virtual*/ void onOpen();
54 /*virtual*/ void onClose(bool app_quitting); 63 /*virtual*/ void onClose(bool app_quitting);
55 /*virtual*/ BOOL canClose(); 64 /*virtual*/ BOOL canClose();
65// [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-05 (RLVa-1.0.0c)
66 /*virtual*/ void open();
67// [/RLVa:KB]
68
56 69
57private: 70private:
71
58 LLFloaterMap(const LLSD& key = LLSD()); 72 LLFloaterMap(const LLSD& key = LLSD());
59 LLNetMap* mPanelMap; 73
74 LLNetMap* mPanelMap;
75 LLScrollListCtrl* mRadarList;
76 LLUUID mSelectedAvatar;
77
78 // TODO: move all this info into its own object. It's stupid
79 // and bug-prone to keep it all in separate containers, but
80 // I want to get this out for 1.2 -- McCabe
81 std::set<LLUUID> mChatAvatars;
82 std::set<LLUUID> mTypingAvatars;
83 std::set<LLUUID> mSimAvatars;
84 bool mUpdate;
85
86 static void onList(LLUICtrl* ctrl, void* user_data);
87 static void onRangeChange(LLFocusableElement* focus, void* user_data);
88 BOOL visibleItemsSelected() const;
89 BOOL isKickable(const LLUUID &agent_id);
90 void toggleButtons();
91 void populateRadar();
92
93 void updateChatList(std::vector<LLUUID> agent_ids);
94 bool isInChatList(LLUUID agent_id);
95 void addToChatList(LLUUID agent_id, std::string distance);
96 void removeFromChatList(LLUUID agent_id);
97
98 bool getInSimAvList(LLUUID agent_id);
99 void addToSimAvList(LLUUID agent_id, std::string distance);
100 void updateSimAvList(std::vector<LLUUID> agent_ids);
101
102 static void onClickProfile(void* user_data);
103 static void onClickIM(void* user_data);
104 static void onClickAddFriend(void* user_data);
105 static void onClickOfferTeleport(void* user_data);
106 static void onClickTrack(void* user_data);
107 static void onClickInvite(void* user_data);
108 static void callback_invite_to_group(LLUUID group_id, void *user_data);
109
110 static std::string getSelectedName(const LLUUID &agent_id);
111 static void onClickFreeze(void *user_data);
112 static void onClickEject(void *user_data);
113 static void onClickMute(void *user_data);
114 static void onClickUnmute(void *user_data);
115 static void onClickAR(void *user_data);
116 static void onClickEjectFromEstate(void *user_data);
117
118 static void callbackFreeze(S32 option, void *user_data);
119 static void callbackEject(S32 option, void *user_data);
120 static void callbackAR(void *user_data);
121 static void callbackEjectFromEstate(S32 option, void *user_data);
122
123 static void sendFreeze(const LLUUID &avatar, bool);
124 static void sendEject(const LLUUID &avatar, bool);
125 static void cmdEstateEject(const LLUUID &avatar);
126 static void cmdEstateBan(const LLUUID &avatar);
127 static void sendEstateBan(const LLUUID& agent);
128 static void sendEstateMessage(const char* request, const LLUUID &target);
60}; 129};
61 130
62#endif // LL_LLFLOATERMAP_H 131#endif // LL_LLFLOATERMAP_H