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

/indra/newview/llfloaterinventory.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 72 lines | 22 code | 14 blank | 36 comment | 0 complexity | da976b1340d28bdfbe16d58ffc74a8d4 MD5 | raw file
 1/** 
 2 * @file llfloaterinventory.h
 3 * @brief LLFloaterInventory, LLInventoryFolder, and LLInventoryItem
 4 * class definition
 5 *
 6 * $LicenseInfo:firstyear=2001&license=viewerlgpl$
 7 * Second Life Viewer Source Code
 8 * Copyright (C) 2010, Linden Research, Inc.
 9 * 
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation;
13 * version 2.1 of the License only.
14 * 
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Lesser General Public License for more details.
19 * 
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 * 
24 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
25 * $/LicenseInfo$
26 */
27
28#ifndef LL_LLFLOATERINVENTORY_H
29#define LL_LLFLOATERINVENTORY_H
30
31#include "llfloater.h"
32#include "llfoldertype.h"
33
34class LLInventoryPanel;
35class LLPanelMainInventory;
36
37//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38// Class LLFloaterInventory
39//
40// This deals with the buttons and views used to navigate as
41// well as controlling the behavior of the overall object.
42//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43
44class LLFloaterInventory : public LLFloater
45{
46public:
47	LLFloaterInventory(const LLSD& key);
48	~LLFloaterInventory();
49
50	BOOL postBuild();
51
52	// This method makes sure that an inventory view exists, is
53	// visible, and has focus. The view chosen is returned.
54	static LLFloaterInventory* showAgentInventory();
55
56	// Final cleanup, destroy all open inventory views.
57	static void cleanup();
58
59	// Inherited functionality
60	/*virtual*/ void onOpen(const LLSD& key);
61	/*virtual*/ void onClose(bool app_quitting);
62
63	LLInventoryPanel* getPanel();
64	LLPanelMainInventory* getMainInventoryPanel() { return mPanelMainInventory;}
65private:
66	LLPanelMainInventory* mPanelMainInventory;
67};
68
69#endif // LL_LLFLOATERINVENTORY_H
70
71
72