PageRenderTime 17ms CodeModel.GetById 9ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llpanelcontents.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 75 lines | 36 code | 12 blank | 27 comment | 0 complexity | 765371d294b7ae4b73d50f550b25a6b1 MD5 | raw file
 1/** 
 2 * @file llpanelcontents.h
 3 * @brief Object contents panel in the tools floater.
 4 *
 5 * $LicenseInfo:firstyear=2001&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_LLPANELCONTENTS_H
28#define LL_LLPANELCONTENTS_H
29
30#include "v3math.h"
31#include "llpanel.h"
32#include "llinventory.h"
33#include "lluuid.h"
34#include "llmap.h"
35#include "llviewerobject.h"
36#include "llvoinventorylistener.h"
37
38class LLButton;
39class LLPanelObjectInventory;
40class LLViewerObject;
41class LLCheckBoxCtrl;
42class LLSpinCtrl;
43
44class LLPanelContents : public LLPanel
45{
46public:
47	virtual	BOOL postBuild();
48	LLPanelContents();
49	virtual ~LLPanelContents();
50
51	void			refresh();
52
53
54	static void		onClickNewScript(void*);
55	static void		onClickPermissions(void*);
56	
57    // Key suffix for "tentative" fields
58    static const char* TENTATIVE_SUFFIX;
59
60    // These aren't fields in LLMediaEntry, so we have to define them ourselves for checkbox control
61    static const char* PERMS_OWNER_INTERACT_KEY;
62    static const char* PERMS_OWNER_CONTROL_KEY;
63    static const char* PERMS_GROUP_INTERACT_KEY;
64    static const char* PERMS_GROUP_CONTROL_KEY;
65    static const char* PERMS_ANYONE_INTERACT_KEY;
66    static const char* PERMS_ANYONE_CONTROL_KEY;
67
68protected:
69	void				getState(LLViewerObject *object);
70
71public:
72	LLPanelObjectInventory* mPanelInventoryObject;
73};
74
75#endif // LL_LLPANELCONTENTS_H