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