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

/indra/newview/llpanelmediasettingspermissions.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 73 lines | 30 code | 9 blank | 34 comment | 0 complexity | 3d9fbedef52f8c625de6225fff2fe80e MD5 | raw file
 1/**
 2 * @file llpanelmediasettingspermissions.h
 3 * @brief LLPanelMediaSettingsPermissions class definition
 4 *
 5 * note that "permissions" tab is really "Controls" tab - refs to 'perms' and
 6 * 'permissions' not changed to 'controls' since we don't want to change 
 7 * shared files in server code and keeping everything the same seemed best.
 8 *
 9 * $LicenseInfo:firstyear=2007&license=viewerlgpl$
10 * Second Life Viewer Source Code
11 * Copyright (C) 2010, Linden Research, Inc.
12 * 
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation;
16 * version 2.1 of the License only.
17 * 
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 * Lesser General Public License for more details.
22 * 
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
26 * 
27 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
28 * $/LicenseInfo$
29 */
30
31#ifndef LL_LLPANELMEDIAMEDIASETTINGSPERMISSIONS_H
32#define LL_LLPANELMEDIAMEDIASETTINGSPERMISSIONS_H
33
34#include "llpanel.h"
35#include "lluuid.h"
36
37class LLComboBox;
38class LLCheckBoxCtrl;
39class LLNameBox;
40
41class LLPanelMediaSettingsPermissions : public LLPanel
42{
43public:
44	LLPanelMediaSettingsPermissions();
45	~LLPanelMediaSettingsPermissions();
46	
47	BOOL postBuild();
48	virtual void draw();
49	
50	// XXX TODO: put these into a common parent class?
51	// Hook that the floater calls before applying changes from the panel
52	void preApply();
53	// Function that asks the panel to fill in values associated with the panel
54	// 'include_tentative' means fill in tentative values as well, otherwise do not
55	void getValues(LLSD &fill_me_in, bool include_tentative = true);
56	// Hook that the floater calls after applying changes to the panel
57	void postApply();
58	
59	static void initValues( void* userdata, const LLSD& media_settings, bool editable );
60	static void clearValues( void* userdata,  bool editable);
61	
62private:
63	LLComboBox* mControls;
64	LLCheckBoxCtrl* mPermsOwnerInteract;
65	LLCheckBoxCtrl* mPermsOwnerControl;
66	LLNameBox* mPermsGroupName;
67	LLCheckBoxCtrl* mPermsGroupInteract;
68	LLCheckBoxCtrl* mPermsGroupControl;
69	LLCheckBoxCtrl* mPermsWorldInteract;
70	LLCheckBoxCtrl* mPermsWorldControl;
71};
72
73#endif  // LL_LLPANELMEDIAMEDIASETTINGSPERMISSIONS_H