diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llprefschat.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llprefschat.cpp')
-rw-r--r-- | linden/indra/newview/llprefschat.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llprefschat.cpp b/linden/indra/newview/llprefschat.cpp index 3236f79..e045e61 100644 --- a/linden/indra/newview/llprefschat.cpp +++ b/linden/indra/newview/llprefschat.cpp | |||
@@ -36,6 +36,7 @@ | |||
36 | #include "lltexteditor.h" | 36 | #include "lltexteditor.h" |
37 | #include "llviewercontrol.h" | 37 | #include "llviewercontrol.h" |
38 | #include "lluictrlfactory.h" | 38 | #include "lluictrlfactory.h" |
39 | #include "llstylemap.h" | ||
39 | 40 | ||
40 | class LLPrefsChatImpl : public LLPanel | 41 | class LLPrefsChatImpl : public LLPanel |
41 | { | 42 | { |
@@ -53,6 +54,7 @@ protected: | |||
53 | F32 mChatPersist; | 54 | F32 mChatPersist; |
54 | S32 mChatMaxLines; | 55 | S32 mChatMaxLines; |
55 | LLColor4 mSystemChatColor; | 56 | LLColor4 mSystemChatColor; |
57 | LLColor4 mUserChatColor; | ||
56 | LLColor4 mAgentChatColor; | 58 | LLColor4 mAgentChatColor; |
57 | LLColor4 mIMChatColor; | 59 | LLColor4 mIMChatColor; |
58 | LLColor4 mObjectChatColor; | 60 | LLColor4 mObjectChatColor; |
@@ -73,7 +75,7 @@ protected: | |||
73 | 75 | ||
74 | 76 | ||
75 | LLPrefsChatImpl::LLPrefsChatImpl() | 77 | LLPrefsChatImpl::LLPrefsChatImpl() |
76 | : LLPanel("Chat Panel") | 78 | : LLPanel(std::string("Chat Panel")) |
77 | { | 79 | { |
78 | LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_chat.xml"); | 80 | LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_chat.xml"); |
79 | 81 | ||
@@ -89,6 +91,7 @@ void LLPrefsChatImpl::refresh() | |||
89 | mChatPersist = gSavedSettings.getF32("ChatPersistTime"); | 91 | mChatPersist = gSavedSettings.getF32("ChatPersistTime"); |
90 | mChatMaxLines = gSavedSettings.getS32("ConsoleMaxLines"); | 92 | mChatMaxLines = gSavedSettings.getS32("ConsoleMaxLines"); |
91 | mSystemChatColor = gSavedSettings.getColor4("SystemChatColor"); | 93 | mSystemChatColor = gSavedSettings.getColor4("SystemChatColor"); |
94 | mUserChatColor = gSavedSettings.getColor4("UserChatColor"); | ||
92 | mAgentChatColor = gSavedSettings.getColor4("AgentChatColor"); | 95 | mAgentChatColor = gSavedSettings.getColor4("AgentChatColor"); |
93 | mIMChatColor = gSavedSettings.getColor4("IMChatColor"); | 96 | mIMChatColor = gSavedSettings.getColor4("IMChatColor"); |
94 | mObjectChatColor = gSavedSettings.getColor4("ObjectChatColor"); | 97 | mObjectChatColor = gSavedSettings.getColor4("ObjectChatColor"); |
@@ -102,6 +105,7 @@ void LLPrefsChatImpl::refresh() | |||
102 | mChatBubbles = gSavedSettings.getBOOL("UseChatBubbles"); | 105 | mChatBubbles = gSavedSettings.getBOOL("UseChatBubbles"); |
103 | mChatFullWidth = gSavedSettings.getBOOL("ChatFullWidth"); | 106 | mChatFullWidth = gSavedSettings.getBOOL("ChatFullWidth"); |
104 | mCloseChatOnReturn = gSavedSettings.getBOOL("CloseChatOnReturn"); | 107 | mCloseChatOnReturn = gSavedSettings.getBOOL("CloseChatOnReturn"); |
108 | mPlayTypingAnim = gSavedSettings.getBOOL("PlayTypingAnim"); | ||
105 | mConsoleOpacity = gSavedSettings.getF32("ConsoleBackgroundOpacity"); | 109 | mConsoleOpacity = gSavedSettings.getF32("ConsoleBackgroundOpacity"); |
106 | mBubbleOpacity = gSavedSettings.getF32("ChatBubbleOpacity"); | 110 | mBubbleOpacity = gSavedSettings.getF32("ChatBubbleOpacity"); |
107 | } | 111 | } |
@@ -112,6 +116,7 @@ void LLPrefsChatImpl::cancel() | |||
112 | gSavedSettings.setF32("ChatPersistTime", mChatPersist); | 116 | gSavedSettings.setF32("ChatPersistTime", mChatPersist); |
113 | gSavedSettings.setS32("ConsoleMaxLines", mChatMaxLines); | 117 | gSavedSettings.setS32("ConsoleMaxLines", mChatMaxLines); |
114 | gSavedSettings.setColor4("SystemChatColor", mSystemChatColor); | 118 | gSavedSettings.setColor4("SystemChatColor", mSystemChatColor); |
119 | gSavedSettings.setColor4("UserChatColor", mUserChatColor); | ||
115 | gSavedSettings.setColor4("AgentChatColor", mAgentChatColor); | 120 | gSavedSettings.setColor4("AgentChatColor", mAgentChatColor); |
116 | gSavedSettings.setColor4("IMChatColor", mIMChatColor); | 121 | gSavedSettings.setColor4("IMChatColor", mIMChatColor); |
117 | gSavedSettings.setColor4("ObjectChatColor", mObjectChatColor); | 122 | gSavedSettings.setColor4("ObjectChatColor", mObjectChatColor); |
@@ -125,6 +130,7 @@ void LLPrefsChatImpl::cancel() | |||
125 | gSavedSettings.setBOOL("UseChatBubbles", mChatBubbles); | 130 | gSavedSettings.setBOOL("UseChatBubbles", mChatBubbles); |
126 | gSavedSettings.setBOOL("ChatFullWidth", mChatFullWidth); | 131 | gSavedSettings.setBOOL("ChatFullWidth", mChatFullWidth); |
127 | gSavedSettings.setBOOL("CloseChatOnReturn", mCloseChatOnReturn); | 132 | gSavedSettings.setBOOL("CloseChatOnReturn", mCloseChatOnReturn); |
133 | gSavedSettings.setBOOL("PlayTypingAnim", mPlayTypingAnim); | ||
128 | gSavedSettings.setF32("ConsoleBackgroundOpacity", mConsoleOpacity); | 134 | gSavedSettings.setF32("ConsoleBackgroundOpacity", mConsoleOpacity); |
129 | gSavedSettings.setF32("ChatBubbleOpacity", mBubbleOpacity); | 135 | gSavedSettings.setF32("ChatBubbleOpacity", mBubbleOpacity); |
130 | } | 136 | } |
@@ -149,6 +155,7 @@ void LLPrefsChat::apply() | |||
149 | { | 155 | { |
150 | impl.apply(); | 156 | impl.apply(); |
151 | LLTextEditor::setLinkColor( gSavedSettings.getColor4("HTMLLinkColor") ); | 157 | LLTextEditor::setLinkColor( gSavedSettings.getColor4("HTMLLinkColor") ); |
158 | LLStyleMap::instance().update(); | ||
152 | } | 159 | } |
153 | 160 | ||
154 | void LLPrefsChat::cancel() | 161 | void LLPrefsChat::cancel() |