diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-03-21 17:47:26 +0200 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-03-21 17:47:26 +0200 |
commit | 1eab3247111e66a3b81153173d1624a5c1c9fb72 (patch) | |
tree | 3d5cfd8a5ee3bca5194fad8a9f27d519884e844e /indra/newview/llpanelmaininventory.h | |
parent | b68a67491026a055f0de9df349508b9e60a200ed (diff) |
SL-19379 WIP Gallery view Inventory: first pass
Diffstat (limited to 'indra/newview/llpanelmaininventory.h')
-rw-r--r-- | indra/newview/llpanelmaininventory.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/indra/newview/llpanelmaininventory.h b/indra/newview/llpanelmaininventory.h index 5f488539dd..51c4ace874 100644 --- a/indra/newview/llpanelmaininventory.h +++ b/indra/newview/llpanelmaininventory.h @@ -38,6 +38,7 @@ class LLComboBox; class LLFolderViewItem; class LLInventoryPanel; +class LLInventoryGallery; class LLSaveFolderState; class LLFilterEditor; class LLTabContainer; @@ -65,6 +66,13 @@ public: BOOL postBuild(); + enum EViewModeType + { + VIEW_LIST, + VIEW_GALLERY, + VIEW_COMBINATION + }; + virtual BOOL handleKeyHere(KEY key, MASK mask); // Inherited functionality @@ -108,6 +116,11 @@ public: LLUUID getSingleFolderViewRoot(); bool isSingleFolderMode() { return mSingleFolderMode; } + void setViewMode(EViewModeType mode); + bool isListViewMode() { return (mViewMode == VIEW_LIST); } + bool isGalleryViewMode() { return (mViewMode == VIEW_GALLERY); } + LLUUID getCurrentSFVRoot(); + protected: // // Misc functions @@ -163,9 +176,12 @@ private: LLComboBox* mSearchTypeCombo; bool mSingleFolderMode; + EViewModeType mViewMode; LLInventorySingleFolderPanel* mSingleFolderPanelInventory; + LLInventoryGallery* mInventoryGalleryPanel; - boost::signals2::connection mFolderRootChangedConnection; + boost::signals2::connection mListViewRootUpdatedConnection; + boost::signals2::connection mGalleryRootUpdatedConnection; ////////////////////////////////////////////////////////////////////////////////// // List Commands // |