summaryrefslogtreecommitdiff
path: root/indra/newview/llblockedlistitem.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-05-15 12:18:31 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-05-15 12:18:31 -0400
commit7ccf02515ad3f9e3bf795d651fe4b3c0d773f353 (patch)
treec4adc897c07f652e617e91fbf41c12b823acc808 /indra/newview/llblockedlistitem.cpp
parent1abf5f18d6afc7ae9e1b1562b92e5c1ce33b722f (diff)
parente7eced3c87310b15ac20cc3cd470d67686104a14 (diff)
Merge commit 'e7eced3' into lua-timers for whitespace fixes.
Diffstat (limited to 'indra/newview/llblockedlistitem.cpp')
-rw-r--r--indra/newview/llblockedlistitem.cpp86
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);
}