aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfolderview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-09 20:34:38 -0600
committerJacek Antonelli2008-12-09 20:34:38 -0600
commit51915686fd6b54c457229b9cbfbf8d91eaa3d08d (patch)
tree92c82fe0eacfa5e33445fd363b615a612dd0ed0f /linden/indra/newview/llfolderview.cpp
parentHooked up Body Parts quickfilter and checkbox. (diff)
downloadmeta-impy-51915686fd6b54c457229b9cbfbf8d91eaa3d08d.zip
meta-impy-51915686fd6b54c457229b9cbfbf8d91eaa3d08d.tar.gz
meta-impy-51915686fd6b54c457229b9cbfbf8d91eaa3d08d.tar.bz2
meta-impy-51915686fd6b54c457229b9cbfbf8d91eaa3d08d.tar.xz
Updated Inventory window filter text generation.
It was putting the wrong types in the title when filtering. [#25]
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfolderview.cpp38
1 files changed, 25 insertions, 13 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;