PageRenderTime 409ms CodeModel.GetById 149ms app.highlight 4ms RepoModel.GetById 183ms app.codeStats 70ms

/indra/newview/llfloateropenobject.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 90 lines | 44 code | 17 blank | 29 comment | 0 complexity | b64f7d96caf0b8d85fcf9e8d5ee670a6 MD5 | raw file
 1/** 
 2 * @file llfloateropenobject.h
 3 * @brief LLFloaterOpenObject class definition
 4 *
 5 * $LicenseInfo:firstyear=2004&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/*
28 * Shows the contents of an object and their permissions when you
29 * click "Buy..." on an object with "Sell Contents" checked.
30 */
31
32#ifndef LL_LLFLOATEROPENOBJECT_H
33#define LL_LLFLOATEROPENOBJECT_H
34
35#include "llfloater.h"
36
37class LLObjectSelection;
38class LLPanelObjectInventory;
39
40class LLFloaterOpenObject
41: public LLFloater
42{
43	friend class LLFloaterReg;
44public:
45	
46	void dirty();
47	
48	class LLCategoryCreate
49	{
50		public:
51			LLCategoryCreate(LLUUID object_id, bool wear) : mObjectID(object_id), mWear(wear) {}
52		public:
53			LLUUID mObjectID;
54			bool mWear;
55	};
56	
57	struct LLCatAndWear
58	{
59		LLUUID mCatID;
60		bool mWear;
61		bool mFolderResponded;
62	};
63
64protected:
65
66	/*virtual*/	BOOL	postBuild();
67	void refresh();
68	void draw();
69	virtual void onOpen(const LLSD& key);
70
71	void moveToInventory(bool wear);
72
73	void onClickMoveToInventory();
74	void onClickMoveAndWear();
75	static void callbackCreateInventoryCategory(const LLSD& result, void* data);
76	static void callbackMoveInventory(S32 result, void* data);
77
78private:
79	
80	LLFloaterOpenObject(const LLSD& key);
81	~LLFloaterOpenObject();
82	
83protected:
84
85	LLPanelObjectInventory*	mPanelInventoryObject;
86	LLSafeHandle<LLObjectSelection> mObjectSelection;
87	BOOL mDirty;
88};
89
90#endif