aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-06-05 03:31:21 -0700
committerJacek Antonelli2010-06-19 02:43:30 -0500
commit0a77162d93c07ec0918251686f6b4050bd0b5c55 (patch)
tree842e1c98bbdd7e130f9672d575a013e267c04a18 /linden
parentfix: leftclick self attachment (without touch) should act like leftclick self (diff)
downloadmeta-impy-0a77162d93c07ec0918251686f6b4050bd0b5c55.zip
meta-impy-0a77162d93c07ec0918251686f6b4050bd0b5c55.tar.gz
meta-impy-0a77162d93c07ec0918251686f6b4050bd0b5c55.tar.bz2
meta-impy-0a77162d93c07ec0918251686f6b4050bd0b5c55.tar.xz
Applied patch by Armin Weatherwax for #79: move AllowIdleAFK from advanced to Preferences > General
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/app_settings/settings.xml2
-rw-r--r--linden/indra/newview/llappviewer.cpp2
-rw-r--r--linden/indra/newview/llpanelgeneral.cpp8
-rw-r--r--linden/indra/newview/llviewermenu.cpp27
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml7
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml4
6 files changed, 14 insertions, 36 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 85665cf..7ce768b 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -1171,7 +1171,7 @@
1171 <key>Type</key> 1171 <key>Type</key>
1172 <string>Boolean</string> 1172 <string>Boolean</string>
1173 <key>Value</key> 1173 <key>Value</key>
1174 <integer>1</integer> 1174 <integer>0</integer>
1175 </map> 1175 </map>
1176 <key>AllowMultipleViewers</key> 1176 <key>AllowMultipleViewers</key>
1177 <map> 1177 <map>
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index 821742c..bedb2a0 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -2307,8 +2307,6 @@ void LLAppViewer::cleanupSavedSettings()
2307 gSavedSettings.setBOOL("UseEnergy", TRUE); // force toggle to turn off, since sends message to simulator 2307 gSavedSettings.setBOOL("UseEnergy", TRUE); // force toggle to turn off, since sends message to simulator
2308 2308
2309 gSavedSettings.setBOOL("DebugWindowProc", gDebugWindowProc); 2309 gSavedSettings.setBOOL("DebugWindowProc", gDebugWindowProc);
2310
2311 gSavedSettings.setBOOL("AllowIdleAFK", gAllowIdleAFK);
2312 gSavedSettings.setBOOL("AllowTapTapHoldRun", gAllowTapTapHoldRun); 2310 gSavedSettings.setBOOL("AllowTapTapHoldRun", gAllowTapTapHoldRun);
2313 gSavedSettings.setBOOL("ShowObjectUpdates", gShowObjectUpdates); 2311 gSavedSettings.setBOOL("ShowObjectUpdates", gShowObjectUpdates);
2314 2312
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp
index 3e2a048..ecfe6a5 100644
--- a/linden/indra/newview/llpanelgeneral.cpp
+++ b/linden/indra/newview/llpanelgeneral.cpp
@@ -65,6 +65,7 @@ BOOL LLPanelGeneral::postBuild()
65 childSetValue("small_avatar_names_checkbox", gSavedSettings.getBOOL("SmallAvatarNames")); 65 childSetValue("small_avatar_names_checkbox", gSavedSettings.getBOOL("SmallAvatarNames"));
66 childSetValue("show_my_title_checkbox", gSavedSettings.getBOOL("RenderHideGroupTitle")); 66 childSetValue("show_my_title_checkbox", gSavedSettings.getBOOL("RenderHideGroupTitle"));
67 childSetValue("afk_timeout_spinner", gSavedSettings.getF32("AFKTimeout")); 67 childSetValue("afk_timeout_spinner", gSavedSettings.getF32("AFKTimeout"));
68 childSetValue("afk_timeout_checkbox", gSavedSettings.getBOOL("AllowIdleAFK"));
68 childSetValue("mini_map_notify_chat", gSavedSettings.getBOOL("MiniMapNotifyChatRange")); 69 childSetValue("mini_map_notify_chat", gSavedSettings.getBOOL("MiniMapNotifyChatRange"));
69 childSetValue("mini_map_notify_sim", gSavedSettings.getBOOL("MiniMapNotifySimRange")); 70 childSetValue("mini_map_notify_sim", gSavedSettings.getBOOL("MiniMapNotifySimRange"));
70 71
@@ -129,6 +130,7 @@ void LLPanelGeneral::apply()
129 gSavedSettings.setBOOL("SmallAvatarNames", childGetValue("small_avatar_names_checkbox")); 130 gSavedSettings.setBOOL("SmallAvatarNames", childGetValue("small_avatar_names_checkbox"));
130 gSavedSettings.setBOOL("RenderHideGroupTitle", childGetValue("show_my_title_checkbox")); 131 gSavedSettings.setBOOL("RenderHideGroupTitle", childGetValue("show_my_title_checkbox"));
131 gSavedSettings.setF32("AFKTimeout", childGetValue("afk_timeout_spinner").asReal()); 132 gSavedSettings.setF32("AFKTimeout", childGetValue("afk_timeout_spinner").asReal());
133 gSavedSettings.setBOOL("AllowIdleAFK", childGetValue("afk_timeout_checkbox"));
132 gSavedSettings.setBOOL("MiniMapNotifyChatRange", childGetValue("mini_map_notify_chat")); 134 gSavedSettings.setBOOL("MiniMapNotifyChatRange", childGetValue("mini_map_notify_chat"));
133 gSavedSettings.setBOOL("MiniMapNotifySimRange", childGetValue("mini_map_notify_sim")); 135 gSavedSettings.setBOOL("MiniMapNotifySimRange", childGetValue("mini_map_notify_sim"));
134 gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch")); 136 gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch"));
@@ -162,6 +164,12 @@ void LLPanelGeneral::apply()
162 gSavedSettings.setBOOL("LegacyPieEnabled", childGetValue("legacy_pie_menu_checkbox")); 164 gSavedSettings.setBOOL("LegacyPieEnabled", childGetValue("legacy_pie_menu_checkbox"));
163 build_pie_menus(); 165 build_pie_menus();
164 } 166 }
167
168 // Keep gAllowIdleAFK around for performance reasons -- MC
169 if (gAllowIdleAFK != (BOOL)childGetValue("afk_timeout_checkbox"))
170 {
171 gAllowIdleAFK = childGetValue("afk_timeout_checkbox");
172 }
165} 173}
166 174
167void LLPanelGeneral::cancel() 175void LLPanelGeneral::cancel()
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index f97fffd..ff6b7eb 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -1351,8 +1351,6 @@ void init_debug_avatar_menu(LLMenuGL* menu)
1351 menu->appendMenu(sub_menu); 1351 menu->appendMenu(sub_menu);
1352 1352
1353 sub_menu = new LLMenuGL("Character Tests"); 1353 sub_menu = new LLMenuGL("Character Tests");
1354 sub_menu->append(new LLMenuItemToggleGL("Go Away/AFK When Idle",
1355 &gAllowIdleAFK));
1356 1354
1357 sub_menu->append(new LLMenuItemCallGL("Appearance To XML", 1355 sub_menu->append(new LLMenuItemCallGL("Appearance To XML",
1358 &LLVOAvatar::dumpArchetypeXML)); 1356 &LLVOAvatar::dumpArchetypeXML));
@@ -9839,28 +9837,7 @@ class LLAdvancedEnableGrabBakedTexture : public view_listener_t
9839// ALLOW IDLE / AFK // 9837// ALLOW IDLE / AFK //
9840////////////////////// 9838//////////////////////
9841 9839
9842 9840//aw: moved to llpanelgeneral.cpp
9843class LLAdvancedToggleAllowIdleAFK : public view_listener_t
9844{
9845 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9846 {
9847 gAllowIdleAFK = !(gAllowIdleAFK);
9848 return true;
9849 }
9850};
9851
9852class LLAdvancedCheckAllowIdleAFK : public view_listener_t
9853{
9854 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
9855 {
9856 bool new_value = gAllowIdleAFK;
9857 std::string control_name = userdata["control"].asString();
9858 gMenuHolder->findControl(control_name)->setValue(new_value);
9859 return true;
9860 }
9861};
9862
9863
9864 9841
9865/////////////////////// 9842///////////////////////
9866// APPEARANCE TO XML // 9843// APPEARANCE TO XML //
@@ -11101,8 +11078,6 @@ void initialize_menus()
11101 addMenu(new LLAdvancedEnableGrabBakedTexture(), "Advanced.EnableGrabBakedTexture"); 11078 addMenu(new LLAdvancedEnableGrabBakedTexture(), "Advanced.EnableGrabBakedTexture");
11102 11079
11103 // Advanced > Character > Character Tests 11080 // Advanced > Character > Character Tests
11104 addMenu(new LLAdvancedToggleAllowIdleAFK(), "Advanced.ToggleAllowIdleAFK");
11105 addMenu(new LLAdvancedCheckAllowIdleAFK(), "Advanced.CheckAllowIdleAFK");
11106 addMenu(new LLAdvancedAppearanceToXML(), "Advanced.AppearanceToXML"); 11081 addMenu(new LLAdvancedAppearanceToXML(), "Advanced.AppearanceToXML");
11107 addMenu(new LLAdvancedToggleCharacterGeometry(), "Advanced.ToggleCharacterGeometry"); 11082 addMenu(new LLAdvancedToggleCharacterGeometry(), "Advanced.ToggleCharacterGeometry");
11108 addMenu(new LLAdvancedTestMale(), "Advanced.TestMale"); 11083 addMenu(new LLAdvancedTestMale(), "Advanced.TestMale");
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
index d5d21fb..f27c341 100644
--- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
@@ -1773,13 +1773,6 @@
1773 <!-- CHARACTER TESTS --> 1773 <!-- CHARACTER TESTS -->
1774 <menu name="Character Tests" drop_shadow="true" 1774 <menu name="Character Tests" drop_shadow="true"
1775 opaque="true" tear_off="true"> 1775 opaque="true" tear_off="true">
1776 <menu_item_check name="Go Away/AFK When Idle"
1777 label="Go Away/AFK When Idle">
1778 <on_click function="Advanced.ToggleAllowIdleAFK"
1779 userdata="" />
1780 <on_check function="Advanced.CheckAllowIdleAFK"
1781 userdata="" />
1782 </menu_item_check>
1783 <menu_item_call name="Appearance To XML" 1776 <menu_item_call name="Appearance To XML"
1784 label="Appearance To XML"> 1777 label="Appearance To XML">
1785 <on_click function="Advanced.ToggleAppearanceToXML" 1778 <on_click function="Advanced.ToggleAppearanceToXML"
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml
index 263a9e9..db7e487 100644
--- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml
@@ -83,6 +83,10 @@
83 font="SansSerifSmall" height="16" initial_value="false" 83 font="SansSerifSmall" height="16" initial_value="false"
84 label="Use resolution independent scale" left="151" mouse_opaque="true" 84 label="Use resolution independent scale" left="151" mouse_opaque="true"
85 name="ui_auto_scale" radio_style="false" width="256" /> 85 name="ui_auto_scale" radio_style="false" width="256" />
86 <check_box bottom="-260" enabled="true" follows="left|top"
87 font="SansSerifSmall" height="16" initial_value="false"
88 label="Go Away/AFK When Idle" left="330" mouse_opaque="true"
89 name="afk_timeout_checkbox" radio_style="false" width="256" />
86 <spinner bottom="-260" decimal_digits="0" enabled="true" 90 <spinner bottom="-260" decimal_digits="0" enabled="true"
87 follows="left|top" height="16" increment="1" initial_val="300" 91 follows="left|top" height="16" increment="1" initial_val="300"
88 label="Away Timeout:" label_width="141" left="10" max_val="600" 92 label="Away Timeout:" label_width="141" left="10" max_val="600"