aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-08 15:28:04 -0600
committerJacek Antonelli2008-12-08 15:28:04 -0600
commitbcebf893a9a772e24cba036ee4cf2033a185f5c0 (patch)
treee30b1fd0068e796c831d270f2539be69e36023dd /linden/indra
parentAdded LLFolderViewEventListener::getNInventoryType() (diff)
downloadmeta-impy-bcebf893a9a772e24cba036ee4cf2033a185f5c0.zip
meta-impy-bcebf893a9a772e24cba036ee4cf2033a185f5c0.tar.gz
meta-impy-bcebf893a9a772e24cba036ee4cf2033a185f5c0.tar.bz2
meta-impy-bcebf893a9a772e24cba036ee4cf2033a185f5c0.tar.xz
LLInvFVBridge and derived classes have NTypes.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llinventorybridge.cpp1
-rw-r--r--linden/indra/newview/llinventorybridge.h11
-rw-r--r--linden/indra/newview/llpanelinventory.cpp1
3 files changed, 12 insertions, 1 deletions
diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp
index 12670e2..bde36cc 100644
--- a/linden/indra/newview/llinventorybridge.cpp
+++ b/linden/indra/newview/llinventorybridge.cpp
@@ -722,6 +722,7 @@ LLInvFVBridge* LLInvFVBridge::createBridge(LLAssetType::EType asset_type,
722 if (new_listener) 722 if (new_listener)
723 { 723 {
724 new_listener->mInvType = inv_type; 724 new_listener->mInvType = inv_type;
725 new_listener->mNInvType = calc_ntype(inv_type, asset_type, flags);
725 } 726 }
726 727
727 return new_listener; 728 return new_listener;
diff --git a/linden/indra/newview/llinventorybridge.h b/linden/indra/newview/llinventorybridge.h
index fc04b28..329e57f 100644
--- a/linden/indra/newview/llinventorybridge.h
+++ b/linden/indra/newview/llinventorybridge.h
@@ -192,7 +192,15 @@ public:
192 virtual BOOL dragOrDrop(MASK mask, BOOL drop, 192 virtual BOOL dragOrDrop(MASK mask, BOOL drop,
193 EDragAndDropType cargo_type, 193 EDragAndDropType cargo_type,
194 void* cargo_data) { return FALSE; } 194 void* cargo_data) { return FALSE; }
195 virtual LLInventoryType::EType getInventoryType() const { return mInvType; } 195
196 virtual LLInventoryType::EType getInventoryType() const
197 {
198 return mInvType;
199 }
200 virtual LLInventoryType::NType getNInventoryType() const
201 {
202 return mNInvType;
203 }
196 204
197 // LLInvFVBridge functionality 205 // LLInvFVBridge functionality
198 virtual void clearDisplayName() {} 206 virtual void clearDisplayName() {}
@@ -221,6 +229,7 @@ protected:
221 LLInventoryPanel* mInventoryPanel; 229 LLInventoryPanel* mInventoryPanel;
222 LLUUID mUUID; // item id 230 LLUUID mUUID; // item id
223 LLInventoryType::EType mInvType; 231 LLInventoryType::EType mInvType;
232 LLInventoryType::NType mNInvType;
224}; 233};
225 234
226 235
diff --git a/linden/indra/newview/llpanelinventory.cpp b/linden/indra/newview/llpanelinventory.cpp
index 3c0e6d7..e41ecdc 100644
--- a/linden/indra/newview/llpanelinventory.cpp
+++ b/linden/indra/newview/llpanelinventory.cpp
@@ -146,6 +146,7 @@ public:
146 virtual BOOL isUpToDate() const { return TRUE; } 146 virtual BOOL isUpToDate() const { return TRUE; }
147 virtual BOOL hasChildren() const { return FALSE; } 147 virtual BOOL hasChildren() const { return FALSE; }
148 virtual LLInventoryType::EType getInventoryType() const { return LLInventoryType::IT_NONE; } 148 virtual LLInventoryType::EType getInventoryType() const { return LLInventoryType::IT_NONE; }
149 virtual LLInventoryType::NType getNInventoryType() const { return LLInventoryType::NIT_NONE; }
149 // LLDragAndDropBridge functionality 150 // LLDragAndDropBridge functionality
150 virtual BOOL startDrag(EDragAndDropType* type, LLUUID* id) const; 151 virtual BOOL startDrag(EDragAndDropType* type, LLUUID* id) const;
151 virtual BOOL dragOrDrop(MASK mask, BOOL drop, 152 virtual BOOL dragOrDrop(MASK mask, BOOL drop,