PageRenderTime 13ms CodeModel.GetById 1ms app.highlight 7ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/newview/llpaneloutfitsinventory.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 105 lines | 54 code | 17 blank | 34 comment | 0 complexity | 21157b9873a64f617ba7a0c395d0b454 MD5 | raw file
  1/**
  2 * @file llpaneloutfitsinventory.h
  3 * @brief Outfits inventory panel
  4 * class definition
  5 *
  6 * $LicenseInfo:firstyear=2009&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_LLPANELOUTFITSINVENTORY_H
 29#define LL_LLPANELOUTFITSINVENTORY_H
 30
 31#include "llpanel.h"
 32
 33class LLOutfitsList;
 34class LLOutfitListGearMenu;
 35class LLPanelAppearanceTab;
 36class LLPanelWearing;
 37class LLMenuGL;
 38class LLSidepanelAppearance;
 39class LLTabContainer;
 40class LLSaveOutfitComboBtn;
 41
 42class LLPanelOutfitsInventory : public LLPanel
 43{
 44	LOG_CLASS(LLPanelOutfitsInventory);
 45public:
 46	LLPanelOutfitsInventory();
 47	virtual ~LLPanelOutfitsInventory();
 48
 49	/*virtual*/ BOOL postBuild();
 50	/*virtual*/ void onOpen(const LLSD& key);
 51	
 52	void onSearchEdit(const std::string& string);
 53	void onSave();
 54	
 55	bool onSaveCommit(const LLSD& notification, const LLSD& response);
 56
 57	static LLSidepanelAppearance* getAppearanceSP();
 58
 59	static LLPanelOutfitsInventory* findInstance();
 60
 61protected:
 62	void updateVerbs();
 63
 64private:
 65	LLTabContainer*			mAppearanceTabs;
 66	std::string 			mFilterSubString;
 67	std::auto_ptr<LLSaveOutfitComboBtn> mSaveComboBtn;
 68
 69	//////////////////////////////////////////////////////////////////////////////////
 70	// tab panels                                                                   //
 71protected:
 72	void 					initTabPanels();
 73	void 					onTabChange();
 74	bool 					isCOFPanelActive() const;
 75
 76private:
 77	LLPanelAppearanceTab*	mActivePanel;
 78	LLOutfitsList*			mMyOutfitsPanel;
 79	LLPanelWearing*			mCurrentOutfitPanel;
 80
 81	// tab panels                                                                   //
 82	//////////////////////////////////////////////////////////////////////////////////
 83
 84	//////////////////////////////////////////////////////////////////////////////////
 85	// List Commands                                                                //
 86protected:
 87	void initListCommandsHandlers();
 88	void updateListCommands();
 89	void onWearButtonClick();
 90	void showGearMenu();
 91	void onTrashButtonClick();
 92	bool isActionEnabled(const LLSD& userdata);
 93	void setWearablesLoading(bool val);
 94	void onWearablesLoaded();
 95	void onWearablesLoading();
 96private:
 97	LLPanel*					mListCommands;
 98	LLMenuGL*					mMenuAdd;
 99	// List Commands                                                                //
100	//////////////////////////////////////////////////////////////////////////////////
101
102	bool mInitialized;
103};
104
105#endif //LL_LLPANELOUTFITSINVENTORY_H