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.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index f99a324..d607afe 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -1642,7 +1642,6 @@ class LLObjectEnableOpen : public view_listener_t
1642 } 1642 }
1643}; 1643};
1644 1644
1645
1646class LLViewCheckBuildMode : public view_listener_t 1645class LLViewCheckBuildMode : public view_listener_t
1647{ 1646{
1648 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 1647 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
@@ -3239,17 +3238,6 @@ class LLViewFullscreen : public view_listener_t
3239 } 3238 }
3240}; 3239};
3241 3240
3242class LLViewDefaultUISize : public view_listener_t
3243{
3244 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
3245 {
3246 gSavedSettings.setF32("UIScaleFactor", 1.0f);
3247 gSavedSettings.setBOOL("UIAutoScale", FALSE);
3248 gViewerWindow->reshape(gViewerWindow->getWindowDisplayWidth(), gViewerWindow->getWindowDisplayHeight());
3249 return true;
3250 }
3251};
3252
3253class LLEditDuplicate : public view_listener_t 3241class LLEditDuplicate : public view_listener_t
3254{ 3242{
3255 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 3243 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
@@ -5086,10 +5074,6 @@ class LLShowFloater : public view_listener_t
5086 { 5074 {
5087 LLFloaterPreference::show(NULL); 5075 LLFloaterPreference::show(NULL);
5088 } 5076 }
5089 else if (floater_name == "toolbar")
5090 {
5091 LLToolBar::toggle(NULL);
5092 }
5093 else if (floater_name == "chat history") 5077 else if (floater_name == "chat history")
5094 { 5078 {
5095 LLFloaterChat::toggleInstance(LLSD()); 5079 LLFloaterChat::toggleInstance(LLSD());
@@ -5222,10 +5206,6 @@ class LLFloaterVisible : public view_listener_t
5222 { 5206 {
5223 new_value = LLFloaterMyFriends::instanceVisible(0); 5207 new_value = LLFloaterMyFriends::instanceVisible(0);
5224 } 5208 }
5225 else if (floater_name == "toolbar")
5226 {
5227 new_value = LLToolBar::visible(NULL);
5228 }
5229 else if (floater_name == "chat history") 5209 else if (floater_name == "chat history")
5230 { 5210 {
5231 new_value = LLFloaterChat::instanceVisible(); 5211 new_value = LLFloaterChat::instanceVisible();
@@ -7229,25 +7209,6 @@ class LLViewCheckRenderType : public view_listener_t
7229 } 7209 }
7230}; 7210};
7231 7211
7232class LLViewShowHUDAttachments : public view_listener_t
7233{
7234 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7235 {
7236 LLPipeline::sShowHUDAttachments = !LLPipeline::sShowHUDAttachments;
7237 return true;
7238 }
7239};
7240
7241class LLViewCheckHUDAttachments : public view_listener_t
7242{
7243 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7244 {
7245 bool new_value = LLPipeline::sShowHUDAttachments;
7246 gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value);
7247 return true;
7248 }
7249};
7250
7251class LLEditEnableTakeOff : public view_listener_t 7212class LLEditEnableTakeOff : public view_listener_t
7252{ 7213{
7253 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 7214 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
@@ -9702,12 +9663,10 @@ void initialize_menus()
9702 addMenu(new LLViewToggleBeacon(), "View.ToggleBeacon"); 9663 addMenu(new LLViewToggleBeacon(), "View.ToggleBeacon");
9703 addMenu(new LLViewBeaconWidth(), "View.BeaconWidth"); 9664 addMenu(new LLViewBeaconWidth(), "View.BeaconWidth");
9704 addMenu(new LLViewToggleRenderType(), "View.ToggleRenderType"); 9665 addMenu(new LLViewToggleRenderType(), "View.ToggleRenderType");
9705 addMenu(new LLViewShowHUDAttachments(), "View.ShowHUDAttachments");
9706 addMenu(new LLViewZoomOut(), "View.ZoomOut"); 9666 addMenu(new LLViewZoomOut(), "View.ZoomOut");
9707 addMenu(new LLViewZoomIn(), "View.ZoomIn"); 9667 addMenu(new LLViewZoomIn(), "View.ZoomIn");
9708 addMenu(new LLViewZoomDefault(), "View.ZoomDefault"); 9668 addMenu(new LLViewZoomDefault(), "View.ZoomDefault");
9709 addMenu(new LLViewFullscreen(), "View.Fullscreen"); 9669 addMenu(new LLViewFullscreen(), "View.Fullscreen");
9710 addMenu(new LLViewDefaultUISize(), "View.DefaultUISize");
9711 9670
9712 addMenu(new LLViewEnableMouselook(), "View.EnableMouselook"); 9671 addMenu(new LLViewEnableMouselook(), "View.EnableMouselook");
9713 addMenu(new LLViewEnableLastChatter(), "View.EnableLastChatter"); 9672 addMenu(new LLViewEnableLastChatter(), "View.EnableLastChatter");
@@ -9718,7 +9677,6 @@ void initialize_menus()
9718 addMenu(new LLViewCheckHighlightTransparent(), "View.CheckHighlightTransparent"); 9677 addMenu(new LLViewCheckHighlightTransparent(), "View.CheckHighlightTransparent");
9719 addMenu(new LLViewCheckBeaconEnabled(), "View.CheckBeaconEnabled"); 9678 addMenu(new LLViewCheckBeaconEnabled(), "View.CheckBeaconEnabled");
9720 addMenu(new LLViewCheckRenderType(), "View.CheckRenderType"); 9679 addMenu(new LLViewCheckRenderType(), "View.CheckRenderType");
9721 addMenu(new LLViewCheckHUDAttachments(), "View.CheckHUDAttachments");
9722 9680
9723 // World menu 9681 // World menu
9724 addMenu(new LLWorldChat(), "World.Chat"); 9682 addMenu(new LLWorldChat(), "World.Chat");