PageRenderTime 41ms CodeModel.GetById 20ms app.highlight 6ms RepoModel.GetById 14ms app.codeStats 0ms

/indra/newview/llfloatermediasettings.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 88 lines | 45 code | 17 blank | 26 comment | 0 complexity | 07ecb9e8214c5798a4e4f9605ba8d089 MD5 | raw file
 1/** 
 2 * @file llfloatermediasettings.cpp
 3 * @brief Tabbed dialog for media settings - class definition
 4 *
 5 * $LicenseInfo:firstyear=2002&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2010, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LL_LLFLOATERMEDIASETTINGS_H
28#define LL_LLFLOATERMEDIASETTINGS_H
29
30#include "llfloater.h"
31#include "lltabcontainer.h"
32
33class LLPanelMediaSettingsGeneral;
34class LLPanelMediaSettingsSecurity;
35class LLPanelMediaSettingsPermissions;
36
37class LLFloaterMediaSettings : 
38	public LLFloater
39{
40public: 
41	LLFloaterMediaSettings(const LLSD& key);
42	~LLFloaterMediaSettings();
43
44	/*virtual*/ BOOL postBuild();
45	/*virtual*/ void onClose(bool app_quitting);
46
47	static LLFloaterMediaSettings* getInstance();
48	static void apply();
49	static void initValues( const LLSD& media_settings , bool editable);
50	static void clearValues( bool editable);
51
52	LLPanelMediaSettingsSecurity* getPanelSecurity(){return mPanelMediaSettingsSecurity;};	
53	const std::string getHomeUrl();	
54	//bool passesWhiteList( const std::string& test_url );
55
56	virtual void	draw();
57
58	bool mIdenticalHasMediaInfo;
59	bool mMultipleMedia;
60	bool mMultipleValidMedia;
61	
62protected:
63	LLButton *mOKBtn;
64	LLButton *mCancelBtn;
65	LLButton *mApplyBtn;
66
67	LLTabContainer *mTabContainer;
68	LLPanelMediaSettingsGeneral* mPanelMediaSettingsGeneral;
69	LLPanelMediaSettingsSecurity* mPanelMediaSettingsSecurity;
70	LLPanelMediaSettingsPermissions* mPanelMediaSettingsPermissions;
71
72	static void onBtnOK(void*);
73	static void onBtnCancel(void*);
74	static void onBtnApply(void*);
75	static void onTabChanged(void* user_data, bool from_click);
76	void commitFields();
77
78	static LLFloaterMediaSettings* sInstance;
79
80private:
81
82	bool haveValuesChanged() const;
83	
84	LLSD mInitialValues;
85	bool mWaitingToClose;
86};
87
88#endif  // LL_LLFLOATERMEDIASETTINGS_H