Пример #1
0
void LLAvatarListItem::setState(EItemState item_style)
{
    const LLAvatarListItem::Params& params = LLUICtrlFactory::getDefaultParams<LLAvatarListItem>();

    switch(item_style)
    {
    default:
    case IS_DEFAULT:
        mAvatarNameStyle = params.default_style();
        break;
    case IS_VOICE_INVITED:
        mAvatarNameStyle = params.voice_call_invited_style();
        break;
    case IS_VOICE_JOINED:
        mAvatarNameStyle = params.voice_call_joined_style();
        break;
    case IS_VOICE_LEFT:
        mAvatarNameStyle = params.voice_call_left_style();
        break;
    case IS_ONLINE:
        mAvatarNameStyle = params.online_style();
        break;
    case IS_OFFLINE:
        mAvatarNameStyle = params.offline_style();
        break;
    }

    // *NOTE: You cannot set the style on a text box anymore, you must
    // rebuild the text.  This will cause problems if the text contains
    // hyperlinks, as their styles will be wrong.
    setNameInternal(mAvatarName->getText(), mHighlihtSubstring);

    icon_color_map_t& item_icon_color_map = getItemIconColorMap();
    mAvatarIcon->setColor(item_icon_color_map[item_style]);
}
Пример #2
0
void DxArchiverProxyInternal::setIntrinsics(const DxArchiverIntrinsics & intrinsics)
{
   ACE_Guard<ACE_Recursive_Thread_Mutex> guard(intrinsicsMutex_);

   intrinsics_ = intrinsics;

   setNameInternal(intrinsics_.name);

   VERBOSE2(getVerboseLevel(),  intrinsics_ );
}
Пример #3
0
void LLAvatarListItem::setHighlight(const std::string& highlight)
{
    setNameInternal(mAvatarName->getText(), mHighlihtSubstring = highlight);
}
Пример #4
0
void LLAvatarListItem::setAvatarName(const std::string& name)
{
    setNameInternal(name, mHighlihtSubstring);
}