Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Black Dragon Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Logue
Black Dragon Viewer
Commits
87c94625
Commit
87c94625
authored
12 years ago
by
Merov Linden
Browse files
Options
Downloads
Patches
Plain Diff
CHUI-468 : Fixed. Final clean up of LLParticipantList, including dependencies.
parent
626d07da
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llparticipantlist.cpp
+1
-111
1 addition, 111 deletions
indra/newview/llparticipantlist.cpp
indra/newview/llparticipantlist.h
+1
-6
1 addition, 6 deletions
indra/newview/llparticipantlist.h
with
2 additions
and
117 deletions
indra/newview/llparticipantlist.cpp
+
1
−
111
View file @
87c94625
/**
* @file llparticipantlist.cpp
* @brief LLParticipantList
widgets
of a conversation
list
* @brief LLParticipantList
: model
of a conversation
session with added speaker events handling
*
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
* Second Life Viewer Source Code
...
...
@@ -26,22 +26,11 @@
#include
"llviewerprecompiledheaders.h"
// common includes
#include
"lltrans.h"
#include
"llavataractions.h"
#include
"llavatarnamecache.h"
#include
"llavatarname.h"
#include
"llagent.h"
#include
"llimview.h"
#include
"llimfloatercontainer.h"
#include
"llpanelpeoplemenus.h"
#include
"llnotificationsutil.h"
#include
"llparticipantlist.h"
#include
"llspeakers.h"
#include
"llviewercontrol.h"
#include
"llviewermenu.h"
#include
"llvoiceclient.h"
//LLParticipantList retrieves add, clear and remove events and updates view accordingly
#if LL_MSVC
...
...
@@ -256,105 +245,6 @@ LLParticipantList::~LLParticipantList()
delete
mAvalineUpdater
;
}
/*
void LLParticipantList::onAvatarListDoubleClicked(LLUICtrl* ctrl)
{
LLAvatarListItem* item = dynamic_cast<LLAvatarListItem*>(ctrl);
if(!item)
{
return;
}
LLUUID clicked_id = item->getAvatarId();
if (clicked_id.isNull() || clicked_id == gAgent.getID())
return;
LLAvatarActions::startIM(clicked_id);
}
*/
/*
void LLParticipantList::onAvatarListRefreshed(LLUICtrl* ctrl, const LLSD& param)
{
LLAvatarList* list = dynamic_cast<LLAvatarList*>(ctrl);
const std::string moderator_indicator(LLTrans::getString("IM_moderator_label"));
const std::size_t moderator_indicator_len = moderator_indicator.length();
// Firstly remove moderators indicator
std::set<LLUUID>::const_iterator
moderator_list_it = mModeratorToRemoveList.begin(),
moderator_list_end = mModeratorToRemoveList.end();
for (;moderator_list_it != moderator_list_end; ++moderator_list_it)
{
LLAvatarListItem* item = (list ? dynamic_cast<LLAvatarListItem*> (list->getItemByValue(*moderator_list_it)) : NULL);
if ( item )
{
std::string name = item->getAvatarName();
std::string tooltip = item->getAvatarToolTip();
size_t found = name.find(moderator_indicator);
if (found != std::string::npos)
{
name.erase(found, moderator_indicator_len);
item->setAvatarName(name);
}
found = tooltip.find(moderator_indicator);
if (found != tooltip.npos)
{
tooltip.erase(found, moderator_indicator_len);
item->setAvatarToolTip(tooltip);
}
}
setParticipantIsModerator(*moderator_list_it,false);
}
mModeratorToRemoveList.clear();
// Add moderators indicator
moderator_list_it = mModeratorList.begin();
moderator_list_end = mModeratorList.end();
for (;moderator_list_it != moderator_list_end; ++moderator_list_it)
{
LLAvatarListItem* item = (list ? dynamic_cast<LLAvatarListItem*> (list->getItemByValue(*moderator_list_it)) : NULL);
if ( item )
{
std::string name = item->getAvatarName();
std::string tooltip = item->getAvatarToolTip();
size_t found = name.find(moderator_indicator);
if (found == std::string::npos)
{
name += " ";
name += moderator_indicator;
item->setAvatarName(name);
}
found = tooltip.find(moderator_indicator);
if (found == std::string::npos)
{
tooltip += " ";
tooltip += moderator_indicator;
item->setAvatarToolTip(tooltip);
}
}
setParticipantIsModerator(*moderator_list_it,true);
}
// update voice mute state of all items. See EXT-7235
LLSpeakerMgr::speaker_list_t speaker_list;
// Use also participants which are not in voice session now (the second arg is TRUE).
// They can already have mModeratorMutedVoice set from the previous voice session
// and LLSpeakerVoiceModerationEvent will not be sent when speaker manager is updated next time.
mSpeakerMgr->getSpeakerList(&speaker_list, TRUE);
for(LLSpeakerMgr::speaker_list_t::iterator it = speaker_list.begin(); it != speaker_list.end(); it++)
{
const LLPointer<LLSpeaker>& speakerp = *it;
if (speakerp->mStatus == LLSpeaker::STATUS_TEXT_ONLY)
{
setParticipantIsMuted(speakerp->mID, speakerp->mModeratorMutedVoice);
}
}
}
*/
/*
Seems this method is not necessary after onAvalineCallerRemoved was implemented;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llparticipantlist.h
+
1
−
6
View file @
87c94625
/**
* @file llparticipantlist.h
* @brief LLParticipantList
widgets
of a conversation
list
* @brief LLParticipantList
: model
of a conversation
session with added speaker events handling
*
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
* Second Life Viewer Source Code
...
...
@@ -28,8 +28,6 @@
#define LL_PARTICIPANTLIST_H
#include
"llviewerprecompiledheaders.h"
#include
"llevent.h"
#include
"lllistcontextmenu.h"
#include
"llconversationmodel.h"
class
LLSpeakerMgr
;
...
...
@@ -135,9 +133,6 @@ class LLParticipantList : public LLConversationItemSession
};
private
:
// void onAvatarListDoubleClicked(LLUICtrl* ctrl);
// void onAvatarListRefreshed(LLUICtrl* ctrl, const LLSD& param);
void
onAvalineCallerFound
(
const
LLUUID
&
participant_id
);
void
onAvalineCallerRemoved
(
const
LLUUID
&
participant_id
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment