summaryrefslogtreecommitdiff
path: root/indra/newview/llblockedlistitem.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-04-29 07:43:28 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-04-29 07:56:09 +0300
commit1b68f71348ecf3983b76b40d7940da8377f049b7 (patch)
tree2974eddaef130a067c26033d60a59fc790365b3d /indra/newview/llblockedlistitem.cpp
parentaf4ea94efc1999f3b19fd8d643d0331f0b77e265 (diff)
#824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed
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);
}