aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llinventoryactions.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-13 04:06:49 -0700
committerMcCabe Maxsted2009-10-13 04:06:49 -0700
commit879e30e0617798a786f39b815668cec4e6dbc310 (patch)
tree677cc61fdb15b8b08a26a1166d9442d777f4f9dd /linden/indra/newview/llinventoryactions.cpp
parentDisable avatar appearance facelight when local lighting turned off (diff)
downloadmeta-impy-879e30e0617798a786f39b815668cec4e6dbc310.zip
meta-impy-879e30e0617798a786f39b815668cec4e6dbc310.tar.gz
meta-impy-879e30e0617798a786f39b815668cec4e6dbc310.tar.bz2
meta-impy-879e30e0617798a786f39b815668cec4e6dbc310.tar.xz
Updated inventory search to include description (from Emerald)
Diffstat (limited to 'linden/indra/newview/llinventoryactions.cpp')
-rw-r--r--linden/indra/newview/llinventoryactions.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/linden/indra/newview/llinventoryactions.cpp b/linden/indra/newview/llinventoryactions.cpp
index b598c83..25592c1 100644
--- a/linden/indra/newview/llinventoryactions.cpp
+++ b/linden/indra/newview/llinventoryactions.cpp
@@ -484,7 +484,8 @@ class SetSearchType : public inventory_listener_t
484 gSavedSettings.setU32("InventorySearchType", 0); 484 gSavedSettings.setU32("InventorySearchType", 0);
485 485
486 mPtr->getControl("Inventory.SearchByName")->setValue(TRUE); 486 mPtr->getControl("Inventory.SearchByName")->setValue(TRUE);
487 mPtr->getControl("Inventory.SearchByCreator")->setValue(FALSE); 487 mPtr->getControl("Inventory.SearchByCreator")->setValue(FALSE);
488 mPtr->getControl("Inventory.SearchByDesc")->setValue(FALSE);
488 mPtr->getControl("Inventory.SearchByAll")->setValue(FALSE); 489 mPtr->getControl("Inventory.SearchByAll")->setValue(FALSE);
489 } 490 }
490 else if(search_type == "creator") 491 else if(search_type == "creator")
@@ -493,16 +494,31 @@ class SetSearchType : public inventory_listener_t
493 494
494 mPtr->getControl("Inventory.SearchByName")->setValue(FALSE); 495 mPtr->getControl("Inventory.SearchByName")->setValue(FALSE);
495 mPtr->getControl("Inventory.SearchByCreator")->setValue(TRUE); 496 mPtr->getControl("Inventory.SearchByCreator")->setValue(TRUE);
497 mPtr->getControl("Inventory.SearchByDesc")->setValue(FALSE);
498 mPtr->getControl("Inventory.SearchByAll")->setValue(FALSE);
499 }
500 else if(search_type == "desc")
501 {
502 gSavedSettings.setU32("InventorySearchType", 2);
503
504 mPtr->getControl("Inventory.SearchByName")->setValue(FALSE);
505 mPtr->getControl("Inventory.SearchByCreator")->setValue(FALSE);
506 mPtr->getControl("Inventory.SearchByDesc")->setValue(TRUE);
496 mPtr->getControl("Inventory.SearchByAll")->setValue(FALSE); 507 mPtr->getControl("Inventory.SearchByAll")->setValue(FALSE);
497 } 508 }
498 else if(search_type == "all") 509 else if(search_type == "all")
499 { 510 {
500 gSavedSettings.setU32("InventorySearchType", 4); 511 gSavedSettings.setU32("InventorySearchType", 3);
501 512
502 mPtr->getControl("Inventory.SearchByName")->setValue(FALSE); 513 mPtr->getControl("Inventory.SearchByName")->setValue(FALSE);
503 mPtr->getControl("Inventory.SearchByCreator")->setValue(FALSE); 514 mPtr->getControl("Inventory.SearchByCreator")->setValue(FALSE);
515 mPtr->getControl("Inventory.SearchByDesc")->setValue(FALSE);
504 mPtr->getControl("Inventory.SearchByAll")->setValue(TRUE); 516 mPtr->getControl("Inventory.SearchByAll")->setValue(TRUE);
505 } 517 }
518
519 //Clear search when switching modes.
520 mPtr->getActivePanel()->setFilterSubString(LLStringUtil::null);
521 mPtr->getActivePanel()->setFilterTypes(LLInventoryType::NIT_ALL);
506 return true; 522 return true;
507 } 523 }
508}; 524};