aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgeneral.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llpanelgeneral.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelgeneral.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp
index 5831ed1..2c68e9a 100644
--- a/linden/indra/newview/llpanelgeneral.cpp
+++ b/linden/indra/newview/llpanelgeneral.cpp
@@ -101,13 +101,14 @@ LLPanelGeneral::LLPanelGeneral()
101BOOL LLPanelGeneral::postBuild() 101BOOL LLPanelGeneral::postBuild()
102{ 102{
103 requires("location_combobox", WIDGET_TYPE_COMBO_BOX); 103 requires("location_combobox", WIDGET_TYPE_COMBO_BOX);
104 requires("region_name_prompt", WIDGET_TYPE_TEXT_BOX);
105 requires("show_location_checkbox", WIDGET_TYPE_CHECKBOX); 104 requires("show_location_checkbox", WIDGET_TYPE_CHECKBOX);
106 requires("fade_out_radio", WIDGET_TYPE_RADIO_GROUP); 105 requires("fade_out_radio", WIDGET_TYPE_RADIO_GROUP);
107 requires("show_my_name_checkbox", WIDGET_TYPE_CHECKBOX); 106 requires("show_my_name_checkbox", WIDGET_TYPE_CHECKBOX);
108 requires("show_my_title_checkbox", WIDGET_TYPE_CHECKBOX); 107 requires("show_my_title_checkbox", WIDGET_TYPE_CHECKBOX);
109 requires("small_avatar_names_checkbox", WIDGET_TYPE_CHECKBOX); 108 requires("small_avatar_names_checkbox", WIDGET_TYPE_CHECKBOX);
110 requires("effect_color_swatch", WIDGET_TYPE_COLOR_SWATCH); 109 requires("effect_color_swatch", WIDGET_TYPE_COLOR_SWATCH);
110 requires("UI Scale", WIDGET_TYPE_SLIDER);
111 requires("ui_auto_scale", WIDGET_TYPE_CHECKBOX);
111 requires("afk_timeout_spinner", WIDGET_TYPE_SPINNER); 112 requires("afk_timeout_spinner", WIDGET_TYPE_SPINNER);
112 requires("rotate_mini_map_checkbox", WIDGET_TYPE_CHECKBOX); 113 requires("rotate_mini_map_checkbox", WIDGET_TYPE_CHECKBOX);
113 requires("friends_online_notify_checkbox", WIDGET_TYPE_CHECKBOX); 114 requires("friends_online_notify_checkbox", WIDGET_TYPE_CHECKBOX);
@@ -120,7 +121,7 @@ BOOL LLPanelGeneral::postBuild()
120 return FALSE; 121 return FALSE;
121 } 122 }
122 123
123 LLString region_name_prompt = childGetText("region_name_prompt"); 124 LLString region_name_prompt = getString("region_name_prompt");
124 125
125 126
126 // location combobox 127 // location combobox
@@ -206,6 +207,10 @@ void LLPanelGeneral::refresh()
206 mNotifyMoney = gSavedSettings.getBOOL("NotifyMoneyChange"); 207 mNotifyMoney = gSavedSettings.getBOOL("NotifyMoneyChange");
207 mUseDefaultColor = gSavedSettings.getBOOL("UseDefaultColorPicker"); 208 mUseDefaultColor = gSavedSettings.getBOOL("UseDefaultColorPicker");
208 mEffectColor = gSavedSettings.getColor4("EffectColor"); 209 mEffectColor = gSavedSettings.getColor4("EffectColor");
210 mShowSearch = gSavedSettings.getBOOL("ShowSearchBar");
211
212 mUIScaleFactor = gSavedSettings.getF32("UIScaleFactor");
213 mUIAutoScale = gSavedSettings.getBOOL("UIAutoScale");
209 214
210 mLanguage = gSavedSettings.getString("Language"); 215 mLanguage = gSavedSettings.getString("Language");
211} 216}
@@ -225,7 +230,10 @@ void LLPanelGeneral::cancel()
225 gSavedSettings.setBOOL("MiniMapRotate", mMiniMapRotate ); 230 gSavedSettings.setBOOL("MiniMapRotate", mMiniMapRotate );
226 gSavedSettings.setBOOL("NotifyMoneyChange", mNotifyMoney ); 231 gSavedSettings.setBOOL("NotifyMoneyChange", mNotifyMoney );
227 gSavedSettings.setBOOL("UseDefaultColorPicker", mUseDefaultColor ); 232 gSavedSettings.setBOOL("UseDefaultColorPicker", mUseDefaultColor );
233 gSavedSettings.setBOOL("ShowSearchBar", mShowSearch);
228 gSavedSettings.setColor4("EffectColor", mEffectColor ); 234 gSavedSettings.setColor4("EffectColor", mEffectColor );
235 gSavedSettings.setF32("UIScaleFactor", mUIScaleFactor);
236 gSavedSettings.setBOOL("UIAutoScale", mUIAutoScale);
229 gSavedSettings.setString("Language", mLanguage); 237 gSavedSettings.setString("Language", mLanguage);
230 238
231 LLURLSimString::setString(mLoginLocation); 239 LLURLSimString::setString(mLoginLocation);