const int X_SEND_TEXT_ITEM = 484;
const int Y_SEND_TEXT_ITEM = 20;
const int W_SEND_TEXT_ITEM = 220;
+const int W_SEND_BUTTON_MARGIN = 14;
const int H_SEND_TEXT_ITEM = 72;
const int X_PHOTO_LBL = 166;
const int Y_PHOTO_LBL = 232;
}
void
-IncomingCallForm::OnActionPerformed(const Control& source, int actionId)
-{
- switch (actionId)
- {
- case IDA_SHOW_REJECT_CALL_MESSAGE_PANEL: // applicable in all form states
+IncomingCallForm::ShowRejectMessagePanel(void)
{
Panel* pKeysPanel = static_cast<Panel*>(GetControl(IDC_REJECT_PANEL));
if (pKeysPanel)
ShowRejectMessageFooter();
- /* pButtonReject = static_cast<Button*>(pKeysPanel->GetControl(IDC_BACK_BUTTON));
- pButtonReject->SetActionId(IDA_CANCEL_REJECT_CALL_MESSAGE_PANEL);
- pButtonReject->AddActionEventListener(*this);
- pButtonReject->SetEnabled(true);
- pButtonReject->SetFocus();
-
- Button* pButtonCreate = static_cast<Button*>(pKeysPanel->GetControl(IDC_CREATE_BUTTON));
- pButtonCreate->SetActionId(IDA_CREATE_REJECT_CALL_MESSAGE);
- pButtonCreate->AddActionEventListener(*this);
- pButtonCreate->SetEnabled(true);
- pButtonCreate->SetFocus();*/
pKeysPanel->SetFocus();
pKeysPanel->Draw();
pButtonRejectMessage->Draw();
}
}
+void
+IncomingCallForm::HideRejectMessagePanel(void)
+{
+ HideRejectPanel();
+ Button* pButtonRejectMessage = static_cast<Button*>(GetControl(IDC_REJECT_MESSAGE_BUTTON));
+ if (pButtonRejectMessage)
+ {
+ pButtonRejectMessage->SetShowState(true);
+ RelativeLayout* pRelativeLayout = dynamic_cast<RelativeLayout*>(GetLandscapeLayoutN());
+ if (pRelativeLayout != null)
+ {
+ pRelativeLayout->SetRelation(*pButtonRejectMessage,*this,RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+ pRelativeLayout->Update();
+ delete pRelativeLayout;
+ }
+ }
+}
+
+void
+IncomingCallForm::OnActionPerformed(const Control& source, int actionId)
+{
+ switch (actionId)
+ {
+ case IDA_SHOW_REJECT_CALL_MESSAGE_PANEL: // applicable in all form states
+ {
+ ShowRejectMessagePanel();
+ }
break;
case IDA_CREATE_REJECT_CALL_MESSAGE:
case IDA_CANCEL_REJECT_CALL_MESSAGE_PANEL:
{
- HideRejectPanel();
- SetFocus();
- Button* pButtonRejectMessage = static_cast<Button*>(GetControl(IDC_REJECT_MESSAGE_BUTTON));
- if (pButtonRejectMessage)
- {
- pButtonRejectMessage->SetShowState(true);
- RelativeLayout* pRelativeLayout = dynamic_cast<RelativeLayout*>(GetLandscapeLayoutN());
- if (pRelativeLayout != null)
- {
- pRelativeLayout->SetRelation(*pButtonRejectMessage,*this,RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
- pRelativeLayout->Update();
- delete pRelativeLayout;
- }
- }
+ HideRejectMessagePanel();
}
break;
{
String sendText = AppUtility::GetResourceString(IDS_LIST_SEND_BUTTON);
Button* pSendButton = new (std::nothrow) Button();
- pSendButton->Construct(Rectangle(X_SEND_TEXT_ITEM, Y_SEND_TEXT_ITEM, W_SEND_TEXT_ITEM, H_SEND_TEXT_ITEM), sendText);
+ pSendButton->Construct(Rectangle(GetClientAreaBounds().width - W_SEND_BUTTON_MARGIN -W_SEND_TEXT_ITEM, Y_SEND_TEXT_ITEM, W_SEND_TEXT_ITEM, H_SEND_TEXT_ITEM), sendText);
//set action id and listener
int actionId = IDA_SEND_REJECT_MSG1;
switch(itemIndex)
void
IncomingCallForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
{
+ Panel* pKeysPanel = static_cast<Panel*>(GetControl(IDC_REJECT_PANEL));
+ if(pKeysPanel->GetShowState() == true)
+ {
+ HideRejectMessagePanel();
+ ShowRejectMessagePanel();
+ }
+
Button* pButtonRejectMessage = static_cast<Button*>(GetControl(IDC_REJECT_MESSAGE_BUTTON));
- if (pButtonRejectMessage)
+ if (pButtonRejectMessage != null)
{
SetBitmapToRejectMessageButton(IDS_REJECT_MESSAGE_BTN,IDB_REJECT_MESSAGE_BG,
IDB_REJECT_MESSAGE_UP_ARROW, IDB_REJECT_MESSAGE_ICON, false, false);
SetBitmapToRejectMessageButton(IDS_REJECT_MESSAGE_BTN,IDB_REJECT_MESSAGE_BG,
IDB_REJECT_MESSAGE_UP_ARROW, IDB_REJECT_MESSAGE_ICON, false, true);
+ pButtonRejectMessage->Invalidate(true);
}
+ Button* pButtonReject = static_cast<Button*>(pKeysPanel->GetControl(IDC_REJECT_MESSAGE_CANCEL_BUTTON));
+ if (pButtonReject != null)
+ {
+ SetBitmapToRejectMessageButton(IDS_REJECT_MESSAGE_BTN,IDB_REJECT_MESSAGE_BG,
+ IDB_REJECT_MESSAGE_DOWN_ARROW, IDB_REJECT_MESSAGE_ICON, true, false);
+ SetBitmapToRejectMessageButton(IDS_REJECT_MESSAGE_BTN,IDB_REJECT_MESSAGE_BG,
+ IDB_REJECT_MESSAGE_DOWN_ARROW, IDB_REJECT_MESSAGE_ICON, true, true);
+ pButtonReject->Invalidate(true);
+ }
}
void