aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgeneral.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-07-30 17:08:24 -0700
committerMcCabe Maxsted2010-07-30 17:08:24 -0700
commitc5b42b7e783743203d08cc69ac922431cfd58e4d (patch)
tree3125fd9590c3400d87481188aaab50de4b71650b /linden/indra/newview/llpanelgeneral.cpp
parentDon't play typing anim when using a default channel other than 0 (diff)
downloadmeta-impy-c5b42b7e783743203d08cc69ac922431cfd58e4d.zip
meta-impy-c5b42b7e783743203d08cc69ac922431cfd58e4d.tar.gz
meta-impy-c5b42b7e783743203d08cc69ac922431cfd58e4d.tar.bz2
meta-impy-c5b42b7e783743203d08cc69ac922431cfd58e4d.tar.xz
Added option in Preferences > General for setting the default time to 12 hour/24 hour/UTC. Side effects: moved crash logger settings to advanced prefs, fixed french date translations, past/future dates and times still need to be correctly formatted
Diffstat (limited to 'linden/indra/newview/llpanelgeneral.cpp')
-rw-r--r--linden/indra/newview/llpanelgeneral.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp
index 07c81fd..14b3dc1 100644
--- a/linden/indra/newview/llpanelgeneral.cpp
+++ b/linden/indra/newview/llpanelgeneral.cpp
@@ -46,6 +46,7 @@
46#include "llagent.h" 46#include "llagent.h"
47#include "llpanellogin.h" 47#include "llpanellogin.h"
48#include "llviewerregion.h" 48#include "llviewerregion.h"
49#include "viewertime.h"
49 50
50LLPanelGeneral::LLPanelGeneral() 51LLPanelGeneral::LLPanelGeneral()
51{ 52{
@@ -100,8 +101,8 @@ BOOL LLPanelGeneral::postBuild()
100 childSetValue("ui_scale_slider", gSavedSettings.getF32("UIScaleFactor")); 101 childSetValue("ui_scale_slider", gSavedSettings.getF32("UIScaleFactor"));
101 childSetValue("ui_auto_scale", gSavedSettings.getBOOL("UIAutoScale")); 102 childSetValue("ui_auto_scale", gSavedSettings.getBOOL("UIAutoScale"));
102 103
103 LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox"); 104 LLComboBox* time_combobox = getChild<LLComboBox>("time_combobox");
104 crash_behavior_combobox->setCurrentByIndex(gCrashSettings.getS32(CRASH_BEHAVIOR_SETTING)); 105 time_combobox->setCurrentByIndex(gSavedSettings.getU32("TimeFormat"));
105 106
106 childSetValue("language_combobox", gSavedSettings.getString("Language")); 107 childSetValue("language_combobox", gSavedSettings.getString("Language"));
107 108
@@ -171,8 +172,9 @@ void LLPanelGeneral::apply()
171 gSavedSettings.setBOOL("UIAutoScale", childGetValue("ui_auto_scale")); 172 gSavedSettings.setBOOL("UIAutoScale", childGetValue("ui_auto_scale"));
172 gSavedSettings.setString("Language", childGetValue("language_combobox")); 173 gSavedSettings.setString("Language", childGetValue("language_combobox"));
173 174
174 LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox"); 175 LLComboBox* time_combobox = getChild<LLComboBox>("time_combobox");
175 gCrashSettings.setS32(CRASH_BEHAVIOR_SETTING, crash_behavior_combobox->getCurrentIndex()); 176 gSavedSettings.setU32("TimeFormat", time_combobox->getCurrentIndex());
177 gViewerTime->updateTimeFormat(time_combobox->getCurrentIndex());
176 178
177 // if we have no agent, we can't let them choose anything 179 // if we have no agent, we can't let them choose anything
178 // if we have an agent, then we only let them choose if they have a choice 180 // if we have an agent, then we only let them choose if they have a choice