summaryrefslogtreecommitdiff
path: root/indra/newview/llimview.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2009-11-11 18:06:44 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2009-11-11 18:06:44 +0000
commitcc864d86ce91cd26edc3796acbd9580de4fafbc8 (patch)
tree1da263cbc194207836ee78c85963c220f2141b1e /indra/newview/llimview.cpp
parenta0dd5b825be7ec31ab69894c3e4fc81ba6aacdd4 (diff)
outgoing call dialog. doesn't do anything and is ugly/wrong, but it exists. WIP.
Diffstat (limited to 'indra/newview/llimview.cpp')
-rw-r--r--indra/newview/llimview.cpp32
1 files changed, 14 insertions, 18 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp
index 33bd483367..bd3ee51c15 100644
--- a/indra/newview/llimview.cpp
+++ b/indra/newview/llimview.cpp
@@ -1103,39 +1103,35 @@ LLIMMgr::onConfirmForceCloseError(
// Class LLOutgoingCallDialog
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LLOutgoingCallDialog::LLOutgoingCallDialog(const LLSD& payload) :
- LLModalDialog(payload),
+ LLDockableFloater(NULL, payload),
mPayload(payload)
{
}
BOOL LLOutgoingCallDialog::postBuild()
{
- LLSD caller_id = mPayload["caller_id"];
- EInstantMessage type = (EInstantMessage)mPayload["type"].asInteger();
+ BOOL success = LLFloater::postBuild();
- std::string call_type = getString("VoiceInviteP2P");
- std::string caller_name = mPayload["caller_name"].asString();
- if (caller_name == "anonymous")
+ LLSD callee_id = mPayload["session_id"];//mPayload["caller_id"];
+
+ std::string calling_str = getString("calling");
+ std::string callee_name = mPayload["session_name"].asString();//mPayload["caller_name"].asString();
+ if (callee_name == "anonymous")
{
- caller_name = getString("anonymous");
+ callee_name = getString("anonymous");
}
- setTitle(caller_name + " " + call_type);
-
- // If it is not a P2P invite, then it's an AdHoc invite
- if ( type != IM_SESSION_P2P_INVITE )
- {
- call_type = getString("VoiceInviteAdHoc");
- }
+ setTitle(callee_name);
- LLUICtrl* caller_name_widget = getChild<LLUICtrl>("caller name");
- caller_name_widget->setValue(caller_name + " " + call_type);
+ LLUICtrl* callee_name_widget = getChild<LLUICtrl>("callee name");
+ // *TODO: substitute callee name properly
+ callee_name_widget->setValue(calling_str + " " + callee_name);
LLAvatarIconCtrl* icon = getChild<LLAvatarIconCtrl>("avatar_icon");
- icon->setValue(caller_id);
+ icon->setValue(callee_id);
//childSetAction("Reject", onReject, this);
- return TRUE;
+ return success;
}
void LLOutgoingCallDialog::processCallResponse(S32 response)