diff options
author | Jacek Antonelli | 2009-10-30 03:18:35 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-10-30 03:50:28 -0500 |
commit | 44cc489c43e83f23838d4e3ea30482ddf0299e6c (patch) | |
tree | 26a98227af7d477052e19d54aefec77bcfc93a2f /linden/indra/newview/panelradar.h | |
parent | Minimap radar can now be toggled. (diff) | |
download | meta-impy-44cc489c43e83f23838d4e3ea30482ddf0299e6c.zip meta-impy-44cc489c43e83f23838d4e3ea30482ddf0299e6c.tar.gz meta-impy-44cc489c43e83f23838d4e3ea30482ddf0299e6c.tar.bz2 meta-impy-44cc489c43e83f23838d4e3ea30482ddf0299e6c.tar.xz |
Cleaned up PanelRadar class a bit.
More privacy, better method names, generally cleaner.
Diffstat (limited to 'linden/indra/newview/panelradar.h')
-rw-r--r-- | linden/indra/newview/panelradar.h | 34 |
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 | |||
56 | private: | ||
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 | ||
79 | private: | 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); |