From fac71ad35e5dc3db777a98d60c30b6d56219a035 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sat, 10 Oct 2009 00:44:27 -0700 Subject: Added and tweaked vertical IM option from Emerald viewer --- ChangeLog.txt | 11 +++++++++ linden/indra/newview/app_settings/settings.xml | 11 +++++++++ linden/indra/newview/llfloaterchatterbox.cpp | 11 ++++++++- linden/indra/newview/llprefsim.cpp | 2 ++ .../xui/en-us/floater_chatterbox_vertical.xml | 14 +++++++++++ .../default/xui/en-us/panel_preferences_im.xml | 28 ++++++++++++---------- 6 files changed, 64 insertions(+), 13 deletions(-) create mode 100644 linden/indra/newview/skins/default/xui/en-us/floater_chatterbox_vertical.xml diff --git a/ChangeLog.txt b/ChangeLog.txt index 0fe80e5..09ce463 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,14 @@ +2009-10-10 McCabe Maxsted + + * Added and tweaked vertical IM option from Emerald viewer. + + new file: linden/indra/newview/skins/default/xui/en-us/floater_chatterbox_vertical.xml + modified: linden/indra/newview/app_settings/settings.xml + modified: linden/indra/newview/llfloaterchatterbox.cpp + modified: linden/indra/newview/llprefsim.cpp + modified: linden/indra/newview/skins/default/xui/en-us/panel_preferences_im.xml + + =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =- 1.2.0 BETA 2 -= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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 @@ Value 0 + VerticalIMTabs + + Comment + Enable vertical layout for IM tabs + Persist + 1 + Type + Boolean + Value + 0 + VivoxDebugLevel Comment 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) : { mAutoResize = FALSE; - LLUICtrlFactory::getInstance()->buildFloater(this, "floater_chatterbox.xml", NULL, FALSE); + // check if vertical tabs is selected + if (gSavedSettings.getBOOL("VerticalIMTabs")) + { + LLUICtrlFactory::getInstance()->buildFloater(this, "floater_chatterbox_vertical.xml", NULL, FALSE); + } + else + { + LLUICtrlFactory::getInstance()->buildFloater(this, "floater_chatterbox.xml", NULL, FALSE); + } + if (gSavedSettings.getBOOL("ContactsTornOff")) { 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() childSetValue("include_im_in_chat_history", gSavedSettings.getBOOL("IMInChatHistory")); childSetValue("show_timestamps_check", gSavedSettings.getBOOL("IMShowTimestamps")); childSetValue("friends_online_notify_checkbox", gSavedSettings.getBOOL("ChatOnlineNotification")); + childSetValue("vertical-imtabs-toggle", gSavedSettings.getBOOL("VerticalIMTabs")); childSetText("log_path_string", gSavedPerAccountSettings.getString("InstantMessageLogPath")); childSetValue("log_instant_messages", gSavedPerAccountSettings.getBOOL("LogInstantMessages")); @@ -216,6 +217,7 @@ void LLPrefsIMImpl::apply() gAgent.sendReliableMessage(); } } + gSavedSettings.setBOOL("VerticalIMTabs", childGetValue("vertical-imtabs-toggle").asBoolean()); } 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 @@ + + + + + Unread IM + + + Unread IMs + + + 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 @@ initial_value="false" label="Show online Friend notifications" left="148" mouse_opaque="true" name="friends_online_notify_checkbox" radio_style="false" width="256" /> + Busy Mode Response: - Logging Options: - - - - - - - -