aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterfriends.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterfriends.h')
-rw-r--r--linden/indra/newview/llfloaterfriends.h26
1 files changed, 7 insertions, 19 deletions
diff --git a/linden/indra/newview/llfloaterfriends.h b/linden/indra/newview/llfloaterfriends.h
index 327a8cf..0b6646d 100644
--- a/linden/indra/newview/llfloaterfriends.h
+++ b/linden/indra/newview/llfloaterfriends.h
@@ -31,7 +31,7 @@
31#ifndef LL_LLFLOATERFRIENDS_H 31#ifndef LL_LLFLOATERFRIENDS_H
32#define LL_LLFLOATERFRIENDS_H 32#define LL_LLFLOATERFRIENDS_H
33 33
34#include "llfloater.h" 34#include "llpanel.h"
35#include "llstring.h" 35#include "llstring.h"
36#include "lluuid.h" 36#include "lluuid.h"
37#include "lltimer.h" 37#include "lltimer.h"
@@ -40,24 +40,23 @@ class LLFriendObserver;
40 40
41 41
42/** 42/**
43 * @class LLFloaterFriends 43 * @class LLPanelFriends
44 * @brief An instance of this class is used for displaying your friends 44 * @brief An instance of this class is used for displaying your friends
45 * and gives you quick access to all agents which a user relationship. 45 * and gives you quick access to all agents which a user relationship.
46 * 46 *
47 * @sa LLFloater 47 * @sa LLFloater
48 */ 48 */
49class LLFloaterFriends : public LLFloater, public LLEventTimer 49class LLPanelFriends : public LLPanel, public LLEventTimer
50{ 50{
51public: 51public:
52 virtual ~LLFloaterFriends(); 52 LLPanelFriends();
53 virtual ~LLPanelFriends();
53 54
54 /** 55 /**
55 * @brief This method either creates or brings to the front the 56 * @brief This method either creates or brings to the front the
56 * current instantiation of this floater. There is only once since 57 * current instantiation of this floater. There is only once since
57 * you can currently only look at your local friends. 58 * you can currently only look at your local friends.
58 */ 59 */
59 static void show(void* ignored = NULL);
60
61 virtual void tick(); 60 virtual void tick();
62 61
63 /** 62 /**
@@ -68,11 +67,6 @@ public:
68 67
69 virtual BOOL postBuild(); 68 virtual BOOL postBuild();
70 69
71 static BOOL visible(void* unused = NULL);
72
73 // Toggles visibility of floater
74 static void toggle(void* unused = NULL);
75
76 // Show a dialog explaining what friendship entails, then request 70 // Show a dialog explaining what friendship entails, then request
77 // friendship. JC 71 // friendship. JC
78 static void requestFriendshipDialog(const LLUUID& target_id, 72 static void requestFriendshipDialog(const LLUUID& target_id,
@@ -95,19 +89,18 @@ private:
95 }; 89 };
96 90
97 // protected members 91 // protected members
98 LLFloaterFriends();
99 92
100 void reloadNames(); 93 void reloadNames();
101 void refreshNames(); 94 void refreshNames();
102 void refreshUI(); 95 void refreshUI();
103 void refreshRightsChangeList(U8 state); 96 void refreshRightsChangeList();
104 void applyRightsToFriends(S32 flag, BOOL value); 97 void applyRightsToFriends(S32 flag, BOOL value);
105 void updateMenuState(S32 flag, BOOL value); 98 void updateMenuState(S32 flag, BOOL value);
106 S32 getMenuState() { return mMenuState; } 99 S32 getMenuState() { return mMenuState; }
107 void addFriend(const std::string& name, const LLUUID& agent_id); 100 void addFriend(const std::string& name, const LLUUID& agent_id);
108 101
109 // return LLUUID::null if nothing is selected 102 // return LLUUID::null if nothing is selected
110 static LLDynamicArray<LLUUID> getSelectedIDs(); 103 LLDynamicArray<LLUUID> getSelectedIDs();
111 104
112 // callback methods 105 // callback methods
113 static void onSelectName(LLUICtrl* ctrl, void* user_data); 106 static void onSelectName(LLUICtrl* ctrl, void* user_data);
@@ -123,8 +116,6 @@ private:
123 static void onClickOfferTeleport(void* user_data); 116 static void onClickOfferTeleport(void* user_data);
124 static void onClickPay(void* user_data); 117 static void onClickPay(void* user_data);
125 118
126 static void onClickClose(void* user_data);
127
128 static void onClickOnlineStatus(LLUICtrl* ctrl, void* user_data); 119 static void onClickOnlineStatus(LLUICtrl* ctrl, void* user_data);
129 static void onClickMapStatus(LLUICtrl* ctrl, void* user_data); 120 static void onClickMapStatus(LLUICtrl* ctrl, void* user_data);
130 static void onClickModifyStatus(LLUICtrl* ctrl, void* user_data); 121 static void onClickModifyStatus(LLUICtrl* ctrl, void* user_data);
@@ -133,9 +124,6 @@ private:
133 static void handleModifyRights(S32 option, void* user_data); 124 static void handleModifyRights(S32 option, void* user_data);
134 125
135private: 126private:
136 // static data
137 static LLFloaterFriends* sInstance;
138
139 // member data 127 // member data
140 LLFriendObserver* mObserver; 128 LLFriendObserver* mObserver;
141 LLUUID mAddFriendID; 129 LLUUID mAddFriendID;