From b4f672f9543c96c26e0246fb11eddedbcbe47fda Mon Sep 17 00:00:00 2001 From: Cinders Date: Tue, 16 Jul 2013 10:13:12 -0600 Subject: [PATCH] CHUI preference cleanup, will need more polishing --- indra/newview/llfloaterpreference.cpp | 39 +- .../default/xui/en/panel_preferences_chat.xml | 60 ++-- .../xui/en/panel_preferences_privacy.xml | 337 +++++++++++------- 3 files changed, 261 insertions(+), 175 deletions(-) diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 74b322bfd8..52859025b0 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -599,20 +599,21 @@ BOOL LLFloaterPreference::postBuild() tabcontainer->selectFirstTab(); getChild("cache_location")->setEnabled(FALSE); // make it read-only but selectable (STORM-227) -// getChildView("log_path_string")->setEnabled(FALSE);// do the same for chat logs path // was removed in prefs refactoring -Zi + getChildView("log_path_string")->setEnabled(FALSE);// do the same for chat logs path getChildView("log_path_string-panelsetup")->setEnabled(FALSE);// and the redundant instance -WoLf std::string cache_location = gDirUtilp->getExpandedFilename(LL_PATH_CACHE, ""); setCacheLocation(cache_location); - getChild("log_path_string")->setEnabled(FALSE); // make it read-only but selectable - getChild("language_combobox")->setCommitCallback(boost::bind(&LLFloaterPreference::onLanguageChange, this)); - - getChild("FriendIMOptions")->setCommitCallback(boost::bind(&LLFloaterPreference::onNotificationsChange, this,"FriendIMOptions")); - getChild("NonFriendIMOptions")->setCommitCallback(boost::bind(&LLFloaterPreference::onNotificationsChange, this,"NonFriendIMOptions")); - getChild("ConferenceIMOptions")->setCommitCallback(boost::bind(&LLFloaterPreference::onNotificationsChange, this,"ConferenceIMOptions")); - getChild("GroupChatOptions")->setCommitCallback(boost::bind(&LLFloaterPreference::onNotificationsChange, this,"GroupChatOptions")); - getChild("NearbyChatOptions")->setCommitCallback(boost::bind(&LLFloaterPreference::onNotificationsChange, this,"NearbyChatOptions")); + + // [CHUI MERGE] + // We don't use these in FS Communications UI, should we in the future? Disabling for now. + //getChild("FriendIMOptions")->setCommitCallback(boost::bind(&LLFloaterPreference::onNotificationsChange, this,"FriendIMOptions")); + //getChild("NonFriendIMOptions")->setCommitCallback(boost::bind(&LLFloaterPreference::onNotificationsChange, this,"NonFriendIMOptions")); + //getChild("ConferenceIMOptions")->setCommitCallback(boost::bind(&LLFloaterPreference::onNotificationsChange, this,"ConferenceIMOptions")); + //getChild("GroupChatOptions")->setCommitCallback(boost::bind(&LLFloaterPreference::onNotificationsChange, this,"GroupChatOptions")); + //getChild("NearbyChatOptions")->setCommitCallback(boost::bind(&LLFloaterPreference::onNotificationsChange, this,"NearbyChatOptions")); + // // ## Zi: Optional Edit Appearance Lighting gSavedSettings.getControl("AppearanceCameraMovement")->getCommitSignal()->connect(boost::bind(&LLFloaterPreference::onAppearanceCameraChanged, this)); @@ -961,11 +962,14 @@ void LLFloaterPreference::onOpen(const LLSD& key) //get the options that were checked - onNotificationsChange("FriendIMOptions"); - onNotificationsChange("NonFriendIMOptions"); - onNotificationsChange("ConferenceIMOptions"); - onNotificationsChange("GroupChatOptions"); - onNotificationsChange("NearbyChatOptions"); + // [CHUI MERGE] + // We don't use these in FS Communications UI, should we in the future? Disabling for now. + //onNotificationsChange("FriendIMOptions"); + //onNotificationsChange("NonFriendIMOptions"); + //onNotificationsChange("ConferenceIMOptions"); + //onNotificationsChange("GroupChatOptions"); + //onNotificationsChange("NearbyChatOptions"); + // LLPanelLogin::setAlwaysRefresh(true); refresh(); @@ -1531,7 +1535,7 @@ void LLFloaterPreference::refreshEnabledState() // [RLVa:KB] - Checked: 2010-04-09 (RLVa-1.2.0e) | Modified: RLVa-1.2.0e if (rlv_handler_t::isEnabled()) - childSetEnabled("busy_response", !gRlvHandler.hasBehaviour(RLV_BHVR_SENDIM)); + childSetEnabled("do_not_disturb_response", !gRlvHandler.hasBehaviour(RLV_BHVR_SENDIM)); // [/RLVa:KB] // [RLVa:KB] - Checked: 2013-05-11 (RLVa-1.4.9) @@ -2090,13 +2094,16 @@ void LLFloaterPreference::setPersonalInfo(const std::string& visibility, bool im getChildView("send_im_to_email")->setEnabled(TRUE); getChild("send_im_to_email")->setValue(im_via_email); getChildView("favorites_on_login_check")->setEnabled(TRUE); -// getChildView("log_path_string")->setEnabled(FALSE);// LineEditor becomes readonly in this case. || Moved to PostBuild to disable on not logged in state -WoLf || CHUI Merge removed by ll, check where this was moved to in FS and see if it needs updating getChildView("log_path_button")->setEnabled(TRUE); getChildView("chat_font_size")->setEnabled(TRUE); getChildView("open_log_path_button")->setEnabled(TRUE); getChildView("log_path_button-panelsetup")->setEnabled(TRUE);// second set of controls for panel_preferences_setup -WoLf getChildView("open_log_path_button-panelsetup")->setEnabled(TRUE); std::string Chatlogsdir = gDirUtilp->getOSUserAppDir(); + + getChildView("conversation_log_combo")->setEnabled(TRUE); // + getChildView("LogNearbyChat")->setEnabled(TRUE); // + getChildView("log_nearby_chat")->setEnabled(TRUE); // Readd after CHUI merge //[FIX FIRE-2765 : SJ] Set Chatlog Reset Button on enabled when Chatlogpath isn't the default folder if (gSavedPerAccountSettings.getString("InstantMessageLogPath") != gDirUtilp->getOSUserAppDir()) { diff --git a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml index 64f83261a7..9942200cd8 100755 --- a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml @@ -220,14 +220,6 @@ top_pad="1" height="16" width="400" /> - + width="200" /> + width="200" /> Length of group name to be printed in chat history @@ -568,31 +559,21 @@ control_name="FSShowIMInChatHistory" label="Show IMs in nearby chat window"/> - - (requires saving nearby chat logs) - Fade IM text into the background of the chat history window @@ -626,7 +607,6 @@ layout="topleft" follows="left|top" top_pad="1" - left="30" width="400" height="18" name="FSIMChatFlashOnFriendStatusChange" @@ -637,7 +617,6 @@ layout="topleft" follows="left|top" top_pad="1" - left="30" width="400" height="18" name="FSReportMutedGroupChat" @@ -969,7 +948,7 @@ layout="topleft" follows="left|top" top_pad="0" - left="50" + left_delta="10" width="30" height="18" control_name="FSMuteGroupWhenNoticesDisabled" @@ -989,7 +968,7 @@ + - - + + - log in to change + name="log_in_to_change"> + log in to change - + function="Pref.WebClearCache" /> + - + (Locations, images, web, search history) - + - + - + - + - + - + - + + control_name="ShowNewInventory" + height="16" + label="Automatically view notecards, textures, landmarks after accepting" + layout="topleft" + left="30" + name="Show_New_Inventory" + top_pad="3" + width="350" /> + control_name="FSCreateGiveInventoryParticleEffect" + height="16" + label="Create particle effects upon giving inventory objects to other avatars" + layout="topleft" + left="30" + name="FSCreateGiveInventoryParticleEffect" + top_pad="3" + width="350" /> - + + + Save: + + + + + + + + + + + + text_color="White" + height="12" + top_pad="4" + width="55"> + Location: + + + @@ -295,7 +389,6 @@ tool_tip="Prevents your selection point from showing to others" top_pad="4" width="350" /> - @@ -322,7 +415,7 @@ Automatic response when in UNAVAILABLE (ie, BUSY) mode: log_in_to_change