/indra/newview/llpanelwearing.h
C++ Header | 80 lines | 30 code | 17 blank | 33 comment | 0 complexity | 747485eb4da6f12d4bd345c3d5592b66 MD5 | raw file
Possible License(s): LGPL-2.1
1/** 2 * @file llpanelwearing.h 3 * @brief List of agent's worn items. 4 * 5 * $LicenseInfo:firstyear=2010&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_LLPANELWEARING_H 28#define LL_LLPANELWEARING_H 29 30#include "llpanel.h" 31 32// newview 33#include "llpanelappearancetab.h" 34 35class LLInventoryCategoriesObserver; 36class LLListContextMenu; 37class LLWearableItemsList; 38class LLWearingGearMenu; 39 40/** 41 * @class LLPanelWearing 42 * 43 * A list of agents's currently worn items represented by 44 * a flat list view. 45 * Starts fetching necessary inventory content on first opening. 46 */ 47class LLPanelWearing : public LLPanelAppearanceTab 48{ 49public: 50 LLPanelWearing(); 51 virtual ~LLPanelWearing(); 52 53 /*virtual*/ BOOL postBuild(); 54 55 /*virtual*/ void onOpen(const LLSD& info); 56 57 /*virtual*/ void setFilterSubString(const std::string& string); 58 59 /*virtual*/ bool isActionEnabled(const LLSD& userdata); 60 61 /*virtual*/ void getSelectedItemsUUIDs(uuid_vec_t& selected_uuids) const; 62 63 /*virtual*/ void copyToClipboard(); 64 65 boost::signals2::connection setSelectionChangeCallback(commit_callback_t cb); 66 67 bool hasItemSelected(); 68 69private: 70 void onWearableItemsListRightClick(LLUICtrl* ctrl, S32 x, S32 y); 71 72 LLInventoryCategoriesObserver* mCategoriesObserver; 73 LLWearableItemsList* mCOFItemsList; 74 LLWearingGearMenu* mGearMenu; 75 LLListContextMenu* mContextMenu; 76 77 bool mIsInitialized; 78}; 79 80#endif //LL_LLPANELWEARING_H