diff options
Diffstat (limited to 'linden/indra/newview/llfloaterchatterbox.h')
-rw-r--r-- | linden/indra/newview/llfloaterchatterbox.h | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterchatterbox.h b/linden/indra/newview/llfloaterchatterbox.h new file mode 100644 index 0000000..737f43e --- /dev/null +++ b/linden/indra/newview/llfloaterchatterbox.h | |||
@@ -0,0 +1,87 @@ | |||
1 | /** | ||
2 | * @file llfloaterchatterbox.h | ||
3 | * @author Richard | ||
4 | * @date 2007-05-04 | ||
5 | * @brief Integrated friends and group management/communication tool | ||
6 | * | ||
7 | * Copyright (c) 2007-2007, Linden Research, Inc. | ||
8 | * | ||
9 | * Second Life Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
11 | * to you under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
15 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
16 | * | ||
17 | * There are special exceptions to the terms and conditions of the GPL as | ||
18 | * it is applied to this Source Code. View the full text of the exception | ||
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
20 | * online at http://secondlife.com/developers/opensource/flossexception | ||
21 | * | ||
22 | * By copying, modifying or distributing this software, you acknowledge | ||
23 | * that you have read and understood your obligations described above, | ||
24 | * and agree to abide by those obligations. | ||
25 | * | ||
26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
28 | * COMPLETENESS OR PERFORMANCE. | ||
29 | */ | ||
30 | |||
31 | #ifndef LL_LLFLOATERCHATTERBOX_H | ||
32 | #define LL_LLFLOATERCHATTERBOX_H | ||
33 | |||
34 | #include "llfloater.h" | ||
35 | #include "llstring.h" | ||
36 | |||
37 | class LLTabContainerCommon; | ||
38 | |||
39 | class LLFloaterMyFriends : public LLFloater, public LLUISingleton<LLFloaterMyFriends> | ||
40 | { | ||
41 | public: | ||
42 | LLFloaterMyFriends(const LLSD& seed); | ||
43 | virtual ~LLFloaterMyFriends(); | ||
44 | |||
45 | virtual BOOL postBuild(); | ||
46 | |||
47 | void onClose(bool app_quitting); | ||
48 | |||
49 | // override LLUISingleton behavior | ||
50 | static LLFloaterMyFriends* showInstance(const LLSD& id); | ||
51 | static void hideInstance(const LLSD& id); | ||
52 | static BOOL instanceVisible(const LLSD& id); | ||
53 | |||
54 | static void* createFriendsPanel(void* data); | ||
55 | static void* createGroupsPanel(void* data); | ||
56 | |||
57 | protected: | ||
58 | LLTabContainerCommon* mTabs; | ||
59 | }; | ||
60 | |||
61 | class LLFloaterChatterBox : public LLMultiFloater, public LLUISingleton<LLFloaterChatterBox> | ||
62 | { | ||
63 | public: | ||
64 | LLFloaterChatterBox(const LLSD& seed); | ||
65 | virtual ~LLFloaterChatterBox(); | ||
66 | |||
67 | /*virtual*/ BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent); | ||
68 | /*virtual*/ void draw(); | ||
69 | /*virtual*/ void onOpen(); | ||
70 | /*virtual*/ void onClose(bool app_quitting); | ||
71 | |||
72 | /*virtual*/ void removeFloater(LLFloater* floaterp); | ||
73 | /*virtual*/ void addFloater(LLFloater* floaterp, | ||
74 | BOOL select_added_floater, | ||
75 | LLTabContainerCommon::eInsertionPoint insertion_point = LLTabContainerCommon::END); | ||
76 | |||
77 | static LLFloaterChatterBox* showInstance(const LLSD& seed); | ||
78 | static BOOL instanceVisible(const LLSD& seed); | ||
79 | |||
80 | static LLFloater* getCurrentVoiceFloater(); | ||
81 | |||
82 | protected: | ||
83 | LLFloater* mActiveVoiceFloater; | ||
84 | }; | ||
85 | |||
86 | |||
87 | #endif // LL_LLFLOATERCHATTERBOX_H | ||