Fixed the History and Teleport panels in Instant Messages.

This commit is contained in:
CharleyLevenque
2010-08-22 22:22:24 -04:00
parent 5578e92150
commit 794a5ce848
5 changed files with 49 additions and 0 deletions

View File

@@ -1290,7 +1290,9 @@ BOOL LLFloaterIMPanel::postBuild()
mInputEditor->setReplaceNewlinesWithSpaces( FALSE );
childSetAction("profile_callee_btn", onClickProfile, this);
childSetAction("profile_tele_btn", onClickTeleport, this);
childSetAction("group_info_btn", onClickGroupInfo, this);
childSetAction("history_btn", onClickHistory, this);
childSetAction("start_call_btn", onClickStartCall, this);
childSetAction("end_call_btn", onClickEndCall, this);
@@ -1776,6 +1778,36 @@ void LLFloaterIMPanel::onClickProfile( void* userdata )
}
}
//static
void LLFloaterIMPanel::onClickTeleport( void* userdata )
{
// Bring up the Profile window
LLFloaterIMPanel* self = (LLFloaterIMPanel*) userdata;
if (self->mOtherParticipantUUID.notNull())
{
handle_lure(self->getOtherParticipantID());
//do a teleport to other part id
//LLFloaterAvatarInfo::showFromDirectory(self->getOtherParticipantID());
}
}
// static
void LLFloaterIMPanel::onClickHistory( void* userdata )
{
LLFloaterIMPanel* self = (LLFloaterIMPanel*) userdata;
if (self->mOtherParticipantUUID.notNull())
{
char command[256];
std::string fullname(gDirUtilp->getScrubbedFileName(self->getTitle()));
sprintf(command, "\"%s\\%s.txt\"", gDirUtilp->getPerAccountChatLogsDir().c_str(),fullname.c_str());
gViewerWindow->getWindow()->ShellEx(command);
llinfos << command << llendl;
}
}
// static
void LLFloaterIMPanel::onClickGroupInfo( void* userdata )
{