aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r--linden/indra/newview/llviewermenu.cpp2313
1 files changed, 2312 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index c2a8055..5e67712 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -86,6 +86,7 @@
86#include "llfloateravatarinfo.h" 86#include "llfloateravatarinfo.h"
87#include "llfloateravatartextures.h" 87#include "llfloateravatartextures.h"
88#include "llfloaterbuildoptions.h" 88#include "llfloaterbuildoptions.h"
89#include "llfloaterbulkpermission.h"
89#include "llfloaterbump.h" 90#include "llfloaterbump.h"
90#include "llfloaterbuy.h" 91#include "llfloaterbuy.h"
91#include "llfloaterbuycontents.h" 92#include "llfloaterbuycontents.h"
@@ -671,10 +672,13 @@ void init_menus()
671 // TomY TODO convert these two 672 // TomY TODO convert these two
672 LLMenuGL*menu; 673 LLMenuGL*menu;
673 674
675 // Advanced (Client) menu is XUI now! \o/
676 /*
674 menu = new LLMenuGL(CLIENT_MENU_NAME); 677 menu = new LLMenuGL(CLIENT_MENU_NAME);
675 init_client_menu(menu); 678 init_client_menu(menu);
676 gMenuBarView->appendMenu( menu ); 679 gMenuBarView->appendMenu( menu );
677 menu->updateParent(LLMenuGL::sMenuContainer); 680 menu->updateParent(LLMenuGL::sMenuContainer);
681 */
678 682
679 menu = new LLMenuGL(SERVER_MENU_NAME); 683 menu = new LLMenuGL(SERVER_MENU_NAME);
680 init_server_menu(menu); 684 init_server_menu(menu);
@@ -6066,6 +6070,18 @@ void queue_actions(LLFloaterScriptQueue* q, const std::string& noscriptmsg, cons
6066 } 6070 }
6067} 6071}
6068 6072
6073
6074class LLToolsSetBulkPerms : public view_listener_t
6075{
6076 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
6077 {
6078 LLFloaterBulkPermission* queue = NULL;
6079 queue = LLFloaterBulkPermission::create();
6080 return true;
6081 }
6082};
6083
6084
6069class LLToolsSelectedScriptAction : public view_listener_t 6085class LLToolsSelectedScriptAction : public view_listener_t
6070{ 6086{
6071 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 6087 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
@@ -7582,7 +7598,2146 @@ class LLWorldDayCycle : public view_listener_t
7582 7598
7583 7599
7584 7600
7585static void addMenu(view_listener_t *menu, const std::string& name) 7601//-------------------------------------------------------------------
7602// Advanced menu
7603//-------------------------------------------------------------------
7604
7605
7606///////////////////
7607// SHOW CONSOLES //
7608///////////////////
7609
7610
7611class LLAdvancedToggleConsole : public view_listener_t
7612{
7613 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7614 {
7615 std::string console_type = userdata.asString();
7616 if ("frame" == console_type)
7617 {
7618 toggle_visibility( (void*)gDebugView->mFrameStatView );
7619 }
7620 else if ("texture" == console_type)
7621 {
7622 toggle_visibility( (void*)gTextureView );
7623 }
7624 else if ("debug" == console_type)
7625 {
7626 toggle_visibility( (void*)((LLView*)gDebugView->mDebugConsolep) );
7627 }
7628 else if ("fast timers" == console_type)
7629 {
7630 toggle_visibility( (void*)gDebugView->mFastTimerView );
7631 }
7632 else if ("memory" == console_type)
7633 {
7634 toggle_visibility( (void*)gDebugView->mMemoryView );
7635 }
7636 return true;
7637 }
7638};
7639
7640
7641class LLAdvancedCheckConsole : public view_listener_t
7642{
7643 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7644 {
7645 std::string console_type = userdata["data"].asString();
7646 bool new_value = false;
7647 if ("frame" == console_type)
7648 {
7649 new_value = get_visibility( (void*)gDebugView->mFrameStatView );
7650 }
7651 else if ("texture" == console_type)
7652 {
7653 new_value = get_visibility( (void*)gTextureView );
7654 }
7655 else if ("debug" == console_type)
7656 {
7657 new_value = get_visibility( (void*)((LLView*)gDebugView->mDebugConsolep) );
7658 }
7659 else if ("fast timers" == console_type)
7660 {
7661 new_value = get_visibility( (void*)gDebugView->mFastTimerView );
7662 }
7663 else if ("memory" == console_type)
7664 {
7665 new_value = get_visibility( (void*)gDebugView->mMemoryView );
7666 }
7667
7668 std::string control_name = userdata["control"].asString();
7669 gMenuHolder->findControl(control_name)->setValue(new_value);
7670 return true;
7671 }
7672};
7673
7674
7675
7676
7677//////////////////////////
7678// DUMP INFO TO CONSOLE //
7679//////////////////////////
7680
7681
7682class LLAdvancedDumpInfoToConsole : public view_listener_t
7683{
7684 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7685 {
7686 std::string info_type = userdata.asString();
7687 if ("region" == info_type)
7688 {
7689 handle_region_dump_settings(NULL);
7690 }
7691 else if ("group" == info_type)
7692 {
7693 handle_dump_group_info(NULL);
7694 }
7695 else if ("capabilities" == info_type)
7696 {
7697 handle_dump_capabilities_info(NULL);
7698 }
7699 return true;
7700 }
7701};
7702
7703
7704
7705///////////////////////////////
7706// RELOAD SETTINGS OVERRIDES //
7707///////////////////////////////
7708
7709
7710class LLAdvancedReloadSettingsOverrides : public view_listener_t
7711{
7712 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7713 {
7714 reload_personal_settings_overrides(NULL);
7715 return true;
7716 }
7717};
7718
7719
7720
7721//////////////
7722// HUD INFO //
7723//////////////
7724
7725
7726class LLAdvancedToggleHUDInfo : public view_listener_t
7727{
7728 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7729 {
7730 std::string info_type = userdata.asString();
7731 if ("velocity" == info_type)
7732 {
7733 toggle_visibility( (void*)gVelocityBar );
7734 }
7735 else if ("camera" == info_type)
7736 {
7737 gDisplayCameraPos = !(gDisplayCameraPos);
7738 }
7739 else if ("wind" == info_type)
7740 {
7741 gDisplayWindInfo = !(gDisplayWindInfo);
7742 }
7743 else if ("fov" == info_type)
7744 {
7745 gDisplayFOV = !(gDisplayFOV);
7746 }
7747 return true;
7748 }
7749};
7750
7751class LLAdvancedCheckHUDInfo : public view_listener_t
7752{
7753 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7754 {
7755 std::string info_type = userdata["data"].asString();
7756 bool new_value = false;
7757 if ("velocity" == info_type)
7758 {
7759 new_value = get_visibility( (void*)gVelocityBar );
7760 }
7761 else if ("camera" == info_type)
7762 {
7763 new_value = gDisplayCameraPos;
7764 }
7765 else if ("wind" == info_type)
7766 {
7767 new_value = gDisplayWindInfo;
7768 }
7769 else if ("fov" == info_type)
7770 {
7771 new_value = gDisplayFOV;
7772 }
7773
7774 std::string control_name = userdata["control"].asString();
7775 gMenuHolder->findControl(control_name)->setValue(new_value);
7776
7777 return true;
7778 }
7779};
7780
7781
7782
7783///////////////////////
7784// CLEAR GROUP CACHE //
7785///////////////////////
7786
7787
7788class LLAdvancedClearGroupCache : public view_listener_t
7789{
7790 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7791 {
7792 LLGroupMgr::debugClearAllGroups(NULL);
7793 return true;
7794 }
7795};
7796
7797
7798
7799
7800/////////////////
7801// RENDER TYPE //
7802/////////////////
7803
7804
7805U32 render_type_from_string(std::string render_type)
7806{
7807 if ("simple" == render_type)
7808 {
7809 return LLPipeline::RENDER_TYPE_SIMPLE;
7810 }
7811 else if ("alpha" == render_type)
7812 {
7813 return LLPipeline::RENDER_TYPE_ALPHA;
7814 }
7815 else if ("tree" == render_type)
7816 {
7817 return LLPipeline::RENDER_TYPE_TREE;
7818 }
7819 else if ("avatar" == render_type)
7820 {
7821 return LLPipeline::RENDER_TYPE_AVATAR;
7822 }
7823 else if ("terrain" == render_type)
7824 {
7825 return LLPipeline::RENDER_TYPE_TERRAIN;
7826 }
7827 else if ("sky" == render_type)
7828 {
7829 return LLPipeline::RENDER_TYPE_SKY;
7830 }
7831 else if ("water" == render_type)
7832 {
7833 return LLPipeline::RENDER_TYPE_WATER;
7834 }
7835 else if ("ground" == render_type)
7836 {
7837 return LLPipeline::RENDER_TYPE_GROUND;
7838 }
7839 else if ("volume" == render_type)
7840 {
7841 return LLPipeline::RENDER_TYPE_VOLUME;
7842 }
7843 else if ("grass" == render_type)
7844 {
7845 return LLPipeline::RENDER_TYPE_GRASS;
7846 }
7847 else if ("clouds" == render_type)
7848 {
7849 return LLPipeline::RENDER_TYPE_CLOUDS;
7850 }
7851 else if ("particles" == render_type)
7852 {
7853 return LLPipeline::RENDER_TYPE_PARTICLES;
7854 }
7855 else if ("bump" == render_type)
7856 {
7857 return LLPipeline::RENDER_TYPE_BUMP;
7858 }
7859 else
7860 {
7861 return 0;
7862 }
7863}
7864
7865
7866class LLAdvancedToggleRenderType : public view_listener_t
7867{
7868 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7869 {
7870 U32 render_type = render_type_from_string( userdata.asString() );
7871 if ( render_type != 0 )
7872 {
7873 LLPipeline::toggleRenderTypeControl( (void*)render_type );
7874 }
7875 return true;
7876 }
7877};
7878
7879
7880class LLAdvancedCheckRenderType : public view_listener_t
7881{
7882 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7883 {
7884 U32 render_type = render_type_from_string( userdata["data"].asString() );
7885 bool new_value = false;
7886
7887 if ( render_type != 0 )
7888 {
7889 new_value = LLPipeline::hasRenderTypeControl( (void*)render_type );
7890 }
7891
7892 std::string control_name = userdata["control"].asString();
7893 gMenuHolder->findControl(control_name)->setValue(new_value);
7894 return true;
7895 }
7896};
7897
7898
7899
7900/////////////
7901// FEATURE //
7902/////////////
7903
7904
7905U32 feature_from_string(std::string feature)
7906{
7907 if ("ui" == feature)
7908 {
7909 return LLPipeline::RENDER_DEBUG_FEATURE_UI;
7910 }
7911 else if ("selected" == feature)
7912 {
7913 return LLPipeline::RENDER_DEBUG_FEATURE_SELECTED;
7914 }
7915 else if ("highlighted" == feature)
7916 {
7917 return LLPipeline::RENDER_DEBUG_FEATURE_HIGHLIGHTED;
7918 }
7919 else if ("dynamic textures" == feature)
7920 {
7921 return LLPipeline::RENDER_DEBUG_FEATURE_DYNAMIC_TEXTURES;
7922 }
7923 else if ("foot shadows" == feature)
7924 {
7925 return LLPipeline::RENDER_DEBUG_FEATURE_FOOT_SHADOWS;
7926 }
7927 else if ("fog" == feature)
7928 {
7929 return LLPipeline::RENDER_DEBUG_FEATURE_FOG;
7930 }
7931 else if ("palette" == feature)
7932 {
7933 return LLPipeline::RENDER_DEBUG_FEATURE_PALETTE;
7934 }
7935 else if ("fr info" == feature)
7936 {
7937 return LLPipeline::RENDER_DEBUG_FEATURE_FR_INFO;
7938 }
7939 else if ("flexible" == feature)
7940 {
7941 return LLPipeline::RENDER_DEBUG_FEATURE_FLEXIBLE;
7942 }
7943 else
7944 {
7945 return 0;
7946 }
7947};
7948
7949
7950class LLAdvancedToggleFeature : public view_listener_t
7951{
7952 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7953 {
7954 U32 feature = feature_from_string( userdata.asString() );
7955
7956 if ( feature != 0 )
7957 {
7958 LLPipeline::toggleRenderDebugFeature( (void*)feature );
7959 }
7960
7961 return true;
7962 }
7963};
7964
7965
7966class LLAdvancedCheckFeature : public view_listener_t
7967{
7968 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7969 {
7970 U32 feature = feature_from_string( userdata["data"].asString() );
7971 bool new_value = false;
7972
7973 if ( feature != 0 )
7974 {
7975 new_value = LLPipeline::toggleRenderDebugFeatureControl( (void*)feature );
7976 }
7977
7978 std::string control_name = userdata["control"].asString();
7979 gMenuHolder->findControl(control_name)->setValue(new_value);
7980 return true;
7981 }
7982};
7983
7984
7985
7986//////////////////
7987// INFO DISPLAY //
7988//////////////////
7989
7990
7991U32 info_display_from_string(std::string info_display)
7992{
7993 if ("verify" == info_display)
7994 {
7995 return LLPipeline::RENDER_DEBUG_VERIFY;
7996 }
7997 else if ("bboxes" == info_display)
7998 {
7999 return LLPipeline::RENDER_DEBUG_BBOXES;
8000 }
8001 else if ("points" == info_display)
8002 {
8003 return LLPipeline::RENDER_DEBUG_POINTS;
8004 }
8005 else if ("octree" == info_display)
8006 {
8007 return LLPipeline::RENDER_DEBUG_OCTREE;
8008 }
8009 else if ("occlusion" == info_display)
8010 {
8011 return LLPipeline::RENDER_DEBUG_OCCLUSION;
8012 }
8013 else if ("render batches" == info_display)
8014 {
8015 return LLPipeline::RENDER_DEBUG_BATCH_SIZE;
8016 }
8017 else if ("texture anim" == info_display)
8018 {
8019 return LLPipeline::RENDER_DEBUG_TEXTURE_ANIM;
8020 }
8021 else if ("texture priority" == info_display)
8022 {
8023 return LLPipeline::RENDER_DEBUG_TEXTURE_PRIORITY;
8024 }
8025 else if ("shame" == info_display)
8026 {
8027 return LLPipeline::RENDER_DEBUG_SHAME;
8028 }
8029 else if ("texture area" == info_display)
8030 {
8031 return LLPipeline::RENDER_DEBUG_TEXTURE_AREA;
8032 }
8033 else if ("face area" == info_display)
8034 {
8035 return LLPipeline::RENDER_DEBUG_FACE_AREA;
8036 }
8037 else if ("picking" == info_display)
8038 {
8039 return LLPipeline::RENDER_DEBUG_PICKING;
8040 }
8041 else if ("lights" == info_display)
8042 {
8043 return LLPipeline::RENDER_DEBUG_LIGHTS;
8044 }
8045 else if ("particles" == info_display)
8046 {
8047 return LLPipeline::RENDER_DEBUG_PARTICLES;
8048 }
8049 else if ("composition" == info_display)
8050 {
8051 return LLPipeline::RENDER_DEBUG_COMPOSITION;
8052 }
8053 else if ("glow" == info_display)
8054 {
8055 return LLPipeline::RENDER_DEBUG_GLOW;
8056 }
8057 else
8058 {
8059 return 0;
8060 }
8061};
8062
8063
8064class LLAdvancedToggleInfoDisplay : public view_listener_t
8065{
8066 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8067 {
8068 U32 info_display = info_display_from_string( userdata.asString() );
8069
8070 if ( info_display != 0 )
8071 {
8072 LLPipeline::toggleRenderDebug( (void*)info_display );
8073 }
8074
8075 return true;
8076 }
8077};
8078
8079
8080class LLAdvancedCheckInfoDisplay : public view_listener_t
8081{
8082 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8083 {
8084 U32 info_display = info_display_from_string( userdata["data"].asString() );
8085 bool new_value = false;
8086
8087 if ( info_display != 0 )
8088 {
8089 new_value = LLPipeline::toggleRenderDebugControl( (void*)info_display );
8090 }
8091
8092 std::string control_name = userdata["control"].asString();
8093 gMenuHolder->findControl(control_name)->setValue(new_value);
8094 return true;
8095 }
8096};
8097
8098
8099
8100///////////////////
8101// SELECT BUFFER //
8102///////////////////
8103
8104
8105class LLAdvancedToggleSelectBuffer : public view_listener_t
8106{
8107 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8108 {
8109 gDebugSelect = !(gDebugSelect);
8110 return true;
8111 }
8112};
8113
8114class LLAdvancedCheckSelectBuffer : public view_listener_t
8115{
8116 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8117 {
8118 bool new_value = gDebugSelect;
8119 std::string control_name = userdata["control"].asString();
8120 gMenuHolder->findControl(control_name)->setValue(new_value);
8121 return true;
8122 }
8123};
8124
8125
8126
8127/////////////////////////
8128// RANDOMIZE FRAMERATE //
8129/////////////////////////
8130
8131
8132class LLAdvancedToggleRandomizeFramerate : public view_listener_t
8133{
8134 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8135 {
8136 gRandomizeFramerate = !(gRandomizeFramerate);
8137 return true;
8138 }
8139};
8140
8141class LLAdvancedCheckRandomizeFramerate : public view_listener_t
8142{
8143 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8144 {
8145 bool new_value = gRandomizeFramerate;
8146 std::string control_name = userdata["control"].asString();
8147 gMenuHolder->findControl(control_name)->setValue(new_value);
8148 return true;
8149 }
8150};
8151
8152
8153
8154/////////////////////////
8155// PERIODIC SLOW FRAME //
8156/////////////////////////
8157
8158
8159class LLAdvancedTogglePeriodicSlowFrame : public view_listener_t
8160{
8161 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8162 {
8163 gPeriodicSlowFrame = !(gPeriodicSlowFrame);
8164 return true;
8165 }
8166};
8167
8168class LLAdvancedCheckPeriodicSlowFrame : public view_listener_t
8169{
8170 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8171 {
8172 bool new_value = gPeriodicSlowFrame;
8173 std::string control_name = userdata["control"].asString();
8174 gMenuHolder->findControl(control_name)->setValue(new_value);
8175 return true;
8176 }
8177};
8178
8179
8180
8181////////////////
8182// FRAME TEST //
8183////////////////
8184
8185
8186class LLAdvancedToggleFrameTest : public view_listener_t
8187{
8188 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8189 {
8190 LLPipeline::sRenderFrameTest = !(LLPipeline::sRenderFrameTest);
8191 return true;
8192 }
8193};
8194
8195class LLAdvancedCheckFrameTest : public view_listener_t
8196{
8197 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8198 {
8199 bool new_value = LLPipeline::sRenderFrameTest;
8200 std::string control_name = userdata["control"].asString();
8201 gMenuHolder->findControl(control_name)->setValue(new_value);
8202 return true;
8203 }
8204};
8205
8206
8207
8208///////////////////////////
8209// HIDE SELECTED OBJECTS //
8210///////////////////////////
8211
8212
8213class LLAdvancedToggleHideSelectedObjects : public view_listener_t
8214{
8215 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8216 {
8217 gHideSelectedObjects = !(gHideSelectedObjects);
8218 return true;
8219 }
8220};
8221
8222class LLAdvancedCheckHideSelectedObjects : public view_listener_t
8223{
8224 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8225 {
8226 bool new_value = gHideSelectedObjects;
8227 std::string control_name = userdata["control"].asString();
8228 gMenuHolder->findControl(control_name)->setValue(new_value);
8229 return true;
8230 }
8231};
8232
8233
8234
8235///////////////////////////
8236// SELECTED TEXTURE INFO //
8237///////////////////////////
8238
8239
8240class LLAdvancedSelectedTextureInfo : public view_listener_t
8241{
8242 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8243 {
8244 handle_selected_texture_info(NULL);
8245 return true;
8246 }
8247};
8248
8249
8250
8251//////////////////////
8252// TOGGLE WIREFRAME //
8253//////////////////////
8254
8255
8256class LLAdvancedToggleWireframe : public view_listener_t
8257{
8258 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8259 {
8260 gUseWireframe = !(gUseWireframe);
8261 return true;
8262 }
8263};
8264
8265class LLAdvancedCheckWireframe : public view_listener_t
8266{
8267 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8268 {
8269 bool new_value = gUseWireframe;
8270 std::string control_name = userdata["control"].asString();
8271 gMenuHolder->findControl(control_name)->setValue(new_value);
8272 return true;
8273 }
8274};
8275
8276
8277
8278//////////////////////
8279// DISABLE TEXTURES //
8280//////////////////////
8281
8282
8283class LLAdvancedToggleDisableTextures : public view_listener_t
8284{
8285 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8286 {
8287 menu_toggle_variable((void*)&LLViewerImage::sDontLoadVolumeTextures);
8288 return true;
8289 }
8290};
8291
8292class LLAdvancedCheckDisableTextures : public view_listener_t
8293{
8294 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8295 {
8296 bool new_value = menu_check_variable((void*)&LLViewerImage::sDontLoadVolumeTextures);
8297 std::string control_name = userdata["control"].asString();
8298 gMenuHolder->findControl(control_name)->setValue(new_value);
8299 return true;
8300 }
8301};
8302
8303
8304
8305////////////////////////////////////////
8306// RENDER ATTACHED LIGHTS / PARTICLES //
8307////////////////////////////////////////
8308
8309
8310class LLToggleRenderAttachedLights : public view_listener_t
8311{
8312 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8313 {
8314 menu_toggle_control((void *)"RenderAttachedLights");
8315 LLPipeline::sRenderAttachedLights = gSavedSettings.getBOOL("RenderAttachedLights");
8316 return true;
8317 }
8318};
8319
8320class LLToggleRenderAttachedParticles : public view_listener_t
8321{
8322 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8323 {
8324 menu_toggle_control((void *)"RenderAttachedParticles");
8325 LLPipeline::sRenderAttachedParticles = gSavedSettings.getBOOL("RenderAttachedParticles");
8326 return true;
8327 }
8328};
8329
8330
8331
8332//////////////////////////
8333// DUMP SCRIPTED CAMERA //
8334//////////////////////////
8335
8336
8337class LLAdvancedDumpScriptedCamera : public view_listener_t
8338{
8339 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8340 {
8341 handle_dump_followcam(NULL);
8342 return true;
8343 }
8344};
8345
8346
8347
8348//////////////////////////////
8349// DUMP REGION OBJECT CACHE //
8350//////////////////////////////
8351
8352
8353class LLAdvancedDumpRegionObjectCache : public view_listener_t
8354{
8355 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8356 {
8357 handle_dump_region_object_cache(NULL);
8358 return true;
8359 }
8360};
8361
8362
8363
8364////////////////
8365// SLURL TEST //
8366////////////////
8367
8368
8369class LLAdvancedSLURLTest : public view_listener_t
8370{
8371 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8372 {
8373 handle_slurl_test(NULL);
8374 return true;
8375 }
8376};
8377
8378
8379
8380////////////////////////
8381// TOGGLE EDITABLE UI //
8382////////////////////////
8383
8384
8385class LLAdvancedToggleEditableUI : public view_listener_t
8386{
8387 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8388 {
8389 edit_ui(NULL);
8390 return true;
8391 }
8392};
8393
8394// *TODO: Add corresponding "Check" for EditableUI, so it can
8395// become a menu_item_check. Need to add check_edit_ui(void*)
8396// or functional equivalent to do that.
8397
8398
8399
8400//////////////////////
8401// ASYNC KEYSTROKES //
8402//////////////////////
8403
8404
8405class LLAdvancedToggleAsyncKeystrokes : public view_listener_t
8406{
8407 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8408 {
8409 gHandleKeysAsync = !(gHandleKeysAsync);
8410 return true;
8411 }
8412};
8413
8414class LLAdvancedCheckAsyncKeystrokes : public view_listener_t
8415{
8416 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8417 {
8418 bool new_value = gHandleKeysAsync;
8419 std::string control_name = userdata["control"].asString();
8420 gMenuHolder->findControl(control_name)->setValue(new_value);
8421 return true;
8422 }
8423};
8424
8425
8426
8427/////////////////////
8428// DUMP SELECT MGR //
8429/////////////////////
8430
8431
8432class LLAdvancedDumpSelectMgr : public view_listener_t
8433{
8434 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8435 {
8436 dump_select_mgr(NULL);
8437 return true;
8438 }
8439};
8440
8441
8442
8443////////////////////
8444// DUMP INVENTORY //
8445////////////////////
8446
8447
8448class LLAdvancedDumpInventory : public view_listener_t
8449{
8450 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8451 {
8452 dump_inventory(NULL);
8453 return true;
8454 }
8455};
8456
8457
8458
8459///////////////////////
8460// DUMP FOCUS HOLDER //
8461///////////////////////
8462
8463
8464class LLAdvancedDumpFocusHolder : public view_listener_t
8465{
8466 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8467 {
8468 handle_dump_focus(NULL);
8469 return true;
8470 }
8471};
8472
8473
8474
8475////////////////////////////////
8476// PRINT SELECTED OBJECT INFO //
8477////////////////////////////////
8478
8479
8480class LLAdvancedPrintSelectedObjectInfo : public view_listener_t
8481{
8482 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8483 {
8484 print_object_info(NULL);
8485 return true;
8486 }
8487};
8488
8489
8490
8491//////////////////////
8492// PRINT AGENT INFO //
8493//////////////////////
8494
8495
8496class LLAdvancedPrintAgentInfo : public view_listener_t
8497{
8498 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8499 {
8500 print_agent_nvpairs(NULL);
8501 return true;
8502 }
8503};
8504
8505
8506
8507////////////////////////////////
8508// PRINT TEXTURE MEMORY STATS //
8509////////////////////////////////
8510
8511
8512class LLAdvancedPrintTextureMemoryStats : public view_listener_t
8513{
8514 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8515 {
8516 output_statistics(NULL);
8517 return true;
8518 }
8519};
8520
8521
8522
8523//////////////////////
8524// DEBUG SELECT MGR //
8525//////////////////////
8526
8527
8528class LLAdvancedToggleDebugSelectMgr : public view_listener_t
8529{
8530 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8531 {
8532 gDebugSelectMgr = !(gDebugSelectMgr);
8533 return true;
8534 }
8535};
8536
8537class LLAdvancedCheckDebugSelectMgr : public view_listener_t
8538{
8539 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8540 {
8541 bool new_value = gDebugSelectMgr;
8542 std::string control_name = userdata["control"].asString();
8543 gMenuHolder->findControl(control_name)->setValue(new_value);
8544 return true;
8545 }
8546};
8547
8548
8549
8550//////////////////
8551// DEBUG CLICKS //
8552//////////////////
8553
8554
8555class LLAdvancedToggleDebugClicks : public view_listener_t
8556{
8557 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8558 {
8559 gDebugClicks = !(gDebugClicks);
8560 return true;
8561 }
8562};
8563
8564class LLAdvancedCheckDebugClicks : public view_listener_t
8565{
8566 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8567 {
8568 bool new_value = gDebugClicks;
8569 std::string control_name = userdata["control"].asString();
8570 gMenuHolder->findControl(control_name)->setValue(new_value);
8571 return true;
8572 }
8573};
8574
8575
8576
8577/////////////////
8578// DEBUG VIEWS //
8579/////////////////
8580
8581
8582class LLAdvancedToggleDebugViews : public view_listener_t
8583{
8584 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8585 {
8586 LLView::sDebugRects = !(LLView::sDebugRects);
8587 return true;
8588 }
8589};
8590
8591class LLAdvancedCheckDebugViews : public view_listener_t
8592{
8593 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8594 {
8595 bool new_value = LLView::sDebugRects;
8596 std::string control_name = userdata["control"].asString();
8597 gMenuHolder->findControl(control_name)->setValue(new_value);
8598 return true;
8599 }
8600};
8601
8602
8603
8604///////////////////////
8605// XUI NAME TOOLTIPS //
8606///////////////////////
8607
8608
8609class LLAdvancedToggleXUINameTooltips : public view_listener_t
8610{
8611 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8612 {
8613 toggle_show_xui_names(NULL);
8614 return true;
8615 }
8616};
8617
8618class LLAdvancedCheckXUINameTooltips : public view_listener_t
8619{
8620 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8621 {
8622 bool new_value = check_show_xui_names(NULL);
8623 std::string control_name = userdata["control"].asString();
8624 gMenuHolder->findControl(control_name)->setValue(new_value);
8625 return true;
8626 }
8627};
8628
8629
8630
8631////////////////////////
8632// DEBUG MOUSE EVENTS //
8633////////////////////////
8634
8635
8636class LLAdvancedToggleDebugMouseEvents : public view_listener_t
8637{
8638 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8639 {
8640 LLView::sDebugMouseHandling = !(LLView::sDebugMouseHandling);
8641 return true;
8642 }
8643};
8644
8645class LLAdvancedCheckDebugMouseEvents : public view_listener_t
8646{
8647 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8648 {
8649 bool new_value = LLView::sDebugMouseHandling;
8650 std::string control_name = userdata["control"].asString();
8651 gMenuHolder->findControl(control_name)->setValue(new_value);
8652 return true;
8653 }
8654};
8655
8656
8657
8658////////////////
8659// DEBUG KEYS //
8660////////////////
8661
8662
8663class LLAdvancedToggleDebugKeys : public view_listener_t
8664{
8665 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8666 {
8667 LLView::sDebugKeys = !(LLView::sDebugKeys);
8668 return true;
8669 }
8670};
8671
8672class LLAdvancedCheckDebugKeys : public view_listener_t
8673{
8674 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8675 {
8676 bool new_value = LLView::sDebugKeys;
8677 std::string control_name = userdata["control"].asString();
8678 gMenuHolder->findControl(control_name)->setValue(new_value);
8679 return true;
8680 }
8681};
8682
8683
8684
8685///////////////////////
8686// DEBUG WINDOW PROC //
8687///////////////////////
8688
8689
8690class LLAdvancedToggleDebugWindowProc : public view_listener_t
8691{
8692 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8693 {
8694 gDebugWindowProc = !(gDebugWindowProc);
8695 return true;
8696 }
8697};
8698
8699class LLAdvancedCheckDebugWindowProc : public view_listener_t
8700{
8701 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8702 {
8703 bool new_value = gDebugWindowProc;
8704 std::string control_name = userdata["control"].asString();
8705 gMenuHolder->findControl(control_name)->setValue(new_value);
8706 return true;
8707 }
8708};
8709
8710
8711
8712////////////////////////////
8713// DEBUG TEXT EDITOR TIPS //
8714////////////////////////////
8715
8716
8717class LLAdvancedToggleDebugTextEditorTips : public view_listener_t
8718{
8719 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8720 {
8721 gDebugTextEditorTips = !(gDebugTextEditorTips);
8722 return true;
8723 }
8724};
8725
8726class LLAdvancedCheckDebugTextEditorTips : public view_listener_t
8727{
8728 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8729 {
8730 bool new_value = gDebugTextEditorTips;
8731 std::string control_name = userdata["control"].asString();
8732 gMenuHolder->findControl(control_name)->setValue(new_value);
8733 return true;
8734 }
8735};
8736
8737
8738
8739///////////////////////
8740// SHOW FLOATER TEST //
8741///////////////////////
8742
8743
8744class LLAdvancedShowFloaterTest : public view_listener_t
8745{
8746 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8747 {
8748 LLFloaterTest::show(NULL);
8749 return true;
8750 }
8751};
8752
8753
8754
8755/////////////////////////
8756// EXPORT MENUS TO XML //
8757/////////////////////////
8758
8759
8760class LLAdvancedExportMenusToXML : public view_listener_t
8761{
8762 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8763 {
8764 handle_export_menus_to_xml(NULL);
8765 return true;
8766 }
8767};
8768
8769
8770
8771/////////////
8772// EDIT UI //
8773/////////////
8774
8775
8776class LLAdvancedEditUI : public view_listener_t
8777{
8778 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8779 {
8780 LLFloaterEditUI::show(NULL);
8781 return true;
8782 }
8783};
8784
8785
8786
8787//////////////////////
8788// LOAD UI FROM XML //
8789//////////////////////
8790
8791
8792class LLAdvancedLoadUIFromXML : public view_listener_t
8793{
8794 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8795 {
8796 handle_load_from_xml(NULL);
8797 return true;
8798 }
8799};
8800
8801
8802
8803////////////////////
8804// SAVE UI TO XML //
8805////////////////////
8806
8807
8808class LLAdvancedSaveUIToXML : public view_listener_t
8809{
8810 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8811 {
8812 handle_save_to_xml(NULL);
8813 return true;
8814 }
8815};
8816
8817
8818
8819///////////////
8820// XUI NAMES //
8821///////////////
8822
8823
8824class LLAdvancedToggleXUINames : public view_listener_t
8825{
8826 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8827 {
8828 toggle_show_xui_names(NULL);
8829 return true;
8830 }
8831};
8832
8833class LLAdvancedCheckXUINames : public view_listener_t
8834{
8835 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8836 {
8837 bool new_value = check_show_xui_names(NULL);
8838 std::string control_name = userdata["control"].asString();
8839 gMenuHolder->findControl(control_name)->setValue(new_value);
8840 return true;
8841 }
8842};
8843
8844
8845
8846////////////////////////
8847// GRAB BAKED TEXTURE //
8848////////////////////////
8849
8850
8851class LLAdvancedGrabBakedTexture : public view_listener_t
8852{
8853 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8854 {
8855 std::string texture_type = userdata.asString();
8856 if ("eyes" == texture_type)
8857 {
8858 handle_grab_texture( (void*)LLVOAvatar::TEX_EYES_BAKED );
8859 }
8860 else if ("head" == texture_type)
8861 {
8862 handle_grab_texture( (void*)LLVOAvatar::TEX_HEAD_BAKED );
8863 }
8864 else if ("upper" == texture_type)
8865 {
8866 handle_grab_texture( (void*)LLVOAvatar::TEX_UPPER_BAKED );
8867 }
8868 else if ("lower" == texture_type)
8869 {
8870 handle_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED );
8871 }
8872 else if ("skirt" == texture_type)
8873 {
8874 handle_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED );
8875 }
8876
8877 return true;
8878 }
8879};
8880
8881class LLAdvancedEnableGrabBakedTexture : public view_listener_t
8882{
8883 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8884 {
8885 std::string texture_type = userdata["data"].asString();
8886 bool new_value = false;
8887
8888 if ("iris" == texture_type)
8889 {
8890 new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_EYES_BAKED );
8891 }
8892 else if ("head" == texture_type)
8893 {
8894 new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_HEAD_BAKED );
8895 }
8896 else if ("upper" == texture_type)
8897 {
8898 new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_UPPER_BAKED );
8899 }
8900 else if ("lower" == texture_type)
8901 {
8902 new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_LOWER_BAKED );
8903 }
8904 else if ("skirt" == texture_type)
8905 {
8906 new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED );
8907 }
8908
8909 std::string control_name = userdata["control"].asString();
8910 gMenuHolder->findControl(control_name)->setValue(new_value);
8911 return true;
8912 }
8913};
8914
8915
8916
8917//////////////////////
8918// ALLOW IDLE / AFK //
8919//////////////////////
8920
8921
8922class LLAdvancedToggleAllowIdleAFK : public view_listener_t
8923{
8924 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8925 {
8926 gAllowIdleAFK = !(gAllowIdleAFK);
8927 return true;
8928 }
8929};
8930
8931class LLAdvancedCheckAllowIdleAFK : public view_listener_t
8932{
8933 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8934 {
8935 bool new_value = gAllowIdleAFK;
8936 std::string control_name = userdata["control"].asString();
8937 gMenuHolder->findControl(control_name)->setValue(new_value);
8938 return true;
8939 }
8940};
8941
8942
8943
8944///////////////////////
8945// APPEARANCE TO XML //
8946///////////////////////
8947
8948
8949class LLAdvancedAppearanceToXML : public view_listener_t
8950{
8951 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8952 {
8953 LLVOAvatar::dumpArchetypeXML(NULL);
8954 return true;
8955 }
8956};
8957
8958
8959
8960///////////////////////////////
8961// TOGGLE CHARACTER GEOMETRY //
8962///////////////////////////////
8963
8964
8965class LLAdvancedToggleCharacterGeometry : public view_listener_t
8966{
8967 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8968 {
8969 handle_god_request_avatar_geometry(NULL);
8970 return true;
8971 }
8972};
8973
8974class LLAdvancedEnableCharacterGeometry : public view_listener_t
8975{
8976 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8977 {
8978 enable_god_customer_service(NULL);
8979 return true;
8980 }
8981};
8982
8983
8984
8985/////////////////////////////
8986// TEST MALE / TEST FEMALE //
8987/////////////////////////////
8988
8989
8990class LLAdvancedTestMale : public view_listener_t
8991{
8992 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
8993 {
8994 handle_test_male(NULL);
8995 return true;
8996 }
8997};
8998
8999
9000class LLAdvancedTestFemale : public view_listener_t
9001{
9002 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9003 {
9004 handle_test_female(NULL);
9005 return true;
9006 }
9007};
9008
9009
9010
9011///////////////
9012// TOGGLE PG //
9013///////////////
9014
9015
9016class LLAdvancedTogglePG : public view_listener_t
9017{
9018 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9019 {
9020 handle_toggle_pg(NULL);
9021 return true;
9022 }
9023};
9024
9025
9026
9027/////////////////////////
9028// ALLOW SELECT AVATAR //
9029/////////////////////////
9030
9031
9032class LLAdvancedToggleAllowSelectAvatar : public view_listener_t
9033{
9034 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9035 {
9036 gAllowSelectAvatar = !(gAllowSelectAvatar);
9037 return true;
9038 }
9039};
9040
9041class LLAdvancedCheckAllowSelectAvatar : public view_listener_t
9042{
9043 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9044 {
9045 bool new_value = gAllowSelectAvatar;
9046 std::string control_name = userdata["control"].asString();
9047 gMenuHolder->findControl(control_name)->setValue(new_value);
9048 return true;
9049 }
9050};
9051
9052
9053
9054////////////////////////////
9055// ALLOW TAP-TAP-HOLD RUN //
9056////////////////////////////
9057
9058
9059class LLAdvancedToggleAllowTapTapHoldRun : public view_listener_t
9060{
9061 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9062 {
9063 gAllowTapTapHoldRun = !(gAllowTapTapHoldRun);
9064 return true;
9065 }
9066};
9067
9068class LLAdvancedCheckAllowTapTapHoldRun : public view_listener_t
9069{
9070 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9071 {
9072 bool new_value = gAllowTapTapHoldRun;
9073 std::string control_name = userdata["control"].asString();
9074 gMenuHolder->findControl(control_name)->setValue(new_value);
9075 return true;
9076 }
9077};
9078
9079
9080
9081/////////////////////////////
9082// FORCE PARAMS TO DEFAULT //
9083/////////////////////////////
9084
9085
9086class LLAdvancedForceParamsToDefault : public view_listener_t
9087{
9088 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9089 {
9090 LLAgent::clearVisualParams(NULL);
9091 return true;
9092 }
9093};
9094
9095
9096
9097//////////////////////////
9098// RELOAD VERTEX SHADER //
9099//////////////////////////
9100
9101
9102class LLAdvancedReloadVertexShader : public view_listener_t
9103{
9104 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9105 {
9106 reload_vertex_shader(NULL);
9107 return true;
9108 }
9109};
9110
9111
9112
9113////////////////////
9114// ANIMATION INFO //
9115////////////////////
9116
9117
9118class LLAdvancedToggleAnimationInfo : public view_listener_t
9119{
9120 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9121 {
9122 LLVOAvatar::sShowAnimationDebug = !(LLVOAvatar::sShowAnimationDebug);
9123 return true;
9124 }
9125};
9126
9127class LLAdvancedCheckAnimationInfo : public view_listener_t
9128{
9129 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9130 {
9131 bool new_value = LLVOAvatar::sShowAnimationDebug;
9132 std::string control_name = userdata["control"].asString();
9133 gMenuHolder->findControl(control_name)->setValue(new_value);
9134 return true;
9135 }
9136};
9137
9138
9139
9140////////////////////////////
9141// SLOW MOTION ANIMATIONS //
9142////////////////////////////
9143
9144
9145class LLAdvancedToggleSlowMotionAnimations : public view_listener_t
9146{
9147 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9148 {
9149 slow_mo_animations(NULL);
9150 return true;
9151 }
9152};
9153
9154// *TODO: Add a corresponding "Check" event for SlowMotionAnimations,
9155// so that it can become a menu_item_check with the "X" indicator.
9156// See indra/newview/skins/xui/en_us/menu_viewer.xml
9157
9158
9159
9160//////////////////
9161// SHOW LOOK AT //
9162//////////////////
9163
9164
9165class LLAdvancedToggleShowLookAt : public view_listener_t
9166{
9167 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9168 {
9169 LLHUDEffectLookAt::sDebugLookAt = !(LLHUDEffectLookAt::sDebugLookAt);
9170 return true;
9171 }
9172};
9173
9174class LLAdvancedCheckShowLookAt : public view_listener_t
9175{
9176 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9177 {
9178 bool new_value = LLHUDEffectLookAt::sDebugLookAt;
9179 std::string control_name = userdata["control"].asString();
9180 gMenuHolder->findControl(control_name)->setValue(new_value);
9181 return true;
9182 }
9183};
9184
9185
9186
9187///////////////////
9188// SHOW POINT AT //
9189///////////////////
9190
9191
9192class LLAdvancedToggleShowPointAt : public view_listener_t
9193{
9194 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9195 {
9196 LLHUDEffectPointAt::sDebugPointAt = !(LLHUDEffectPointAt::sDebugPointAt);
9197 return true;
9198 }
9199};
9200
9201class LLAdvancedCheckShowPointAt : public view_listener_t
9202{
9203 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9204 {
9205 bool new_value = LLHUDEffectPointAt::sDebugPointAt;
9206 std::string control_name = userdata["control"].asString();
9207 gMenuHolder->findControl(control_name)->setValue(new_value);
9208 return true;
9209 }
9210};
9211
9212
9213
9214/////////////////////////
9215// DEBUG JOINT UPDATES //
9216/////////////////////////
9217
9218
9219class LLAdvancedToggleDebugJointUpdates : public view_listener_t
9220{
9221 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9222 {
9223 LLVOAvatar::sJointDebug = !(LLVOAvatar::sJointDebug);
9224 return true;
9225 }
9226};
9227
9228class LLAdvancedCheckDebugJointUpdates : public view_listener_t
9229{
9230 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9231 {
9232 bool new_value = LLVOAvatar::sJointDebug;
9233 std::string control_name = userdata["control"].asString();
9234 gMenuHolder->findControl(control_name)->setValue(new_value);
9235 return true;
9236 }
9237};
9238
9239
9240
9241/////////////////
9242// DISABLE LOD //
9243/////////////////
9244
9245
9246class LLAdvancedToggleDisableLOD : public view_listener_t
9247{
9248 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9249 {
9250 LLViewerJoint::sDisableLOD = !(LLViewerJoint::sDisableLOD);
9251 return true;
9252 }
9253};
9254
9255class LLAdvancedCheckDisableLOD : public view_listener_t
9256{
9257 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9258 {
9259 bool new_value = LLViewerJoint::sDisableLOD;
9260 std::string control_name = userdata["control"].asString();
9261 gMenuHolder->findControl(control_name)->setValue(new_value);
9262 return true;
9263 }
9264};
9265
9266
9267
9268/////////////////////////
9269// DEBUG CHARACTER VIS //
9270/////////////////////////
9271
9272
9273class LLAdvancedToggleDebugCharacterVis : public view_listener_t
9274{
9275 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9276 {
9277 LLVOAvatar::sDebugInvisible = !(LLVOAvatar::sDebugInvisible);
9278 return true;
9279 }
9280};
9281
9282class LLAdvancedCheckDebugCharacterVis : public view_listener_t
9283{
9284 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9285 {
9286 bool new_value = LLVOAvatar::sDebugInvisible;
9287 std::string control_name = userdata["control"].asString();
9288 gMenuHolder->findControl(control_name)->setValue(new_value);
9289 return true;
9290 }
9291};
9292
9293
9294
9295//////////////////////////
9296// SHOW COLLISION PLANE //
9297//////////////////////////
9298
9299/***************************
9300 *
9301 * Disabled. See DEV-14477
9302 *
9303 ***************************
9304
9305class LLAdvancedToggleShowCollisionPlane : public view_listener_t
9306{
9307 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9308 {
9309 LLVOAvatar::sShowFootPlane = !(LLVOAvatar::sShowFootPlane);
9310 return true;
9311 }
9312};
9313
9314class LLAdvancedCheckShowCollisionPlane : public view_listener_t
9315{
9316 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9317 {
9318 bool new_value = LLVOAvatar::sShowFootPlane;
9319 std::string control_name = userdata["control"].asString();
9320 gMenuHolder->findControl(control_name)->setValue(new_value);
9321 return true;
9322 }
9323};
9324
9325***************************/
9326
9327
9328/////////////////////////////
9329// SHOW COLLISION SKELETON //
9330/////////////////////////////
9331
9332
9333class LLAdvancedToggleShowCollisionSkeleton : public view_listener_t
9334{
9335 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9336 {
9337 LLVOAvatar::sShowCollisionVolumes = !(LLVOAvatar::sShowCollisionVolumes);
9338 return true;
9339 }
9340};
9341
9342class LLAdvancedCheckShowCollisionSkeleton : public view_listener_t
9343{
9344 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9345 {
9346 bool new_value = LLVOAvatar::sShowCollisionVolumes;
9347 std::string control_name = userdata["control"].asString();
9348 gMenuHolder->findControl(control_name)->setValue(new_value);
9349 return true;
9350 }
9351};
9352
9353
9354
9355//////////////////////////
9356// DISPLAY AGENT TARGET //
9357//////////////////////////
9358
9359
9360class LLAdvancedToggleDisplayAgentTarget : public view_listener_t
9361{
9362 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9363 {
9364 LLAgent::sDebugDisplayTarget = !(LLAgent::sDebugDisplayTarget);
9365 return true;
9366 }
9367};
9368
9369class LLAdvancedCheckDisplayAgentTarget : public view_listener_t
9370{
9371 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9372 {
9373 bool new_value = LLAgent::sDebugDisplayTarget;
9374 std::string control_name = userdata["control"].asString();
9375 gMenuHolder->findControl(control_name)->setValue(new_value);
9376 return true;
9377 }
9378};
9379
9380
9381
9382///////////////////////////
9383// DEBUG AVATAR ROTATION //
9384///////////////////////////
9385
9386
9387class LLAdvancedToggleDebugAvatarRotation : public view_listener_t
9388{
9389 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9390 {
9391 gDebugAvatarRotation = !(gDebugAvatarRotation);
9392 return true;
9393 }
9394};
9395
9396class LLAdvancedCheckDebugAvatarRotation : public view_listener_t
9397{
9398 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9399 {
9400 bool new_value = gDebugAvatarRotation;
9401 std::string control_name = userdata["control"].asString();
9402 gMenuHolder->findControl(control_name)->setValue(new_value);
9403 return true;
9404 }
9405};
9406
9407
9408
9409//////////////////////
9410// DUMP ATTACHMENTS //
9411//////////////////////
9412
9413
9414class LLAdvancedDumpAttachments : public view_listener_t
9415{
9416 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9417 {
9418 handle_dump_attachments(NULL);
9419 return true;
9420 }
9421};
9422
9423
9424
9425/////////////////////
9426// REBAKE TEXTURES //
9427/////////////////////
9428
9429
9430class LLAdvancedRebakeTextures : public view_listener_t
9431{
9432 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9433 {
9434 handle_rebake_textures(NULL);
9435 return true;
9436 }
9437};
9438
9439
9440
9441///////////////////////////
9442// DEBUG AVATAR TEXTURES //
9443///////////////////////////
9444
9445
9446class LLAdvancedDebugAvatarTextures : public view_listener_t
9447{
9448 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9449 {
9450 handle_debug_avatar_textures(NULL);
9451 return true;
9452 }
9453};
9454
9455
9456
9457////////////////////////////////
9458// DUMP AVATAR LOCAL TEXTURES //
9459////////////////////////////////
9460
9461
9462class LLAdvancedDumpAvatarLocalTextures : public view_listener_t
9463{
9464 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9465 {
9466 handle_dump_avatar_local_textures(NULL);
9467 return true;
9468 }
9469};
9470
9471
9472
9473/////////////////
9474// MESSAGE LOG //
9475/////////////////
9476
9477
9478class LLAdvancedEnableMessageLog : public view_listener_t
9479{
9480 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9481 {
9482 handle_viewer_enable_message_log(NULL);
9483 return true;
9484 }
9485};
9486
9487class LLAdvancedDisableMessageLog : public view_listener_t
9488{
9489 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9490 {
9491 handle_viewer_disable_message_log(NULL);
9492 return true;
9493 }
9494};
9495
9496
9497
9498/////////////////
9499// DROP PACKET //
9500/////////////////
9501
9502
9503class LLAdvancedDropPacket : public view_listener_t
9504{
9505 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9506 {
9507 drop_packet(NULL);
9508 return true;
9509 }
9510};
9511
9512
9513
9514/////////////////////////
9515// FRAME STATS LOGGING //
9516/////////////////////////
9517
9518
9519class LLAdvancedFrameStatsLogging : public view_listener_t
9520{
9521 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9522 {
9523 std::string command = userdata.asString();
9524 if ("start logging" == command)
9525 {
9526 LLFrameStats::startLogging(NULL);
9527 }
9528 else if ("stop logging" == command)
9529 {
9530 LLFrameStats::stopLogging(NULL);
9531 }
9532 else if ("timed logging 10" == command)
9533 {
9534 LLFrameStats::timedLogging10(NULL);
9535 }
9536 else if ("timed logging 30" == command)
9537 {
9538 LLFrameStats::timedLogging30(NULL);
9539 }
9540 else if ("timed logging 60" == command)
9541 {
9542 LLFrameStats::timedLogging60(NULL);
9543 }
9544
9545 return true;
9546 }
9547};
9548
9549
9550
9551/////////////////
9552// AGENT PILOT //
9553/////////////////
9554
9555
9556class LLAdvancedAgentPilot : public view_listener_t
9557{
9558 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9559 {
9560 std::string command = userdata.asString();
9561 if ("start playback" == command)
9562 {
9563 LLAgentPilot::startPlayback(NULL);
9564 }
9565 else if ("stop playback" == command)
9566 {
9567 LLAgentPilot::stopPlayback(NULL);
9568 }
9569 else if ("start record" == command)
9570 {
9571 LLAgentPilot::startRecord(NULL);
9572 }
9573 else if ("stop record" == command)
9574 {
9575 LLAgentPilot::saveRecord(NULL);
9576 }
9577
9578 return true;
9579 }
9580};
9581
9582
9583
9584//////////////////////
9585// AGENT PILOT LOOP //
9586//////////////////////
9587
9588
9589class LLAdvancedToggleAgentPilotLoop : public view_listener_t
9590{
9591 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9592 {
9593 LLAgentPilot::sLoop = !(LLAgentPilot::sLoop);
9594 return true;
9595 }
9596};
9597
9598class LLAdvancedCheckAgentPilotLoop : public view_listener_t
9599{
9600 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9601 {
9602 bool new_value = LLAgentPilot::sLoop;
9603 std::string control_name = userdata["control"].asString();
9604 gMenuHolder->findControl(control_name)->setValue(new_value);
9605 return true;
9606 }
9607};
9608
9609
9610
9611/////////////////////////
9612// SHOW OBJECT UPDATES //
9613/////////////////////////
9614
9615
9616class LLAdvancedToggleShowObjectUpdates : public view_listener_t
9617{
9618 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9619 {
9620 gShowObjectUpdates = !(gShowObjectUpdates);
9621 return true;
9622 }
9623};
9624
9625class LLAdvancedCheckShowObjectUpdates : public view_listener_t
9626{
9627 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9628 {
9629 bool new_value = gShowObjectUpdates;
9630 std::string control_name = userdata["control"].asString();
9631 gMenuHolder->findControl(control_name)->setValue(new_value);
9632 return true;
9633 }
9634};
9635
9636
9637
9638////////////////////
9639// COMPRESS IMAGE //
9640////////////////////
9641
9642
9643class LLAdvancedCompressImage : public view_listener_t
9644{
9645 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9646 {
9647 handle_compress_image(NULL);
9648 return true;
9649 }
9650};
9651
9652
9653
9654//////////////////////
9655// CLOTHING FLOATER //
9656//////////////////////
9657
9658
9659class LLAdvancedToggleClothingFloater : public view_listener_t
9660{
9661 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9662 {
9663 handle_clothing(NULL);
9664 return true;
9665 }
9666};
9667
9668// There is no LLAdvancedCheckClothingFloater.
9669
9670
9671
9672/////////////////////////
9673// SHOW DEBUG SETTINGS //
9674/////////////////////////
9675
9676
9677class LLAdvancedShowDebugSettings : public view_listener_t
9678{
9679 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9680 {
9681 LLFloaterSettingsDebug::show(NULL);
9682 return true;
9683 }
9684};
9685
9686
9687
9688////////////////////////
9689// VIEW ADMIN OPTIONS //
9690////////////////////////
9691
9692
9693class LLAdvancedToggleViewAdminOptions : public view_listener_t
9694{
9695 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9696 {
9697 handle_admin_override_toggle(NULL);
9698 return true;
9699 }
9700};
9701
9702class LLAdvancedCheckViewAdminOptions : public view_listener_t
9703{
9704 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9705 {
9706 bool new_value = check_admin_override(NULL);
9707 std::string control_name = userdata["control"].asString();
9708 gMenuHolder->findControl(control_name)->setValue(new_value);
9709 return true;
9710 }
9711};
9712
9713
9714
9715//////////////////
9716// ADMIN STATUS //
9717//////////////////
9718
9719
9720class LLAdvancedRequestAdminStatus : public view_listener_t
9721{
9722 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9723 {
9724 handle_god_mode(NULL);
9725 return true;
9726 }
9727};
9728
9729class LLAdvancedLeaveAdminStatus : public view_listener_t
9730{
9731 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9732 {
9733 handle_leave_god_mode(NULL);
9734 return true;
9735 }
9736};
9737
9738
9739
9740static void addMenu(view_listener_t *menu, const char *name)
7586{ 9741{
7587 sMenus.push_back(menu); 9742 sMenus.push_back(menu);
7588 menu->registerListener(gMenuHolder, name); 9743 menu->registerListener(gMenuHolder, name);
@@ -7691,6 +9846,7 @@ void initialize_menus()
7691 addMenu(new LLToolsSaveToInventory(), "Tools.SaveToInventory"); 9846 addMenu(new LLToolsSaveToInventory(), "Tools.SaveToInventory");
7692 addMenu(new LLToolsSaveToObjectInventory(), "Tools.SaveToObjectInventory"); 9847 addMenu(new LLToolsSaveToObjectInventory(), "Tools.SaveToObjectInventory");
7693 addMenu(new LLToolsSelectedScriptAction(), "Tools.SelectedScriptAction"); 9848 addMenu(new LLToolsSelectedScriptAction(), "Tools.SelectedScriptAction");
9849 addMenu(new LLToolsSetBulkPerms(), "Tools.SetBulkPerms");
7694 9850
7695 addMenu(new LLToolsEnableToolNotPie(), "Tools.EnableToolNotPie"); 9851 addMenu(new LLToolsEnableToolNotPie(), "Tools.EnableToolNotPie");
7696 addMenu(new LLToolsEnableLink(), "Tools.EnableLink"); 9852 addMenu(new LLToolsEnableLink(), "Tools.EnableLink");
@@ -7793,4 +9949,159 @@ void initialize_menus()
7793 addMenu(new LLSomethingSelectedNoHUD(), "SomethingSelectedNoHUD"); 9949 addMenu(new LLSomethingSelectedNoHUD(), "SomethingSelectedNoHUD");
7794 addMenu(new LLEditableSelected(), "EditableSelected"); 9950 addMenu(new LLEditableSelected(), "EditableSelected");
7795 addMenu(new LLEditableSelectedMono(), "EditableSelectedMono"); 9951 addMenu(new LLEditableSelectedMono(), "EditableSelectedMono");
9952
9953
9954 // Advanced (top level menu)
9955 addMenu(new LLAdvancedToggleConsole(), "Advanced.ToggleConsole");
9956 addMenu(new LLAdvancedCheckConsole(), "Advanced.CheckConsole");
9957 addMenu(new LLAdvancedDumpInfoToConsole(), "Advanced.DumpInfoToConsole");
9958 addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides");
9959
9960 // Advanced > HUD Info
9961 addMenu(new LLAdvancedToggleHUDInfo(), "Advanced.ToggleHUDInfo");
9962 addMenu(new LLAdvancedCheckHUDInfo(), "Advanced.CheckHUDInfo");
9963
9964 addMenu(new LLAdvancedClearGroupCache(), "Advanced.ClearGroupCache");
9965
9966 // Advanced > Render > Types
9967 addMenu(new LLAdvancedToggleRenderType(), "Advanced.ToggleRenderType");
9968 addMenu(new LLAdvancedCheckRenderType(), "Advanced.CheckRenderType");
9969
9970 // Advanced > Render > Features
9971 addMenu(new LLAdvancedToggleFeature(), "Advanced.ToggleFeature");
9972 addMenu(new LLAdvancedCheckFeature(), "Advanced.CheckFeature");
9973
9974 // Advanced > Render > Info Displays
9975 addMenu(new LLAdvancedToggleInfoDisplay(), "Advanced.ToggleInfoDisplay");
9976 addMenu(new LLAdvancedCheckInfoDisplay(), "Advanced.CheckInfoDisplay");
9977 addMenu(new LLAdvancedToggleSelectBuffer(), "Advanced.ToggleSelectBuffer");
9978 addMenu(new LLAdvancedCheckSelectBuffer(), "Advanced.CheckSelectBuffer");
9979 addMenu(new LLAdvancedToggleRandomizeFramerate(), "Advanced.ToggleRandomizeFramerate");
9980 addMenu(new LLAdvancedCheckRandomizeFramerate(), "Advanced.CheckRandomizeFramerate");
9981 addMenu(new LLAdvancedTogglePeriodicSlowFrame(), "Advanced.TogglePeriodicSlowFrame");
9982 addMenu(new LLAdvancedCheckPeriodicSlowFrame(), "Advanced.CheckPeriodicSlowFrame");
9983 addMenu(new LLAdvancedToggleFrameTest(), "Advanced.ToggleFrameTest");
9984 addMenu(new LLAdvancedCheckFrameTest(), "Advanced.CheckFrameTest");
9985 addMenu(new LLAdvancedToggleHideSelectedObjects(), "Advanced.ToggleHideSelectedObjects");
9986 addMenu(new LLAdvancedCheckHideSelectedObjects(), "Advanced.CheckHideSelectedObjects");
9987 addMenu(new LLAdvancedSelectedTextureInfo(), "Advanced.SelectedTextureInfo");
9988 addMenu(new LLAdvancedToggleWireframe(), "Advanced.ToggleWireframe");
9989 addMenu(new LLAdvancedCheckWireframe(), "Advanced.CheckWireframe");
9990 addMenu(new LLAdvancedToggleDisableTextures(), "Advanced.ToggleDisableTextures");
9991 addMenu(new LLAdvancedCheckDisableTextures(), "Advanced.CheckDisableTextures");
9992
9993 // Advanced > Render (top level menu)
9994 addMenu(new LLToggleRenderAttachedLights(), "ToggleRenderAttachedLights");
9995 addMenu(new LLToggleRenderAttachedParticles(), "ToggleRenderAttachedParticles");
9996
9997 // Advanced > World
9998 addMenu(new LLAdvancedDumpScriptedCamera(), "Advanced.DumpScriptedCamera");
9999 addMenu(new LLAdvancedDumpRegionObjectCache(), "Advanced.DumpRegionObjectCache");
10000
10001 // Advanced > UI
10002 addMenu(new LLAdvancedSLURLTest(), "Advanced.SLURLTest");
10003 addMenu(new LLAdvancedToggleEditableUI(), "Advanced.ToggleEditableUI");
10004 //addMenu(new LLAdvancedCheckEditableUI(), "Advanced.CheckEditableUI");
10005 addMenu(new LLAdvancedToggleAsyncKeystrokes(), "Advanced.ToggleAsyncKeystrokes");
10006 addMenu(new LLAdvancedCheckAsyncKeystrokes(), "Advanced.CheckAsyncKeystrokes");
10007 addMenu(new LLAdvancedDumpSelectMgr(), "Advanced.DumpSelectMgr");
10008 addMenu(new LLAdvancedDumpInventory(), "Advanced.DumpInventory");
10009 addMenu(new LLAdvancedDumpFocusHolder(), "Advanced.DumpFocusHolder");
10010 addMenu(new LLAdvancedPrintSelectedObjectInfo(), "Advanced.PrintSelectedObjectInfo");
10011 addMenu(new LLAdvancedPrintAgentInfo(), "Advanced.PrintAgentInfo");
10012 addMenu(new LLAdvancedPrintTextureMemoryStats(), "Advanced.PrintTextureMemoryStats");
10013 addMenu(new LLAdvancedToggleDebugSelectMgr(), "Advanced.ToggleDebugSelectMgr");
10014 addMenu(new LLAdvancedCheckDebugSelectMgr(), "Advanced.CheckDebugSelectMgr");
10015 addMenu(new LLAdvancedToggleDebugClicks(), "Advanced.ToggleDebugClicks");
10016 addMenu(new LLAdvancedCheckDebugClicks(), "Advanced.CheckDebugClicks");
10017 addMenu(new LLAdvancedCheckDebugViews(), "Advanced.CheckDebugViews");
10018 addMenu(new LLAdvancedToggleDebugViews(), "Advanced.ToggleDebugViews");
10019 addMenu(new LLAdvancedToggleXUINameTooltips(), "Advanced.ToggleXUINameTooltips");
10020 addMenu(new LLAdvancedCheckXUINameTooltips(), "Advanced.CheckXUINameTooltips");
10021 addMenu(new LLAdvancedToggleDebugMouseEvents(), "Advanced.ToggleDebugMouseEvents");
10022 addMenu(new LLAdvancedCheckDebugMouseEvents(), "Advanced.CheckDebugMouseEvents");
10023 addMenu(new LLAdvancedToggleDebugKeys(), "Advanced.ToggleDebugKeys");
10024 addMenu(new LLAdvancedCheckDebugKeys(), "Advanced.CheckDebugKeys");
10025 addMenu(new LLAdvancedToggleDebugWindowProc(), "Advanced.ToggleDebugWindowProc");
10026 addMenu(new LLAdvancedCheckDebugWindowProc(), "Advanced.CheckDebugWindowProc");
10027 addMenu(new LLAdvancedToggleDebugTextEditorTips(), "Advanced.ToggleDebugTextEditorTips");
10028 addMenu(new LLAdvancedCheckDebugTextEditorTips(), "Advanced.CheckDebugTextEditorTips");
10029
10030 // Advanced > XUI
10031 addMenu(new LLAdvancedShowFloaterTest(), "Advanced.ShowFloaterTest");
10032 addMenu(new LLAdvancedExportMenusToXML(), "Advanced.ExportMenusToXML");
10033 addMenu(new LLAdvancedEditUI(), "Advanced.EditUI");
10034 addMenu(new LLAdvancedLoadUIFromXML(), "Advanced.LoadUIFromXML");
10035 addMenu(new LLAdvancedSaveUIToXML(), "Advanced.SaveUIToXML");
10036 addMenu(new LLAdvancedToggleXUINames(), "Advanced.ToggleXUINames");
10037 addMenu(new LLAdvancedCheckXUINames(), "Advanced.CheckXUINames");
10038
10039 // Advanced > Character > Grab Baked Texture
10040 addMenu(new LLAdvancedGrabBakedTexture(), "Advanced.GrabBakedTexture");
10041 addMenu(new LLAdvancedEnableGrabBakedTexture(), "Advanced.EnableGrabBakedTexture");
10042
10043 // Advanced > Character > Character Tests
10044 addMenu(new LLAdvancedToggleAllowIdleAFK(), "Advanced.ToggleAllowIdleAFK");
10045 addMenu(new LLAdvancedCheckAllowIdleAFK(), "Advanced.CheckAllowIdleAFK");
10046 addMenu(new LLAdvancedAppearanceToXML(), "Advanced.AppearanceToXML");
10047 addMenu(new LLAdvancedToggleCharacterGeometry(), "Advanced.ToggleCharacterGeometry");
10048 addMenu(new LLAdvancedTestMale(), "Advanced.TestMale");
10049 addMenu(new LLAdvancedTestFemale(), "Advanced.TestFemale");
10050 addMenu(new LLAdvancedTogglePG(), "Advanced.TogglePG");
10051 addMenu(new LLAdvancedToggleAllowSelectAvatar(), "Advanced.ToggleAllowSelectAvatar");
10052 addMenu(new LLAdvancedCheckAllowSelectAvatar(), "Advanced.CheckAllowSelectAvatar");
10053
10054 // Advanced > Character (toplevel)
10055 addMenu(new LLAdvancedToggleAllowTapTapHoldRun(), "Advanced.ToggleAllowTapTapHoldRun");
10056 addMenu(new LLAdvancedCheckAllowTapTapHoldRun(), "Advanced.CheckAllowTapTapHoldRun");
10057 addMenu(new LLAdvancedForceParamsToDefault(), "Advanced.ForceParamsToDefault");
10058 addMenu(new LLAdvancedReloadVertexShader(), "Advanced.ReloadVertexShader");
10059 addMenu(new LLAdvancedToggleAnimationInfo(), "Advanced.ToggleAnimationInfo");
10060 addMenu(new LLAdvancedCheckAnimationInfo(), "Advanced.CheckAnimationInfo");
10061 addMenu(new LLAdvancedToggleSlowMotionAnimations(), "Advanced.ToggleSlowMotionAnimations");
10062 //addMenu(new LLAdvancedCheckSlowMotionAnimations(), "Advanced.CheckSlowMotionAnimations");
10063 addMenu(new LLAdvancedToggleShowLookAt(), "Advanced.ToggleShowLookAt");
10064 addMenu(new LLAdvancedCheckShowLookAt(), "Advanced.CheckShowLookAt");
10065 addMenu(new LLAdvancedToggleShowPointAt(), "Advanced.ToggleShowPointAt");
10066 addMenu(new LLAdvancedCheckShowPointAt(), "Advanced.CheckShowPointAt");
10067 addMenu(new LLAdvancedToggleDebugJointUpdates(), "Advanced.ToggleDebugJointUpdates");
10068 addMenu(new LLAdvancedCheckDebugJointUpdates(), "Advanced.CheckDebugJointUpdates");
10069 addMenu(new LLAdvancedToggleDisableLOD(), "Advanced.ToggleDisableLOD");
10070 addMenu(new LLAdvancedCheckDisableLOD(), "Advanced.CheckDisableLOD");
10071 addMenu(new LLAdvancedToggleDebugCharacterVis(), "Advanced.ToggleDebugCharacterVis");
10072 addMenu(new LLAdvancedCheckDebugCharacterVis(), "Advanced.CheckDebugCharacterVis");
10073// addMenu(new LLAdvancedToggleShowCollisionPlane(), "Advanced.ToggleShowCollisionPlane");
10074// addMenu(new LLAdvancedCheckShowCollisionPlane(), "Advanced.CheckShowCollisionPlane");
10075 addMenu(new LLAdvancedToggleShowCollisionSkeleton(), "Advanced.ToggleShowCollisionSkeleton");
10076 addMenu(new LLAdvancedCheckShowCollisionSkeleton(), "Advanced.CheckShowCollisionSkeleton");
10077 addMenu(new LLAdvancedToggleDisplayAgentTarget(), "Advanced.ToggleDisplayAgentTarget");
10078 addMenu(new LLAdvancedCheckDisplayAgentTarget(), "Advanced.CheckDisplayAgentTarget");
10079 addMenu(new LLAdvancedToggleDebugAvatarRotation(), "Advanced.ToggleDebugAvatarRotation");
10080 addMenu(new LLAdvancedCheckDebugAvatarRotation(), "Advanced.CheckDebugAvatarRotation");
10081 addMenu(new LLAdvancedDumpAttachments(), "Advanced.DumpAttachments");
10082 addMenu(new LLAdvancedRebakeTextures(), "Advanced.RebakeTextures");
10083 addMenu(new LLAdvancedDebugAvatarTextures(), "Advanced.DebugAvatarTextures");
10084 addMenu(new LLAdvancedDumpAvatarLocalTextures(), "Advanced.DumpAvatarLocalTextures");
10085
10086 // Advanced > Network
10087 addMenu(new LLAdvancedEnableMessageLog(), "Advanced.EnableMessageLog");
10088 addMenu(new LLAdvancedDisableMessageLog(), "Advanced.DisableMessageLog");
10089 addMenu(new LLAdvancedDropPacket(), "Advanced.DropPacket");
10090
10091 // Advanced > Recorder
10092 addMenu(new LLAdvancedFrameStatsLogging(), "Advanced.FrameStatsLogging");
10093 addMenu(new LLAdvancedAgentPilot(), "Advanced.AgentPilot");
10094 addMenu(new LLAdvancedToggleAgentPilotLoop(), "Advanced.ToggleAgentPilotLoop");
10095 addMenu(new LLAdvancedCheckAgentPilotLoop(), "Advanced.CheckAgentPilotLoop");
10096
10097 // Advanced (toplevel)
10098 addMenu(new LLAdvancedToggleShowObjectUpdates(), "Advanced.ToggleShowObjectUpdates");
10099 addMenu(new LLAdvancedCheckShowObjectUpdates(), "Advanced.CheckShowObjectUpdates");
10100 addMenu(new LLAdvancedCompressImage(), "Advanced.CompressImage");
10101 addMenu(new LLAdvancedToggleClothingFloater(), "Advanced.ToggleClothingFloater");
10102 addMenu(new LLAdvancedShowDebugSettings(), "Advanced.ShowDebugSettings");
10103 addMenu(new LLAdvancedToggleViewAdminOptions(), "Advanced.ToggleViewAdminOptions");
10104 addMenu(new LLAdvancedCheckViewAdminOptions(), "Advanced.CheckViewAdminOptions");
10105 addMenu(new LLAdvancedRequestAdminStatus(), "Advanced.RequestAdminStatus");
10106 addMenu(new LLAdvancedLeaveAdminStatus(), "Advanced.LeaveAdminStatus");
7796} 10107}