summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterfriends.h
diff options
context:
space:
mode:
authorMonroe Williams <monroe@lindenlab.com>2007-08-02 01:18:34 +0000
committerMonroe Williams <monroe@lindenlab.com>2007-08-02 01:18:34 +0000
commit7138fb673ac3df46b9cb5f23d0d74e70fdd2b6b3 (patch)
tree3c34a3a180b5275bd4166b0056765c5868f56447 /indra/newview/llfloaterfriends.h
parentf6a10b3214d79df4e8f5768acaa68edbd2de5620 (diff)
Merge down from Branch_1-18-1:
svn merge --ignore-ancestry svn+ssh://svn.lindenlab.com/svn/linden/release@66449 svn+ssh://svn.lindenlab.com/svn/linden/branches/Branch_1-18-1@67131
Diffstat (limited to 'indra/newview/llfloaterfriends.h')
-rw-r--r--indra/newview/llfloaterfriends.h26
1 files changed, 7 insertions, 19 deletions
diff --git a/indra/newview/llfloaterfriends.h b/indra/newview/llfloaterfriends.h
index c6ef365517..6895e469e5 100644
--- a/indra/newview/llfloaterfriends.h
+++ b/indra/newview/llfloaterfriends.h
@@ -11,7 +11,7 @@
#ifndef LL_LLFLOATERFRIENDS_H
#define LL_LLFLOATERFRIENDS_H
-#include "llfloater.h"
+#include "llpanel.h"
#include "llstring.h"
#include "lluuid.h"
#include "lltimer.h"
@@ -20,24 +20,23 @@ class LLFriendObserver;
/**
- * @class LLFloaterFriends
+ * @class LLPanelFriends
* @brief An instance of this class is used for displaying your friends
* and gives you quick access to all agents which a user relationship.
*
* @sa LLFloater
*/
-class LLFloaterFriends : public LLFloater, public LLEventTimer
+class LLPanelFriends : public LLPanel, public LLEventTimer
{
public:
- virtual ~LLFloaterFriends();
+ LLPanelFriends();
+ virtual ~LLPanelFriends();
/**
* @brief This method either creates or brings to the front the
* current instantiation of this floater. There is only once since
* you can currently only look at your local friends.
*/
- static void show(void* ignored = NULL);
-
virtual void tick();
/**
@@ -48,11 +47,6 @@ public:
virtual BOOL postBuild();
- static BOOL visible(void* unused = NULL);
-
- // Toggles visibility of floater
- static void toggle(void* unused = NULL);
-
// Show a dialog explaining what friendship entails, then request
// friendship. JC
static void requestFriendshipDialog(const LLUUID& target_id,
@@ -75,19 +69,18 @@ private:
};
// protected members
- LLFloaterFriends();
void reloadNames();
void refreshNames();
void refreshUI();
- void refreshRightsChangeList(U8 state);
+ void refreshRightsChangeList();
void applyRightsToFriends(S32 flag, BOOL value);
void updateMenuState(S32 flag, BOOL value);
S32 getMenuState() { return mMenuState; }
void addFriend(const std::string& name, const LLUUID& agent_id);
// return LLUUID::null if nothing is selected
- static LLDynamicArray<LLUUID> getSelectedIDs();
+ LLDynamicArray<LLUUID> getSelectedIDs();
// callback methods
static void onSelectName(LLUICtrl* ctrl, void* user_data);
@@ -103,8 +96,6 @@ private:
static void onClickOfferTeleport(void* user_data);
static void onClickPay(void* user_data);
- static void onClickClose(void* user_data);
-
static void onClickOnlineStatus(LLUICtrl* ctrl, void* user_data);
static void onClickMapStatus(LLUICtrl* ctrl, void* user_data);
static void onClickModifyStatus(LLUICtrl* ctrl, void* user_data);
@@ -113,9 +104,6 @@ private:
static void handleModifyRights(S32 option, void* user_data);
private:
- // static data
- static LLFloaterFriends* sInstance;
-
// member data
LLFriendObserver* mObserver;
LLUUID mAddFriendID;