PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llfloaterchatterbox.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 80 lines | 38 code | 15 blank | 27 comment | 0 complexity | 50e26deb0b97f37eb6a07c570b2a3cec MD5 | raw file
 1/** 
 2 * @file llfloaterchatterbox.h
 3 * @author Richard
 4 * @date 2007-05-04
 5 * @brief Integrated friends and group management/communication tool
 6 *
 7 * $LicenseInfo:firstyear=2007&license=viewerlgpl$
 8 * Second Life Viewer Source Code
 9 * Copyright (C) 2010, Linden Research, Inc.
10 * 
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation;
14 * version 2.1 of the License only.
15 * 
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 * Lesser General Public License for more details.
20 * 
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
24 * 
25 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
26 * $/LicenseInfo$
27 */
28
29#ifndef LL_LLFLOATERCHATTERBOX_H
30#define LL_LLFLOATERCHATTERBOX_H
31
32#include "llfloater.h"
33#include "llmultifloater.h"
34#include "llstring.h"
35#include "llimpanel.h"
36
37class LLTabContainer;
38
39class LLFloaterChatterBox : public LLMultiFloater
40{
41public:
42	LLFloaterChatterBox(const LLSD& seed);
43	virtual ~LLFloaterChatterBox();
44	
45	/*virtual*/ BOOL postBuild();
46	/*virtual*/ BOOL handleKeyHere(KEY key, MASK mask);
47	/*virtual*/ void draw();
48	/*virtual*/ void onOpen(const LLSD& key);
49
50	/*virtual*/ void removeFloater(LLFloater* floaterp);
51	/*virtual*/ void addFloater(LLFloater* floaterp, 
52								BOOL select_added_floater, 
53								LLTabContainer::eInsertionPoint insertion_point = LLTabContainer::END);
54
55	static LLFloaterChatterBox* getInstance(); // *TODO:Skinning Deprecate
56	static LLFloater* getCurrentVoiceFloater();
57	
58protected:
59	void onVisibilityChange ( const LLSD& new_visibility );
60	
61	LLFloater* mActiveVoiceFloater;
62};
63
64
65class LLFloaterMyFriends : public LLFloater
66{
67public:
68	LLFloaterMyFriends(const LLSD& seed);
69	virtual ~LLFloaterMyFriends();
70
71	/*virtual*/ BOOL postBuild();
72	/*virtual*/ void onOpen(const LLSD& key);
73
74	static LLFloaterMyFriends* getInstance(); // *TODO:Skinning Deprecate
75	
76	static void* createFriendsPanel(void* data);
77	static void* createGroupsPanel(void* data);
78};
79
80#endif // LL_LLFLOATERCHATTERBOX_H