aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/panelradar.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/panelradar.h')
-rw-r--r--linden/indra/newview/panelradar.h34
1 files changed, 19 insertions, 15 deletions
diff --git a/linden/indra/newview/panelradar.h b/linden/indra/newview/panelradar.h
index ca253dd..0152f26 100644
--- a/linden/indra/newview/panelradar.h
+++ b/linden/indra/newview/panelradar.h
@@ -42,15 +42,18 @@ public:
42 42
43 BOOL postBuild(); 43 BOOL postBuild();
44 44
45 // returns true if agent_id belongs to a developer listed in llfloatermap.cpp 45 // returns true if agent_id belongs to an Imprudence developer
46 static bool isImpDev(LLUUID agent_id); 46 static bool isImpDev(LLUUID agent_id);
47 47
48 LLUUID getSelected(); 48 LLUUID getSelected();
49 bool isTyping(LLUUID agent_id);
50 void updateTypingList(LLUUID agent_id, bool remove);
51 49
52 LLScrollListCtrl* mRadarList; 50 void addToTypingList(LLUUID agent_id);
53 LLUUID mSelectedAvatar; 51 void removeFromTypingList(LLUUID agent_id);
52
53 void updateButtonStates();
54 void populateRadar();
55
56private:
54 57
55 // TODO: move all this info into its own object. It's stupid 58 // TODO: move all this info into its own object. It's stupid
56 // and bug-prone to keep it all in separate containers, but 59 // and bug-prone to keep it all in separate containers, but
@@ -58,28 +61,29 @@ public:
58 std::set<LLUUID> mChatAvatars; 61 std::set<LLUUID> mChatAvatars;
59 std::set<LLUUID> mTypingAvatars; 62 std::set<LLUUID> mTypingAvatars;
60 std::set<LLUUID> mSimAvatars; 63 std::set<LLUUID> mSimAvatars;
61 bool mUpdate; 64
62 65 LLScrollListCtrl* mRadarList;
63 static void onList(LLUICtrl* ctrl, void* user_data); 66 LLUUID mSelectedAvatar;
64 static void onRangeChange(LLFocusableElement* focus, void* user_data);
65 BOOL visibleItemsSelected() const;
66 BOOL isKickable(const LLUUID &agent_id);
67 void toggleButtons();
68 void populateRadar();
69 67
70 void updateChatList(std::vector<LLUUID> agent_ids); 68 void updateChatList(std::vector<LLUUID> agent_ids);
71 bool isInChatList(LLUUID agent_id); 69 bool isInChatList(LLUUID agent_id);
72 void addToChatList(LLUUID agent_id, std::string distance); 70 void addToChatList(LLUUID agent_id, std::string distance);
73 void removeFromChatList(LLUUID agent_id); 71 void removeFromChatList(LLUUID agent_id);
74 72
75 bool getInSimAvList(LLUUID agent_id); 73 bool isInSimAvList(LLUUID agent_id);
76 void addToSimAvList(LLUUID agent_id, std::string distance); 74 void addToSimAvList(LLUUID agent_id, std::string distance);
77 void updateSimAvList(std::vector<LLUUID> agent_ids); 75 void updateSimAvList(std::vector<LLUUID> agent_ids);
78 76
79private: 77 bool isTyping(LLUUID agent_id);
78
79 bool visibleItemsSelected() const;
80 bool isKickable(const LLUUID &agent_id);
80 81
81 static std::string getSelectedName(const LLUUID &agent_id); 82 static std::string getSelectedName(const LLUUID &agent_id);
82 83
84 static void onUseRadarList(LLUICtrl* ctrl, void* user_data);
85 static void onRangeChange(LLFocusableElement* focus, void* user_data);
86
83 static void onClickProfile(void* user_data); 87 static void onClickProfile(void* user_data);
84 static void onClickIM(void* user_data); 88 static void onClickIM(void* user_data);
85 static void onClickAddFriend(void* user_data); 89 static void onClickAddFriend(void* user_data);