summaryrefslogtreecommitdiff
path: root/indra/newview/llcofwearables.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llcofwearables.h')
-rw-r--r--indra/newview/llcofwearables.h134
1 files changed, 67 insertions, 67 deletions
diff --git a/indra/newview/llcofwearables.h b/indra/newview/llcofwearables.h
index 9957d6a64e..7a5ddbb16d 100644
--- a/indra/newview/llcofwearables.h
+++ b/indra/newview/llcofwearables.h
@@ -1,25 +1,25 @@
-/**
+/**
* @file llcofwearables.h
* @brief LLCOFWearables displayes wearables from the current outfit split into three lists (attachments, clothing and body parts)
*
* $LicenseInfo:firstyear=2010&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
+ *
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
@@ -45,93 +45,93 @@ class LLCOFWearables : public LLPanel
{
public:
- /**
- * Represents a collection of callbacks assigned to inventory panel item's buttons
- */
- class LLCOFCallbacks
- {
- public:
- LLCOFCallbacks() {};
- virtual ~LLCOFCallbacks() {};
-
- typedef boost::function<void ()> cof_callback_t;
+ /**
+ * Represents a collection of callbacks assigned to inventory panel item's buttons
+ */
+ class LLCOFCallbacks
+ {
+ public:
+ LLCOFCallbacks() {};
+ virtual ~LLCOFCallbacks() {};
- cof_callback_t mAddWearable;
- cof_callback_t mMoveWearableCloser;
- cof_callback_t mMoveWearableFurther;
- cof_callback_t mEditWearable;
- cof_callback_t mDeleteWearable;
- };
+ typedef boost::function<void ()> cof_callback_t;
+ cof_callback_t mAddWearable;
+ cof_callback_t mMoveWearableCloser;
+ cof_callback_t mMoveWearableFurther;
+ cof_callback_t mEditWearable;
+ cof_callback_t mDeleteWearable;
+ };
- LLCOFWearables();
- virtual ~LLCOFWearables();
- /*virtual*/ BOOL postBuild();
-
- LLUUID getSelectedUUID();
- bool getSelectedUUIDs(uuid_vec_t& selected_ids);
+ LLCOFWearables();
+ virtual ~LLCOFWearables();
- LLPanel* getSelectedItem();
- void getSelectedItems(std::vector<LLPanel*>& selected_items) const;
+ /*virtual*/ BOOL postBuild();
- /* Repopulate the COF wearables list if the COF category has been changed since the last refresh */
- void refresh();
- void clear();
+ LLUUID getSelectedUUID();
+ bool getSelectedUUIDs(uuid_vec_t& selected_ids);
- LLAssetType::EType getExpandedAccordionAssetType();
- LLAssetType::EType getSelectedAccordionAssetType();
- void expandDefaultAccordionTab();
+ LLPanel* getSelectedItem();
+ void getSelectedItems(std::vector<LLPanel*>& selected_items) const;
- LLCOFCallbacks& getCOFCallbacks() { return mCOFCallbacks; }
+ /* Repopulate the COF wearables list if the COF category has been changed since the last refresh */
+ void refresh();
+ void clear();
- /**
- * Selects first clothing item with specified LLWearableType::EType from clothing list
- */
- void selectClothing(LLWearableType::EType clothing_type);
+ LLAssetType::EType getExpandedAccordionAssetType();
+ LLAssetType::EType getSelectedAccordionAssetType();
+ void expandDefaultAccordionTab();
- void setAttachmentsTitle();
+ LLCOFCallbacks& getCOFCallbacks() { return mCOFCallbacks; }
+
+ /**
+ * Selects first clothing item with specified LLWearableType::EType from clothing list
+ */
+ void selectClothing(LLWearableType::EType clothing_type);
+
+ void setAttachmentsTitle();
protected:
- void populateAttachmentsAndBodypartsLists(const LLInventoryModel::item_array_t& cof_items);
- void populateClothingList(LLAppearanceMgr::wearables_by_type_t& clothing_by_type);
-
- void addClothingTypesDummies(const LLAppearanceMgr::wearables_by_type_t& clothing_by_type);
- void onSelectionChange(LLFlatListView* selected_list);
- void onAccordionTabStateChanged(LLUICtrl* ctrl, const LLSD& expanded);
+ void populateAttachmentsAndBodypartsLists(const LLInventoryModel::item_array_t& cof_items);
+ void populateClothingList(LLAppearanceMgr::wearables_by_type_t& clothing_by_type);
+
+ void addClothingTypesDummies(const LLAppearanceMgr::wearables_by_type_t& clothing_by_type);
+ void onSelectionChange(LLFlatListView* selected_list);
+ void onAccordionTabStateChanged(LLUICtrl* ctrl, const LLSD& expanded);
- LLPanelClothingListItem* buildClothingListItem(LLViewerInventoryItem* item, bool first, bool last);
- LLPanelBodyPartsListItem* buildBodypartListItem(LLViewerInventoryItem* item);
- LLPanelDeletableWearableListItem* buildAttachemntListItem(LLViewerInventoryItem* item);
+ LLPanelClothingListItem* buildClothingListItem(LLViewerInventoryItem* item, bool first, bool last);
+ LLPanelBodyPartsListItem* buildBodypartListItem(LLViewerInventoryItem* item);
+ LLPanelDeletableWearableListItem* buildAttachemntListItem(LLViewerInventoryItem* item);
- void onListRightClick(LLUICtrl* ctrl, S32 x, S32 y, LLListContextMenu* menu);
+ void onListRightClick(LLUICtrl* ctrl, S32 x, S32 y, LLListContextMenu* menu);
- LLFlatListView* mAttachments;
- LLFlatListView* mClothing;
- LLFlatListView* mBodyParts;
+ LLFlatListView* mAttachments;
+ LLFlatListView* mClothing;
+ LLFlatListView* mBodyParts;
- LLFlatListView* mLastSelectedList;
+ LLFlatListView* mLastSelectedList;
- LLAccordionCtrlTab* mClothingTab;
- LLAccordionCtrlTab* mAttachmentsTab;
- LLAccordionCtrlTab* mBodyPartsTab;
+ LLAccordionCtrlTab* mClothingTab;
+ LLAccordionCtrlTab* mAttachmentsTab;
+ LLAccordionCtrlTab* mBodyPartsTab;
- LLAccordionCtrlTab* mLastSelectedTab;
+ LLAccordionCtrlTab* mLastSelectedTab;
- std::map<const LLAccordionCtrlTab*, LLAssetType::EType> mTab2AssetType;
+ std::map<const LLAccordionCtrlTab*, LLAssetType::EType> mTab2AssetType;
- LLCOFCallbacks mCOFCallbacks;
+ LLCOFCallbacks mCOFCallbacks;
- LLListContextMenu* mClothingMenu;
- LLListContextMenu* mAttachmentMenu;
- LLListContextMenu* mBodyPartMenu;
+ LLListContextMenu* mClothingMenu;
+ LLListContextMenu* mAttachmentMenu;
+ LLListContextMenu* mBodyPartMenu;
- LLAccordionCtrl* mAccordionCtrl;
+ LLAccordionCtrl* mAccordionCtrl;
- /* COF category version since last refresh */
- S32 mCOFVersion;
+ /* COF category version since last refresh */
+ S32 mCOFVersion;
};