diff options
author | Roxanne Skelly <roxie@lindenlab.com> | 2024-05-20 14:36:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 14:36:14 -0700 |
commit | a1d7d2abc304b59fbca26f0ca23c926762be10a1 (patch) | |
tree | fcb3901b838af753e40c2ddd1ce84b95a6c2f603 /indra/newview/llblockedlistitem.cpp | |
parent | f51797f088808029745161854aa86b775f041a64 (diff) | |
parent | 3a212d9608492ae64a3a32f80790371b90be9e9e (diff) |
Merge pull request #1532 from secondlife/roxie/webrtc-voice
[WebRTC] Merge from main
Diffstat (limited to 'indra/newview/llblockedlistitem.cpp')
-rw-r--r-- | indra/newview/llblockedlistitem.cpp | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/indra/newview/llblockedlistitem.cpp b/indra/newview/llblockedlistitem.cpp index d9afd2b629..875e8e0bf1 100644 --- a/indra/newview/llblockedlistitem.cpp +++ b/indra/newview/llblockedlistitem.cpp @@ -43,72 +43,72 @@ #include "llviewerobject.h" LLBlockedListItem::LLBlockedListItem(const LLMute* item) -: LLPanel(), - mItemID(item->mID), - mItemName(item->mName), - mMuteType(item->mType) +: LLPanel(), + mItemID(item->mID), + mItemName(item->mName), + mMuteType(item->mType) { - buildFromFile("panel_blocked_list_item.xml"); + buildFromFile("panel_blocked_list_item.xml"); } BOOL LLBlockedListItem::postBuild() { - mTitleCtrl = getChild<LLTextBox>("item_name"); - mTitleCtrl->setValue(mItemName); + mTitleCtrl = getChild<LLTextBox>("item_name"); + mTitleCtrl->setValue(mItemName); - switch (mMuteType) - { - case LLMute::AGENT: - case LLMute::EXTERNAL: - { - LLAvatarIconCtrl* avatar_icon = getChild<LLAvatarIconCtrl>("avatar_icon"); - avatar_icon->setVisible(TRUE); - avatar_icon->setValue(mItemID); - } - break; - case LLMute::GROUP: - { - LLGroupIconCtrl* group_icon = getChild<LLGroupIconCtrl>("group_icon"); - group_icon->setVisible(TRUE); - group_icon->setValue(mItemID); - } - break; - case LLMute::OBJECT: - case LLMute::BY_NAME: - getChild<LLUICtrl>("object_icon")->setVisible(TRUE); - break; + switch (mMuteType) + { + case LLMute::AGENT: + case LLMute::EXTERNAL: + { + LLAvatarIconCtrl* avatar_icon = getChild<LLAvatarIconCtrl>("avatar_icon"); + avatar_icon->setVisible(TRUE); + avatar_icon->setValue(mItemID); + } + break; + case LLMute::GROUP: + { + LLGroupIconCtrl* group_icon = getChild<LLGroupIconCtrl>("group_icon"); + group_icon->setVisible(TRUE); + group_icon->setValue(mItemID); + } + break; + case LLMute::OBJECT: + case LLMute::BY_NAME: + getChild<LLUICtrl>("object_icon")->setVisible(TRUE); + break; - default: - break; - } + default: + break; + } - return TRUE; + return TRUE; } void LLBlockedListItem::onMouseEnter(S32 x, S32 y, MASK mask) { - getChildView("hovered_icon")->setVisible(true); - LLPanel::onMouseEnter(x, y, mask); + getChildView("hovered_icon")->setVisible(true); + LLPanel::onMouseEnter(x, y, mask); } void LLBlockedListItem::onMouseLeave(S32 x, S32 y, MASK mask) { - getChildView("hovered_icon")->setVisible(false); - LLPanel::onMouseLeave(x, y, mask); + getChildView("hovered_icon")->setVisible(false); + LLPanel::onMouseLeave(x, y, mask); } void LLBlockedListItem::setValue(const LLSD& value) { - if (!value.isMap() || !value.has("selected")) - { - return; - } + if (!value.isMap() || !value.has("selected")) + { + return; + } - getChildView("selected_icon")->setVisible(value["selected"]); + getChildView("selected_icon")->setVisible(value["selected"]); } void LLBlockedListItem::highlightName(const std::string& highlited_text) { - LLStyle::Params params; - LLTextUtil::textboxSetHighlightedVal(mTitleCtrl, params, mItemName, highlited_text); + LLStyle::Params params; + LLTextUtil::textboxSetHighlightedVal(mTitleCtrl, params, mItemName, highlited_text); } |