From 5351688b9d102576513bac45b427d5228764eb0b Mon Sep 17 00:00:00 2001 From: Ychebotarev ProductEngine Date: Mon, 1 Mar 2010 15:32:22 +0200 Subject: fix for major EXT-5694 Only first recepient from ad-hoc conference is added to recent speakers --HG-- branch : product-engine --- indra/newview/llimview.cpp | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index e87399abab..1dc601e260 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -952,7 +952,42 @@ void LLIMModel::sendMessage(const std::string& utf8_text, } // Add the recipient to the recent people list. - LLRecentPeople::instance().add(other_participant_id); + bool is_not_group_id = LLGroupMgr::getInstance()->getGroupData(other_participant_id) == NULL; + + if (is_not_group_id) + { + +#if 0 + //use this code to add only online members + LLIMSpeakerMgr* speaker_mgr = LLIMModel::getInstance()->getSpeakerManager(im_session_id); + LLSpeakerMgr::speaker_list_t speaker_list; + speaker_mgr->getSpeakerList(&speaker_list, true); + for(LLSpeakerMgr::speaker_list_t::iterator it = speaker_list.begin(); it != speaker_list.end(); it++) + { + const LLPointer& speakerp = *it; + + LLRecentPeople::instance().add(speakerp->mID); + } +#else + LLIMModel::LLIMSession* session = LLIMModel::getInstance()->findIMSession(im_session_id); + if( session == 0)//??? shouldn't really happen + { + LLRecentPeople::instance().add(other_participant_id); + } + else + { + for(std::vector::iterator it = session->mInitialTargetIDs.begin(); + it!=session->mInitialTargetIDs.end();++it) + { + const LLUUID id = *it; + + LLRecentPeople::instance().add(id); + } + } +#endif + } + + } void session_starter_helper( -- cgit v1.2.3 From 3556fd6bfa66ed483ad0de20fa1b38a9b562c4f1 Mon Sep 17 00:00:00 2001 From: Sergei Litovchuk Date: Mon, 1 Mar 2010 15:37:19 +0200 Subject: Fixed major bug (EXT-5671) Resizing viewer 2 redraws maturity icon in location bar when it shouldn't. --HG-- branch : product-engine --- indra/newview/lllocationinputctrl.cpp | 59 +++++++++++++++++++---------------- indra/newview/lllocationinputctrl.h | 1 + 2 files changed, 33 insertions(+), 27 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/lllocationinputctrl.cpp b/indra/newview/lllocationinputctrl.cpp index 0ea4b1f6da..4100e2fc61 100644 --- a/indra/newview/lllocationinputctrl.cpp +++ b/indra/newview/lllocationinputctrl.cpp @@ -577,7 +577,7 @@ void LLLocationInputCtrl::reshape(S32 width, S32 height, BOOL called_from_parent if (isHumanReadableLocationVisible) { - positionMaturityIcon(); + refreshMaturityIcon(); } } @@ -737,32 +737,7 @@ void LLLocationInputCtrl::refreshLocation() setText(location_name); isHumanReadableLocationVisible = true; - // Updating maturity rating icon. - LLViewerRegion* region = gAgent.getRegion(); - if (!region) - return; - - U8 sim_access = region->getSimAccess(); - switch(sim_access) - { - case SIM_ACCESS_PG: - mMaturityIcon->setValue(mIconMaturityGeneral->getName()); - mMaturityIcon->setVisible(TRUE); - break; - - case SIM_ACCESS_ADULT: - mMaturityIcon->setValue(mIconMaturityAdult->getName()); - mMaturityIcon->setVisible(TRUE); - break; - - default: - mMaturityIcon->setVisible(FALSE); - } - - if (mMaturityIcon->getVisible()) - { - positionMaturityIcon(); - } + refreshMaturityIcon(); } // returns new right edge @@ -878,6 +853,36 @@ void LLLocationInputCtrl::refreshHealth() } } +void LLLocationInputCtrl::refreshMaturityIcon() +{ + // Updating maturity rating icon. + LLViewerRegion* region = gAgent.getRegion(); + if (!region) + return; + + U8 sim_access = region->getSimAccess(); + switch(sim_access) + { + case SIM_ACCESS_PG: + mMaturityIcon->setValue(mIconMaturityGeneral->getName()); + mMaturityIcon->setVisible(TRUE); + break; + + case SIM_ACCESS_ADULT: + mMaturityIcon->setValue(mIconMaturityAdult->getName()); + mMaturityIcon->setVisible(TRUE); + break; + + default: + mMaturityIcon->setVisible(FALSE); + } + + if (mMaturityIcon->getVisible()) + { + positionMaturityIcon(); + } +} + void LLLocationInputCtrl::positionMaturityIcon() { const LLFontGL* font = mTextEntry->getFont(); diff --git a/indra/newview/lllocationinputctrl.h b/indra/newview/lllocationinputctrl.h index dac6be2a24..f790140f07 100644 --- a/indra/newview/lllocationinputctrl.h +++ b/indra/newview/lllocationinputctrl.h @@ -136,6 +136,7 @@ private: void refreshParcelIcons(); // Refresh the value in the health percentage text field void refreshHealth(); + void refreshMaturityIcon(); void positionMaturityIcon(); void rebuildLocationHistory(const std::string& filter = LLStringUtil::null); -- cgit v1.2.3 From 671118638f0419dace19288d0db559268a4e35d9 Mon Sep 17 00:00:00 2001 From: Mike Antipov Date: Mon, 1 Mar 2010 14:31:06 +0200 Subject: Fixed major bug EXT-5308 (right click - Copy Asset UUID, copies null key to clipboard.) - disabled "Copy Asset UUID" menu item for Inventory items w/o known assets. --HG-- branch : product-engine --- indra/newview/llinventorybridge.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index c4cf76fde1..27a40c6ba0 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -31,6 +31,9 @@ */ #include "llviewerprecompiledheaders.h" +// external projects +#include "lltransfersourceasset.h" + #include "llinventorybridge.h" #include "llagent.h" @@ -583,7 +586,16 @@ void LLInvFVBridge::getClipboardEntries(bool show_asset_id, if (show_asset_id) { items.push_back(std::string("Copy Asset UUID")); - if ( (! ( isItemPermissive() || gAgent.isGodlike() ) ) + + bool is_asset_knowable = false; + + LLViewerInventoryItem* inv_item = gInventory.getItem(mUUID); + if (inv_item) + { + is_asset_knowable = is_asset_id_knowable(inv_item->getType()); + } + if ( !is_asset_knowable // disable menu item for Inventory items with unknown asset. EXT-5308 + || (! ( isItemPermissive() || gAgent.isGodlike() ) ) || (flags & FIRST_SELECTED_ITEM) == 0) { disabled_items.push_back(std::string("Copy Asset UUID")); -- cgit v1.2.3 From 604537b23557ed8f2b0fba88b5b58e21da4417ce Mon Sep 17 00:00:00 2001 From: Denis Serdjuk Date: Mon, 1 Mar 2010 17:56:40 +0200 Subject: fixed Normal Bug EXT-5616 mouse scrollwheel does not scroll world map region list Cause: Invalid check of the inside rectangle area in LLFloaterWorldMap::handleScrollWhell(). --HG-- branch : product-engine --- indra/newview/llfloaterworldmap.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llfloaterworldmap.cpp b/indra/newview/llfloaterworldmap.cpp index b6de409611..67c0b530eb 100644 --- a/indra/newview/llfloaterworldmap.cpp +++ b/indra/newview/llfloaterworldmap.cpp @@ -359,9 +359,7 @@ BOOL LLFloaterWorldMap::handleScrollWheel(S32 x, S32 y, S32 clicks) { if (!isMinimized() && isFrontmost()) { - LLRect area; - childGetRect("search_results", area); - if(!area.pointInRect(x, y)) + if(mPanel->pointInView(x, y)) { F32 slider_value = (F32)childGetValue("zoom slider").asReal(); slider_value += ((F32)clicks * -0.3333f); -- cgit v1.2.3 From 4802a6f572b8b6c6e61465e3c6cf6b563fd163e4 Mon Sep 17 00:00:00 2001 From: Eugene Mutavchi Date: Mon, 1 Mar 2010 19:15:40 +0200 Subject: Implemented major sub-task EXT-5722 (hard-coded: Right click on Object > Sit Here and Take are hard-coded) --HG-- branch : product-engine --- indra/newview/llviewermenu.cpp | 62 ++++++++++++---------- indra/newview/skins/default/xui/en/menu_object.xml | 19 +++++-- 2 files changed, 50 insertions(+), 31 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 15c72fdef1..bc3b8ac9d6 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -5501,6 +5501,37 @@ bool enable_pay_object() return false; } +bool visible_object_stand_up() +{ + // 'Object Stand Up' menu item is visible when agent is sitting on selection + return sitting_on_selection(); +} + +bool visible_object_sit() +{ + // 'Object Sit' menu item is visible when agent is not sitting on selection + bool is_sit_visible = !sitting_on_selection(); + if (is_sit_visible) + { + LLMenuItemGL* sit_menu_item = gMenuHolder->getChild("Object Sit"); + // Init default 'Object Sit' menu item label + static const LLStringExplicit sit_text(sit_menu_item->getLabel()); + // Update label + std::string label; + LLSelectNode* node = LLSelectMgr::getInstance()->getSelection()->getFirstRootNode(); + if (node && node->mValid && !node->mSitName.empty()) + { + label.assign(node->mSitName); + } + else + { + label = sit_text; + } + sit_menu_item->setLabel(label); + } + return is_sit_visible; +} + class LLObjectEnableSitOrStand : public view_listener_t { bool handleEvent(const LLSD& userdata) @@ -5515,34 +5546,6 @@ class LLObjectEnableSitOrStand : public view_listener_t new_value = true; } } - // Update label - std::string label; - std::string sit_text; - std::string stand_text; - std::string param = userdata.asString(); - std::string::size_type offset = param.find(","); - if (offset != param.npos) - { - sit_text = param.substr(0, offset); - stand_text = param.substr(offset+1); - } - if (sitting_on_selection()) - { - label = stand_text; - } - else - { - LLSelectNode* node = LLSelectMgr::getInstance()->getSelection()->getFirstRootNode(); - if (node && node->mValid && !node->mSitName.empty()) - { - label.assign(node->mSitName); - } - else - { - label = sit_text; - } - } - gMenuHolder->childSetText("Object Sit", label); return new_value; } @@ -8016,6 +8019,9 @@ void initialize_menus() enable.add("Object.EnableDelete", boost::bind(&enable_object_delete)); enable.add("Object.EnableWear", boost::bind(&object_selected_and_point_valid)); + enable.add("Object.StandUpVisible", boost::bind(&visible_object_stand_up)); + enable.add("Object.SitVisible", boost::bind(&visible_object_sit)); + view_listener_t::addMenu(new LLObjectEnableReturn(), "Object.EnableReturn"); view_listener_t::addMenu(new LLObjectEnableReportAbuse(), "Object.EnableReportAbuse"); diff --git a/indra/newview/skins/default/xui/en/menu_object.xml b/indra/newview/skins/default/xui/en/menu_object.xml index 9436b2cd73..2c97112e38 100644 --- a/indra/newview/skins/default/xui/en/menu_object.xml +++ b/indra/newview/skins/default/xui/en/menu_object.xml @@ -44,11 +44,24 @@ name="Object Sit"> + - + name="EnableSitOrStand" /> + + + + + + -- cgit v1.2.3 From fbfc61f1bb0047f11469c3af548326e558a365f1 Mon Sep 17 00:00:00 2001 From: Eli Linden Date: Mon, 1 Mar 2010 10:53:00 -0800 Subject: JA linguistic fixes --- indra/newview/skins/default/xui/ja/floater_about_land.xml | 12 ++++++------ indra/newview/skins/default/xui/ja/floater_report_abuse.xml | 8 ++++---- indra/newview/skins/default/xui/ja/floater_world_map.xml | 6 +++--- indra/newview/skins/default/xui/ja/notifications.xml | 8 ++++---- indra/newview/skins/default/xui/ja/panel_classified_info.xml | 4 ++-- indra/newview/skins/default/xui/ja/panel_edit_classified.xml | 4 ++-- indra/newview/skins/default/xui/ja/panel_group_general.xml | 6 +++--- indra/newview/skins/default/xui/ja/panel_place_profile.xml | 2 +- .../skins/default/xui/ja/panel_preferences_general.xml | 6 +++--- indra/newview/skins/default/xui/ja/panel_region_general.xml | 8 ++++---- .../skins/default/xui/ja/panel_region_general_layout.xml | 8 ++++---- indra/newview/skins/default/xui/ja/strings.xml | 8 ++++---- 12 files changed, 40 insertions(+), 40 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/skins/default/xui/ja/floater_about_land.xml b/indra/newview/skins/default/xui/ja/floater_about_land.xml index 42f3211ada..a16348529b 100644 --- a/indra/newview/skins/default/xui/ja/floater_about_land.xml +++ b/indra/newview/skins/default/xui/ja/floater_about_land.xml @@ -284,16 +284,16 @@ あなたはこの区画の設定編集ができないため、このオプションは無効です。 - 控えめコンテンツ + 「Moderate」コンテンツ - アダルトコンテンツ + 「Adult」コンテンツ - あなたの区画情報及びコンテンツは「控えめ」とされています。 + あなたの区画情報及びコンテンツは「Moderate」とされています。 - あなたの区画情報及びコンテンツは「アダルト」とされています。 + あなたの区画情報及びコンテンツは「Adult」とされています。 (なし) @@ -333,7 +333,7 @@ - + @@ -359,7 +359,7 @@ - + スナップショット: diff --git a/indra/newview/skins/default/xui/ja/floater_report_abuse.xml b/indra/newview/skins/default/xui/ja/floater_report_abuse.xml index c66f307f23..105e903840 100644 --- a/indra/newview/skins/default/xui/ja/floater_report_abuse.xml +++ b/indra/newview/skins/default/xui/ja/floater_report_abuse.xml @@ -49,7 +49,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -68,11 +68,11 @@ - + - + diff --git a/indra/newview/skins/default/xui/ja/floater_world_map.xml b/indra/newview/skins/default/xui/ja/floater_world_map.xml index c44c6b3fd3..42fedfc075 100644 --- a/indra/newview/skins/default/xui/ja/floater_world_map.xml +++ b/indra/newview/skins/default/xui/ja/floater_world_map.xml @@ -37,15 +37,15 @@ - 一般 + General - 控えめ + Moderate - アダルト + Adult diff --git a/indra/newview/skins/default/xui/ja/notifications.xml b/indra/newview/skins/default/xui/ja/notifications.xml index f4c46f82ac..2f877a6aba 100644 --- a/indra/newview/skins/default/xui/ja/notifications.xml +++ b/indra/newview/skins/default/xui/ja/notifications.xml @@ -1631,11 +1631,11 @@ L$ [AMOUNT] で、このクラシファイド広告を今すぐ公開します - この広告に「控えめ」コンテンツは含まれていますか? + この広告に「Moderate」コンテンツは含まれていますか? - このグループに「控えめ」コンテンツが含まれていますか? + このグループに「Moderate」コンテンツが含まれていますか? @@ -1655,7 +1655,7 @@ L$ [AMOUNT] で、このクラシファイド広告を今すぐ公開します このリージョン(地域)のレーティング区分がアップデートされました。 地図に変更が反映されるまで数分かかることがあります。 -アダルト専用リージョンに入るには、住人のアカウントが年齢確認か支払方法のいずれかで「確認済み」でなければなりません。 +Adult 専用リージョンに入るには、住人のアカウントが年齢確認か支払方法のいずれかで「確認済み」でなければなりません。 [APP_NAME] のこのバージョンは、このリージョンにおけるボイスチャットの互換性がありません。 ボイスチャットを正常に行うためには、[APP_NAME] のアップデートが必要です。 @@ -2118,7 +2118,7 @@ Web ページにリンクすると、他人がこの場所に簡単にアクセ コミュニティスタンダードに明記されているコンテンツ制限により、あなたの検索語の一部が除外されました。 - 少なくともどれか一つコンテンツの種類を選択して検索を行ってください。(一般、控えめ、アダルト) + 少なくともどれか一つコンテンツの種類を選択して検索を行ってください。(General、Moderate、Adult) [NAME] は投票の申請をしています: diff --git a/indra/newview/skins/default/xui/ja/panel_classified_info.xml b/indra/newview/skins/default/xui/ja/panel_classified_info.xml index 14e04d5691..f3c68c9f59 100644 --- a/indra/newview/skins/default/xui/ja/panel_classified_info.xml +++ b/indra/newview/skins/default/xui/ja/panel_classified_info.xml @@ -1,10 +1,10 @@ - 控えめ + Moderate - 一般コンテンツ + 「General」コンテンツ L$ [PRICE] diff --git a/indra/newview/skins/default/xui/ja/panel_edit_classified.xml b/indra/newview/skins/default/xui/ja/panel_edit_classified.xml index 4cb5884f28..fa46e6d35a 100644 --- a/indra/newview/skins/default/xui/ja/panel_edit_classified.xml +++ b/indra/newview/skins/default/xui/ja/panel_edit_classified.xml @@ -24,10 +24,10 @@