aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-09-06 23:08:02 -0700
committerMcCabe Maxsted2009-09-06 23:08:02 -0700
commit4bbb219eb78fc5d77c86fb7b13f123b52fbef3bc (patch)
tree88da6f4312c01dc07938166f58b913425a76583a /linden/indra/newview/llviewermenu.cpp
parentAdded Emerald viewer's animation list (diff)
downloadmeta-impy-4bbb219eb78fc5d77c86fb7b13f123b52fbef3bc.zip
meta-impy-4bbb219eb78fc5d77c86fb7b13f123b52fbef3bc.tar.gz
meta-impy-4bbb219eb78fc5d77c86fb7b13f123b52fbef3bc.tar.bz2
meta-impy-4bbb219eb78fc5d77c86fb7b13f123b52fbef3bc.tar.xz
Added Emerald viewer's asset browser
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r--linden/indra/newview/llviewermenu.cpp43
1 files changed, 40 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index b937894..4c91a0a 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -211,6 +211,7 @@
211#include "lltexlayer.h" 211#include "lltexlayer.h"
212 212
213#include "jcfloater_animation_list.h" 213#include "jcfloater_animation_list.h"
214#include "llfloaterassetbrowser.h"
214 215
215void init_client_menu(LLMenuGL* menu); 216void init_client_menu(LLMenuGL* menu);
216void init_server_menu(LLMenuGL* menu); 217void init_server_menu(LLMenuGL* menu);
@@ -7619,6 +7620,41 @@ class LLAdvancedCheckPhantom: public view_listener_t
7619}; 7620};
7620 7621
7621 7622
7623///////////////////
7624// ASSET BROWSER //
7625///////////////////
7626
7627class LLAdvancedToggleAssetBrowser: public view_listener_t
7628{
7629 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7630 {
7631 //open the floater
7632 LLFloaterAssetBrowser::show(0);
7633
7634 bool vis = false;
7635 if(LLFloaterAssetBrowser::getInstance())
7636 {
7637 vis = (bool)LLFloaterAssetBrowser::getInstance()->getVisible();
7638 }
7639 return true;
7640 }
7641};
7642
7643class LLAdvancedCheckAssetBrowser: public view_listener_t
7644{
7645 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7646 {
7647 bool vis = false;
7648 if(LLFloaterAssetBrowser::getInstance())
7649 {
7650 vis = (bool)LLFloaterAssetBrowser::getInstance()->getVisible();
7651 }
7652 gMenuHolder->findControl(userdata["control"].asString())->setValue(vis);
7653 return true;
7654 }
7655};
7656
7657
7622/////////////////////// 7658///////////////////////
7623// CLEAR GROUP CACHE // 7659// CLEAR GROUP CACHE //
7624/////////////////////// 7660///////////////////////
@@ -9634,9 +9670,6 @@ void initialize_menus()
9634 addMenu(new LLWorldTeleportHome(), "World.TeleportHome"); 9670 addMenu(new LLWorldTeleportHome(), "World.TeleportHome");
9635 addMenu(new LLWorldSetAway(), "World.SetAway"); 9671 addMenu(new LLWorldSetAway(), "World.SetAway");
9636 addMenu(new LLWorldSetBusy(), "World.SetBusy"); 9672 addMenu(new LLWorldSetBusy(), "World.SetBusy");
9637 addMenu(new LLAdvancedToggleSit(), "Advanced.ToggleSit");
9638 addMenu(new LLAdvancedTogglePhantom(), "Advanced.TogglePhantom");
9639 addMenu(new LLAdvancedCheckPhantom(), "Advanced.CheckPhantom");
9640 9673
9641 addMenu(new LLWorldEnableCreateLandmark(), "World.EnableCreateLandmark"); 9674 addMenu(new LLWorldEnableCreateLandmark(), "World.EnableCreateLandmark");
9642 addMenu(new LLWorldEnableSetHomeLocation(), "World.EnableSetHomeLocation"); 9675 addMenu(new LLWorldEnableSetHomeLocation(), "World.EnableSetHomeLocation");
@@ -9786,6 +9819,10 @@ void initialize_menus()
9786 addMenu(new LLAdvancedDumpInfoToConsole(), "Advanced.DumpInfoToConsole"); 9819 addMenu(new LLAdvancedDumpInfoToConsole(), "Advanced.DumpInfoToConsole");
9787 addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides"); 9820 addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides");
9788 addMenu(new LLAdvancedToggleSit(), "Advanced.ToggleSit"); 9821 addMenu(new LLAdvancedToggleSit(), "Advanced.ToggleSit");
9822 addMenu(new LLAdvancedTogglePhantom(), "Advanced.TogglePhantom");
9823 addMenu(new LLAdvancedCheckPhantom(), "Advanced.CheckPhantom");
9824 addMenu(new LLAdvancedToggleAssetBrowser(),"Advanced.ToggleAssetBrowser");
9825 addMenu(new LLAdvancedCheckAssetBrowser(),"Advanced.CheckAssetBrowser");
9789 9826
9790 // Advanced > HUD Info 9827 // Advanced > HUD Info
9791 addMenu(new LLAdvancedToggleHUDInfo(), "Advanced.ToggleHUDInfo"); 9828 addMenu(new LLAdvancedToggleHUDInfo(), "Advanced.ToggleHUDInfo");