summaryrefslogtreecommitdiff
path: root/indra/newview/llfloateropenobject.h
blob: 88635d58b1c5fada4b255090e28a392cc11e4e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/** 
 * @file llfloateropenobject.h
 * @brief LLFloaterOpenObject class definition
 *
 * Copyright (c) 2004-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

/*
 * Shows the contents of an object and their permissions when you
 * click "Buy..." on an object with "Sell Contents" checked.
 */

#ifndef LL_LLFLOATEROPENOBJECT_H
#define LL_LLFLOATEROPENOBJECT_H

#include "llfloater.h"

class LLObjectSelection;
class LLPanelInventory;

class LLFloaterOpenObject
: public LLFloater
{
public:
	static void show();
	static void dirty();
	
	struct LLCatAndWear
	{
		LLUUID mCatID;
		bool mWear;
	};

protected:
	LLFloaterOpenObject();
	~LLFloaterOpenObject();

	void refresh();
	void draw();

	void moveToInventory(bool wear);

	static void onClickMoveToInventory(void* data);
	static void onClickMoveAndWear(void* data);
	static void callbackMoveInventory(S32 result, void* data);
	static void* createPanelInventory(void* data);

protected:
	static LLFloaterOpenObject* sInstance;

	LLPanelInventory*	mPanelInventory;
	LLHandle<LLObjectSelection> mObjectSelection;
	BOOL mDirty;
};

#endif