aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/impprefsfonts.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-05-03 18:09:28 -0700
committerMcCabe Maxsted2011-05-04 15:21:09 -0700
commitcc8e7060dfb54900f1600965a78c6f6f9fc564c4 (patch)
tree9b23e53ace5696db2c78867582308f38cba19d71 /linden/indra/newview/impprefsfonts.cpp
parentBackported crash fix in llhudeffectlookat from gpl'd viewer 2 (diff)
downloadmeta-impy-cc8e7060dfb54900f1600965a78c6f6f9fc564c4.zip
meta-impy-cc8e7060dfb54900f1600965a78c6f6f9fc564c4.tar.gz
meta-impy-cc8e7060dfb54900f1600965a78c6f6f9fc564c4.tar.bz2
meta-impy-cc8e7060dfb54900f1600965a78c6f6f9fc564c4.tar.xz
Besides the numerous label and organizational changes, here are the main points
* Moved numerous options out of the Advanced panel * Moved numerous options out of the General panel * Combined the Network and Web Browser panels * Combined IM, Chat, and Spell checking preferences * Combined 'Show timestamps in IMs' and 'Show timestamps in Local Chat' to one ShowTimestamps setting * Removed UI for 'hide my own group title'. This can still be set in the debug settings * Renamed Popups > Notifications * Renamed Chat Colors > Colors * Renamed 'IMs and Logging' to 'Logging and Privacy' * Moved Colors next to Skins * Added style guide to the top of every preferences panel xui
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/impprefsfonts.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/linden/indra/newview/impprefsfonts.cpp b/linden/indra/newview/impprefsfonts.cpp
index a4dcd34..505761b 100644
--- a/linden/indra/newview/impprefsfonts.cpp
+++ b/linden/indra/newview/impprefsfonts.cpp
@@ -51,6 +51,10 @@ ImpPrefsFonts::~ImpPrefsFonts()
51 51
52BOOL ImpPrefsFonts::postBuild() 52BOOL ImpPrefsFonts::postBuild()
53{ 53{
54 childSetValue("ui_scale_slider", gSavedSettings.getF32("UIScaleFactor"));
55 childSetValue("ui_auto_scale", gSavedSettings.getBOOL("UIAutoScale"));
56 childSetAction("reset_ui_size", onClickResetUISize, this);
57
54 refresh(); 58 refresh();
55 return true; 59 return true;
56} 60}
@@ -79,6 +83,9 @@ void ImpPrefsFonts::refresh()
79 83
80void ImpPrefsFonts::apply() 84void ImpPrefsFonts::apply()
81{ 85{
86 gSavedSettings.setF32("UIScaleFactor", childGetValue("ui_scale_slider").asReal());
87 gSavedSettings.setBOOL("UIAutoScale", childGetValue("ui_auto_scale"));
88
82 bool changed = false; 89 bool changed = false;
83 90
84 LLRadioGroup* fonts = getChild<LLRadioGroup>("fonts"); 91 LLRadioGroup* fonts = getChild<LLRadioGroup>("fonts");
@@ -126,3 +133,11 @@ void ImpPrefsFonts::apply()
126void ImpPrefsFonts::cancel() 133void ImpPrefsFonts::cancel()
127{ 134{
128} 135}
136
137// static
138void ImpPrefsFonts::onClickResetUISize(void* user_data)
139{
140 ImpPrefsFonts* self = (ImpPrefsFonts*)user_data;
141 F32 def = gSavedSettings.getControl("UIScaleFactor")->getDefault().asReal();
142 self->childSetValue("ui_scale_slider", def);
143}