//
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
-// Licensed under the Flora License, Version 1.0 (the License);
+// Licensed under the Flora License, Version 1.1 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
#include <FUi.h>
#include <FMedia.h>
#include <FSystem.h>
+#include <FShell.h>
#include "CallActiveCallForm.h"
#include "CallButtonsPanel.h"
#include "CallInfo.h"
#include "CallPresentationModel.h"
#include "CallSceneRegister.h"
#include "CallTypes.h"
+#include "CallApp.h"
using namespace Tizen::App;
using namespace Tizen::Base;
using namespace Tizen::Ui;
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
+using namespace Tizen::Shell;
//constants
const int IDI_MAX_SECONDS = 60;
__pSmallPhotoLabel = null;
__pActiveCallInfo = null;
__pHeldCallInfo = null;
+ __isSwapInProgress = false;
+ __pAddressbook = null;
}
ActiveCallForm::~ActiveCallForm(void)
void
ActiveCallForm::ShowDTMFKeypad(void)
{
-
-
if(__pDTMFKeypad == null)
{
//update rect according to client screen area
Rectangle rect(0, 0, 0, 0);
- if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT)
+ if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
{
rect.width = GetClientAreaBounds().width;
rect.height = GetClientAreaBounds().height - __pCallButtonsPanel->GetHeight();
}
- else if (GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE)
+ else if (GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE || GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
{
rect.height = GetClientAreaBounds().height;
rect.width = GetClientAreaBounds().width - __pCallButtonsPanel->GetWidth();
AppLog("DTMF Keypad rect(%d,%d,%d,%d)",rect.x,rect.y,rect.width,rect.height);
__pDTMFKeypad = new (std::nothrow) DtmfKeyPadPanel();
__pDTMFKeypad->Initialize(this, rect);
- AddControl(*__pDTMFKeypad);
+ AddControl(__pDTMFKeypad);
//set layout relation w.r.t call buttons panel
RelativeLayout* pRelativeLayout = dynamic_cast<RelativeLayout*>(GetLandscapeLayoutN());
pRelativeLayout->SetRelation(*__pDTMFKeypad, __pCallButtonsPanel, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
}
}
- EditField* pTextBox = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX));
__pDTMFKeypad->SetShowState(true);
+ EditField* pTextBox = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX));
+ if(__DtmfString.IsEmpty() == false)
+ {
+ pTextBox->SetText(__DtmfString);
+ }
+ pTextBox->SetFocus();
__pDTMFKeypad->Draw(true);
__pDTMFKeypad->Show();
}
//change orientation of DTMF Keypad, if it is visible.
if (__pDTMFKeypad != null)
{
- if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE)
+ if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE || orientationStatus == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
{
//in landscape mode, caller info is visible.
SetShowStateOnKeypad(true);
+ SetHoldButtonShowState(false);
}
- else if (orientationStatus == ORIENTATION_STATUS_PORTRAIT)
+ else if (orientationStatus == ORIENTATION_STATUS_PORTRAIT || orientationStatus == ORIENTATION_STATUS_PORTRAIT_REVERSE)
{
//in Portrait mode it is hidden beneath DTMF Keypad.
SetShowStateOnKeypad(false);
+ DestroyMoreOptionsMenuList();
+ }
+ if(__pDTMFKeypad->GetShowState() == true)
+ {
+ String dtmfText = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX))->GetText();
+ HideDTMFKeypad();
+ ShowDTMFKeypad();
}
- String dtmfText = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX))->GetText();
- ShowDTMFKeypad();
- //get new text box.
- EditField* pTextBox = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX));
- pTextBox->SetText(dtmfText);
}
}
+ //More option is displayed recreate it
+ if(__pMoreOptionsListAnchor != null)
+ {
+ CreateMoreOptionsMenuList();
+ CreateMoreOptionsMenuList();
+ }
}
void
{
if(__pDTMFKeypad != null)
{
- __pDTMFKeypad->SetShowState(false);
- __pDTMFKeypad->Draw(true);
- __pDTMFKeypad->Show();
+ __DtmfString = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX))->GetText();
+
+ RemoveControl(__pDTMFKeypad);
+ __pDTMFKeypad = null;
}
}
__pCallButtonsPanel = new (std::nothrow) CallButtonsPanel();
__pCallButtonsPanel->ConstructPanel(this, __formType);
__pCallButtonsPanel->SetBounds(pKeysBgLbl->GetBounds());
- r = AddControl(*__pCallButtonsPanel);
+ r = AddControl(__pCallButtonsPanel);
}
RelativeLayout* pRelativeLayout = dynamic_cast<RelativeLayout*>(GetPortraitLayoutN());
{
pRelativeLayout->SetRelation(*__pCallButtonsPanel, *pKeysBgLbl, RECT_EDGE_RELATION_LEFT_TO_LEFT);
pRelativeLayout->SetRelation(*__pCallButtonsPanel, *pKeysBgLbl, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+ pRelativeLayout->SetRelation(*__pCallButtonsPanel, *pKeysBgLbl, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+ pRelativeLayout->SetRelation(*__pCallButtonsPanel, *pKeysBgLbl, RECT_EDGE_RELATION_TOP_TO_TOP);
}
return r;
pHoldBtn->SetActionId(cmdId);
pHoldBtn->SetNormalBitmap(Point(0, 0),*normalImg);
pHoldBtn->SetPressedBitmap(Point(0, 0),*pressImg);
+ pHoldBtn->Invalidate(true);
}
if (pHoldLbl)
{
pBgPopupArwBmp = null;
// Adds a Label to the Form
- AddControl(*__pMoreOptionsListAnchor);
+ AddControl(__pMoreOptionsListAnchor);
}
//create options menu list
__pMoreOptionsList->SetItemProvider(*this);
__pMoreOptionsList->AddListViewItemEventListener(*this);
//Add option list to the form
- AddControl(*__pMoreOptionsList);
+ AddControl(__pMoreOptionsList);
}
else
{
if (__pMoreOptionsListAnchor != null)
{
//removes and delete the child control
- RemoveControl(*__pMoreOptionsListAnchor);
+ RemoveControl(__pMoreOptionsListAnchor);
__pMoreOptionsListAnchor = null;
}
if (__pMoreOptionsList != null)
{
//removes and delete the child control
- RemoveControl(*__pMoreOptionsList);
+ RemoveControl(__pMoreOptionsList);
__pMoreOptionsList = null;
}
}
case IDA_OPEN_NUMKEYPAD:
{
- if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT)
+ if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
{
//hide only in portrait mode.
- SetShowStateOnKeypad(false);
+ SetShowStateOnKeypad(false);
+ DestroyMoreOptionsMenuList();
}
+ //Hide the hold button as it goes behind DTMF keypad
+ SetHoldButtonShowState(false);
ShowDTMFKeypad();
__pCallButtonsPanel->SetKeypadButtonState(IDA_CLOSE_NUMKEYPAD);
}
//switch to Dialer Form to make an call
if(__pCallPresentor->GetCurrentCallCount() == 1)
{
-/* ArrayList* pArgs = new (std::nothrow) ArrayList(SingleObjectDeleter);
- pArgs->Construct();
- String* formType = new (std::nothrow) String();
- formType->Append(__formType);
- pArgs->Add(formType);
- pSceneManager->GoForward( ForwardSceneTransition(IDSCN_DIALER, SCENE_TRANSITION_ANIMATION_TYPE_NONE,
- SCENE_HISTORY_OPTION_NO_HISTORY), pArgs);*/
- __pCallPresentor->LaunchDialAppControl();
-
+ __pCallPresentor->LaunchDialAppControl();
}
}
break;
case IDA_SWAP_CALLS:
{
- AppAssert(__formType == FORMTYPE_MULTIPLECALLS);
- __pCallPresentor->SwapCalls();
+ if(IsSwapInProgress() == false)
+ {
+ AppAssert(__formType == FORMTYPE_MULTIPLECALLS);
+ __pCallPresentor->SwapCalls();
+ SetSwapInProgress(true);
+ }
}
break;
}
}
+bool
+ActiveCallForm::IsSwapInProgress(void)
+{
+ return __isSwapInProgress;
+}
+
+void
+ActiveCallForm::SetSwapInProgress(bool progress)
+{
+ __isSwapInProgress = progress;
+}
+
void
ActiveCallForm::SetTextToDTMFTextField(const String& dtmfStr)
{
pTextBox->InsertTextAtCursorPosition(dtmfStr);
//pTextBox->AppendText(dtmfStr);
- pTextBox->SetFocus();
+ // pTextBox->SetFocus();
pTextBox->Invalidate(true);
}
}
__pCallPresentor->SetTelEventListener(this);
AddOrientationEventListener(*this);
+ CallApp* pPhoneApp = static_cast<CallApp*>(CallApp::GetInstance());
+ pPhoneApp->AddAppStateChangeListener(*this);
+
//Initialize keypad and buttons
InitializeCallButtonsPanel();
+ AddressbookManager* pAddressbookManager = AddressbookManager::GetInstance();
+ __pAddressbook = pAddressbookManager->GetAddressbookN(DEFAULT_ADDRESSBOOK_ID);
+ if(__pAddressbook != null)
+ {
+ __pAddressbook->SetAddressbookChangeEventListener(this);
+ }
+
+
if (__pActiveCallInfo != null)
{
delete __pActiveCallInfo;
activeContactNo.Append(AppUtility::GetResourceString(IDS_NUMBER_UNKNOWN));
}
ShowPersonDetails(activeContactNo, IDC_NUMBER1_LABEL, IDC_CALLER1_LABEL, false,__pActiveCallInfo);
-
//show call active time using Timer
- __activeCallStartTime = pCall->GetCallConnectTime();
+ //__activeCallStartTime = pCall->GetCallConnectTime();
+ __activeCallStartTime = pCall->GetDurationTime();
ShowTimerInfo(IDC_CALLER1_TIME_LABEL, pCall->IsOnHold(), __activeCallStartTime);
}
break;
*__pActiveCallInfo = *pCall;
//show call active time using Timer
- __activeCallStartTime = pCall->GetCallConnectTime();
+ //__activeCallStartTime = pCall->GetCallConnectTime();
+ __activeCallStartTime = pCall->GetDurationTime();
ShowTimerInfo(IDC_CALLER1_TIME_LABEL, pCall->IsOnHold(), __activeCallStartTime);
}
break;
__pCallButtonsPanel->EnableAddCallButton(true);
}
+
+ //bring button on top
+ __pCallButtonsPanel->SetButtonPosition();
+
+
//show call active time using Timer
- __activeCallStartTime = __pActiveCallInfo->GetCallConnectTime();
+ //__activeCallStartTime = __pActiveCallInfo->GetCallConnectTime();
+ __activeCallStartTime = __pActiveCallInfo->GetDurationTime();
ShowTimerInfo(IDC_CALLER1_TIME_LABEL, __pActiveCallInfo->IsOnHold(),__activeCallStartTime);
}
break;
break;
}
+ if(__formType == FORMTYPE_ACTIVECALL || __formType == FORMTYPE_EMERGENCYACTIVECALL ||
+ __formType == FORMTYPE_MULTIPLECALLS || __formType == FORMTYPE_ACTIVECONFCALL)
+ {
+ //Unlock the phone if its locked
+ if(LockManager::GetInstance()->IsLocked())
+ {
+ AppLogDebug("Phone Locked");
+ LockManager::GetInstance()->Unlock();
+ }
+ }
+
//Hide DTMFKeypad, if visible and show caller info
HideDTMFKeypad();
SetShowStateOnKeypad(true);
delete pArgs;
pArgs = null;
}
+
+ //update position of call buttons panel
+ Label* pKeysBgLbl = static_cast<Label*>(GetControl(IDC_KEY_BG_LABEL, true));
+ __pCallButtonsPanel->SetBounds(pKeysBgLbl->GetBounds());
+
+ CallApp* pCallApp = static_cast<CallApp*>(CallApp::GetInstance());
+ pCallApp->SetTopMostWindow(false);
}
void
ActiveCallForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
{
RemoveOrientationEventListener(*this);
- if (__pCallButtonsPanel != null)
- {
- RemoveControl(*__pCallButtonsPanel);
- __pCallButtonsPanel = null;
- }
if (__pActiveCallTimer != null)
{
__pActiveCallTimer->Cancel();
{
__pMoreOptionsList->SetShowState(false);
}
+ __DtmfString.Clear();
+ CallApp* pCallApp = static_cast<CallApp*>(CallApp::GetInstance());
+ pCallApp->RemoveAppStateChangeListener(*this);
+ if(__pAddressbook != null)
+ {
+ __pAddressbook->SetAddressbookChangeEventListener(null);
+ }
}
void
//change AddCall Button status
__pCallButtonsPanel->EnableAddCallButton(isEnableAddCall);
//change JoinCall Button status
- __pCallButtonsPanel->EnableJoinCallButton(isEnableJoinCall);
+ __pCallButtonsPanel->EnableJoinCallButton(__pCallPresentor->IsEnableJoinCallButton());
AppLog("EXIT");
}
void
+ActiveCallForm::OnContactsChanged(const Tizen::Base::Collection::IList& contactChangeInfoList)
+{
+ AppLog("Enter");
+ switch (__formType)
+ {
+
+ case FORMTYPE_OUTGOINGCALL:
+ case FORMTYPE_ACTIVECALL:
+ {
+ String pContactNumber;
+ pContactNumber.Append(__pActiveCallInfo->GetContactNumber());
+ Contact* pContact = __pCallPresentor->GetContactN(__pActiveCallInfo->GetContactNumber());
+ if(pContact == null)
+ {
+ __pActiveCallInfo->ResetContactNumber(null);
+ __pActiveCallInfo->ResetContactInfo(null);
+
+ }
+ else
+ {
+ __pActiveCallInfo->SetContactNumber(pContactNumber);
+ __pActiveCallInfo->SetContactInfo(*pContact);
+ }
+ if(pContact != null)
+ {
+ delete pContact;
+ pContact = null;
+ }
+ ShowPersonDetails(pContactNumber, IDC_NUMBER1_LABEL, IDC_CALLER1_LABEL, false,__pActiveCallInfo);
+ }
+ break;
+
+ case FORMTYPE_EMERGENCYACTIVECALL:
+ {
+ }
+ break;
+
+ case FORMTYPE_MULTIPLECALLS:
+ {
+
+ IListT<AppCallInfo>* pCallsList = __pCallPresentor->GetCallListN();
+ if(pCallsList != null)
+ {
+ int listCount = pCallsList->GetCount();
+ for(int index = 0; index < listCount; index++)
+ {
+ AppCallInfo callInfo;
+ Contact* pContact;
+ pCallsList->GetAt(index, callInfo);
+ if(__pActiveCallInfo == null)
+ {
+ __pActiveCallInfo = new (std::nothrow) AppCallInfo();
+ }
+ *__pActiveCallInfo = callInfo;
+ String contactNumber;
+ contactNumber.Append(__pActiveCallInfo->GetContactNumber());
+ pContact = __pCallPresentor->GetContactN(__pActiveCallInfo->GetContactNumber());
+ if(pContact == null)
+ {
+ __pActiveCallInfo->ResetContactNumber(null);
+ __pActiveCallInfo->ResetContactInfo(null);
+
+ }
+ else
+ {
+ __pActiveCallInfo->SetContactNumber(contactNumber);
+ __pActiveCallInfo->SetContactInfo(*pContact);
+ }
+ if(pContact != null)
+ {
+ delete pContact;
+ pContact = null;
+ }
+ if(callInfo.IsConferenceCall() == true)
+ {
+ continue;
+ }
+ if(callInfo.IsOnHold() == false)
+ {
+ ShowPersonDetails(contactNumber, IDC_NUMBER1_LABEL, IDC_CALLER1_LABEL, false,__pActiveCallInfo);
+ }
+ else
+ {
+ ShowPersonDetails(contactNumber, IDC_NUMBER2_LABEL, IDC_CALLER2_LABEL, true,__pActiveCallInfo);
+ }
+
+ }
+
+ delete pCallsList;
+ pCallsList = null;
+ }
+ }
+ break;
+ default:
+ break;
+ }
+ AppLog("Exit");
+}
+
+void
+ActiveCallForm::OnCategoriesChanged(const Tizen::Base::Collection::IList& categoryChangeInfoList)
+{
+ //No implementation
+}
+
+
+void
ActiveCallForm::UpdateMultipleCallScreen(Tizen::Base::Collection::IListT<AppCallInfo>& activeCallsList)
{
AppLog("ENTER");
pMoreBtn->SetShowState(false);
}
ShowPersonDetails(contactNo, IDC_NUMBER1_LABEL, IDC_CALLER1_LABEL, false,__pActiveCallInfo);
+ if(__pMoreOptionsListAnchor != null && __pMoreOptionsListAnchor->GetShowState() == true)
+ {
+ CreateMoreOptionsMenuList();
+ }
}
else
{
}
}
//show call active time using Timer
- __activeCallStartTime = __pActiveCallInfo->GetCallConnectTime();
+ //__activeCallStartTime = __pActiveCallInfo->GetCallConnectTime();
+ __activeCallStartTime = __pActiveCallInfo->GetDurationTime();
ShowTimerInfo(IDC_CALLER1_TIME_LABEL,false,__activeCallStartTime);
}
else
}
//update JoinCall button status
- bool isEnableJoinCall = true;
- AppCallInfo* pConfCallInfo = __pCallPresentor->GetConferenceCallInfoN();
- if(pConfCallInfo != null && pConfCallInfo->GetCallerListCount() >= IDI_MAX_CONF_CALL_PARTICIPANTS)
- {
- isEnableJoinCall = false;
- }
- __pCallButtonsPanel->EnableJoinCallButton(isEnableJoinCall);
- delete pConfCallInfo;
- pConfCallInfo = null;
+ __pCallButtonsPanel->EnableJoinCallButton(__pCallPresentor->IsEnableJoinCallButton());
Invalidate(true);
AppLog("EXIT");
}
void
ActiveCallForm::ShowPersonDetails(const String& phoneNumber, const String& contactLblName, const String& nameLblName, bool isSecondCaller, AppCallInfo* pCallInfo)
{
+ result r = E_FAILURE;
+
//call individual methods to show contact number, caller name & photo
ShowPhoneNumber(phoneNumber, contactLblName);
//fetch contact details based on phone number
- String* pDisplayName = pCallInfo->FetchCallerNameN();
+ String* pDisplayName = pCallInfo->FetchLatestCallerNameN(phoneNumber);
ShowCallerName(*pDisplayName, nameLblName);
- Bitmap* pPhotoBitmap = pCallInfo->FetchCallerPhotoN();
+ Bitmap* pPhotoBitmap = pCallInfo->FetchLatestCallerPhotoN(phoneNumber);
ShowCallerPhoto(pPhotoBitmap, isSecondCaller);
//free resources
//Remove small photo label
if (__pSmallPhotoLabel != null)
{
- RemoveControl(*__pSmallPhotoLabel);
+ RemoveControl(__pSmallPhotoLabel);
__pSmallPhotoLabel = null;
}
if (pPhotoLbl)
{
pPhotoLbl->SetBackgroundBitmap(*pDefaultPhoto);
+ pPhotoLbl->Invalidate(true);
}
delete pDefaultPhoto;
}
{
if (__pSmallPhotoLabel != null)
{
- RemoveControl(*__pSmallPhotoLabel);
+ RemoveControl(__pSmallPhotoLabel);
__pSmallPhotoLabel = null;
}
//Draw Small Photo and show on small photo label
__pSmallPhotoLabel->SetBackgroundColor(Color(0,0,0));
__pSmallPhotoLabel->SetBackgroundBitmap(pPhotoId);
// Add a Label to the Form
- AddControl(*__pSmallPhotoLabel);
+ AddControl(__pSmallPhotoLabel);
__pSmallPhotoLabel->Invalidate(true);
}
SetHoldButtonStatus(true);
//current system time
long long currTime = 0;
- SystemTime::GetTicks(currTime);
+ //SystemTime::GetTicks(currTime);
+ CallApp* pPhoneApp = static_cast<CallApp*>(CallApp::GetInstance());
+ currTime = pPhoneApp->GetCallAppTicks();
//Set call duration
TimeSpan diffSpan(abs(startTime - currTime));
}
void
+ActiveCallForm::SetHoldButtonShowState(bool showState)
+{
+ Label* pLblControl = static_cast<Label*>(GetControl(IDC_HOLD_LABEL));
+ if(pLblControl != null)
+ {
+ pLblControl->SetShowState(showState);
+ }
+ Button* pButtonControl = static_cast<Button*>(GetControl(IDC_HOLD_BUTTON));
+ if(pButtonControl != null)
+ {
+ pButtonControl->SetShowState(showState);
+ }
+}
+
+void
ActiveCallForm::SetShowStateOnKeypad(bool showState)
{
Label* pLblControl = static_cast<Label*>(GetControl(IDC_CALLER1_LABEL));
pLblControl->SetShowState(showState);
pLblControl = static_cast<Label*>(GetControl(IDC_VOICE_CALL_ICON_LABEL));
pLblControl->SetShowState(showState);
- pLblControl = static_cast<Label*>(GetControl(IDC_HOLD_LABEL));
- pLblControl->SetShowState(showState);
- Button* pButtonControl = static_cast<Button*>(GetControl(IDC_HOLD_BUTTON));
- pButtonControl->SetShowState(showState);
+ SetHoldButtonShowState(showState);
}
break;
{
pLblControl = static_cast<Label*>(GetControl(IDC_PARTICIPANTS_LABEL));
pLblControl->SetShowState(showState);
- pLblControl = static_cast<Label*>(GetControl(IDC_HOLD_LABEL));
- pLblControl->SetShowState(showState);
- Button* pButtonControl = static_cast<Button*>(GetControl(IDC_HOLD_BUTTON));
- pButtonControl->SetShowState(showState);
- pButtonControl = static_cast<Button*>(GetControl(IDC_CONF_CALL_MORE_BUTTON));
+ SetHoldButtonShowState(showState);
+ Button* pButtonControl = static_cast<Button*>(GetControl(IDC_CONF_CALL_MORE_BUTTON));
pButtonControl->SetShowState(showState);
}
break;
{
//Goto conference call list form
SceneManager* pSceneManager = SceneManager::GetInstance();
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SCENE_CONFCALLLIST), null);
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SCENE_CONFCALLLIST, SCENE_TRANSITION_ANIMATION_TYPE_NONE,
+ SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_KEEP), null);
}
void
pTextElement->SetFont(font);
//construct Enriched text
EnrichedText* pEnrichedText = new (std::nothrow) EnrichedText();
- Dimension textDimension;
+ FloatDimension textDimension;
font.GetTextExtent(confCallName, confCallName.GetLength(), textDimension);
textDimension.height = textDimension.height + font.GetDescender();
pEnrichedText->Construct(textDimension);
pEnrichedText->Add(*pTextElement);
//Add Enriched text to pItem
- Point textPos(((2 * IDI_OPTIONMENU_ITEM_SPACING) + W_MGR_CONFCALL_BITMAP), ((IDI_OPTIONMENU_DIMEN.height - textDimension.height) / 2));
- pItem->AddElement(Rectangle(textPos, textDimension), 2, *pEnrichedText);
+ FloatPoint textPos(((2 * IDI_OPTIONMENU_ITEM_SPACING) + W_MGR_CONFCALL_BITMAP), ((IDI_OPTIONMENU_DIMEN.height - textDimension.height) / 2));
+ pItem->AddElement(FloatRectangle(textPos, textDimension), 2, *pEnrichedText);
// Cleans up
pEnrichedText->RemoveAll(true);
delete pEnrichedText;
delete pItem;
return true;
}
+
+void
+ActiveCallForm::OnForeground(void)
+{
+ AppLogDebug("Enter");
+ __pCallPresentor->OnAppForeground();
+}