Merge branch 'DRTVWR-565-maint-P' of https://bitbucket.org/lindenlab/viewer
commit
31c5ca5e82
|
|
@ -377,7 +377,10 @@ LLModel::EModelStatus load_face_from_dom_triangles(
|
|||
// VFExtents change
|
||||
face.mExtents[0].set(v[0], v[1], v[2]);
|
||||
face.mExtents[1].set(v[0], v[1], v[2]);
|
||||
point_map.clear();
|
||||
|
||||
verts.clear();
|
||||
indices.clear();
|
||||
point_map.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3778,6 +3778,45 @@ boost::signals2::connection LLScrollListCtrl::setIsFriendCallback(const is_frien
|
|||
return mIsFriendSignal->connect(cb);
|
||||
}
|
||||
|
||||
bool LLScrollListCtrl::highlightMatchingItems(const std::string& filter_str)
|
||||
{
|
||||
if (filter_str == "" || filter_str == " ")
|
||||
{
|
||||
clearHighlightedItems();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool res = false;
|
||||
|
||||
setHighlightedColor(LLUIColorTable::instance().getColor("SearchableControlHighlightColor", LLColor4::red));
|
||||
|
||||
std::string filter_str_lc(filter_str);
|
||||
LLStringUtil::toLower(filter_str_lc);
|
||||
|
||||
std::vector<LLScrollListItem*> data = getAllData();
|
||||
std::vector<LLScrollListItem*>::iterator iter = data.begin();
|
||||
while (iter != data.end())
|
||||
{
|
||||
LLScrollListCell* cell = (*iter)->getColumn(0);
|
||||
if (cell)
|
||||
{
|
||||
std::string value = cell->getValue().asString();
|
||||
LLStringUtil::toLower(value);
|
||||
if (value.find(filter_str_lc) == std::string::npos)
|
||||
{
|
||||
(*iter)->setHighlighted(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
(*iter)->setHighlighted(true);
|
||||
res = true;
|
||||
}
|
||||
}
|
||||
iter++;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
// <FS:Ansariel> Fix for FS-specific people list (radar)
|
||||
void LLScrollListCtrl::setFilterString(const std::string& str)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -435,6 +435,8 @@ public:
|
|||
void setNeedsSort(bool val = true) { mSorted = !val; mLastUpdateFrame = LLFrameTimer::getFrameCount(); }
|
||||
void dirtyColumns(); // some operation has potentially affected column layout or ordering
|
||||
|
||||
bool highlightMatchingItems(const std::string& filter_str);
|
||||
|
||||
boost::signals2::connection setSortCallback(sort_signal_t::slot_type cb )
|
||||
{
|
||||
if (!mSortCallback) mSortCallback = new sort_signal_t();
|
||||
|
|
|
|||
|
|
@ -2480,6 +2480,10 @@ void LLFloaterPreference::onClickPreviewUISound(const LLSD& ui_sound_id)
|
|||
// }
|
||||
//
|
||||
// buildPopupLists();
|
||||
// if (!mFilterEdit->getText().empty())
|
||||
// {
|
||||
// filterIgnorableNotifications();
|
||||
// }
|
||||
// }
|
||||
|
||||
// void LLFloaterPreference::onClickDisablePopup()
|
||||
|
|
@ -2495,6 +2499,10 @@ void LLFloaterPreference::onClickPreviewUISound(const LLSD& ui_sound_id)
|
|||
// }
|
||||
//
|
||||
// buildPopupLists();
|
||||
// if (!mFilterEdit->getText().empty())
|
||||
// {
|
||||
// filterIgnorableNotifications();
|
||||
// }
|
||||
// }
|
||||
// </FS:Zi>
|
||||
|
||||
|
|
@ -4937,11 +4945,23 @@ void LLFloaterPreference::onUpdateFilterTerm(bool force)
|
|||
return;
|
||||
|
||||
mSearchData->mRootTab->hightlightAndHide( seachValue );
|
||||
//filterIgnorableNotifications(); // <FS:Ansariel> Using different solution
|
||||
LLTabContainer *pRoot = getChild< LLTabContainer >( "pref core" );
|
||||
if( pRoot )
|
||||
pRoot->selectFirstTab();
|
||||
}
|
||||
|
||||
void LLFloaterPreference::filterIgnorableNotifications()
|
||||
{
|
||||
bool visible = getChildRef<LLScrollListCtrl>("enabled_popups").highlightMatchingItems(mFilterEdit->getValue());
|
||||
visible |= getChildRef<LLScrollListCtrl>("disabled_popups").highlightMatchingItems(mFilterEdit->getValue());
|
||||
|
||||
if (visible)
|
||||
{
|
||||
getChildRef<LLTabContainer>("pref core").setTabVisibility(getChild<LLPanel>("msgs"), true);
|
||||
}
|
||||
}
|
||||
|
||||
void collectChildren( LLView const *aView, ll::prefs::PanelDataPtr aParentPanel, ll::prefs::TabContainerDataPtr aParentTabContainer )
|
||||
{
|
||||
if( !aView )
|
||||
|
|
|
|||
|
|
@ -330,6 +330,7 @@ private:
|
|||
|
||||
void onUpdateFilterTerm( bool force = false );
|
||||
void collectSearchableItems();
|
||||
void filterIgnorableNotifications();
|
||||
|
||||
std::map<std::string, bool> mIgnorableNotifs;
|
||||
|
||||
|
|
|
|||
|
|
@ -475,7 +475,7 @@ public:
|
|||
RENDER_TYPE_PASS_SIMPLE_RIGGED = LLRenderPass::PASS_SIMPLE_RIGGED,
|
||||
RENDER_TYPE_PASS_GRASS = LLRenderPass::PASS_GRASS,
|
||||
RENDER_TYPE_PASS_FULLBRIGHT = LLRenderPass::PASS_FULLBRIGHT,
|
||||
RENDER_TYPE_PASS_FULLBRIGHT_RIGGED = LLRenderPass::PASS_FULLBRIGHT_RIGGED, // <FS:Ansariel> Fix apparent copy&paste issue
|
||||
RENDER_TYPE_PASS_FULLBRIGHT_RIGGED = LLRenderPass::PASS_FULLBRIGHT_RIGGED,
|
||||
RENDER_TYPE_PASS_INVISIBLE = LLRenderPass::PASS_INVISIBLE,
|
||||
RENDER_TYPE_PASS_INVISIBLE_RIGGED = LLRenderPass::PASS_INVISIBLE_RIGGED,
|
||||
RENDER_TYPE_PASS_INVISI_SHINY = LLRenderPass::PASS_INVISI_SHINY,
|
||||
|
|
|
|||
|
|
@ -10353,7 +10353,7 @@ Do you wish to continue?
|
|||
The selected object affects the navmesh. Changing it to a Flexible Path will remove it from the navmesh.
|
||||
<tag>confirm</tag>
|
||||
<usetemplate
|
||||
ignoretext="The selected object affects the navmesh. Changing it to a Flexible Path will remove it from the navmesh."
|
||||
ignoretext="The selected object affects the navmesh. Changing it to a Flexible Path will remove it from the navmesh."
|
||||
name="okcancelignore"
|
||||
notext="Cancel"
|
||||
yestext="OK"/>
|
||||
|
|
|
|||
|
|
@ -2953,6 +2953,10 @@ name="Command_360_Capture_Tooltip">Capture a 360° equirectangular image</string
|
|||
<string name="Mav_Details_MAV_CONFIRMATION_DATA_MISMATCH">
|
||||
The physics shape contains bad confirmation data. Try to correct the physics model.
|
||||
</string>
|
||||
<!-- MAV_BLOCK_MISSING means server didn't get and couldn't substitute physics_convex, high_lod or BoundingVerts-->
|
||||
<string name="Mav_Details_MAV_BLOCK_MISSING">
|
||||
Missing data. Make sure high lod is present and valid. Set the physics model if not set.
|
||||
</string>
|
||||
<string name="Mav_Details_MAV_UNKNOWN_VERSION">
|
||||
The physics shape does not have correct version. Set the correct version for the physics model.
|
||||
</string>
|
||||
|
|
|
|||
Loading…
Reference in New Issue