aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-07-19 12:42:49 -0700
committerMcCabe Maxsted2010-07-19 12:42:49 -0700
commit8524a4228667cf0250e1e2b9cda259c5fbbc5d4c (patch)
tree9e0a3aadf39780f70f5f740d7e2f78290331fc62 /linden/indra/newview/llviewermenu.cpp
parentChanged version to Weekly: 2010-07-17 (diff)
downloadmeta-impy-8524a4228667cf0250e1e2b9cda259c5fbbc5d4c.zip
meta-impy-8524a4228667cf0250e1e2b9cda259c5fbbc5d4c.tar.gz
meta-impy-8524a4228667cf0250e1e2b9cda259c5fbbc5d4c.tar.bz2
meta-impy-8524a4228667cf0250e1e2b9cda259c5fbbc5d4c.tar.xz
Added area search to the advanced menu, port from Emerald by Henri Beauchamp
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r--linden/indra/newview/llviewermenu.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index a95c3c6..6a7a818 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -65,6 +65,8 @@
65// newview includes 65// newview includes
66#include "llagent.h" 66#include "llagent.h"
67 67
68#include "jcfloaterareasearch.h"
69
68#include "llagentpilot.h" 70#include "llagentpilot.h"
69#include "llbox.h" 71#include "llbox.h"
70#include "llcallingcard.h" 72#include "llcallingcard.h"
@@ -5880,6 +5882,10 @@ class LLShowFloater : public view_listener_t
5880 { 5882 {
5881 LLFloaterRegionInfo::showInstance(); 5883 LLFloaterRegionInfo::showInstance();
5882 } 5884 }
5885 else if (floater_name == "areasearch")
5886 {
5887 JCFloaterAreaSearch::toggle();
5888 }
5883 else if (floater_name == "grid options") 5889 else if (floater_name == "grid options")
5884 { 5890 {
5885 LLFloaterBuildOptions::show(NULL); 5891 LLFloaterBuildOptions::show(NULL);
@@ -6007,6 +6013,12 @@ class LLFloaterVisible : public view_listener_t
6007 LLInventoryView* iv = LLInventoryView::getActiveInventory(); 6013 LLInventoryView* iv = LLInventoryView::getActiveInventory();
6008 new_value = (NULL != iv && TRUE == iv->getVisible()); 6014 new_value = (NULL != iv && TRUE == iv->getVisible());
6009 } 6015 }
6016 else if (floater_name == "areasearch")
6017 {
6018 JCFloaterAreaSearch* instn = JCFloaterAreaSearch::getInstance();
6019 if (!instn) new_value = false;
6020 else new_value = instn->getVisible();
6021 }
6010 gMenuHolder->findControl(control_name)->setValue(new_value); 6022 gMenuHolder->findControl(control_name)->setValue(new_value);
6011 return true; 6023 return true;
6012 } 6024 }