From 89a510de10c48ebcf82b98a962e4bf66477dcc93 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 4 Sep 2009 01:56:20 -0500 Subject: Applied Kitty Barnett's RLVa 1.0.1h (Restrained Life) patch. Made a few non-functional changes to help it apply. --- linden/indra/newview/rlvfloaterbehaviour.h | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 linden/indra/newview/rlvfloaterbehaviour.h (limited to 'linden/indra/newview/rlvfloaterbehaviour.h') diff --git a/linden/indra/newview/rlvfloaterbehaviour.h b/linden/indra/newview/rlvfloaterbehaviour.h new file mode 100644 index 0000000..1410dd5 --- /dev/null +++ b/linden/indra/newview/rlvfloaterbehaviour.h @@ -0,0 +1,49 @@ +#ifndef RLV_FLOATER_BEHAVIOUR +#define RLV_FLOATER_BEHAVIOUR + +#include "llfloater.h" +#include "rlvevent.h" + +// ============================================================================ + +class RlvFloaterBehaviour : + public LLFloater, + public LLFloaterSingleton, + public RlvBehaviourObserver +{ + friend class LLUISingleton >; +public: + virtual ~RlvFloaterBehaviour() {} + + /* + * LLFloater overrides + */ +public: + /*virtual*/ BOOL canClose(); + /*virtual*/ void onOpen(); + /*virtual*/ void onClose(bool app_quitting); + /*virtual*/ BOOL postBuild(); + + /* + * RlvBehaviourObserver overrides + */ +public: + /*virtual*/ void changed(const RlvCommand& rlvCmd, bool fInternal); + + /* + * Member functions + */ +public: + static void show(void*); + static void onAvatarNameLookup(const LLUUID& uuid, const std::string& strFirst, const std::string& strLast, BOOL fGroup, void* pParam); +protected: + void refreshAll(); +private: + RlvFloaterBehaviour(const LLSD& key = LLSD()); + + std::list m_PendingLookup; +}; + +// ============================================================================ + +#endif // RLV_FLOATER_BEHAVIOUR -- cgit v1.1