PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llpanelpermissions.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 92 lines | 41 code | 20 blank | 31 comment | 0 complexity | 3cbb9f2754e47b6a3475cc5adde80bf8 MD5 | raw file
 1/** 
 2 * @file llpanelpermissions.h
 3 * @brief LLPanelPermissions class header file
 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_LLPANELPERMISSIONS_H
28#define LL_LLPANELPERMISSIONS_H
29
30#include "llpanel.h"
31#include "lluuid.h"
32
33//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34// Class llpanelpermissions
35//
36// Panel for permissions of an object.
37//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38
39class LLNameBox;
40
41class LLPanelPermissions : public LLPanel
42{
43public:
44	LLPanelPermissions();
45	virtual ~LLPanelPermissions();
46
47	/*virtual*/	BOOL	postBuild();
48
49	void refresh();							// refresh all labels as needed
50
51protected:
52	// statics
53	static void onClickClaim(void*);
54	static void onClickRelease(void*);
55		   void onClickGroup();
56		   void cbGroupID(LLUUID group_id);
57	static void onClickDeedToGroup(void*);
58
59	static void onCommitPerm(LLUICtrl *ctrl, void *data, U8 field, U32 perm);
60
61	static void onCommitGroupShare(LLUICtrl *ctrl, void *data);
62
63	static void onCommitEveryoneMove(LLUICtrl *ctrl, void *data);
64	static void onCommitEveryoneCopy(LLUICtrl *ctrl, void *data);
65
66	static void onCommitNextOwnerModify(LLUICtrl* ctrl, void* data);
67	static void onCommitNextOwnerCopy(LLUICtrl* ctrl, void* data);
68	static void onCommitNextOwnerTransfer(LLUICtrl* ctrl, void* data);
69	
70	static void onCommitName(LLUICtrl* ctrl, void* data);
71	static void onCommitDesc(LLUICtrl* ctrl, void* data);
72
73	static void onCommitSaleInfo(LLUICtrl* ctrl, void* data);
74	static void onCommitSaleType(LLUICtrl* ctrl, void* data);	
75	void setAllSaleInfo();
76
77	static void	onCommitClickAction(LLUICtrl* ctrl, void*);
78	static void onCommitIncludeInSearch(LLUICtrl* ctrl, void*);
79
80protected:
81	void disableAll();
82	
83private:
84	LLNameBox*		mLabelGroupName;		// group name
85
86	LLUUID			mCreatorID;
87	LLUUID			mOwnerID;
88	LLUUID			mLastOwnerID;
89};
90
91
92#endif // LL_LLPANELPERMISSIONS_H