diff options
-rw-r--r-- | ChangeLog.txt | 10 | ||||
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterchat.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llprefsim.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_im.xml | 82 |
5 files changed, 72 insertions, 37 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 91c5ceb..6609f53 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,3 +1,13 @@ | |||
1 | 2009-06-14 McCabe Maxsted <hakushakukun@gmail.com> | ||
2 | |||
3 | * Added IM preference for showing IMs in either main or local chat. | ||
4 | |||
5 | modified: linden/indra/newview/app_settings/settings.xml | ||
6 | modified: linden/indra/newview/llfloaterchat.cpp | ||
7 | modified: linden/indra/newview/llprefsim.cpp | ||
8 | modified: linden/indra/newview/skins/default/xui/en-us/panel_preferences_im.xml | ||
9 | |||
10 | |||
1 | 2009-06-13 McCabe Maxsted <hakushakukun@gmail.com> | 11 | 2009-06-13 McCabe Maxsted <hakushakukun@gmail.com> |
2 | 12 | ||
3 | * Added 'Show Map' option to the mini-map menu. | 13 | * Added 'Show Map' option to the mini-map menu. |
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 774a13b..5c76185 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -3911,6 +3911,17 @@ | |||
3911 | <real>1.0</real> | 3911 | <real>1.0</real> |
3912 | </array> | 3912 | </array> |
3913 | </map> | 3913 | </map> |
3914 | <key>IMInChatConsole</key> | ||
3915 | <map> | ||
3916 | <key>Comment</key> | ||
3917 | <string>Show IMs in main chat</string> | ||
3918 | <key>Persist</key> | ||
3919 | <integer>1</integer> | ||
3920 | <key>Type</key> | ||
3921 | <string>Boolean</string> | ||
3922 | <key>Value</key> | ||
3923 | <integer>0</integer> | ||
3924 | </map> | ||
3914 | <key>IMInChatHistory</key> | 3925 | <key>IMInChatHistory</key> |
3915 | <map> | 3926 | <map> |
3916 | <key>Comment</key> | 3927 | <key>Comment</key> |
diff --git a/linden/indra/newview/llfloaterchat.cpp b/linden/indra/newview/llfloaterchat.cpp index 8e9d489..5117b8d 100644 --- a/linden/indra/newview/llfloaterchat.cpp +++ b/linden/indra/newview/llfloaterchat.cpp | |||
@@ -386,7 +386,7 @@ void LLFloaterChat::addChat(const LLChat& chat, | |||
386 | size = INSTANT_MSG_SIZE; | 386 | size = INSTANT_MSG_SIZE; |
387 | } | 387 | } |
388 | // We display anything if it's not an IM. If it's an IM, check pref... | 388 | // We display anything if it's not an IM. If it's an IM, check pref... |
389 | if ( !from_instant_message || gSavedSettings.getBOOL("IMInChatHistory") ) | 389 | if ( !from_instant_message || gSavedSettings.getBOOL("IMInChatConsole") ) |
390 | { | 390 | { |
391 | gConsole->addLine(chat.mText, size, text_color); | 391 | gConsole->addLine(chat.mText, size, text_color); |
392 | } | 392 | } |
diff --git a/linden/indra/newview/llprefsim.cpp b/linden/indra/newview/llprefsim.cpp index 1af6e86..39619b7 100644 --- a/linden/indra/newview/llprefsim.cpp +++ b/linden/indra/newview/llprefsim.cpp | |||
@@ -96,6 +96,7 @@ BOOL LLPrefsIMImpl::postBuild() | |||
96 | childSetLabelArg("send_im_to_email", "[EMAIL]", getString("log_in_to_change")); | 96 | childSetLabelArg("send_im_to_email", "[EMAIL]", getString("log_in_to_change")); |
97 | 97 | ||
98 | // Don't enable this until we get personal data | 98 | // Don't enable this until we get personal data |
99 | childDisable("include_im_in_chat_console"); | ||
99 | childDisable("include_im_in_chat_history"); | 100 | childDisable("include_im_in_chat_history"); |
100 | childDisable("show_timestamps_check"); | 101 | childDisable("show_timestamps_check"); |
101 | childDisable("friends_online_notify_checkbox"); | 102 | childDisable("friends_online_notify_checkbox"); |
@@ -114,6 +115,7 @@ BOOL LLPrefsIMImpl::postBuild() | |||
114 | 115 | ||
115 | childSetText("busy_response", getString("log_in_to_change")); | 116 | childSetText("busy_response", getString("log_in_to_change")); |
116 | 117 | ||
118 | childSetValue("include_im_in_chat_console", gSavedSettings.getBOOL("IMInChatConsole")); | ||
117 | childSetValue("include_im_in_chat_history", gSavedSettings.getBOOL("IMInChatHistory")); | 119 | childSetValue("include_im_in_chat_history", gSavedSettings.getBOOL("IMInChatHistory")); |
118 | childSetValue("show_timestamps_check", gSavedSettings.getBOOL("IMShowTimestamps")); | 120 | childSetValue("show_timestamps_check", gSavedSettings.getBOOL("IMShowTimestamps")); |
119 | childSetValue("friends_online_notify_checkbox", gSavedSettings.getBOOL("ChatOnlineNotification")); | 121 | childSetValue("friends_online_notify_checkbox", gSavedSettings.getBOOL("ChatOnlineNotification")); |
@@ -163,6 +165,7 @@ void LLPrefsIMImpl::apply() | |||
163 | 165 | ||
164 | gSavedPerAccountSettings.setString("BusyModeResponse", std::string(wstring_to_utf8str(busy_response))); | 166 | gSavedPerAccountSettings.setString("BusyModeResponse", std::string(wstring_to_utf8str(busy_response))); |
165 | 167 | ||
168 | gSavedSettings.setBOOL("IMInChatConsole", childGetValue("include_im_in_chat_console").asBoolean()); | ||
166 | gSavedSettings.setBOOL("IMInChatHistory", childGetValue("include_im_in_chat_history").asBoolean()); | 169 | gSavedSettings.setBOOL("IMInChatHistory", childGetValue("include_im_in_chat_history").asBoolean()); |
167 | gSavedSettings.setBOOL("IMShowTimestamps", childGetValue("show_timestamps_check").asBoolean()); | 170 | gSavedSettings.setBOOL("IMShowTimestamps", childGetValue("show_timestamps_check").asBoolean()); |
168 | gSavedSettings.setBOOL("ChatOnlineNotification", childGetValue("friends_online_notify_checkbox").asBoolean()); | 171 | gSavedSettings.setBOOL("ChatOnlineNotification", childGetValue("friends_online_notify_checkbox").asBoolean()); |
@@ -234,6 +237,7 @@ void LLPrefsIMImpl::setPersonalInfo(const std::string& visibility, bool im_via_e | |||
234 | mOriginalHideOnlineStatus = true; | 237 | mOriginalHideOnlineStatus = true; |
235 | } | 238 | } |
236 | 239 | ||
240 | childEnable("include_im_in_chat_console"); | ||
237 | childEnable("include_im_in_chat_history"); | 241 | childEnable("include_im_in_chat_history"); |
238 | childEnable("show_timestamps_check"); | 242 | childEnable("show_timestamps_check"); |
239 | childEnable("friends_online_notify_checkbox"); | 243 | childEnable("friends_online_notify_checkbox"); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_im.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_im.xml index f0f79e4..ee00455 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_im.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_im.xml | |||
@@ -2,92 +2,102 @@ | |||
2 | <panel border="true" bottom="-409" enabled="true" follows="left|top|right|bottom" | 2 | <panel border="true" bottom="-409" enabled="true" follows="left|top|right|bottom" |
3 | height="408" label="Communication" left="102" mouse_opaque="true" name="im" | 3 | height="408" label="Communication" left="102" mouse_opaque="true" name="im" |
4 | width="517"> | 4 | width="517"> |
5 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 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" | 6 | bottom="-20" drop_shadow_visible="true" enabled="true" follows="left|top" |
7 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | 7 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" |
8 | mouse_opaque="false" name="text_box" v_pad="0" width="128"> | 8 | mouse_opaque="false" name="text_box" v_pad="0" width="128"> |
9 | My Online Status: | 9 | My Online Status: |
10 | </text> | 10 | </text> |
11 | <check_box bottom="-25" enabled="true" follows="left|top" font="SansSerifSmall" | 11 | <check_box bottom="-25" enabled="true" follows="left|top" font="SansSerifSmall" |
12 | height="16" initial_value="false" | 12 | height="16" initial_value="false" |
13 | label="Only my Friends and Groups can see when I am online" | 13 | label="Only my Friends and Groups can see when I am online" |
14 | left="148" mouse_opaque="true" name="online_visibility" radio_style="false" | 14 | left="148" mouse_opaque="true" name="online_visibility" radio_style="false" |
15 | width="350" /> | 15 | width="350" /> |
16 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 16 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
17 | bottom="-40" drop_shadow_visible="true" enabled="true" follows="left|top" | 17 | bottom="-40" drop_shadow_visible="true" enabled="true" follows="left|top" |
18 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | 18 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" |
19 | mouse_opaque="false" name="text_box2" v_pad="0" width="128"> | 19 | mouse_opaque="false" name="text_box2" v_pad="0" width="128"> |
20 | IM Options: | 20 | IM Options: |
21 | </text> | 21 | </text> |
22 | <string name="log_in_to_change"> | 22 | <string name="log_in_to_change"> |
23 | log in to change | 23 | log in to change |
24 | </string> | 24 | </string> |
25 | <check_box bottom="-45" enabled="true" follows="left|top" font="SansSerifSmall" | 25 | <check_box bottom="-45" enabled="true" follows="left|top" font="SansSerifSmall" |
26 | height="16" initial_value="false" label="Send IM to Email ([EMAIL])" | 26 | height="16" initial_value="false" label="Send IM to Email ([EMAIL])" |
27 | left="148" mouse_opaque="true" name="send_im_to_email" radio_style="false" | 27 | left="148" mouse_opaque="true" name="send_im_to_email" radio_style="false" |
28 | width="350" /> | 28 | width="350" /> |
29 | <check_box bottom="-65" enabled="true" follows="left|top" | 29 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
30 | bottom="-59" drop_shadow_visible="true" enabled="true" follows="left|top" | ||
31 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="148" | ||
32 | mouse_opaque="false" name="show_ims_label" v_pad="0" width="100"> | ||
33 | Show IMs in: | ||
34 | </text> | ||
35 | <check_box bottom="-65" enabled="true" follows="left|top" | ||
30 | font="SansSerifSmall" height="16" initial_value="false" | 36 | font="SansSerifSmall" height="16" initial_value="false" |
31 | label="Show IMs with Chat" left="148" mouse_opaque="true" | 37 | label="Main Chat" left="248" mouse_opaque="true" |
32 | name="include_im_in_chat_history" radio_style="false" width="237" /> | 38 | name="include_im_in_chat_console" radio_style="false" width="100" /> |
33 | <check_box bottom="-85" enabled="true" follows="left|top" | 39 | <check_box bottom="-65" enabled="true" follows="left|top" |
40 | font="SansSerifSmall" height="16" initial_value="false" | ||
41 | label="Local Chat" left="348" mouse_opaque="true" | ||
42 | name="include_im_in_chat_history" radio_style="false" width="100" /> | ||
43 | <check_box bottom="-85" enabled="true" follows="left|top" | ||
34 | font="SansSerifSmall" height="16" initial_value="false" | 44 | font="SansSerifSmall" height="16" initial_value="false" |
35 | label="Show timestamps in IM" left="148" mouse_opaque="true" | 45 | label="Show timestamps in IM" left="148" mouse_opaque="true" |
36 | name="show_timestamps_check" radio_style="false" width="237" /> | 46 | name="show_timestamps_check" radio_style="false" width="237" /> |
37 | <check_box bottom="-105" enabled="true" | 47 | <check_box bottom="-105" enabled="true" |
38 | follows="left|top" font="SansSerifSmall" height="16" | 48 | follows="left|top" font="SansSerifSmall" height="16" |
39 | initial_value="false" label="Show online Friend notifications" left="148" | 49 | initial_value="false" label="Show online Friend notifications" left="148" |
40 | mouse_opaque="true" name="friends_online_notify_checkbox" | 50 | mouse_opaque="true" name="friends_online_notify_checkbox" |
41 | radio_style="false" width="256" /> | 51 | radio_style="false" width="256" /> |
42 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 52 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
43 | bottom="-125" drop_shadow_visible="true" enabled="true" follows="left|top" | 53 | bottom="-125" drop_shadow_visible="true" enabled="true" follows="left|top" |
44 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | 54 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" |
45 | mouse_opaque="false" name="text_box3" v_pad="0" width="128"> | 55 | mouse_opaque="false" name="text_box3" v_pad="0" width="128"> |
46 | Busy Mode Response: | 56 | Busy Mode Response: |
47 | </text> | 57 | </text> |
48 | <text_editor type="string" length="1" bottom="-185" embedded_items="false" enabled="true" follows="left|top" | 58 | <text_editor type="string" length="1" bottom="-185" embedded_items="false" enabled="true" follows="left|top" |
49 | font="SansSerifSmall" height="70" left="148" max_length="255" | 59 | font="SansSerifSmall" height="70" left="148" max_length="255" |
50 | mouse_opaque="true" name="busy_response" width="330" word_wrap="true" /> | 60 | mouse_opaque="true" name="busy_response" width="330" word_wrap="true" /> |
51 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 61 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
52 | bottom="-218" drop_shadow_visible="true" enabled="true" follows="left|top" | 62 | bottom="-218" drop_shadow_visible="true" enabled="true" follows="left|top" |
53 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | 63 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" |
54 | mouse_opaque="false" name="text_box4" v_pad="0" width="128"> | 64 | mouse_opaque="false" name="text_box4" v_pad="0" width="128"> |
55 | Logging Options: | 65 | Logging Options: |
56 | </text> | 66 | </text> |
57 | <check_box bottom="-225" enabled="true" | 67 | <check_box bottom="-225" enabled="true" |
58 | follows="left|top" font="SansSerifSmall" height="16" | 68 | follows="left|top" font="SansSerifSmall" height="16" |
59 | initial_value="false" label="Save a log of IM on my computer" left="148" | 69 | initial_value="false" label="Save a log of IM on my computer" left="148" |
60 | mouse_opaque="true" name="log_instant_messages" radio_style="false" | 70 | mouse_opaque="true" name="log_instant_messages" radio_style="false" |
61 | width="237" /> | 71 | width="237" /> |
62 | <check_box bottom="-245" enabled="true" | 72 | <check_box bottom="-245" enabled="true" |
63 | follows="left|top" font="SansSerifSmall" height="16" | 73 | follows="left|top" font="SansSerifSmall" height="16" |
64 | initial_value="false" label="Show timestamps in IM log" left="168" | 74 | initial_value="false" label="Show timestamps in IM log" left="168" |
65 | mouse_opaque="true" name="log_instant_messages_timestamp" radio_style="false" | 75 | mouse_opaque="true" name="log_instant_messages_timestamp" radio_style="false" |
66 | width="217" /> | 76 | width="217" /> |
67 | <check_box bottom="-265" enabled="true" follows="left|top" | 77 | <check_box bottom="-265" enabled="true" follows="left|top" |
68 | font="SansSerifSmall" height="16" initial_value="false" | 78 | font="SansSerifSmall" height="16" initial_value="false" |
69 | label="Show the end of last IM conversation" left="168" mouse_opaque="true" | 79 | label="Show the end of last IM conversation" left="168" mouse_opaque="true" |
70 | name="log_show_history" radio_style="false" width="217" /> | 80 | name="log_show_history" radio_style="false" width="217" /> |
71 | <check_box bottom="-285" enabled="true" follows="left|top" | 81 | <check_box bottom="-285" enabled="true" follows="left|top" |
72 | font="SansSerifSmall" height="16" initial_value="false" label="Save a log of Local Chat on my computer" | 82 | font="SansSerifSmall" height="16" initial_value="false" label="Save a log of Local Chat on my computer" |
73 | left="148" mouse_opaque="true" name="log_chat" radio_style="false" | 83 | left="148" mouse_opaque="true" name="log_chat" radio_style="false" |
74 | width="237" /> | 84 | width="237" /> |
75 | <check_box bottom="-305" enabled="true" follows="left|top" | 85 | <check_box bottom="-305" enabled="true" follows="left|top" |
76 | font="SansSerifSmall" height="16" initial_value="false" | 86 | font="SansSerifSmall" height="16" initial_value="false" |
77 | label="Show timestamps in Local Chat log" left="168" mouse_opaque="true" | 87 | label="Show timestamps in Local Chat log" left="168" mouse_opaque="true" |
78 | name="log_chat_timestamp" radio_style="false" width="217" /> | 88 | name="log_chat_timestamp" radio_style="false" width="217" /> |
79 | <check_box bottom="-325" enabled="true" follows="left|top" | 89 | <check_box bottom="-325" enabled="true" follows="left|top" |
80 | font="SansSerifSmall" height="16" initial_value="false" | 90 | font="SansSerifSmall" height="16" initial_value="false" |
81 | label="Show incoming IM in Local Chat log" left="168" mouse_opaque="true" | 91 | label="Show incoming IM in Local Chat log" left="168" mouse_opaque="true" |
82 | name="log_chat_IM" radio_style="false" width="217" /> | 92 | name="log_chat_IM" radio_style="false" width="217" /> |
83 | <check_box bottom="-345" enabled="true" follows="left|top" | 93 | <check_box bottom="-345" enabled="true" follows="left|top" |
84 | font="SansSerifSmall" height="16" initial_value="false" | 94 | font="SansSerifSmall" height="16" initial_value="false" |
85 | label="Include date with timestamps" left="148" mouse_opaque="true" | 95 | label="Include date with timestamps" left="148" mouse_opaque="true" |
86 | name="log_date_timestamp" radio_style="false" width="237" /> | 96 | name="log_date_timestamp" radio_style="false" width="237" /> |
87 | <button bottom="-367" follows="right|bottom" font="SansSerif" halign="center" | 97 | <button bottom="-367" follows="right|bottom" font="SansSerif" halign="center" |
88 | height="20" label="Change Path" label_selected="Change Path" left="170" | 98 | height="20" label="Change Path" label_selected="Change Path" left="170" |
89 | mouse_opaque="true" name="log_path_button" width="90" /> | 99 | mouse_opaque="true" name="log_path_button" width="90" /> |
90 | <line_editor border_drop_shadow_visible="false" border_visible="false" bottom="-366" | 100 | <line_editor border_drop_shadow_visible="false" border_visible="false" bottom="-366" |
91 | drop_shadow_visible="true" enabled="false" follows="top|left|right" | 101 | drop_shadow_visible="true" enabled="false" follows="top|left|right" |
92 | font="SansSerifSmall" halign="right" height="19" left="248" | 102 | font="SansSerifSmall" halign="right" height="19" left="248" |
93 | max_length="254" mouse_opaque="false" name="log_path_string" right="-20" /> | 103 | max_length="254" mouse_opaque="false" name="log_path_string" right="-20" /> |