diff options
author | McCabe Maxsted | 2010-11-05 17:10:28 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-11-05 17:10:44 -0700 |
commit | adbffe79b6b2794e647f6259132f5d64e1e93ea0 (patch) | |
tree | ff85412dc3add757a3c0e3074038b3c2ae12e2c4 /linden/indra | |
parent | IMP-592: Extend login screen menu bar till the top of the window. (diff) | |
download | meta-impy-adbffe79b6b2794e647f6259132f5d64e1e93ea0.zip meta-impy-adbffe79b6b2794e647f6259132f5d64e1e93ea0.tar.gz meta-impy-adbffe79b6b2794e647f6259132f5d64e1e93ea0.tar.bz2 meta-impy-adbffe79b6b2794e647f6259132f5d64e1e93ea0.tar.xz |
Created new preferences panel to handle chat colors and name highlighting (removes the 'Extras' panel from Prefs > Advanced and moves the color options from 'Text Chat')
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/CMakeLists.txt | 2 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterpreference.cpp | 14 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterpreference.h | 2 | ||||
-rw-r--r-- | linden/indra/newview/llprefsadvanced.cpp | 27 | ||||
-rw-r--r-- | linden/indra/newview/llprefschat.cpp | 51 | ||||
-rw-r--r-- | linden/indra/newview/llprefscolors.cpp | 180 | ||||
-rw-r--r-- | linden/indra/newview/llprefscolors.h | 67 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml | 51 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml | 246 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml | 115 |
10 files changed, 478 insertions, 277 deletions
diff --git a/linden/indra/newview/CMakeLists.txt b/linden/indra/newview/CMakeLists.txt index e3a1745..a4d99f2 100644 --- a/linden/indra/newview/CMakeLists.txt +++ b/linden/indra/newview/CMakeLists.txt | |||
@@ -333,6 +333,7 @@ set(viewer_SOURCE_FILES | |||
333 | llpolymorph.cpp | 333 | llpolymorph.cpp |
334 | llprefsadvanced.cpp | 334 | llprefsadvanced.cpp |
335 | llprefschat.cpp | 335 | llprefschat.cpp |
336 | llprefscolors.cpp | ||
336 | llprefsim.cpp | 337 | llprefsim.cpp |
337 | llprefsvoice.cpp | 338 | llprefsvoice.cpp |
338 | llpreviewanim.cpp | 339 | llpreviewanim.cpp |
@@ -790,6 +791,7 @@ set(viewer_HEADER_FILES | |||
790 | llpolymorph.h | 791 | llpolymorph.h |
791 | llprefsadvanced.h | 792 | llprefsadvanced.h |
792 | llprefschat.h | 793 | llprefschat.h |
794 | llprefscolors.h | ||
793 | llprefsim.h | 795 | llprefsim.h |
794 | llprefsvoice.h | 796 | llprefsvoice.h |
795 | llpreview.h | 797 | llpreview.h |
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp index b740725..906cf11 100644 --- a/linden/indra/newview/llfloaterpreference.cpp +++ b/linden/indra/newview/llfloaterpreference.cpp | |||
@@ -64,6 +64,7 @@ | |||
64 | #include "llpanelskins.h" | 64 | #include "llpanelskins.h" |
65 | #include "llprefsadvanced.h" | 65 | #include "llprefsadvanced.h" |
66 | #include "llprefschat.h" | 66 | #include "llprefschat.h" |
67 | #include "llprefscolors.h" | ||
67 | #include "llprefsvoice.h" | 68 | #include "llprefsvoice.h" |
68 | #include "llprefsim.h" | 69 | #include "llprefsim.h" |
69 | #include "llresizehandle.h" | 70 | #include "llresizehandle.h" |
@@ -133,6 +134,7 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
133 | mAudioPanel(NULL), | 134 | mAudioPanel(NULL), |
134 | mMsgPanel(NULL), | 135 | mMsgPanel(NULL), |
135 | mSkinsPanel(NULL), | 136 | mSkinsPanel(NULL), |
137 | mPrefsColors(NULL), | ||
136 | mLCDPanel(NULL), | 138 | mLCDPanel(NULL), |
137 | mPrefsFonts(NULL), | 139 | mPrefsFonts(NULL), |
138 | mPrefsAdvanced(NULL) | 140 | mPrefsAdvanced(NULL) |
@@ -190,6 +192,10 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
190 | mMsgPanel = new LLPanelMsgs(); | 192 | mMsgPanel = new LLPanelMsgs(); |
191 | mTabContainer->addTabPanel(mMsgPanel, mMsgPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 193 | mTabContainer->addTabPanel(mMsgPanel, mMsgPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
192 | mMsgPanel->setDefaultBtn(default_btn); | 194 | mMsgPanel->setDefaultBtn(default_btn); |
195 | |||
196 | mPrefsColors = new LLPrefsColors(); | ||
197 | mTabContainer->addTabPanel(mPrefsColors, mPrefsColors->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
198 | mPrefsColors->setDefaultBtn(default_btn); | ||
193 | 199 | ||
194 | mSkinsPanel = new LLPanelSkins(); | 200 | mSkinsPanel = new LLPanelSkins(); |
195 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 201 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
@@ -272,7 +278,11 @@ LLPreferenceCore::~LLPreferenceCore() | |||
272 | delete mPrefsFonts; | 278 | delete mPrefsFonts; |
273 | mPrefsFonts = NULL; | 279 | mPrefsFonts = NULL; |
274 | } | 280 | } |
275 | 281 | if (mPrefsColors) | |
282 | { | ||
283 | delete mPrefsColors; | ||
284 | mPrefsColors = NULL; | ||
285 | } | ||
276 | } | 286 | } |
277 | 287 | ||
278 | 288 | ||
@@ -290,6 +300,7 @@ void LLPreferenceCore::apply() | |||
290 | mSkinsPanel->apply(); | 300 | mSkinsPanel->apply(); |
291 | mPrefsAdvanced->apply(); | 301 | mPrefsAdvanced->apply(); |
292 | mPrefsFonts->apply(); | 302 | mPrefsFonts->apply(); |
303 | mPrefsColors->apply(); | ||
293 | 304 | ||
294 | // hardware menu apply | 305 | // hardware menu apply |
295 | LLFloaterHardwareSettings::instance()->apply(); | 306 | LLFloaterHardwareSettings::instance()->apply(); |
@@ -320,6 +331,7 @@ void LLPreferenceCore::cancel() | |||
320 | mSkinsPanel->cancel(); | 331 | mSkinsPanel->cancel(); |
321 | mPrefsAdvanced->cancel(); | 332 | mPrefsAdvanced->cancel(); |
322 | mPrefsFonts->cancel(); | 333 | mPrefsFonts->cancel(); |
334 | mPrefsColors->cancel(); | ||
323 | 335 | ||
324 | // cancel hardware menu | 336 | // cancel hardware menu |
325 | LLFloaterHardwareSettings::instance()->cancel(); | 337 | LLFloaterHardwareSettings::instance()->cancel(); |
diff --git a/linden/indra/newview/llfloaterpreference.h b/linden/indra/newview/llfloaterpreference.h index e98c45c..c52f541 100644 --- a/linden/indra/newview/llfloaterpreference.h +++ b/linden/indra/newview/llfloaterpreference.h | |||
@@ -57,6 +57,7 @@ class LLPanelMsgs; | |||
57 | class LLPanelSkins; | 57 | class LLPanelSkins; |
58 | class LLPrefsAdvanced; | 58 | class LLPrefsAdvanced; |
59 | class ImpPrefsFonts; | 59 | class ImpPrefsFonts; |
60 | class LLPrefsColors; | ||
60 | class LLScrollListCtrl; | 61 | class LLScrollListCtrl; |
61 | 62 | ||
62 | class LLPreferenceCore | 63 | class LLPreferenceCore |
@@ -94,6 +95,7 @@ private: | |||
94 | LLPanelMsgs *mMsgPanel; | 95 | LLPanelMsgs *mMsgPanel; |
95 | LLPanelLCD *mLCDPanel; | 96 | LLPanelLCD *mLCDPanel; |
96 | LLPrefsAdvanced *mPrefsAdvanced; | 97 | LLPrefsAdvanced *mPrefsAdvanced; |
98 | LLPrefsColors *mPrefsColors; | ||
97 | ImpPrefsFonts* mPrefsFonts; | 99 | ImpPrefsFonts* mPrefsFonts; |
98 | }; | 100 | }; |
99 | 101 | ||
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp index aa62b34..99bc4fd 100644 --- a/linden/indra/newview/llprefsadvanced.cpp +++ b/linden/indra/newview/llprefsadvanced.cpp | |||
@@ -116,15 +116,6 @@ BOOL LLPrefsAdvanced::postBuild() | |||
116 | 116 | ||
117 | initHelpBtn("EmeraldHelp_SpellCheck", "EmeraldHelp_SpellCheck"); | 117 | initHelpBtn("EmeraldHelp_SpellCheck", "EmeraldHelp_SpellCheck"); |
118 | 118 | ||
119 | childSetValue("HighlightOwnNameInIM", gSavedSettings.getBOOL("HighlightOwnNameInIM")); | ||
120 | childSetValue("HighlightFriendsChat", gSavedSettings.getBOOL("HighlightFriendsChat")); | ||
121 | getChild<LLColorSwatchCtrl>("FriendsChatColor")->set(gSavedSettings.getColor4("FriendsChatColor")); | ||
122 | childSetValue("HighlightOwnNameInChat", gSavedSettings.getBOOL("HighlightOwnNameInChat")); | ||
123 | getChild<LLColorSwatchCtrl>("OwnNameChatColor")->set(gSavedSettings.getColor4("OwnNameChatColor")); | ||
124 | childSetValue("nick01", gSavedSettings.getString("nick01")); | ||
125 | childSetValue("nick02", gSavedSettings.getString("nick02")); | ||
126 | childSetValue("nick03", gSavedSettings.getString("nick03")); | ||
127 | |||
128 | refresh(); | 119 | refresh(); |
129 | 120 | ||
130 | return TRUE; | 121 | return TRUE; |
@@ -147,24 +138,6 @@ void LLPrefsAdvanced::apply() | |||
147 | gSavedSettings.setU32("LightShareAllowed", | 138 | gSavedSettings.setU32("LightShareAllowed", |
148 | (U32)childGetValue("lightshare_combo").asInteger()); | 139 | (U32)childGetValue("lightshare_combo").asInteger()); |
149 | 140 | ||
150 | gSavedSettings.setBOOL("HighlightOwnNameInIM", childGetValue("HighlightOwnNameInIM")); | ||
151 | gSavedSettings.setBOOL("HighlightFriendsChat", childGetValue("HighlightFriendsChat")); | ||
152 | gSavedSettings.setColor4("FriendsChatColor", getChild<LLColorSwatchCtrl>("FriendsChatColor")->get()); | ||
153 | gSavedSettings.setBOOL("HighlightOwnNameInChat", childGetValue("HighlightOwnNameInChat")); | ||
154 | gSavedSettings.setColor4("OwnNameChatColor", getChild<LLColorSwatchCtrl>("OwnNameChatColor")->get()); | ||
155 | |||
156 | std::string nick01 = childGetValue("nick01"); | ||
157 | boost::trim(nick01); | ||
158 | gSavedSettings.setString("nick01", nick01); | ||
159 | |||
160 | std::string nick02 = childGetValue("nick02"); | ||
161 | boost::trim(nick02); | ||
162 | gSavedSettings.setString("nick02", nick02); | ||
163 | |||
164 | std::string nick03 = childGetValue("nick03"); | ||
165 | boost::trim(nick03); | ||
166 | gSavedSettings.setString("nick03", nick03); | ||
167 | |||
168 | // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC | 141 | // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC |
169 | if (gSavedSettings.getBOOL("ShowMyClientTagToOthers") != (BOOL)childGetValue("client_name_tag_broadcast_check")) | 142 | if (gSavedSettings.getBOOL("ShowMyClientTagToOthers") != (BOOL)childGetValue("client_name_tag_broadcast_check")) |
170 | { | 143 | { |
diff --git a/linden/indra/newview/llprefschat.cpp b/linden/indra/newview/llprefschat.cpp index 8d704d5..5f74a25 100644 --- a/linden/indra/newview/llprefschat.cpp +++ b/linden/indra/newview/llprefschat.cpp | |||
@@ -36,10 +36,8 @@ | |||
36 | #include "llchatbar.h" | 36 | #include "llchatbar.h" |
37 | #include "llfloaterchat.h" | 37 | #include "llfloaterchat.h" |
38 | #include "llprefschat.h" | 38 | #include "llprefschat.h" |
39 | #include "lltexteditor.h" | ||
40 | #include "llviewercontrol.h" | 39 | #include "llviewercontrol.h" |
41 | #include "lluictrlfactory.h" | 40 | #include "lluictrlfactory.h" |
42 | #include "llcolorswatch.h" | ||
43 | #include "llradiogroup.h" | 41 | #include "llradiogroup.h" |
44 | #include "llstylemap.h" | 42 | #include "llstylemap.h" |
45 | 43 | ||
@@ -57,15 +55,6 @@ private: | |||
57 | S32 mChatSize; | 55 | S32 mChatSize; |
58 | F32 mChatPersist; | 56 | F32 mChatPersist; |
59 | S32 mChatMaxLines; | 57 | S32 mChatMaxLines; |
60 | LLColor4 mSystemChatColor; | ||
61 | LLColor4 mUserChatColor; | ||
62 | LLColor4 mAgentChatColor; | ||
63 | LLColor4 mIMChatColor; | ||
64 | LLColor4 mObjectChatColor; | ||
65 | LLColor4 mOwnerSayChatColor; | ||
66 | LLColor4 mBGChatColor; | ||
67 | LLColor4 mScriptErrorColor; | ||
68 | LLColor4 mHTMLLinkColor; | ||
69 | BOOL mChatFullWidth; | 58 | BOOL mChatFullWidth; |
70 | BOOL mCloseChatOnReturn; | 59 | BOOL mCloseChatOnReturn; |
71 | BOOL mArrowKeysMoveAvatar; | 60 | BOOL mArrowKeysMoveAvatar; |
@@ -92,16 +81,6 @@ LLPrefsChatImpl::LLPrefsChatImpl() | |||
92 | childSetValue("fade_chat_time", gSavedSettings.getF32("ChatPersistTime")); | 81 | childSetValue("fade_chat_time", gSavedSettings.getF32("ChatPersistTime")); |
93 | childSetValue("max_chat_count", gSavedSettings.getS32("ConsoleMaxLines")); | 82 | childSetValue("max_chat_count", gSavedSettings.getS32("ConsoleMaxLines")); |
94 | 83 | ||
95 | getChild<LLColorSwatchCtrl>("system")->set(gSavedSettings.getColor4("SystemChatColor")); | ||
96 | getChild<LLColorSwatchCtrl>("user")->set(gSavedSettings.getColor4("UserChatColor")); | ||
97 | getChild<LLColorSwatchCtrl>("agent")->set(gSavedSettings.getColor4("AgentChatColor")); | ||
98 | getChild<LLColorSwatchCtrl>("im")->set(gSavedSettings.getColor4("IMChatColor")); | ||
99 | getChild<LLColorSwatchCtrl>("script_error")->set(gSavedSettings.getColor4("ScriptErrorColor")); | ||
100 | getChild<LLColorSwatchCtrl>("objects")->set(gSavedSettings.getColor4("ObjectChatColor")); | ||
101 | getChild<LLColorSwatchCtrl>("owner")->set(gSavedSettings.getColor4("llOwnerSayChatColor")); | ||
102 | getChild<LLColorSwatchCtrl>("background")->set(gSavedSettings.getColor4("BackgroundChatColor")); | ||
103 | getChild<LLColorSwatchCtrl>("links")->set(gSavedSettings.getColor4("HTMLLinkColor")); | ||
104 | |||
105 | childSetValue("arrow_keys_move_avatar_check", gSavedSettings.getBOOL("ArrowKeysMoveAvatar")); | 84 | childSetValue("arrow_keys_move_avatar_check", gSavedSettings.getBOOL("ArrowKeysMoveAvatar")); |
106 | childSetValue("show_timestamps_check", gSavedSettings.getBOOL("ChatShowTimestamps")); | 85 | childSetValue("show_timestamps_check", gSavedSettings.getBOOL("ChatShowTimestamps")); |
107 | childSetValue("script_errors_as_chat", gSavedSettings.getBOOL("ScriptErrorsAsChat")); | 86 | childSetValue("script_errors_as_chat", gSavedSettings.getBOOL("ScriptErrorsAsChat")); |
@@ -124,15 +103,6 @@ void LLPrefsChatImpl::refreshValues() | |||
124 | mChatSize = gSavedSettings.getS32("ChatFontSize"); | 103 | mChatSize = gSavedSettings.getS32("ChatFontSize"); |
125 | mChatPersist = gSavedSettings.getF32("ChatPersistTime"); | 104 | mChatPersist = gSavedSettings.getF32("ChatPersistTime"); |
126 | mChatMaxLines = gSavedSettings.getS32("ConsoleMaxLines"); | 105 | mChatMaxLines = gSavedSettings.getS32("ConsoleMaxLines"); |
127 | mSystemChatColor = gSavedSettings.getColor4("SystemChatColor"); | ||
128 | mUserChatColor = gSavedSettings.getColor4("UserChatColor"); | ||
129 | mAgentChatColor = gSavedSettings.getColor4("AgentChatColor"); | ||
130 | mIMChatColor = gSavedSettings.getColor4("IMChatColor"); | ||
131 | mObjectChatColor = gSavedSettings.getColor4("ObjectChatColor"); | ||
132 | mOwnerSayChatColor = gSavedSettings.getColor4("llOwnerSayChatColor"); | ||
133 | mBGChatColor = gSavedSettings.getColor4("BackgroundChatColor"); | ||
134 | mScriptErrorColor = gSavedSettings.getColor4("ScriptErrorColor"); | ||
135 | mHTMLLinkColor = gSavedSettings.getColor4("HTMLLinkColor"); | ||
136 | mArrowKeysMoveAvatar = gSavedSettings.getBOOL("ArrowKeysMoveAvatar"); | 106 | mArrowKeysMoveAvatar = gSavedSettings.getBOOL("ArrowKeysMoveAvatar"); |
137 | mShowTimestamps = gSavedSettings.getBOOL("ChatShowTimestamps"); | 107 | mShowTimestamps = gSavedSettings.getBOOL("ChatShowTimestamps"); |
138 | mScriptErrorAsChat = gSavedSettings.getBOOL("ScriptErrorsAsChat"); | 108 | mScriptErrorAsChat = gSavedSettings.getBOOL("ScriptErrorsAsChat"); |
@@ -154,15 +124,6 @@ void LLPrefsChatImpl::cancel() | |||
154 | gSavedSettings.setS32("ChatFontSize", mChatSize); | 124 | gSavedSettings.setS32("ChatFontSize", mChatSize); |
155 | gSavedSettings.setF32("ChatPersistTime", mChatPersist); | 125 | gSavedSettings.setF32("ChatPersistTime", mChatPersist); |
156 | gSavedSettings.setS32("ConsoleMaxLines", mChatMaxLines); | 126 | gSavedSettings.setS32("ConsoleMaxLines", mChatMaxLines); |
157 | gSavedSettings.setColor4("SystemChatColor", mSystemChatColor); | ||
158 | gSavedSettings.setColor4("UserChatColor", mUserChatColor); | ||
159 | gSavedSettings.setColor4("AgentChatColor", mAgentChatColor); | ||
160 | gSavedSettings.setColor4("IMChatColor", mIMChatColor); | ||
161 | gSavedSettings.setColor4("ObjectChatColor", mObjectChatColor); | ||
162 | gSavedSettings.setColor4("llOwnerSayChatColor", mOwnerSayChatColor); | ||
163 | gSavedSettings.setColor4("BackgroundChatColor", mBGChatColor); | ||
164 | gSavedSettings.setColor4("ScriptErrorColor", mScriptErrorColor); | ||
165 | gSavedSettings.setColor4("HTMLLinkColor", mHTMLLinkColor); | ||
166 | gSavedSettings.setBOOL("ArrowKeysMoveAvatar", mArrowKeysMoveAvatar); | 127 | gSavedSettings.setBOOL("ArrowKeysMoveAvatar", mArrowKeysMoveAvatar); |
167 | gSavedSettings.setBOOL("ChatShowTimestamps", mShowTimestamps); | 128 | gSavedSettings.setBOOL("ChatShowTimestamps", mShowTimestamps); |
168 | gSavedSettings.setBOOL("ScriptErrorsAsChat", mScriptErrorAsChat); | 129 | gSavedSettings.setBOOL("ScriptErrorsAsChat", mScriptErrorAsChat); |
@@ -184,18 +145,6 @@ void LLPrefsChatImpl::apply() | |||
184 | gSavedSettings.setF32("ChatPersistTime", childGetValue("fade_chat_time").asReal()); | 145 | gSavedSettings.setF32("ChatPersistTime", childGetValue("fade_chat_time").asReal()); |
185 | gSavedSettings.setS32("ConsoleMaxLines", childGetValue("max_chat_count")); | 146 | gSavedSettings.setS32("ConsoleMaxLines", childGetValue("max_chat_count")); |
186 | 147 | ||
187 | gSavedSettings.setColor4("SystemChatColor", childGetValue("system")); | ||
188 | gSavedSettings.setColor4("UserChatColor", childGetValue("user")); | ||
189 | gSavedSettings.setColor4("AgentChatColor", childGetValue("agent")); | ||
190 | gSavedSettings.setColor4("IMChatColor", childGetValue("im")); | ||
191 | gSavedSettings.setColor4("ScriptErrorColor", childGetValue("script_error")); | ||
192 | gSavedSettings.setColor4("ObjectChatColor", childGetValue("objects")); | ||
193 | gSavedSettings.setColor4("llOwnerSayChatColor", childGetValue("owner")); | ||
194 | gSavedSettings.setColor4("BackgroundChatColor", childGetValue("background")); | ||
195 | |||
196 | gSavedSettings.setColor4("HTMLLinkColor", childGetValue("links")); | ||
197 | LLTextEditor::setLinkColor(childGetValue("links")); | ||
198 | |||
199 | gSavedSettings.setBOOL("ArrowKeysMoveAvatar", childGetValue("arrow_keys_move_avatar_check")); | 148 | gSavedSettings.setBOOL("ArrowKeysMoveAvatar", childGetValue("arrow_keys_move_avatar_check")); |
200 | gSavedSettings.setBOOL("ChatShowTimestamps", childGetValue("show_timestamps_check")); | 149 | gSavedSettings.setBOOL("ChatShowTimestamps", childGetValue("show_timestamps_check")); |
201 | gSavedSettings.setBOOL("ScriptErrorsAsChat", childGetValue("script_errors_as_chat")); | 150 | gSavedSettings.setBOOL("ScriptErrorsAsChat", childGetValue("script_errors_as_chat")); |
diff --git a/linden/indra/newview/llprefscolors.cpp b/linden/indra/newview/llprefscolors.cpp new file mode 100644 index 0000000..9a30fcd --- /dev/null +++ b/linden/indra/newview/llprefscolors.cpp | |||
@@ -0,0 +1,180 @@ | |||
1 | /** | ||
2 | * @file llprefscolors.cpp | ||
3 | * @brief Color-specific preferences for Imprudence | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2009&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2010, McCabe Maxsted | ||
8 | * | ||
9 | * Imprudence Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided to you | ||
11 | * under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"). Terms of the GPL can be found in doc/GPL-license.txt in | ||
13 | * this distribution, or online at | ||
14 | * http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
15 | * | ||
16 | * There are special exceptions to the terms and conditions of the GPL as | ||
17 | * it is applied to this Source Code. View the full text of the exception | ||
18 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
19 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
20 | * | ||
21 | * By copying, modifying or distributing this software, you acknowledge | ||
22 | * that you have read and understood your obligations described above, | ||
23 | * and agree to abide by those obligations. | ||
24 | * | ||
25 | * ALL SOURCE CODE IS PROVIDED "AS IS." THE AUTHOR MAKES NO | ||
26 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
27 | * COMPLETENESS OR PERFORMANCE. | ||
28 | * $/LicenseInfo$ | ||
29 | */ | ||
30 | |||
31 | #include "llviewerprecompiledheaders.h" | ||
32 | |||
33 | #include "llprefscolors.h" | ||
34 | #include "lltexteditor.h" | ||
35 | #include "llviewercontrol.h" | ||
36 | |||
37 | #include "lluictrlfactory.h" | ||
38 | #include "llcolorswatch.h" | ||
39 | |||
40 | #include "boost/algorithm/string.hpp" | ||
41 | |||
42 | LLPrefsColors::LLPrefsColors() | ||
43 | { | ||
44 | refreshColors(); // initialize member data from saved settings | ||
45 | |||
46 | LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_colors.xml"); | ||
47 | } | ||
48 | |||
49 | LLPrefsColors::~LLPrefsColors() | ||
50 | { | ||
51 | // Children all cleaned up by default view destructor. | ||
52 | } | ||
53 | |||
54 | BOOL LLPrefsColors::postBuild() | ||
55 | { | ||
56 | getChild<LLColorSwatchCtrl>("system")->set(gSavedSettings.getColor4("SystemChatColor")); | ||
57 | getChild<LLColorSwatchCtrl>("user")->set(gSavedSettings.getColor4("UserChatColor")); | ||
58 | getChild<LLColorSwatchCtrl>("agent")->set(gSavedSettings.getColor4("AgentChatColor")); | ||
59 | getChild<LLColorSwatchCtrl>("im")->set(gSavedSettings.getColor4("IMChatColor")); | ||
60 | getChild<LLColorSwatchCtrl>("script_error")->set(gSavedSettings.getColor4("ScriptErrorColor")); | ||
61 | getChild<LLColorSwatchCtrl>("objects")->set(gSavedSettings.getColor4("ObjectChatColor")); | ||
62 | getChild<LLColorSwatchCtrl>("owner")->set(gSavedSettings.getColor4("llOwnerSayChatColor")); | ||
63 | getChild<LLColorSwatchCtrl>("background")->set(gSavedSettings.getColor4("BackgroundChatColor")); | ||
64 | getChild<LLColorSwatchCtrl>("links")->set(gSavedSettings.getColor4("HTMLLinkColor")); | ||
65 | getChild<LLColorSwatchCtrl>("FriendsChatColor")->set(gSavedSettings.getColor4("FriendsChatColor")); | ||
66 | getChild<LLColorSwatchCtrl>("OwnNameChatColor")->set(gSavedSettings.getColor4("OwnNameChatColor")); | ||
67 | |||
68 | childSetValue("HighlightOwnNameInIM", gSavedSettings.getBOOL("HighlightOwnNameInIM")); | ||
69 | childSetValue("HighlightFriendsChat", gSavedSettings.getBOOL("HighlightFriendsChat")); | ||
70 | childSetValue("HighlightOwnNameInChat", gSavedSettings.getBOOL("HighlightOwnNameInChat")); | ||
71 | updateSelfCheck(); | ||
72 | updateFriendsCheck(); | ||
73 | |||
74 | childSetValue("nick01", gSavedSettings.getString("nick01")); | ||
75 | childSetValue("nick02", gSavedSettings.getString("nick02")); | ||
76 | childSetValue("nick03", gSavedSettings.getString("nick03")); | ||
77 | |||
78 | childSetCommitCallback("HighlightOwnNameInIM", onCommitCheckSelfName, this); | ||
79 | childSetCommitCallback("HighlightOwnNameInChat", onCommitCheckSelfName, this); | ||
80 | childSetCommitCallback("HighlightFriendsChat", onCommitCheckFriends, this); | ||
81 | |||
82 | return TRUE; | ||
83 | } | ||
84 | |||
85 | void LLPrefsColors::refreshColors() | ||
86 | { | ||
87 | mSystemChatColor = gSavedSettings.getColor4("SystemChatColor"); | ||
88 | mUserChatColor = gSavedSettings.getColor4("UserChatColor"); | ||
89 | mAgentChatColor = gSavedSettings.getColor4("AgentChatColor"); | ||
90 | mIMChatColor = gSavedSettings.getColor4("IMChatColor"); | ||
91 | mObjectChatColor = gSavedSettings.getColor4("ObjectChatColor"); | ||
92 | mOwnerSayChatColor = gSavedSettings.getColor4("llOwnerSayChatColor"); | ||
93 | mBGChatColor = gSavedSettings.getColor4("BackgroundChatColor"); | ||
94 | mScriptErrorColor = gSavedSettings.getColor4("ScriptErrorColor"); | ||
95 | mHTMLLinkColor = gSavedSettings.getColor4("HTMLLinkColor"); | ||
96 | mFriendsChatColor = gSavedSettings.getColor4("FriendsChatColor"); | ||
97 | mOwnNameChatColor = gSavedSettings.getColor4("OwnNameChatColor"); | ||
98 | } | ||
99 | |||
100 | // static | ||
101 | void LLPrefsColors::onCommitCheckSelfName(LLUICtrl* ctrl, void* userdata) | ||
102 | { | ||
103 | LLPrefsColors* self = (LLPrefsColors*)userdata; | ||
104 | self->updateSelfCheck(); | ||
105 | } | ||
106 | |||
107 | void LLPrefsColors::updateSelfCheck() | ||
108 | { | ||
109 | bool highlight_names_enabled = (childGetValue("HighlightOwnNameInIM") || childGetValue("HighlightOwnNameInChat")); | ||
110 | |||
111 | getChild<LLColorSwatchCtrl>("OwnNameChatColor")->setEnabled(highlight_names_enabled); | ||
112 | childSetEnabled("nick01", highlight_names_enabled); | ||
113 | childSetEnabled("nick02", highlight_names_enabled); | ||
114 | childSetEnabled("nick03", highlight_names_enabled); | ||
115 | childSetEnabled("nick01_text", highlight_names_enabled); | ||
116 | childSetEnabled("nick02_text", highlight_names_enabled); | ||
117 | childSetEnabled("nick03_text", highlight_names_enabled); | ||
118 | } | ||
119 | |||
120 | // static | ||
121 | void LLPrefsColors::onCommitCheckFriends(LLUICtrl* ctrl, void* userdata) | ||
122 | { | ||
123 | LLPrefsColors* self = (LLPrefsColors*)userdata; | ||
124 | self->updateFriendsCheck(); | ||
125 | } | ||
126 | |||
127 | void LLPrefsColors::updateFriendsCheck() | ||
128 | { | ||
129 | getChild<LLColorSwatchCtrl>("FriendsChatColor")->setEnabled(childGetValue("HighlightFriendsChat")); | ||
130 | } | ||
131 | |||
132 | void LLPrefsColors::cancel() | ||
133 | { | ||
134 | gSavedSettings.setColor4("SystemChatColor", mSystemChatColor); | ||
135 | gSavedSettings.setColor4("UserChatColor", mUserChatColor); | ||
136 | gSavedSettings.setColor4("AgentChatColor", mAgentChatColor); | ||
137 | gSavedSettings.setColor4("IMChatColor", mIMChatColor); | ||
138 | gSavedSettings.setColor4("ObjectChatColor", mObjectChatColor); | ||
139 | gSavedSettings.setColor4("llOwnerSayChatColor", mOwnerSayChatColor); | ||
140 | gSavedSettings.setColor4("BackgroundChatColor", mBGChatColor); | ||
141 | gSavedSettings.setColor4("ScriptErrorColor", mScriptErrorColor); | ||
142 | gSavedSettings.setColor4("HTMLLinkColor", mHTMLLinkColor); | ||
143 | gSavedSettings.setColor4("FriendsChatColor", mFriendsChatColor); | ||
144 | gSavedSettings.setColor4("OwnNameChatColor", mOwnNameChatColor); | ||
145 | } | ||
146 | |||
147 | void LLPrefsColors::apply() | ||
148 | { | ||
149 | gSavedSettings.setColor4("SystemChatColor", childGetValue("system")); | ||
150 | gSavedSettings.setColor4("UserChatColor", childGetValue("user")); | ||
151 | gSavedSettings.setColor4("AgentChatColor", childGetValue("agent")); | ||
152 | gSavedSettings.setColor4("IMChatColor", childGetValue("im")); | ||
153 | gSavedSettings.setColor4("ScriptErrorColor", childGetValue("script_error")); | ||
154 | gSavedSettings.setColor4("ObjectChatColor", childGetValue("objects")); | ||
155 | gSavedSettings.setColor4("llOwnerSayChatColor", childGetValue("owner")); | ||
156 | gSavedSettings.setColor4("BackgroundChatColor", childGetValue("background")); | ||
157 | |||
158 | gSavedSettings.setColor4("HTMLLinkColor", childGetValue("links")); | ||
159 | LLTextEditor::setLinkColor(childGetValue("links")); | ||
160 | |||
161 | gSavedSettings.setBOOL("HighlightOwnNameInIM", childGetValue("HighlightOwnNameInIM")); | ||
162 | gSavedSettings.setBOOL("HighlightFriendsChat", childGetValue("HighlightFriendsChat")); | ||
163 | gSavedSettings.setColor4("FriendsChatColor", getChild<LLColorSwatchCtrl>("FriendsChatColor")->get()); | ||
164 | gSavedSettings.setBOOL("HighlightOwnNameInChat", childGetValue("HighlightOwnNameInChat")); | ||
165 | gSavedSettings.setColor4("OwnNameChatColor", getChild<LLColorSwatchCtrl>("OwnNameChatColor")->get()); | ||
166 | |||
167 | std::string nick01 = childGetValue("nick01"); | ||
168 | boost::trim(nick01); | ||
169 | gSavedSettings.setString("nick01", nick01); | ||
170 | |||
171 | std::string nick02 = childGetValue("nick02"); | ||
172 | boost::trim(nick02); | ||
173 | gSavedSettings.setString("nick02", nick02); | ||
174 | |||
175 | std::string nick03 = childGetValue("nick03"); | ||
176 | boost::trim(nick03); | ||
177 | gSavedSettings.setString("nick03", nick03); | ||
178 | |||
179 | refreshColors(); // member values become the official values and cancel becomes a no-op. | ||
180 | } | ||
diff --git a/linden/indra/newview/llprefscolors.h b/linden/indra/newview/llprefscolors.h new file mode 100644 index 0000000..70bda89 --- /dev/null +++ b/linden/indra/newview/llprefscolors.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /** | ||
2 | * @file llprefscolors.h | ||
3 | * @brief Advanced preferences options for Imprudence | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2009&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2010, McCabe Maxsted | ||
8 | * | ||
9 | * Imprudence Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided to you | ||
11 | * under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"). Terms of the GPL can be found in doc/GPL-license.txt in | ||
13 | * this distribution, or online at | ||
14 | * http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
15 | * | ||
16 | * There are special exceptions to the terms and conditions of the GPL as | ||
17 | * it is applied to this Source Code. View the full text of the exception | ||
18 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
19 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
20 | * | ||
21 | * By copying, modifying or distributing this software, you acknowledge | ||
22 | * that you have read and understood your obligations described above, | ||
23 | * and agree to abide by those obligations. | ||
24 | * | ||
25 | * ALL SOURCE CODE IS PROVIDED "AS IS." THE AUTHOR MAKES NO | ||
26 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
27 | * COMPLETENESS OR PERFORMANCE. | ||
28 | * $/LicenseInfo$ | ||
29 | */ | ||
30 | |||
31 | #ifndef LLPREFSCOLORS_H | ||
32 | #define LLPREFSCOLORS_H | ||
33 | |||
34 | #include "llpanel.h" | ||
35 | |||
36 | class LLPrefsColors : public LLPanel | ||
37 | { | ||
38 | public: | ||
39 | LLPrefsColors(); | ||
40 | ~LLPrefsColors(); | ||
41 | |||
42 | BOOL postBuild(); | ||
43 | |||
44 | void apply(); | ||
45 | void cancel(); | ||
46 | |||
47 | private: | ||
48 | static void onCommitCheckSelfName(LLUICtrl* ctrl, void* userdata); | ||
49 | static void onCommitCheckFriends(LLUICtrl* ctrl, void* userdata); | ||
50 | void refreshColors(); | ||
51 | void updateFriendsCheck(); | ||
52 | void updateSelfCheck(); | ||
53 | |||
54 | LLColor4 mSystemChatColor; | ||
55 | LLColor4 mUserChatColor; | ||
56 | LLColor4 mAgentChatColor; | ||
57 | LLColor4 mIMChatColor; | ||
58 | LLColor4 mObjectChatColor; | ||
59 | LLColor4 mOwnerSayChatColor; | ||
60 | LLColor4 mBGChatColor; | ||
61 | LLColor4 mScriptErrorColor; | ||
62 | LLColor4 mHTMLLinkColor; | ||
63 | LLColor4 mFriendsChatColor; | ||
64 | LLColor4 mOwnNameChatColor; | ||
65 | }; | ||
66 | |||
67 | #endif //LLPREFSCOLORS_H | ||
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml index 0f2181b..1b771b5 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml | |||
@@ -179,57 +179,6 @@ To use spellcheck, right-click a misspelled word | |||
179 | tool_tip="Modify the AutoCorrect word list and settings" left="12" | 179 | tool_tip="Modify the AutoCorrect word list and settings" left="12" |
180 | bottom_delta="-50" width="180" height="20" font="SansSerifSmall" follows="left|top"/> | 180 | bottom_delta="-50" width="180" height="20" font="SansSerifSmall" follows="left|top"/> |
181 | </panel> | 181 | </panel> |
182 | |||
183 | <panel border="true" bottom="-580" follows="left|top|right|bottom" height="525" label="Extra" | ||
184 | left="1" mouse_opaque="true" name="Extra" width="418"> | ||
185 | |||
186 | <check_box bottom_delta="-30" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | ||
187 | initial_value="true" label="Show chat messages from friends in a different color" left="12" | ||
188 | mouse_opaque="true" name="HighlightFriendsChat" radio_style="false" width="270"/> | ||
189 | |||
190 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-100" | ||
191 | can_apply_immediately="true" color="1 1 1 1" control_name="FriendsChatColor" | ||
192 | enabled="true" follows="left|top" height="67" label="Friends" left_delta="68" | ||
193 | mouse_opaque="true" name="FriendsChatColor" width="65" /> | ||
194 | |||
195 | <check_box bottom_delta="-30" enabled="true" follows="left|top" | ||
196 | font="SansSerifSmall" height="16" initial_value="true" | ||
197 | label="Show chat messages containing your name in a different color" left="12" mouse_opaque="true" | ||
198 | name="HighlightOwnNameInChat" radio_style="false" width="217" /> | ||
199 | |||
200 | <check_box bottom_delta="-30" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | ||
201 | initial_value="true" label="Show GroupIM messages containing your name in a different color" left="12" | ||
202 | mouse_opaque="true" name="HighlightOwnNameInIM" radio_style="false" width="270"/> | ||
203 | |||
204 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-230" | ||
205 | can_apply_immediately="true" color="1 1 1 1" control_name="OwnNameChatColor" | ||
206 | enabled="true" follows="left|top" height="67" label="Own Name" left_delta="68" | ||
207 | mouse_opaque="true" name="OwnNameChatColor" width="65" /> | ||
208 | |||
209 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="-50" | ||
210 | enabled="true" follows="left|top" font="SansSerif" | ||
211 | handle_edit_keys_directly="true" height="20" left_delta="0" | ||
212 | max_length="50" mouse_opaque="true" name="nick01" | ||
213 | select_all_on_focus_received="true" width="400" word_wrap="false" /> | ||
214 | 182 | ||
215 | <text bottom_delta="-3" follows="left|top" font="SansSerifSmall" height="20" left="20" name="nick01_text" width="70">Nick 1</text> | ||
216 | |||
217 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="-30" | ||
218 | enabled="true" follows="left|top" font="SansSerif" | ||
219 | handle_edit_keys_directly="true" height="20" left_delta="60" | ||
220 | max_length="50" mouse_opaque="true" name="nick02" | ||
221 | select_all_on_focus_received="true" width="400" word_wrap="false" /> | ||
222 | |||
223 | <text bottom_delta="-3" follows="left|top" font="SansSerifSmall" height="20" left="20" name="nick02_text" width="70">Nick 2</text> | ||
224 | |||
225 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="-30" | ||
226 | enabled="true" follows="left|top" font="SansSerif" | ||
227 | handle_edit_keys_directly="true" height="20" left_delta="60" | ||
228 | max_length="50" mouse_opaque="true" name="nick03" | ||
229 | select_all_on_focus_received="true" width="400" word_wrap="false" /> | ||
230 | |||
231 | <text bottom_delta="-3" follows="left|top" font="SansSerifSmall" height="20" left="20" name="nick03_text" width="70">Nick 3</text> | ||
232 | |||
233 | </panel> | ||
234 | </tab_container> | 183 | </tab_container> |
235 | </panel> | 184 | </panel> |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml index fe60203..27d3fa4 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml | |||
@@ -24,60 +24,84 @@ | |||
24 | Large | 24 | Large |
25 | </radio_item> | 25 | </radio_item> |
26 | </radio_group> | 26 | </radio_group> |
27 | |||
28 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
29 | bottom_delta="-40" drop_shadow_visible="true" enabled="true" follows="left|top" | ||
30 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | ||
31 | mouse_opaque="false" name="text_translate_chat" v_pad="0" width="128"> | ||
32 | Translate Chat: | ||
33 | </text> | ||
34 | <check_box bottom_delta="-3" control_name="TranslateChat" enabled="true" follows="left|top" | ||
35 | font="SansSerifSmall" height="16" initial_value="false" | ||
36 | label="Use machine translation while chatting (powered by Google)" left="148" mouse_opaque="true" | ||
37 | name="translate_chat" radio_style="false" width="237" /> | ||
38 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
39 | bottom_delta="-16" drop_shadow_visible="true" enabled="true" follows="left|top" | ||
40 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="149" | ||
41 | mouse_opaque="false" name="text_translate_chat" v_pad="0" width="160"> | ||
42 | Translate into this language: | ||
43 | </text> | ||
44 | <combo_box allow_text_entry="true" bottom_delta="-5" enabled="true" | ||
45 | follows="left|top" height="16" left_delta="183" max_chars="135" | ||
46 | mouse_opaque="true" name="translate_language_combobox" width="146"> | ||
47 | <combo_item type="string" length="1" enabled="true" name="System Default Language" value="default"> | ||
48 | System Default | ||
49 | </combo_item> | ||
50 | <combo_item type="string" length="1" enabled="true" name="English" value="en"> | ||
51 | English | ||
52 | </combo_item> | ||
53 | |||
54 | <!-- After "System Default" and "English", please keep the rest of these combo_items in alphabetical order by the first character in the string. --> | ||
55 | |||
56 | <combo_item type="string" length="1" enabled="true" name="Danish" value="da"> | ||
57 | Dansk (Danish) | ||
58 | </combo_item> | ||
59 | <combo_item type="string" length="1" enabled="true" name="Deutsch(German)" value="de"> | ||
60 | Deutsch (German) | ||
61 | </combo_item> | ||
62 | <combo_item type="string" length="1" enabled="true" name="Spanish" value="es"> | ||
63 | Español (Spanish) | ||
64 | </combo_item> | ||
65 | <combo_item type="string" length="1" enabled="true" name="French" value="fr"> | ||
66 | Français (French) | ||
67 | </combo_item> | ||
68 | <combo_item type="string" length="1" enabled="true" name="Italian" value="it"> | ||
69 | Italiano (Italian) | ||
70 | </combo_item> | ||
71 | <combo_item type="string" length="1" enabled="true" name="Hungarian" value="hu"> | ||
72 | Magyar (Hungarian) | ||
73 | </combo_item> | ||
74 | <combo_item type="string" length="1" enabled="true" name="Dutch" value="nl"> | ||
75 | Nederlands (Dutch) | ||
76 | </combo_item> | ||
77 | <combo_item type="string" length="1" enabled="true" name="Polish" value="pl"> | ||
78 | Polski (Polish) | ||
79 | </combo_item> | ||
80 | <combo_item type="string" length="1" enabled="true" name="Portugese" value="pt"> | ||
81 | Portugués (Portuguese) | ||
82 | </combo_item> | ||
83 | <combo_item type="string" length="1" enabled="true" name="Russian" value="ru"> | ||
84 | Русский (Russian) | ||
85 | </combo_item> | ||
86 | <combo_item type="string" length="1" enabled="true" name="Turkish" value="tr"> | ||
87 | Türkçe (Turkish) | ||
88 | </combo_item> | ||
89 | <combo_item type="string" length="1" enabled="true" name="Ukrainian" value="uk"> | ||
90 | Українська (Ukrainian) | ||
91 | </combo_item> | ||
92 | <combo_item type="string" length="1" enabled="true" name="Chinese" value="zh"> | ||
93 | 中文 (简体) (Chinese) | ||
94 | </combo_item> | ||
95 | <combo_item type="string" length="1" enabled="true" name="(Japanese)" value="ja"> | ||
96 | 日本語 (Japanese) | ||
97 | </combo_item> | ||
98 | <combo_item type="string" length="1" enabled="true" name="(Korean)" value="ko"> | ||
99 | 한국어 (Korean) | ||
100 | </combo_item> | ||
101 | </combo_box> | ||
102 | |||
27 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 103 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
28 | bottom="-64" drop_shadow_visible="true" enabled="true" follows="left|top" | 104 | bottom_delta="-40" drop_shadow_visible="true" enabled="true" follows="left|top" |
29 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | ||
30 | mouse_opaque="false" name="text_box2" v_pad="0" width="128"> | ||
31 | Color: | ||
32 | </text> | ||
33 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" | ||
34 | can_apply_immediately="true" color="1 1 1 1" control_name="UserChatColor" | ||
35 | enabled="true" follows="left|top" height="56" label="You" left="148" | ||
36 | mouse_opaque="true" name="user" width="54" /> | ||
37 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" | ||
38 | can_apply_immediately="true" color="1 1 1 1" control_name="AgentChatColor" | ||
39 | enabled="true" follows="left|top" height="56" label="Others" left_delta="68" | ||
40 | mouse_opaque="true" name="agent" width="54" /> | ||
41 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" | ||
42 | can_apply_immediately="true" color="0.6 0.6 1 1" | ||
43 | enabled="true" follows="left|top" height="56" label="IMs" left_delta="68" | ||
44 | mouse_opaque="true" name="im" width="54" /> | ||
45 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" | ||
46 | can_apply_immediately="true" color="0.8 1 1 1" | ||
47 | enabled="true" follows="left|top" | ||
48 | height="56" label="System" left_delta="68" mouse_opaque="true" | ||
49 | name="system" width="54" /> | ||
50 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" | ||
51 | can_apply_immediately="true" color="0.82 0.82 0.99 1" | ||
52 | control_name="ScriptErrorColor" enabled="true" follows="left|top" | ||
53 | height="56" label="Errors" left_delta="68" mouse_opaque="true" | ||
54 | name="script_error" width="54" /> | ||
55 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" | ||
56 | can_apply_immediately="true" color="0.7 0.9 0.7 1" | ||
57 | control_name="ObjectChatColor" enabled="true" follows="left|top" | ||
58 | height="56" label="Objects" left="148" mouse_opaque="true" | ||
59 | name="objects" width="54" /> | ||
60 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" | ||
61 | can_apply_immediately="true" color="0.7 0.9 0.7 1" | ||
62 | control_name="ObjectIMColor" enabled="true" follows="left|top" | ||
63 | height="56" label="Object IMs" left_delta="68" mouse_opaque="true" | ||
64 | name="object_ims" width="54" /> | ||
65 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" | ||
66 | can_apply_immediately="true" color="0.7 0.9 0.7 1" | ||
67 | enabled="true" follows="left|top" | ||
68 | height="56" label="Owner" left_delta="68" mouse_opaque="true" name="owner" | ||
69 | width="54" /> | ||
70 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" | ||
71 | can_apply_immediately="true" color="0 0 0 1" | ||
72 | enabled="true" follows="left|top" | ||
73 | height="56" label="Bubble" left_delta="68" mouse_opaque="true" | ||
74 | name="background" width="54" /> | ||
75 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" | ||
76 | can_apply_immediately="true" color="0.6 0.6 1 1" | ||
77 | enabled="true" follows="left|top" height="56" | ||
78 | label="URLs" left_delta="68" mouse_opaque="true" name="links" width="54" /> | ||
79 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
80 | bottom_delta="-25" drop_shadow_visible="true" enabled="true" follows="left|top" | ||
81 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | 105 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" |
82 | mouse_opaque="false" name="text_box3" v_pad="0" width="135"> | 106 | mouse_opaque="false" name="text_box3" v_pad="0" width="135"> |
83 | Chat Console: | 107 | Chat Console: |
@@ -115,8 +139,29 @@ | |||
115 | label="Use full screen width (requires restart)" left="148" | 139 | label="Use full screen width (requires restart)" left="148" |
116 | mouse_opaque="true" name="chat_full_width_check" radio_style="false" | 140 | mouse_opaque="true" name="chat_full_width_check" radio_style="false" |
117 | width="239" /> | 141 | width="239" /> |
142 | |||
143 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
144 | bottom_delta="-40" drop_shadow_visible="true" enabled="true" follows="left|top" | ||
145 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | ||
146 | mouse_opaque="false" name="text_box7" v_pad="0" width="128"> | ||
147 | Chat Bubbles: | ||
148 | </text> | ||
149 | <check_box bottom_delta="-8" control_name="UseChatBubbles" enabled="true" follows="left|top" | ||
150 | font="SansSerifSmall" height="16" initial_value="false" | ||
151 | label="Show chat bubbles" left="148" mouse_opaque="true" | ||
152 | name="bubble_text_chat" radio_style="false" width="237" /> | ||
153 | <check_box bottom_delta="-0" control_name="UseLocalChatBubbles" enabled="true" follows="left|top" | ||
154 | font="SansSerifSmall" height="16" initial_value="false" | ||
155 | label="Show local chat and bubbles" left="288" mouse_opaque="true" | ||
156 | name="local_bubble_text_chat" radio_style="false" width="237" /> | ||
157 | <slider bottom_delta="-20" can_edit_text="false" control_name="ChatBubbleOpacity" | ||
158 | decimal_digits="3" enabled="true" follows="left|top" height="12" | ||
159 | increment="0.05" initial_val="1" label="Bubble opacity:" left="148" max_val="1" | ||
160 | min_val="0" mouse_opaque="true" name="bubble_chat_opacity" show_text="true" | ||
161 | value="0.5" width="225" /> | ||
162 | |||
118 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 163 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
119 | bottom_delta="-20" drop_shadow_visible="true" enabled="true" follows="left|top" | 164 | bottom_delta="-40" drop_shadow_visible="true" enabled="true" follows="left|top" |
120 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | 165 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" |
121 | mouse_opaque="false" name="text_box6" v_pad="0" width="135"> | 166 | mouse_opaque="false" name="text_box6" v_pad="0" width="135"> |
122 | Miscellaneous: | 167 | Miscellaneous: |
@@ -147,98 +192,5 @@ | |||
147 | font="SansSerifSmall" height="16" initial_value="false" | 192 | font="SansSerifSmall" height="16" initial_value="false" |
148 | label="Show custom chat channel" left="148" mouse_opaque="true" | 193 | label="Show custom chat channel" left="148" mouse_opaque="true" |
149 | name="toggle_channel_control" radio_style="false" width="237" /> | 194 | name="toggle_channel_control" radio_style="false" width="237" /> |
150 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
151 | bottom="-379" drop_shadow_visible="true" enabled="true" follows="left|top" | ||
152 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | ||
153 | mouse_opaque="false" name="text_box7" v_pad="0" width="128"> | ||
154 | Chat Bubbles: | ||
155 | </text> | ||
156 | <check_box bottom="-386" control_name="UseChatBubbles" enabled="true" follows="left|top" | ||
157 | font="SansSerifSmall" height="16" initial_value="false" | ||
158 | label="Show chat bubbles" left="148" mouse_opaque="true" | ||
159 | name="bubble_text_chat" radio_style="false" width="237" /> | ||
160 | <check_box bottom="-386" control_name="UseLocalChatBubbles" enabled="true" follows="left|top" | ||
161 | font="SansSerifSmall" height="16" initial_value="false" | ||
162 | label="Show local chat and bubbles" left="288" mouse_opaque="true" | ||
163 | name="local_bubble_text_chat" radio_style="false" width="237" /> | ||
164 | <slider bottom="-402" can_edit_text="false" control_name="ChatBubbleOpacity" | ||
165 | decimal_digits="3" enabled="true" follows="left|top" height="12" | ||
166 | increment="0.05" initial_val="1" label="Bubble opacity:" left="148" max_val="1" | ||
167 | min_val="0" mouse_opaque="true" name="bubble_chat_opacity" show_text="true" | ||
168 | value="0.5" width="225" /> | ||
169 | 195 | ||
170 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
171 | bottom="-420" drop_shadow_visible="true" enabled="true" follows="left|top" | ||
172 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | ||
173 | mouse_opaque="false" name="text_translate_chat" v_pad="0" width="128"> | ||
174 | Translate Chat: | ||
175 | </text> | ||
176 | <check_box bottom="-427" control_name="TranslateChat" enabled="true" follows="left|top" | ||
177 | font="SansSerifSmall" height="16" initial_value="false" | ||
178 | label="Use machine translation while chatting (powered by Google)" left="148" mouse_opaque="true" | ||
179 | name="translate_chat" radio_style="false" width="237" /> | ||
180 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
181 | bottom="-442" drop_shadow_visible="true" enabled="true" follows="left|top" | ||
182 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="149" | ||
183 | mouse_opaque="false" name="text_translate_chat" v_pad="0" width="160"> | ||
184 | Translate into this language: | ||
185 | </text> | ||
186 | <combo_box allow_text_entry="true" bottom="-448" enabled="true" | ||
187 | follows="left|top" height="16" left_delta="183" max_chars="135" | ||
188 | mouse_opaque="true" name="translate_language_combobox" width="146"> | ||
189 | <combo_item type="string" length="1" enabled="true" name="System Default Language" value="default"> | ||
190 | System Default | ||
191 | </combo_item> | ||
192 | <combo_item type="string" length="1" enabled="true" name="English" value="en"> | ||
193 | English | ||
194 | </combo_item> | ||
195 | |||
196 | <!-- After "System Default" and "English", please keep the rest of these combo_items in alphabetical order by the first character in the string. --> | ||
197 | |||
198 | <combo_item type="string" length="1" enabled="true" name="Danish" value="da"> | ||
199 | Dansk (Danish) | ||
200 | </combo_item> | ||
201 | <combo_item type="string" length="1" enabled="true" name="Deutsch(German)" value="de"> | ||
202 | Deutsch (German) | ||
203 | </combo_item> | ||
204 | <combo_item type="string" length="1" enabled="true" name="Spanish" value="es"> | ||
205 | Español (Spanish) | ||
206 | </combo_item> | ||
207 | <combo_item type="string" length="1" enabled="true" name="French" value="fr"> | ||
208 | Français (French) | ||
209 | </combo_item> | ||
210 | <combo_item type="string" length="1" enabled="true" name="Italian" value="it"> | ||
211 | Italiano (Italian) | ||
212 | </combo_item> | ||
213 | <combo_item type="string" length="1" enabled="true" name="Hungarian" value="hu"> | ||
214 | Magyar (Hungarian) | ||
215 | </combo_item> | ||
216 | <combo_item type="string" length="1" enabled="true" name="Dutch" value="nl"> | ||
217 | Nederlands (Dutch) | ||
218 | </combo_item> | ||
219 | <combo_item type="string" length="1" enabled="true" name="Polish" value="pl"> | ||
220 | Polski (Polish) | ||
221 | </combo_item> | ||
222 | <combo_item type="string" length="1" enabled="true" name="Portugese" value="pt"> | ||
223 | Portugués (Portuguese) | ||
224 | </combo_item> | ||
225 | <combo_item type="string" length="1" enabled="true" name="Russian" value="ru"> | ||
226 | Русский (Russian) | ||
227 | </combo_item> | ||
228 | <combo_item type="string" length="1" enabled="true" name="Turkish" value="tr"> | ||
229 | Türkçe (Turkish) | ||
230 | </combo_item> | ||
231 | <combo_item type="string" length="1" enabled="true" name="Ukrainian" value="uk"> | ||
232 | Українська (Ukrainian) | ||
233 | </combo_item> | ||
234 | <combo_item type="string" length="1" enabled="true" name="Chinese" value="zh"> | ||
235 | 中文 (简体) (Chinese) | ||
236 | </combo_item> | ||
237 | <combo_item type="string" length="1" enabled="true" name="(Japanese)" value="ja"> | ||
238 | 日本語 (Japanese) | ||
239 | </combo_item> | ||
240 | <combo_item type="string" length="1" enabled="true" name="(Korean)" value="ko"> | ||
241 | 한국어 (Korean) | ||
242 | </combo_item> | ||
243 | </combo_box> | ||
244 | </panel> | 196 | </panel> |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml new file mode 100644 index 0000000..11810d2 --- /dev/null +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml | |||
@@ -0,0 +1,115 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" standalone="yes" ?> | ||
2 | <panel border="true" bottom="-409" enabled="true" follows="left|top|right|bottom" | ||
3 | height="408" label="Colors" left="102" mouse_opaque="true" name="colors" | ||
4 | width="517"> | ||
5 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
6 | bottom="-20" drop_shadow_visible="true" enabled="true" follows="left|top" | ||
7 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | ||
8 | mouse_opaque="false" name="text_box2" v_pad="0" width="128"> | ||
9 | Chat Colors: | ||
10 | </text> | ||
11 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-75" | ||
12 | can_apply_immediately="true" color="1 1 1 1" control_name="UserChatColor" | ||
13 | enabled="true" follows="left|top" height="65" label="Your chat" left="120" | ||
14 | mouse_opaque="true" name="user" width="65" /> | ||
15 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-75" | ||
16 | can_apply_immediately="true" color="1 1 1 1" control_name="AgentChatColor" | ||
17 | enabled="true" follows="left|top" height="65" label="Others' chat" left_delta="76" | ||
18 | mouse_opaque="true" name="agent" width="65" /> | ||
19 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-75" | ||
20 | can_apply_immediately="true" color="0.6 0.6 1 1" | ||
21 | enabled="true" follows="left|top" height="65" label="IMs" left_delta="76" | ||
22 | mouse_opaque="true" name="im" width="65" /> | ||
23 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-75" | ||
24 | can_apply_immediately="true" color="0.8 1 1 1" | ||
25 | enabled="true" follows="left|top" | ||
26 | height="65" label="System" left_delta="76" mouse_opaque="true" | ||
27 | name="system" width="65" /> | ||
28 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-75" | ||
29 | can_apply_immediately="true" color="0.82 0.82 0.99 1" | ||
30 | control_name="ScriptErrorColor" enabled="true" follows="left|top" | ||
31 | height="65" label="Script errors" left_delta="76" mouse_opaque="true" | ||
32 | name="script_error" width="65" /> | ||
33 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-146" | ||
34 | can_apply_immediately="true" color="0.7 0.9 0.7 1" | ||
35 | control_name="ObjectChatColor" enabled="true" follows="left|top" | ||
36 | height="65" label="Object chat" left="120" mouse_opaque="true" | ||
37 | name="objects" width="65" /> | ||
38 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-146" | ||
39 | can_apply_immediately="true" color="0.7 0.9 0.7 1" | ||
40 | control_name="ObjectIMColor" enabled="true" follows="left|top" | ||
41 | height="65" label="Object IMs" left_delta="76" mouse_opaque="true" | ||
42 | name="object_ims" width="65" /> | ||
43 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-146" | ||
44 | can_apply_immediately="true" color="0.7 0.9 0.7 1" | ||
45 | enabled="true" follows="left|top" | ||
46 | height="65" label="Owner chat" left_delta="76" mouse_opaque="true" name="owner" | ||
47 | width="65" /> | ||
48 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-146" | ||
49 | can_apply_immediately="true" color="0 0 0 1" | ||
50 | enabled="true" follows="left|top" | ||
51 | height="65" label="Bubble chat" left_delta="76" mouse_opaque="true" | ||
52 | name="background" width="65" /> | ||
53 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-146" | ||
54 | can_apply_immediately="true" color="0.6 0.6 1 1" | ||
55 | enabled="true" follows="left|top" height="65" | ||
56 | label="Links" left_delta="76" mouse_opaque="true" name="links" width="65" /> | ||
57 | |||
58 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
59 | bottom_delta="-30" drop_shadow_visible="true" enabled="true" follows="left|top" | ||
60 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | ||
61 | mouse_opaque="false" name="text_box3" v_pad="0" width="128"> | ||
62 | Line Highlighting: | ||
63 | </text> | ||
64 | |||
65 | <check_box bottom_delta="-7" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | ||
66 | initial_value="true" label="Highlight chat from friends" left="120" | ||
67 | mouse_opaque="true" name="HighlightFriendsChat" radio_style="false" width="270"/> | ||
68 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom_delta="-70" | ||
69 | can_apply_immediately="true" color="1 1 1 1" control_name="FriendsChatColor" | ||
70 | enabled="true" follows="left|top" height="65" label="Friends" left_delta="20" | ||
71 | mouse_opaque="true" name="FriendsChatColor" width="65" /> | ||
72 | |||
73 | <check_box bottom_delta="-25" enabled="true" follows="left|top" | ||
74 | font="SansSerifSmall" height="16" initial_value="true" | ||
75 | label="Highlight local chat containing your name" left="120" mouse_opaque="true" | ||
76 | name="HighlightOwnNameInChat" radio_style="false" width="217" /> | ||
77 | <check_box bottom_delta="-20" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | ||
78 | initial_value="true" label="Highlight group chat containing your name" left_delta="0" | ||
79 | mouse_opaque="true" name="HighlightOwnNameInIM" radio_style="false" width="270"/> | ||
80 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom_delta="-70" | ||
81 | can_apply_immediately="true" color="1 1 1 1" control_name="OwnNameChatColor" | ||
82 | enabled="true" follows="left|top" height="65" label="Your name" left_delta="20" | ||
83 | mouse_opaque="true" name="OwnNameChatColor" width="65" /> | ||
84 | |||
85 | <text bottom_delta="-30" follows="left|top" font="SansSerifSmall" height="20" | ||
86 | left="140" name="nick01_text" width="150"> | ||
87 | Highlight nickname 1: | ||
88 | </text> | ||
89 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="3" | ||
90 | enabled="true" follows="left|top" font="SansSerif" | ||
91 | handle_edit_keys_directly="true" height="20" left_delta="125" | ||
92 | max_length="50" mouse_opaque="true" name="nick01" | ||
93 | select_all_on_focus_received="true" width="160" word_wrap="false" /> | ||
94 | |||
95 | <text bottom_delta="-25" follows="left|top" font="SansSerifSmall" height="20" | ||
96 | left="140" name="nick02_text" width="150"> | ||
97 | Highlight nickname 2: | ||
98 | </text> | ||
99 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="3" | ||
100 | enabled="true" follows="left|top" font="SansSerif" | ||
101 | handle_edit_keys_directly="true" height="20" left_delta="125" | ||
102 | max_length="50" mouse_opaque="true" name="nick02" | ||
103 | select_all_on_focus_received="true" width="160" word_wrap="false" /> | ||
104 | |||
105 | <text bottom_delta="-25" follows="left|top" font="SansSerifSmall" height="20" | ||
106 | left="140" name="nick03_text" width="150"> | ||
107 | Highlight nickname 3: | ||
108 | </text> | ||
109 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="3" | ||
110 | enabled="true" follows="left|top" font="SansSerif" | ||
111 | handle_edit_keys_directly="true" height="20" left_delta="125" | ||
112 | max_length="50" mouse_opaque="true" name="nick03" | ||
113 | select_all_on_focus_received="true" width="160" word_wrap="false" /> | ||
114 | |||
115 | </panel> | ||