diff options
author | Patrick Sapinski | 2010-09-01 00:52:51 -0400 |
---|---|---|
committer | McCabe Maxsted | 2010-08-31 23:40:20 -0700 |
commit | 3e1f8f058a32f00320e560480dc93b62a3ce7619 (patch) | |
tree | 4a0cb75f047cd68c54e32f5b6bc14f63dc77c476 /linden/indra/newview/llprefschat.cpp | |
parent | Changed dictionary links from modularsystems.sl to imprudenceviewer.org (diff) | |
download | meta-impy-3e1f8f058a32f00320e560480dc93b62a3ce7619.zip meta-impy-3e1f8f058a32f00320e560480dc93b62a3ce7619.tar.gz meta-impy-3e1f8f058a32f00320e560480dc93b62a3ce7619.tar.bz2 meta-impy-3e1f8f058a32f00320e560480dc93b62a3ce7619.tar.xz |
automatic translation feature
Diffstat (limited to 'linden/indra/newview/llprefschat.cpp')
-rw-r--r-- | linden/indra/newview/llprefschat.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linden/indra/newview/llprefschat.cpp b/linden/indra/newview/llprefschat.cpp index 2e08cac..b4614b8 100644 --- a/linden/indra/newview/llprefschat.cpp +++ b/linden/indra/newview/llprefschat.cpp | |||
@@ -76,6 +76,8 @@ private: | |||
76 | BOOL mChatChannel; | 76 | BOOL mChatChannel; |
77 | F32 mConsoleOpacity; | 77 | F32 mConsoleOpacity; |
78 | F32 mBubbleOpacity; | 78 | F32 mBubbleOpacity; |
79 | std::string mTranslateLanguage; | ||
80 | BOOL mTranslateChat; | ||
79 | }; | 81 | }; |
80 | 82 | ||
81 | LLPrefsChatImpl::LLPrefsChatImpl() | 83 | LLPrefsChatImpl::LLPrefsChatImpl() |
@@ -110,6 +112,8 @@ LLPrefsChatImpl::LLPrefsChatImpl() | |||
110 | childSetValue("toggle_channel_control", gSavedSettings.getBOOL("ChatChannelSelect")); | 112 | childSetValue("toggle_channel_control", gSavedSettings.getBOOL("ChatChannelSelect")); |
111 | childSetValue("console_opacity", gSavedSettings.getF32("ConsoleBackgroundOpacity")); | 113 | childSetValue("console_opacity", gSavedSettings.getF32("ConsoleBackgroundOpacity")); |
112 | childSetValue("bubble_chat_opacity", gSavedSettings.getF32("ChatBubbleOpacity")); | 114 | childSetValue("bubble_chat_opacity", gSavedSettings.getF32("ChatBubbleOpacity")); |
115 | childSetValue("translate_language_combobox", gSavedSettings.getString("TranslateLanguage")); | ||
116 | childSetValue("translate_chat", gSavedSettings.getBOOL("TranslateChat")); | ||
113 | } | 117 | } |
114 | 118 | ||
115 | void LLPrefsChatImpl::refreshValues() | 119 | void LLPrefsChatImpl::refreshValues() |
@@ -137,6 +141,8 @@ void LLPrefsChatImpl::refreshValues() | |||
137 | mChatChannel = gSavedSettings.getBOOL("ChatChannelSelect"); | 141 | mChatChannel = gSavedSettings.getBOOL("ChatChannelSelect"); |
138 | mConsoleOpacity = gSavedSettings.getF32("ConsoleBackgroundOpacity"); | 142 | mConsoleOpacity = gSavedSettings.getF32("ConsoleBackgroundOpacity"); |
139 | mBubbleOpacity = gSavedSettings.getF32("ChatBubbleOpacity"); | 143 | mBubbleOpacity = gSavedSettings.getF32("ChatBubbleOpacity"); |
144 | mTranslateLanguage = gSavedSettings.getString("TranslateLanguage"); | ||
145 | mTranslateChat = gSavedSettings.getBOOL("TranslateChat"); | ||
140 | } | 146 | } |
141 | 147 | ||
142 | void LLPrefsChatImpl::cancel() | 148 | void LLPrefsChatImpl::cancel() |
@@ -163,6 +169,8 @@ void LLPrefsChatImpl::cancel() | |||
163 | gSavedSettings.setBOOL("ChatChannelSelect", mChatChannel); | 169 | gSavedSettings.setBOOL("ChatChannelSelect", mChatChannel); |
164 | gSavedSettings.setF32("ConsoleBackgroundOpacity", mConsoleOpacity); | 170 | gSavedSettings.setF32("ConsoleBackgroundOpacity", mConsoleOpacity); |
165 | gSavedSettings.setF32("ChatBubbleOpacity", mBubbleOpacity); | 171 | gSavedSettings.setF32("ChatBubbleOpacity", mBubbleOpacity); |
172 | gSavedSettings.setString("TranslateLanguage", mTranslateLanguage); | ||
173 | gSavedSettings.setBOOL("TranslateChat", mTranslateChat); | ||
166 | } | 174 | } |
167 | 175 | ||
168 | void LLPrefsChatImpl::apply() | 176 | void LLPrefsChatImpl::apply() |
@@ -194,6 +202,9 @@ void LLPrefsChatImpl::apply() | |||
194 | gSavedSettings.setF32("ConsoleBackgroundOpacity", childGetValue("console_opacity").asReal()); | 202 | gSavedSettings.setF32("ConsoleBackgroundOpacity", childGetValue("console_opacity").asReal()); |
195 | gSavedSettings.setF32("ChatBubbleOpacity", childGetValue("bubble_chat_opacity").asReal()); | 203 | gSavedSettings.setF32("ChatBubbleOpacity", childGetValue("bubble_chat_opacity").asReal()); |
196 | 204 | ||
205 | gSavedSettings.setString("TranslateLanguage", childGetValue("translate_language_combobox")); | ||
206 | gSavedSettings.setBOOL("TranslateChat", childGetValue("translate_chat")); | ||
207 | |||
197 | BOOL chan_check = childGetValue("toggle_channel_control"); | 208 | BOOL chan_check = childGetValue("toggle_channel_control"); |
198 | gSavedSettings.setBOOL("ChatChannelSelect", chan_check); | 209 | gSavedSettings.setBOOL("ChatChannelSelect", chan_check); |
199 | if (mChatChannel != chan_check) | 210 | if (mChatChannel != chan_check) |