diff options
Diffstat (limited to 'indra/newview/llinventorygallery.h')
-rw-r--r-- | indra/newview/llinventorygallery.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llinventorygallery.h b/indra/newview/llinventorygallery.h index cb95f61255..f686d8aa2b 100644 --- a/indra/newview/llinventorygallery.h +++ b/indra/newview/llinventorygallery.h @@ -157,6 +157,9 @@ public: bool canDeleteSelection(); void pasteAsLink(); + void setSortOrder(U32 order, bool update = false); + U32 getSortOrder() { return mSortOrder; }; + void claimEditHandler(); static bool isItemCopyable(const LLUUID & item_id); @@ -202,7 +205,7 @@ private: bool updateRowsIfNeeded(); void updateGalleryWidth(); - LLInventoryGalleryItem* buildGalleryItem(std::string name, LLUUID item_id, LLAssetType::EType type, LLUUID thumbnail_id, LLInventoryType::EType inventory_type, U32 flags, bool is_link, bool is_worn); + LLInventoryGalleryItem* buildGalleryItem(std::string name, LLUUID item_id, LLAssetType::EType type, LLUUID thumbnail_id, LLInventoryType::EType inventory_type, U32 flags, time_t creation_date, bool is_link, bool is_worn); void buildGalleryPanel(int row_count); void reshapeGalleryPanel(int row_count); @@ -242,6 +245,7 @@ private: LLInventoryGalleryContextMenu* mRootGalleryMenu; std::string mFilterSubString; LLInventoryFilter* mFilter; + U32 mSortOrder; typedef std::map<LLUUID, LLInventoryGalleryItem*> gallery_item_map_t; gallery_item_map_t mItemMap; @@ -300,6 +304,8 @@ public: std::string getDescription() { return mDesc;} void setCreatorName(std::string name) {mCreatorName = name;} std::string getCreatorName() { return mCreatorName;} + void setCreationDate(time_t date) {mCreationDate = date;} + time_t getCreationDate() { return mCreationDate;} std::string getItemName() {return mItemName;} std::string getItemNameSuffix() {return mPermSuffix + mWornSuffix;} @@ -332,6 +338,7 @@ private: std::string mAssetIDStr; std::string mDesc; std::string mCreatorName; + time_t mCreationDate; EInventorySortGroup mSortGroup; LLAssetType::EType mType; |