diff options
author | pavelkproductengine <pavelkproductengine@lindenlab.com> | 2016-03-30 20:33:52 +0300 |
---|---|---|
committer | pavelkproductengine <pavelkproductengine@lindenlab.com> | 2016-03-30 20:33:52 +0300 |
commit | 30569854448e52e085366390a078054e1aa53ed9 (patch) | |
tree | 727c6e3ebb316b83b05d74f8dfcc3c24e96f2b2a /indra/newview/lloutfitgallery.h | |
parent | 5bbf263c293286395730d969e0b9beec9d830f48 (diff) |
MAINT-6243 Photo upload for Visual Outfit Browser on the latest Mac build doesn't update
Fixed photo update on upload over existing photo
Diffstat (limited to 'indra/newview/lloutfitgallery.h')
-rw-r--r-- | indra/newview/lloutfitgallery.h | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/indra/newview/lloutfitgallery.h b/indra/newview/lloutfitgallery.h index 97b80acd19..ce3964ca1d 100644 --- a/indra/newview/lloutfitgallery.h +++ b/indra/newview/lloutfitgallery.h @@ -38,24 +38,26 @@ #include <vector> class LLVFS; +class LLOutfitGallery; class LLOutfitGalleryItem; class LLOutfitListGearMenuBase; class LLOutfitGalleryGearMenu; -class LLUpdateGalleryOnPhotoUpload : public LLInventoryCallback +class LLUpdateGalleryOnPhotoLinked : public LLInventoryCallback { public: - LLUpdateGalleryOnPhotoUpload(){} - virtual ~LLUpdateGalleryOnPhotoUpload(){} - /* virtual */ void fire(const LLUUID& inv_item){} + LLUpdateGalleryOnPhotoLinked(LLOutfitGallery* gallery) : mGallery(gallery) {} + virtual ~LLUpdateGalleryOnPhotoLinked(){} + /* virtual */ void fire(const LLUUID& inv_item_id); private: + LLOutfitGallery* mGallery; }; - class LLOutfitGallery : public LLOutfitListBase { public: friend class LLOutfitGalleryGearMenu; + friend class LLUpdateGalleryOnPhotoLinked; struct Params : public LLInitParam::Block<Params, LLPanel::Params> @@ -76,8 +78,6 @@ public: static const LLOutfitGallery::Params& getDefaultParams(); LLOutfitGallery(const LLOutfitGallery::Params& params = getDefaultParams()); - -// LLOutfitGallery(); virtual ~LLOutfitGallery(); /*virtual*/ BOOL postBuild(); @@ -97,7 +97,6 @@ public: void refreshTextures(const LLUUID& category_id); void refreshOutfit(const LLUUID& category_id); - void computeDifferenceOfTextures(const LLInventoryModel::item_array_t& vtextures, uuid_vec_t& vadded, uuid_vec_t& vremoved); protected: /*virtual*/ void onHighlightBaseOutfit(LLUUID base_id, LLUUID prev_id); @@ -138,6 +137,7 @@ private: LLPanel* mGalleryPanel; LLPanel* mLastRowPanel; LLUUID mOutfitLinkPending; + LLUUID mOutfitRenamePending; bool mGalleryCreated; int mRowCount; int mItemsAddedCount; @@ -152,18 +152,6 @@ private: int mRowPanelWidth; int mGalleryWidth; - /* - #define LAYOUT_STACK_WIDTH_FACTOR 166 - #define LAYOUT_STACK_WIDTH LAYOUT_STACK_WIDTH_FACTOR * ITEMS_IN_ROW//498 - #define GALLERY_WIDTH_FACTOR 163 - #define GALLERY_WIDTH GALLERY_WIDTH_FACTOR * ITEMS_IN_ROW//485//290 - */ - - /* - #define GALLERY_ITEM_HGAP 16 - #define ITEMS_IN_ROW 3 - */ - typedef std::map<LLUUID, LLOutfitGalleryItem*> outfit_map_t; typedef outfit_map_t::value_type outfit_map_value_t; outfit_map_t mOutfitMap; |