diff options
author | pavelkproductengine <pavelkproductengine@lindenlab.com> | 2016-02-18 18:39:53 +0200 |
---|---|---|
committer | pavelkproductengine <pavelkproductengine@lindenlab.com> | 2016-02-18 18:39:53 +0200 |
commit | d52f05dc82c1849f07fd69be5e5fba2cbd1fa47a (patch) | |
tree | 7872c94180b853290121d24a13274e6c6305027f /indra/newview/lloutfitgallery.h | |
parent | 6b3394967a978e9f030dbe15ea6afb85b32d0f9f (diff) |
MAINT-5194 Visual Outfit Browser
Changed to store uploaded photos as links in outfit folders
Diffstat (limited to 'indra/newview/lloutfitgallery.h')
-rw-r--r-- | indra/newview/lloutfitgallery.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/indra/newview/lloutfitgallery.h b/indra/newview/lloutfitgallery.h index 323e2580f6..47ab85f4e1 100644 --- a/indra/newview/lloutfitgallery.h +++ b/indra/newview/lloutfitgallery.h @@ -42,6 +42,16 @@ class LLOutfitGalleryItem; class LLOutfitListGearMenuBase; class LLOutfitGalleryGearMenu; +class LLUpdateGalleryOnPhotoUpload : public LLInventoryCallback +{ +public: + LLUpdateGalleryOnPhotoUpload(){} + virtual ~LLUpdateGalleryOnPhotoUpload(){} + /* virtual */ void fire(const LLUUID& inv_item){} +private: +}; + + class LLOutfitGallery : public LLOutfitListBase { public: @@ -65,6 +75,7 @@ public: /*virtual*/ bool getHasExpandableFolders() { return FALSE; } 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: @@ -80,6 +91,7 @@ protected: private: void loadPhotos(); void uploadPhoto(LLUUID outfit_id); + void linkPhotoToOutfit(LLUUID outfit_id, LLUUID photo_id); bool checkRemovePhoto(LLUUID outfit_id); void setUploadedPhoto(LLUUID outfit_id, LLUUID asset_id); void addToGallery(LLOutfitGalleryItem* item); @@ -110,6 +122,8 @@ private: LLScrollContainer* mScrollPanel; LLPanel* mGalleryPanel; LLPanel* mLastRowStack; + LLUUID mPhotoLinkPending; + LLUUID mOutfitLinkPending; bool galleryCreated; int mRowCount; int mItemsAddedCount; @@ -126,7 +140,7 @@ private: LLInventoryCategoriesObserver* mTexturesObserver; - + LLInventoryCategoriesObserver* mOutfitsObserver; }; //static LLOutfitGallery* gOutfitGallery; |