aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/llfolderview.cpp38
-rw-r--r--linden/indra/newview/llfolderview.h2
2 files changed, 26 insertions, 14 deletions
diff --git a/linden/indra/newview/llfolderview.cpp b/linden/indra/newview/llfolderview.cpp
index 3f36222..2c5be34 100644
--- a/linden/indra/newview/llfolderview.cpp
+++ b/linden/indra/newview/llfolderview.cpp
@@ -4800,9 +4800,9 @@ void LLInventoryFilter::setModified(EFilterBehavior behavior)
4800 } 4800 }
4801} 4801}
4802 4802
4803BOOL LLInventoryFilter::isFilterWith(LLInventoryType::EType t) 4803BOOL LLInventoryFilter::isFilterWith(LLInventoryType::NType t)
4804{ 4804{
4805 return mFilterOps.mFilterTypes & (0x01 << t); 4805 return mFilterOps.mFilterTypes & t;
4806} 4806}
4807 4807
4808std::string LLInventoryFilter::getFilterText() 4808std::string LLInventoryFilter::getFilterText()
@@ -4820,7 +4820,7 @@ std::string LLInventoryFilter::getFilterText()
4820 S32 num_filter_types = 0; 4820 S32 num_filter_types = 0;
4821 mFilterText.clear(); 4821 mFilterText.clear();
4822 4822
4823 if (isFilterWith(LLInventoryType::IT_ANIMATION)) 4823 if (isFilterWith(LLInventoryType::NIT_ANIMATION))
4824 { 4824 {
4825 filtered_types += " Animations,"; 4825 filtered_types += " Animations,";
4826 filtered_by_type = TRUE; 4826 filtered_by_type = TRUE;
@@ -4832,7 +4832,19 @@ std::string LLInventoryFilter::getFilterText()
4832 filtered_by_all_types = FALSE; 4832 filtered_by_all_types = FALSE;
4833 } 4833 }
4834 4834
4835 if (isFilterWith(LLInventoryType::IT_CALLINGCARD)) 4835 if (isFilterWith(LLInventoryType::NIT_BODYPART))
4836 {
4837 filtered_types += " Body Parts,";
4838 filtered_by_type = TRUE;
4839 num_filter_types++;
4840 }
4841 else
4842 {
4843 not_filtered_types += " Body Parts,";
4844 filtered_by_all_types = FALSE;
4845 }
4846
4847 if (isFilterWith(LLInventoryType::NIT_CALLCARD))
4836 { 4848 {
4837 filtered_types += " Calling Cards,"; 4849 filtered_types += " Calling Cards,";
4838 filtered_by_type = TRUE; 4850 filtered_by_type = TRUE;
@@ -4844,7 +4856,7 @@ std::string LLInventoryFilter::getFilterText()
4844 filtered_by_all_types = FALSE; 4856 filtered_by_all_types = FALSE;
4845 } 4857 }
4846 4858
4847 if (isFilterWith(LLInventoryType::IT_WEARABLE)) 4859 if (isFilterWith(LLInventoryType::NIT_CLOTHING))
4848 { 4860 {
4849 filtered_types += " Clothing,"; 4861 filtered_types += " Clothing,";
4850 filtered_by_type = TRUE; 4862 filtered_by_type = TRUE;
@@ -4856,7 +4868,7 @@ std::string LLInventoryFilter::getFilterText()
4856 filtered_by_all_types = FALSE; 4868 filtered_by_all_types = FALSE;
4857 } 4869 }
4858 4870
4859 if (isFilterWith(LLInventoryType::IT_GESTURE)) 4871 if (isFilterWith(LLInventoryType::NIT_GESTURE))
4860 { 4872 {
4861 filtered_types += " Gestures,"; 4873 filtered_types += " Gestures,";
4862 filtered_by_type = TRUE; 4874 filtered_by_type = TRUE;
@@ -4868,7 +4880,7 @@ std::string LLInventoryFilter::getFilterText()
4868 filtered_by_all_types = FALSE; 4880 filtered_by_all_types = FALSE;
4869 } 4881 }
4870 4882
4871 if (isFilterWith(LLInventoryType::IT_LANDMARK)) 4883 if (isFilterWith(LLInventoryType::NIT_LANDMARK))
4872 { 4884 {
4873 filtered_types += " Landmarks,"; 4885 filtered_types += " Landmarks,";
4874 filtered_by_type = TRUE; 4886 filtered_by_type = TRUE;
@@ -4880,7 +4892,7 @@ std::string LLInventoryFilter::getFilterText()
4880 filtered_by_all_types = FALSE; 4892 filtered_by_all_types = FALSE;
4881 } 4893 }
4882 4894
4883 if (isFilterWith(LLInventoryType::IT_NOTECARD)) 4895 if (isFilterWith(LLInventoryType::NIT_NOTECARD))
4884 { 4896 {
4885 filtered_types += " Notecards,"; 4897 filtered_types += " Notecards,";
4886 filtered_by_type = TRUE; 4898 filtered_by_type = TRUE;
@@ -4892,7 +4904,7 @@ std::string LLInventoryFilter::getFilterText()
4892 filtered_by_all_types = FALSE; 4904 filtered_by_all_types = FALSE;
4893 } 4905 }
4894 4906
4895 if (isFilterWith(LLInventoryType::IT_OBJECT) && isFilterWith(LLInventoryType::IT_ATTACHMENT)) 4907 if (isFilterWith(LLInventoryType::NIT_OBJECT))
4896 { 4908 {
4897 filtered_types += " Objects,"; 4909 filtered_types += " Objects,";
4898 filtered_by_type = TRUE; 4910 filtered_by_type = TRUE;
@@ -4904,7 +4916,7 @@ std::string LLInventoryFilter::getFilterText()
4904 filtered_by_all_types = FALSE; 4916 filtered_by_all_types = FALSE;
4905 } 4917 }
4906 4918
4907 if (isFilterWith(LLInventoryType::IT_LSL)) 4919 if (isFilterWith(LLInventoryType::NIT_SCRIPT_LSL2))
4908 { 4920 {
4909 filtered_types += " Scripts,"; 4921 filtered_types += " Scripts,";
4910 filtered_by_type = TRUE; 4922 filtered_by_type = TRUE;
@@ -4916,7 +4928,7 @@ std::string LLInventoryFilter::getFilterText()
4916 filtered_by_all_types = FALSE; 4928 filtered_by_all_types = FALSE;
4917 } 4929 }
4918 4930
4919 if (isFilterWith(LLInventoryType::IT_SOUND)) 4931 if (isFilterWith(LLInventoryType::NIT_SOUND))
4920 { 4932 {
4921 filtered_types += " Sounds,"; 4933 filtered_types += " Sounds,";
4922 filtered_by_type = TRUE; 4934 filtered_by_type = TRUE;
@@ -4928,7 +4940,7 @@ std::string LLInventoryFilter::getFilterText()
4928 filtered_by_all_types = FALSE; 4940 filtered_by_all_types = FALSE;
4929 } 4941 }
4930 4942
4931 if (isFilterWith(LLInventoryType::IT_TEXTURE)) 4943 if (isFilterWith(LLInventoryType::NIT_TEXTURE))
4932 { 4944 {
4933 filtered_types += " Textures,"; 4945 filtered_types += " Textures,";
4934 filtered_by_type = TRUE; 4946 filtered_by_type = TRUE;
@@ -4940,7 +4952,7 @@ std::string LLInventoryFilter::getFilterText()
4940 filtered_by_all_types = FALSE; 4952 filtered_by_all_types = FALSE;
4941 } 4953 }
4942 4954
4943 if (isFilterWith(LLInventoryType::IT_SNAPSHOT)) 4955 if (isFilterWith(LLInventoryType::NIT_SNAPSHOT))
4944 { 4956 {
4945 filtered_types += " Snapshots,"; 4957 filtered_types += " Snapshots,";
4946 filtered_by_type = TRUE; 4958 filtered_by_type = TRUE;
diff --git a/linden/indra/newview/llfolderview.h b/linden/indra/newview/llfolderview.h
index 324a15b..9134e0e 100644
--- a/linden/indra/newview/llfolderview.h
+++ b/linden/indra/newview/llfolderview.h
@@ -230,7 +230,7 @@ public:
230 void markDefault(); 230 void markDefault();
231 void resetDefault(); 231 void resetDefault();
232 232
233 BOOL isFilterWith(LLInventoryType::EType t); 233 BOOL isFilterWith(LLInventoryType::NType t);
234 234
235 S32 getCurrentGeneration() const { return mFilterGeneration; } 235 S32 getCurrentGeneration() const { return mFilterGeneration; }
236 S32 getMinRequiredGeneration() const { return mMinRequiredGeneration; } 236 S32 getMinRequiredGeneration() const { return mMinRequiredGeneration; }