summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorygallerymenu.h
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-26 19:45:46 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-26 19:45:46 +0300
commit67e17bd822f146f333b91d353df6f55174ce4db6 (patch)
treea398e3bc373c0d2d8524786bf293aa2f6d5cc59f /indra/newview/llinventorygallerymenu.h
parent572e8269bcd5320daa66f4074e927c79869bf7de (diff)
SL-19774 add context menu for root folder (without any selection); show paste menu when right clicking any item
Diffstat (limited to 'indra/newview/llinventorygallerymenu.h')
-rw-r--r--indra/newview/llinventorygallerymenu.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llinventorygallerymenu.h b/indra/newview/llinventorygallerymenu.h
index 1768c07e6e..fd542e7d79 100644
--- a/indra/newview/llinventorygallerymenu.h
+++ b/indra/newview/llinventorygallerymenu.h
@@ -33,9 +33,13 @@ class LLInventoryGalleryContextMenu : public LLListContextMenu
public:
LLInventoryGalleryContextMenu(LLInventoryGallery* gallery)
: LLListContextMenu(),
- mGallery(gallery){}
+ mGallery(gallery),
+ mRootFolder(false){}
/*virtual*/ LLContextMenu* createMenu();
+ bool isRootFolder() { return mRootFolder; }
+ void setRootFolder(bool is_root) { mRootFolder = is_root; }
+
protected:
//virtual void buildContextMenu(class LLMenuGL& menu, U32 flags);
void updateMenuItemsVisibility(LLContextMenu* menu);
@@ -50,6 +54,7 @@ private:
bool checkContextMenuItem(const LLSD& userdata);
LLInventoryGallery* mGallery;
+ bool mRootFolder;
};
#endif