diff options
Diffstat (limited to 'linden/indra/newview')
5 files changed, 53 insertions, 13 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index f148b80..55e6131 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -10107,6 +10107,17 @@ | |||
10107 | <key>Value</key> | 10107 | <key>Value</key> |
10108 | <integer>0</integer> | 10108 | <integer>0</integer> |
10109 | </map> | 10109 | </map> |
10110 | <key>VerticalIMTabs</key> | ||
10111 | <map> | ||
10112 | <key>Comment</key> | ||
10113 | <string>Enable vertical layout for IM tabs</string> | ||
10114 | <key>Persist</key> | ||
10115 | <integer>1</integer> | ||
10116 | <key>Type</key> | ||
10117 | <string>Boolean</string> | ||
10118 | <key>Value</key> | ||
10119 | <integer>0</integer> | ||
10120 | </map> | ||
10110 | <key>VivoxDebugLevel</key> | 10121 | <key>VivoxDebugLevel</key> |
10111 | <map> | 10122 | <map> |
10112 | <key>Comment</key> | 10123 | <key>Comment</key> |
diff --git a/linden/indra/newview/llfloaterchatterbox.cpp b/linden/indra/newview/llfloaterchatterbox.cpp index 5ef5a30..e18cca0 100644 --- a/linden/indra/newview/llfloaterchatterbox.cpp +++ b/linden/indra/newview/llfloaterchatterbox.cpp | |||
@@ -97,7 +97,16 @@ LLFloaterChatterBox::LLFloaterChatterBox(const LLSD& seed) : | |||
97 | { | 97 | { |
98 | mAutoResize = FALSE; | 98 | mAutoResize = FALSE; |
99 | 99 | ||
100 | LLUICtrlFactory::getInstance()->buildFloater(this, "floater_chatterbox.xml", NULL, FALSE); | 100 | // check if vertical tabs is selected |
101 | if (gSavedSettings.getBOOL("VerticalIMTabs")) | ||
102 | { | ||
103 | LLUICtrlFactory::getInstance()->buildFloater(this, "floater_chatterbox_vertical.xml", NULL, FALSE); | ||
104 | } | ||
105 | else | ||
106 | { | ||
107 | LLUICtrlFactory::getInstance()->buildFloater(this, "floater_chatterbox.xml", NULL, FALSE); | ||
108 | } | ||
109 | |||
101 | if (gSavedSettings.getBOOL("ContactsTornOff")) | 110 | if (gSavedSettings.getBOOL("ContactsTornOff")) |
102 | { | 111 | { |
103 | LLFloaterMyFriends* floater_contacts = LLFloaterMyFriends::getInstance(0); | 112 | LLFloaterMyFriends* floater_contacts = LLFloaterMyFriends::getInstance(0); |
diff --git a/linden/indra/newview/llprefsim.cpp b/linden/indra/newview/llprefsim.cpp index 3d71202..b6fbc88 100644 --- a/linden/indra/newview/llprefsim.cpp +++ b/linden/indra/newview/llprefsim.cpp | |||
@@ -121,6 +121,7 @@ BOOL LLPrefsIMImpl::postBuild() | |||
121 | childSetValue("include_im_in_chat_history", gSavedSettings.getBOOL("IMInChatHistory")); | 121 | childSetValue("include_im_in_chat_history", gSavedSettings.getBOOL("IMInChatHistory")); |
122 | childSetValue("show_timestamps_check", gSavedSettings.getBOOL("IMShowTimestamps")); | 122 | childSetValue("show_timestamps_check", gSavedSettings.getBOOL("IMShowTimestamps")); |
123 | childSetValue("friends_online_notify_checkbox", gSavedSettings.getBOOL("ChatOnlineNotification")); | 123 | childSetValue("friends_online_notify_checkbox", gSavedSettings.getBOOL("ChatOnlineNotification")); |
124 | childSetValue("vertical-imtabs-toggle", gSavedSettings.getBOOL("VerticalIMTabs")); | ||
124 | 125 | ||
125 | childSetText("log_path_string", gSavedPerAccountSettings.getString("InstantMessageLogPath")); | 126 | childSetText("log_path_string", gSavedPerAccountSettings.getString("InstantMessageLogPath")); |
126 | childSetValue("log_instant_messages", gSavedPerAccountSettings.getBOOL("LogInstantMessages")); | 127 | childSetValue("log_instant_messages", gSavedPerAccountSettings.getBOOL("LogInstantMessages")); |
@@ -216,6 +217,7 @@ void LLPrefsIMImpl::apply() | |||
216 | gAgent.sendReliableMessage(); | 217 | gAgent.sendReliableMessage(); |
217 | } | 218 | } |
218 | } | 219 | } |
220 | gSavedSettings.setBOOL("VerticalIMTabs", childGetValue("vertical-imtabs-toggle").asBoolean()); | ||
219 | } | 221 | } |
220 | 222 | ||
221 | void LLPrefsIMImpl::setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email) | 223 | void LLPrefsIMImpl::setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email) |
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_chatterbox_vertical.xml b/linden/indra/newview/skins/default/xui/en-us/floater_chatterbox_vertical.xml new file mode 100644 index 0000000..8b1f41b --- /dev/null +++ b/linden/indra/newview/skins/default/xui/en-us/floater_chatterbox_vertical.xml | |||
@@ -0,0 +1,14 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" standalone="yes" ?> | ||
2 | <multi_floater can_close="true" can_drag_on_left="false" can_minimize="true" can_resize="true" | ||
3 | height="390" name="floater_chatterbox" | ||
4 | rect_control="ChatterboxRect" title="Communicate" width="392"> | ||
5 | <tab_container bottom="2" follows="left|right|top|bottom" height="370" left="0" | ||
6 | name="chatterbox_tabs" tab_position="left" tab_width="126" width="395" /> | ||
7 | <string name="unread_count_string_singular"> | ||
8 | Unread IM | ||
9 | </string> | ||
10 | <string name="unread_count_string_plural"> | ||
11 | Unread IMs | ||
12 | </string> | ||
13 | </multi_floater> | ||
14 | |||
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 ee00455..9b18e11 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 | |||
@@ -49,55 +49,59 @@ | |||
49 | initial_value="false" label="Show online Friend notifications" left="148" | 49 | initial_value="false" label="Show online Friend notifications" left="148" |
50 | mouse_opaque="true" name="friends_online_notify_checkbox" | 50 | mouse_opaque="true" name="friends_online_notify_checkbox" |
51 | radio_style="false" width="256" /> | 51 | radio_style="false" width="256" /> |
52 | <check_box bottom_delta="-20" enabled="true" | ||
53 | follows="left|top" font="SansSerifSmall" height="16" initial_value="false" | ||
54 | label="Vertical IM tabs (requires restart)" left_delta="0" mouse_opaque="true" | ||
55 | name="vertical-imtabs-toggle" radio_style="false" width="270" /> | ||
52 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 56 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
53 | bottom="-125" drop_shadow_visible="true" enabled="true" follows="left|top" | 57 | bottom_delta="-20" drop_shadow_visible="true" enabled="true" follows="left|top" |
54 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | 58 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" |
55 | mouse_opaque="false" name="text_box3" v_pad="0" width="128"> | 59 | mouse_opaque="false" name="text_box3" v_pad="0" width="128"> |
56 | Busy Mode Response: | 60 | Busy Mode Response: |
57 | </text> | 61 | </text> |
58 | <text_editor type="string" length="1" bottom="-185" embedded_items="false" enabled="true" follows="left|top" | 62 | <text_editor type="string" length="1" bottom_delta="-60" embedded_items="false" enabled="true" follows="left|top" |
59 | font="SansSerifSmall" height="70" left="148" max_length="255" | 63 | font="SansSerifSmall" height="70" left="148" max_length="255" |
60 | mouse_opaque="true" name="busy_response" width="330" word_wrap="true" /> | 64 | mouse_opaque="true" name="busy_response" width="330" word_wrap="true" /> |
61 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 65 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
62 | bottom="-218" drop_shadow_visible="true" enabled="true" follows="left|top" | 66 | bottom_delta="-33" drop_shadow_visible="true" enabled="true" follows="left|top" |
63 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | 67 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" |
64 | mouse_opaque="false" name="text_box4" v_pad="0" width="128"> | 68 | mouse_opaque="false" name="text_box4" v_pad="0" width="128"> |
65 | Logging Options: | 69 | Logging Options: |
66 | </text> | 70 | </text> |
67 | <check_box bottom="-225" enabled="true" | 71 | <check_box bottom_delta="-7" enabled="true" |
68 | follows="left|top" font="SansSerifSmall" height="16" | 72 | follows="left|top" font="SansSerifSmall" height="16" |
69 | initial_value="false" label="Save a log of IM on my computer" left="148" | 73 | initial_value="false" label="Save a log of IM on my computer" left="148" |
70 | mouse_opaque="true" name="log_instant_messages" radio_style="false" | 74 | mouse_opaque="true" name="log_instant_messages" radio_style="false" |
71 | width="237" /> | 75 | width="237" /> |
72 | <check_box bottom="-245" enabled="true" | 76 | <check_box bottom_delta="-20" enabled="true" |
73 | follows="left|top" font="SansSerifSmall" height="16" | 77 | follows="left|top" font="SansSerifSmall" height="16" |
74 | initial_value="false" label="Show timestamps in IM log" left="168" | 78 | initial_value="false" label="Show timestamps in IM log" left="168" |
75 | mouse_opaque="true" name="log_instant_messages_timestamp" radio_style="false" | 79 | mouse_opaque="true" name="log_instant_messages_timestamp" radio_style="false" |
76 | width="217" /> | 80 | width="217" /> |
77 | <check_box bottom="-265" enabled="true" follows="left|top" | 81 | <check_box bottom_delta="-20" enabled="true" follows="left|top" |
78 | font="SansSerifSmall" height="16" initial_value="false" | 82 | font="SansSerifSmall" height="16" initial_value="false" |
79 | label="Show the end of last IM conversation" left="168" mouse_opaque="true" | 83 | label="Show the end of last IM conversation" left="168" mouse_opaque="true" |
80 | name="log_show_history" radio_style="false" width="217" /> | 84 | name="log_show_history" radio_style="false" width="217" /> |
81 | <check_box bottom="-285" enabled="true" follows="left|top" | 85 | <check_box bottom_delta="-20" enabled="true" follows="left|top" |
82 | font="SansSerifSmall" height="16" initial_value="false" label="Save a log of Local Chat on my computer" | 86 | font="SansSerifSmall" height="16" initial_value="false" label="Save a log of Local Chat on my computer" |
83 | left="148" mouse_opaque="true" name="log_chat" radio_style="false" | 87 | left="148" mouse_opaque="true" name="log_chat" radio_style="false" |
84 | width="237" /> | 88 | width="237" /> |
85 | <check_box bottom="-305" enabled="true" follows="left|top" | 89 | <check_box bottom_delta="-20" enabled="true" follows="left|top" |
86 | font="SansSerifSmall" height="16" initial_value="false" | 90 | font="SansSerifSmall" height="16" initial_value="false" |
87 | label="Show timestamps in Local Chat log" left="168" mouse_opaque="true" | 91 | label="Show timestamps in Local Chat log" left="168" mouse_opaque="true" |
88 | name="log_chat_timestamp" radio_style="false" width="217" /> | 92 | name="log_chat_timestamp" radio_style="false" width="217" /> |
89 | <check_box bottom="-325" enabled="true" follows="left|top" | 93 | <check_box bottom_delta="-20" enabled="true" follows="left|top" |
90 | font="SansSerifSmall" height="16" initial_value="false" | 94 | font="SansSerifSmall" height="16" initial_value="false" |
91 | label="Show incoming IM in Local Chat log" left="168" mouse_opaque="true" | 95 | label="Show incoming IM in Local Chat log" left="168" mouse_opaque="true" |
92 | name="log_chat_IM" radio_style="false" width="217" /> | 96 | name="log_chat_IM" radio_style="false" width="217" /> |
93 | <check_box bottom="-345" enabled="true" follows="left|top" | 97 | <check_box bottom_delta="-20" enabled="true" follows="left|top" |
94 | font="SansSerifSmall" height="16" initial_value="false" | 98 | font="SansSerifSmall" height="16" initial_value="false" |
95 | label="Include date with timestamps" left="148" mouse_opaque="true" | 99 | label="Include date with timestamps" left="148" mouse_opaque="true" |
96 | name="log_date_timestamp" radio_style="false" width="237" /> | 100 | name="log_date_timestamp" radio_style="false" width="237" /> |
97 | <button bottom="-367" follows="right|bottom" font="SansSerif" halign="center" | 101 | <button bottom_delta="-22" follows="right|bottom" font="SansSerif" halign="center" |
98 | height="20" label="Change Path" label_selected="Change Path" left="170" | 102 | height="20" label="Change Path" label_selected="Change Path" left="170" |
99 | mouse_opaque="true" name="log_path_button" width="90" /> | 103 | mouse_opaque="true" name="log_path_button" width="90" /> |
100 | <line_editor border_drop_shadow_visible="false" border_visible="false" bottom="-366" | 104 | <line_editor border_drop_shadow_visible="false" border_visible="false" bottom_delta="1" |
101 | drop_shadow_visible="true" enabled="false" follows="top|left|right" | 105 | drop_shadow_visible="true" enabled="false" follows="top|left|right" |
102 | font="SansSerifSmall" halign="right" height="19" left="248" | 106 | font="SansSerifSmall" halign="right" height="19" left="248" |
103 | max_length="254" mouse_opaque="false" name="log_path_string" right="-20" /> | 107 | max_length="254" mouse_opaque="false" name="log_path_string" right="-20" /> |