void
ActiveCallForm::ShowDTMFKeypad(void)
{
- if(__pDTMFKeypad != null)
- {
- RemoveControl(*__pDTMFKeypad);
- __pDTMFKeypad = null;
- }
-
if(__pDTMFKeypad == null)
{
//update rect according to client screen area
pRelativeLayout->SetRelation(*__pDTMFKeypad, __pCallButtonsPanel, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
}
}
- EditField* pTextBox = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX));
- pTextBox->SetText(L"");
__pDTMFKeypad->SetShowState(true);
+ if(__DtmfString.IsEmpty() == false)
+ {
+ EditField* pTextBox = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX));
+ pTextBox->SetText(__DtmfString);
+ }
__pDTMFKeypad->Draw(true);
__pDTMFKeypad->Show();
}
//in Portrait mode it is hidden beneath DTMF Keypad.
SetShowStateOnKeypad(false);
}
- 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);
+ if(__pDTMFKeypad->GetShowState() == true)
+ {
+ String dtmfText = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX))->GetText();
+ HideDTMFKeypad();
+ ShowDTMFKeypad();
+ }
}
}
+ //More option is displayed recreate it
+ if(__pMoreOptionsListAnchor != null)
+ {
+ CreateMoreOptionsMenuList();
+ CreateMoreOptionsMenuList();
+ }
}
void
{
if(__pDTMFKeypad != null)
{
+ __DtmfString = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX))->GetText();
+
RemoveControl(*__pDTMFKeypad);
__pDTMFKeypad = null;
}
{
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;
SetShowStateOnKeypad(false);
}
ShowDTMFKeypad();
- SetTextToDTMFTextField(L"");
__pCallButtonsPanel->SetKeypadButtonState(IDA_CLOSE_NUMKEYPAD);
}
break;
//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;
{
__pMoreOptionsList->SetShowState(false);
}
+ __DtmfString.Clear();
}
void
//change AddCall Button status
__pCallButtonsPanel->EnableAddCallButton(isEnableAddCall);
//change JoinCall Button status
- __pCallButtonsPanel->EnableJoinCallButton(isEnableJoinCall);
+ __pCallButtonsPanel->EnableJoinCallButton(__pCallPresentor->IsEnableJoinCallButton());
AppLog("EXIT");
}
pMoreBtn->SetShowState(false);
}
ShowPersonDetails(contactNo, IDC_NUMBER1_LABEL, IDC_CALLER1_LABEL, false,__pActiveCallInfo);
+ if(__pMoreOptionsListAnchor != null && __pMoreOptionsListAnchor->GetShowState() == true)
+ {
+ CreateMoreOptionsMenuList();
+ }
}
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");
}
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;