class AttachementSavePopup\r
: public BaseCustomPopup\r
, public Tizen::Ui::IActionEventListener\r
+ , public Tizen::Ui::IKeyEventListener\r
, public Tizen::Ui::Controls::IListViewItemEventListener\r
, public Tizen::Ui::Controls::IListViewItemProvider\r
{\r
void SaveSelectedAttachments(void);\r
Tizen::Graphics::Bitmap* GetIconN(const Tizen::Base::String& filePath) const;\r
void ExitPopup(void);\r
+ //From IKeyEventListener\r
+ virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+ virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);\r
+ virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+\r
private:\r
class AttachMentsObject\r
: public Tizen::Base::Object\r
+\r
{\r
public:\r
AttachMentsObject(const Tizen::Base::String& filePath, Tizen::Graphics::Bitmap* pIconBitmap)\r
{}\r
const Tizen::Base::String& GetAttachmentPath(void) const { return __pFilepath;}\r
const Tizen::Graphics::Bitmap* GetIcon(void) const { return __pIconBitmap;}\r
+\r
+\r
private:\r
Tizen::Base::String __pFilepath;\r
Tizen::Graphics::Bitmap* __pIconBitmap;\r
class ContactPopup\r
: public Tizen::Ui::Controls::Popup\r
, public Tizen::Ui::IActionEventListener\r
+ , public Tizen::Ui::IKeyEventListener\r
, public Tizen::Ui::Controls::IListViewItemEventListener\r
, public Tizen::Ui::Controls::IListViewItemProvider\r
{\r
\r
// From IActionEventListener\r
void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);\r
+ //From IKeyEventListener\r
+ virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+ virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);\r
+ virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+\r
\r
protected:\r
void InitalizePopupItems(void);\r
\r
class DurationPopup\r
: public BaseCustomPopup\r
+ , public Tizen::Ui::IKeyEventListener\r
, public Tizen::Ui::IActionEventListener\r
, public Tizen::Ui::ITextEventListener\r
{\r
result ShowPopup(void);\r
// From IActionEventListener\r
virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);\r
+ //From IKeyEventListener\r
+ virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+ virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);\r
+ virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+\r
protected:\r
virtual void OnTextValueChanged(const Tizen::Ui::Control& source);\r
virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source){};\r
bool IsConvertedToMms(void) const;
Tizen::Base::Collection::IList* GetSelectedFileListN(const Tizen::Base::String& operationId, const Tizen::Base::Collection::IMap* pResultMap);
void SetFormEnabled(bool);
+ void InitComposePanelDimensionByFont(void);
+
private:
IComposeEventObserver* __pCompseEventListener;
ComposeBaseControl* __pFocusControl;
int __prevCurPosition;
int __fontSize;
int __prevScrollPosition;
+ int __sizeforOneLine;
+ int __sizeForTwoLine;
+ int __heightChangePerLine;
+
};
#endif // _MSG_MESSAGE_COMPOSE_PANEL_H_
class OptionPopup\r
: public BaseCustomPopup\r
, public Tizen::Ui::IActionEventListener\r
+ , public Tizen::Ui::IKeyEventListener\r
, public Tizen::Ui::Controls::IListViewItemEventListener\r
, public Tizen::Ui::Controls::IListViewItemProvider\r
{\r
// From IActionEventListener\r
void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);\r
\r
+ //From IKeyEventListener\r
+ virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+ virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);\r
+ virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+\r
+\r
/**\r
* Show message details\r
* @return void\r
class PhoneNumberListPopup\r
: public Tizen::Ui::Controls::Popup\r
, public Tizen::Ui::IActionEventListener\r
+ , public Tizen::Ui::IKeyEventListener\r
, public Tizen::Ui::Controls::IListViewItemEventListener\r
, public Tizen::Ui::Controls::IListViewItemProvider\r
{\r
virtual int GetItemCount(void);\r
// From IActionEventListener\r
void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);\r
+ //From IKeyEventListener\r
+ virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+ virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);\r
+ virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+\r
\r
private:\r
Tizen::Base::Collection::ArrayList* __pPhoneNumberList;\r
class MsgResendDeletePopup\r
: public Tizen::Ui::Controls::Popup\r
, public Tizen::Ui::IActionEventListener\r
+ , public Tizen::Ui::IKeyEventListener\r
, public Tizen::Ui::Controls::IListViewItemEventListener\r
, public Tizen::Ui::Controls::IListViewItemProvider\r
{\r
// From IActionEventListener\r
void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);\r
\r
+ //From IKeyEventListener\r
+ virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+ virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);\r
+ virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};\r
+\r
private:\r
ConversationData* __pConvData;\r
Tizen::Ui::Controls::Button* __pCancelButton;\r
class TokenOptionPopup
: public BaseCustomPopup
, public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IKeyEventListener
, public Tizen::Ui::Controls::IListViewItemEventListener
, public Tizen::Ui::Controls::IListViewItemProvider
{
virtual int GetItemCount(void);
// From IActionEventListener
virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+ //From IKeyEventListener
+ virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};
+ virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);
+ virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode){};
private:
Tizen::Ui::Control& __parentCntl;
This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE Scene SYSTEM "UIForm.dtd">
-<Scene Bversion="2.0.0.201305071547" Dversion="20120315">
+<Scene Bversion="2.0.0.201306251414" Dversion="20120315">
<LogicalCoordinate>720</LogicalCoordinate>
<Form id="IDL_MMS_DETAIL_FORM">
<property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
- <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
- <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
</Form>
<Footer>
- <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="true"/>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
<itemSet/>
</Footer>
<Header>
</Header>
<Panel id="IDC_PLAY_CONTROLS_PANEL" parent="IDL_MMS_DETAIL_FORM">
<property backgroundColor="#4D4D4D" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
- <layout bottomRelation="IDL_MMS_DETAIL_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="216.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="795.0"/>
+ <layout bottomRelation="IDL_MMS_DETAIL_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="216.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="810.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="46.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533.0" x="90.0" y="418.0"/>
</Panel>
<Button id="IDC_VOLUME_BUTTON" parent="IDC_PLAY_CONTROLS_PANEL">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="M01_play_btn_volume_press.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="M01_play_btn_volume_press.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="20.0" verticalAlign="ALIGN_MIDDLE"/>
- <layout height="74.0" mode="Portrait" width="74.0" x="32.0" y="120.0"/>
+ <layout height="74.0" mode="Portrait" width="74.0" x="32.0" y="100.0"/>
<layout height="356.0" mode="Landscape" width="78.0" x="4.0" y="0.0"/>
</Button>
<Button id="IDC_NEXT_BUTTON" parent="IDC_PLAY_CONTROLS_PANEL">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="M01_play_btn_next_press.png" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="M01_play_btn_next_press.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="M01_play_btn_next_press.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
- <layout height="74.0" mode="Portrait" width="74.0" x="466.0" y="120.0"/>
+ <layout height="74.0" mode="Portrait" width="74.0" x="466.0" y="100.0"/>
<layout height="356.0" mode="Landscape" width="78.0" x="14.0" y="0.0"/>
</Button>
<Button id="IDC_PLAY_PAUSE_BUTTON" parent="IDC_PLAY_CONTROLS_PANEL">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
- <layout height="74.0" mode="Portrait" width="74.0" x="322.0" y="120.0"/>
+ <layout height="74.0" mode="Portrait" width="74.0" x="322.0" y="100.0"/>
<layout height="356.0" mode="Landscape" width="78.0" x="14.0" y="0.0"/>
</Button>
<Button id="IDC_PREVIOUS_BUTTON" parent="IDC_PLAY_CONTROLS_PANEL">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="M01_play_btn_previous_press.png" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="M01_play_btn_previous_press.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="M01_play_btn_previous_press.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
- <layout height="74.0" mode="Portrait" width="74.0" x="178.0" y="120.0"/>
+ <layout height="74.0" mode="Portrait" width="74.0" x="178.0" y="100.0"/>
<layout height="356.0" mode="Landscape" width="78.0" x="14.0" y="0.0"/>
</Button>
<Progress id="IDC_PROGRESS" parent="IDC_PLAY_CONTROLS_PANEL">
using namespace Tizen::Io;\r
using namespace Tizen::Media;\r
using namespace Tizen::System;\r
+using namespace Tizen::Ui;\r
using namespace Tizen::Ui::Controls;\r
\r
\r
{\r
AppLogDebug("ENTER");\r
result r = Popup::Construct(L"IDL_ATTACHMENTS_POPUP");\r
+ Popup::AddKeyEventListener(*this);\r
if (!IsFailed(r))\r
{\r
// Transfer ownership\r
AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));\r
return;\r
}\r
+\r
+void\r
+AttachementSavePopup::OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)\r
+{\r
+ AppLogDebug("ENTER");\r
+ switch (keyCode)\r
+ {\r
+ case KEY_BACK:\r
+ {\r
+ Popup::SetShowState(false);\r
+ ExitPopup();\r
+ }\r
+ break;\r
+\r
+ default:\r
+ break;\r
+ }\r
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));\r
+}\r
}
__pSendFailedPopup = new (std::nothrow) Popup();
__pSendFailedPopup->Construct(L"IDL_MSG_INFO_POPUP");
+ __pSendFailedPopup->AddKeyEventListener(*this);
Button* pOkDelete = static_cast<Button*>(__pSendFailedPopup->GetControl(L"IDC_BUTTON1"));
Label* pLabel = static_cast<Label*>(__pSendFailedPopup->GetControl(L"IDC_LABEL1"));
pLabel->SetText(L"Message Sending Failed");
case KEY_SIDE_UP:
case KEY_SIDE_DOWN:
{
- SettingPresentationModel* pSettingPrModel = SettingPresentationModel::GetInstance();
- if (pSettingPrModel->IsVolumeKeyOn())
+// SettingPresentationModel* pSettingPrModel = SettingPresentationModel::GetInstance();
+// if (pSettingPrModel->IsVolumeKeyOn())
+// {
+// if (keyCode == KEY_SIDE_UP)
+// {
+// FontSettings* pFontSettings = SettingPresentationModel::GetInstance()->GetFontSettings();
+// int fontType = (int) pFontSettings->GetMessageFontType();
+// if (fontType < SETTING_HUGE_FONT)
+// {
+// fontType++;
+// pFontSettings->SetMessageFonttype((SettingFontType) fontType);
+// }
+// int size = pFontSettings->GetMessageTextSize((SettingFontType) fontType);
+// __pMsgComposePanel->SetTextSize(size);
+// __pRecipientPanel->SetTextSize(size);
+// }
+// else if (keyCode == KEY_SIDE_DOWN)
+// {
+// FontSettings* pFontSettings = SettingPresentationModel::GetInstance()->GetFontSettings();
+// int fontType = pFontSettings->GetMessageFontType();
+// if (fontType > SETTING_TINY_FONT)
+// {
+// fontType--;
+// pFontSettings->SetMessageFonttype((SettingFontType) fontType);
+// }
+// int size = pFontSettings->GetMessageTextSize((SettingFontType) fontType);
+// __pMsgComposePanel->SetTextSize(size);
+// __pRecipientPanel->SetTextSize(size);
+// }
+// }
+ }
+ break;
+
+ case KEY_BACK:
+ {
+ if (__pMessagePopup && __pMessagePopup->GetShowState())
{
- if (keyCode == KEY_SIDE_UP)
- {
- FontSettings* pFontSettings = SettingPresentationModel::GetInstance()->GetFontSettings();
- int fontType = (int) pFontSettings->GetMessageFontType();
- if (fontType < SETTING_HUGE_FONT)
- {
- fontType++;
- pFontSettings->SetMessageFonttype((SettingFontType) fontType);
- }
- int size = pFontSettings->GetMessageTextSize((SettingFontType) fontType);
- __pMsgComposePanel->SetTextSize(size);
- __pRecipientPanel->SetTextSize(size);
- }
- else if (keyCode == KEY_SIDE_DOWN)
- {
- FontSettings* pFontSettings = SettingPresentationModel::GetInstance()->GetFontSettings();
- int fontType = pFontSettings->GetMessageFontType();
- if (fontType > SETTING_TINY_FONT)
- {
- fontType--;
- pFontSettings->SetMessageFonttype((SettingFontType) fontType);
- }
- int size = pFontSettings->GetMessageTextSize((SettingFontType) fontType);
- __pMsgComposePanel->SetTextSize(size);
- __pRecipientPanel->SetTextSize(size);
- }
+ __pMessagePopup->SetShowState(false);
}
}
break;
__pMessagePopup = new (std::nothrow) Popup();
__pMessagePopup->Construct(L"IDL_BLOCK_POPUP");
+ __pMessagePopup->AddKeyEventListener(*this);
Button* pButtonOk = static_cast<Button*>(__pMessagePopup->GetControl(L"IDC_BUTTON_OK"));
pButtonOk->SetActionId(leftActionId);
pButtonOk->AddActionEventListener(*this);
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
using namespace Tizen::Ui::Controls;
#define H_POPUP 550
AppLogDebug("ENTER");
result r = Popup::Construct(L"IDL_RECIPIENT_LIST_POPUP");
+ Popup::AddKeyEventListener(*this);
if (!IsFailed(r))
{
__contactName = contactName;
}
void
+ContactPopup::OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)
+{
+ AppLogDebug("ENTER");
+
+ switch (keyCode)
+ {
+ case KEY_BACK:
+ {
+ Popup::SetShowState(false);
+ __popupListener.OnPopupClose(this);
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
+}
+
+void
ContactPopup::OnListViewItemStateChanged(ListView& listView, int index, int elementId,
ListItemStatus status)
{
default:
break;
}
- if (month != 5)
+ String displayLanguageValue;
+ SettingInfo::GetValue(IDS_KEY_LANGUAGE_CHANGE, displayLanguageValue);
+ String arabicLanguage(L"ara_AE");
+ if (month != 5 && !displayLanguageValue.Equals(arabicLanguage))
{
__groupName.Append(L".");
}
__groupName.Append(year);
}
__groupName.Append(L")");
+
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
}
SetFormEnabled(false);
__pOptionPopup = new (std::nothrow) OptionPopup(*this, pConvData);
__pOptionPopup->Construct(__pCurrentThreadEntry->GetEntryId(), pDataIndex->ToInt());
+ __pOptionPopup->AddKeyEventListener(*this);
__pOptionPopup->SetShowState(true);
__pOptionPopup->Show();
// pConvData = null; // Transfer ownership to popup
{
AppLogDebug("ENTER");
- SettingPresentationModel* pSettingPrModel = SettingPresentationModel::GetInstance();
- if (pSettingPrModel->IsVolumeKeyOn())
+ switch (keyCode)
{
- if (keyCode == KEY_SIDE_UP)
+ case KEY_BACK:
+ {
+ if (__pOptionPopup && __pOptionPopup->GetShowState())
{
- FontSettings* pFontSettings = SettingPresentationModel::GetInstance()->GetFontSettings();
- int fontType = (int) pFontSettings->GetMessageFontType();
- if (fontType < SETTING_HUGE_FONT)
- {
- fontType++;
- pFontSettings->SetMessageFonttype((SettingFontType) fontType);
- }
- int size = pFontSettings->GetMessageTextSize((SettingFontType) fontType);
- __pMsgComposePanel->SetTextSize(size);
- __pConvMessageList->UpdateTableView();
+ SetFormEnabled(true);
+ __pOptionPopup->SetShowState(false);
}
- else if (keyCode == KEY_SIDE_DOWN)
+ else if (__pDeleteConfirmPopup && __pDeleteConfirmPopup->GetShowState())
{
- FontSettings* pFontSettings = SettingPresentationModel::GetInstance()->GetFontSettings();
- int fontType = (int) pFontSettings->GetMessageFontType();
- if (fontType > SETTING_TINY_FONT)
- {
- fontType--;
- pFontSettings->SetMessageFonttype((SettingFontType) fontType);
- }
- int size = pFontSettings->GetMessageTextSize((SettingFontType) fontType);
- __pMsgComposePanel->SetTextSize(size);
- __pConvMessageList->UpdateTableView();
+ __pDeleteConfirmPopup->SetShowState(false);
+ }
+
+ else if (__pResendDelete && __pResendDelete->GetShowState())
+ {
+ __pResendDelete->SetShowState(false);
+ }
+
+ else if (__pSendFailedPopup && __pSendFailedPopup->GetShowState())
+ {
+ __pSendFailedPopup->SetShowState(false);
+ }
+
+ else if (__pBlockPopup && __pBlockPopup->GetShowState())
+ {
+ __pBlockPopup->SetShowState(false);
}
+
+ }
+ break;
+
+ default:
+ break;
}
AppLogDebug("EXIT: r= %s", GetErrorMessage(GetLastResult()));
__pBlockPopup = new (std::nothrow) Popup();
__pBlockPopup->Construct(L"IDL_BLOCK_POPUP");
+ __pBlockPopup->AddKeyEventListener(*this);
Button* pButtonOk = static_cast<Button*>(__pBlockPopup->GetControl(L"IDC_BUTTON_OK"));
pButtonOk->SetActionId(IDA_PHONENUMBER_BLOCK_OK);
pButtonOk->AddActionEventListener(*this);
AppLogDebug("ENTER");
__pDeleteConfirmPopup = new (std::nothrow) BaseCustomPopup();
__pDeleteConfirmPopup->Construct(L"IDL_DELETE_POPUP");
+ __pDeleteConfirmPopup->AddKeyEventListener(*this);
Button* pButtonDelete = static_cast<Button*>(__pDeleteConfirmPopup->GetControl(L"IDC_BUTTON_LEFT"));
Button* pButtonCancel = static_cast<Button*>(__pDeleteConfirmPopup->GetControl(L"IDC_BUTTON_RIGHT"));
pButtonDelete->SetActionId(IDA_CONVLISTEDIT_MESSAGE_DELETE);
pButtonDelete->AddActionEventListener(*this);
pButtonCancel->SetActionId(IDA_CONVLISTEDIT_MESSAGE_CANCEL);
pButtonCancel->AddActionEventListener(*this);
+
__pDeleteConfirmPopup->Show();
}
AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
using namespace Tizen::Base::Collection;\r
using namespace Tizen::Base::Runtime;\r
using namespace Tizen::Graphics;\r
+using namespace Tizen::Ui;\r
using namespace Tizen::Ui::Controls;\r
\r
DurationPopup::DurationPopup(Control& parent)\r
{\r
AppLogDebug("ENTER");\r
result r = Popup::Construct(resourceId);\r
+ Popup::AddKeyEventListener(*this);\r
if (!IsFailed(r))\r
{\r
Button* pButtonOk = (Button*) GetControl(L"IDC_BUTTON_OK");\r
AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));\r
}\r
\r
+void\r
+DurationPopup::OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)\r
+{\r
+ AppLogDebug("ENTER");\r
+ switch (keyCode)\r
+ {\r
+ case KEY_BACK:\r
+ {\r
+ SetDuration(__previousValue);\r
+ EditField* pDurationField = (EditField*) GetControl(L"IDC_EDITFIELD_DURATION");\r
+ pDurationField->HideKeypad();\r
+ SetShowState(false);\r
+ RequestId requestId = REQUEST_DESTROY_DURATION_POPUP;\r
+ __parentCntl.SendUserEvent(requestId, null);\r
+ }\r
+ break;\r
+\r
+ default:\r
+ break;\r
+ }\r
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));\r
+}\r
+\r
+\r
//ITextEventListener\r
void\r
DurationPopup::OnTextValueChanged(const Tizen::Ui::Control& source)\r
, __prevCurPosition(0)
, __fontSize(FONT_MAIN_TEXT_SIZE_NORMAL)
, __prevScrollPosition(0)
+ , __sizeforOneLine(74)
+ , __sizeForTwoLine(122)
+ , __heightChangePerLine(51)
{
// Empty implementation
}
__pScrollPanel = static_cast<ScrollPanel*>(GetControl(L"IDC_SCROLLPANEL"));
SetShowState(false);
__fontSize = CommonUtil::GetFontSize(COMPOSER_FORM);
+ InitComposePanelDimensionByFont();
AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
return r;
}
GetControl(L"IDC_PANEL_IMAGE_TEXT"));
if (source.GetParent()->GetParent()->Equals(*pImageTextSlidePanel))
{
-// ExpandableEditArea* pExpandableEditArea = dynamic_cast<ExpandableEditArea *>((ExpandableEditArea *)(&source));
-// if(pExpandableEditArea)
-// {
-// int currentLineCount = pExpandableEditArea->GetTextLineCount();
-// if (currentLineCount > 2 && pExpandableEditArea->GetHeight() > (122 + 51*(currentLineCount - 2)))
-// {
-// pExpandableEditArea->SetSize(pExpandableEditArea->GetWidth(), (122 + 51*(currentLineCount - 2)));
-// static_cast<MediaTextExpandEditArea*>(__pFocusControl)->OnExpandableEditAreaLineRemoved(*pExpandableEditArea, currentLineCount);
-// }
-// else if (currentLineCount == 2 && pExpandableEditArea->GetHeight() > 122 )
-// {
-// pExpandableEditArea->SetSize(pExpandableEditArea->GetWidth(), 122 );
-// static_cast<MediaTextExpandEditArea*>(__pFocusControl)->OnExpandableEditAreaLineRemoved(*pExpandableEditArea, currentLineCount);
-// }
-// else if ((currentLineCount == 1 || currentLineCount == 0) && pExpandableEditArea->GetHeight() > 74)
-// {
-// pExpandableEditArea->SetSize(pExpandableEditArea->GetWidth(), 74);
-// static_cast<MediaTextExpandEditArea*>(__pFocusControl)->OnExpandableEditAreaLineRemoved(*pExpandableEditArea, currentLineCount);
-// }
-// }
+ ExpandableEditArea* pExpandableEditArea = dynamic_cast<ExpandableEditArea *>((ExpandableEditArea *)(&source));
+ if(pExpandableEditArea)
+ {
+ int currentLineCount = pExpandableEditArea->GetTextLineCount();
+ if (currentLineCount > 2 && pExpandableEditArea->GetHeight() > (__sizeForTwoLine + __heightChangePerLine*(currentLineCount - 2)))
+ {
+ pExpandableEditArea->SetSize(pExpandableEditArea->GetWidth(), (__sizeForTwoLine + __heightChangePerLine*(currentLineCount - 2)));
+ static_cast<MediaTextExpandEditArea*>(__pFocusControl)->OnExpandableEditAreaLineRemoved(*pExpandableEditArea, currentLineCount);
+ }
+ else if (currentLineCount == 2 && pExpandableEditArea->GetHeight() > __sizeForTwoLine )
+ {
+ pExpandableEditArea->SetSize(pExpandableEditArea->GetWidth(), __sizeForTwoLine );
+ static_cast<MediaTextExpandEditArea*>(__pFocusControl)->OnExpandableEditAreaLineRemoved(*pExpandableEditArea, currentLineCount);
+ }
+ else if ((currentLineCount == 1 || currentLineCount == 0) && pExpandableEditArea->GetHeight() > __sizeforOneLine)
+ {
+ pExpandableEditArea->SetSize(pExpandableEditArea->GetWidth(), __sizeforOneLine);
+ static_cast<MediaTextExpandEditArea*>(__pFocusControl)->OnExpandableEditAreaLineRemoved(*pExpandableEditArea, currentLineCount);
+ }
+ }
}
ShowComposeInfo();
RequestId requestId = REQUEST_CHECK_COMPOSE_STATE;
}
AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
}
+
+void
+MessageComposePanel::InitComposePanelDimensionByFont(void)
+{
+ AppLogDebug("ENTER");
+
+ switch (__fontSize)
+ {
+ case 44:
+ {
+ __sizeForTwoLine = 122;
+ __sizeforOneLine = 74;
+ __heightChangePerLine = 51;
+ }
+ break;
+
+ case 64:
+ {
+ __sizeForTwoLine = 174;
+ __sizeforOneLine = 99;
+ __heightChangePerLine = 77;
+ }
+ break;
+
+ case 81:
+ {
+ __sizeForTwoLine = 214;
+ __sizeforOneLine = 114;
+ __heightChangePerLine = 97;
+ }
+ break;
+
+ case 98:
+ {
+ __sizeForTwoLine = 256;
+ __sizeforOneLine = 134;
+ __heightChangePerLine = 118;
+ }
+ break;
+
+ default:
+ break;
+ }
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
+}
using namespace Tizen::Locales;\r
using namespace Tizen::Media;\r
using namespace Tizen::Social;\r
+using namespace Tizen::System;\r
\r
const wchar_t* IDS_PREVIEW = L"Preview";\r
const wchar_t* IDS_CHAR = L"r";\r
default:\r
break;\r
}\r
- if (month != 5)\r
+ String displayLanguageValue;\r
+ SettingInfo::GetValue(IDS_KEY_LANGUAGE_CHANGE, displayLanguageValue);\r
+ String arabicLanguage(L"ara_AE");\r
+ if (month != 5 && !displayLanguageValue.Equals(arabicLanguage))\r
{\r
__groupName.Append(L".");\r
}\r
__groupName.Append(year);\r
}\r
__groupName.Append(L")");\r
+\r
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));\r
}\r
\r
const int\r
String* pMsgId = (String*) pArgs->GetValue(key);
Integer integer ;
int msgId;
- integer.Decode(*pMsgId, msgId);
-
-
- ArrayList* pArrayList = new (std::nothrow) ArrayList();
- pArrayList->Construct();
- pArrayList->Add(new String(*pMsgId));
+ if (pMsgId)
+ {
+ integer.Decode(*pMsgId, msgId);
+ ArrayList* pArrayList = new (std::nothrow) ArrayList();
+ pArrayList->Construct();
+ pArrayList->Add(new String(*pMsgId));
- SendUserEvent(REQUEST_LAUNCH_CONV,pArrayList);
+ SendUserEvent(REQUEST_LAUNCH_CONV,pArrayList);
+ }
//pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CONVERSATION_LIST, SCENE_TRANSITION_ANIMATION_TYPE_NONE), pArgList);
}
}
Button* pVolumeButton = static_cast<Button*>(__pPlayControlPanel->GetControl(L"IDC_VOLUME_BUTTON"));
if (pVolumeButton)
{
+ pVolumeButton->SetSize(W_PLAYCONTROL_BUTTON, H_PLAYCONTROL_BUTTON);
pVolumeButton->SetColor(BUTTON_STATUS_PRESSED, COLOR_PANEL_BORDER);
pVolumeButton->SetColor(BUTTON_STATUS_NORMAL, COLOR_PANEL_BORDER);
pVolumeButton->SetActionId(IDA_VOLUME);
__pPreviousButton = static_cast<Button*>(__pPlayControlPanel->GetControl(L"IDC_PREVIOUS_BUTTON"));
if (__pPreviousButton)
{
+ __pPreviousButton->SetSize(W_PLAYCONTROL_BUTTON, H_PLAYCONTROL_BUTTON);
__pPreviousButton->SetColor(BUTTON_STATUS_PRESSED, COLOR_PANEL_BORDER);
__pPreviousButton->SetColor(BUTTON_STATUS_NORMAL, COLOR_PANEL_BORDER);
__pPreviousButton->SetColor(BUTTON_STATUS_DISABLED, COLOR_PANEL_BORDER);
__pNextbutton = static_cast<Button*>(__pPlayControlPanel->GetControl(L"IDC_NEXT_BUTTON"));
if (__pNextbutton)
{
+ __pNextbutton->SetSize(W_PLAYCONTROL_BUTTON, H_PLAYCONTROL_BUTTON);
__pNextbutton->SetColor(BUTTON_STATUS_PRESSED, COLOR_PANEL_BORDER);
__pNextbutton->SetColor(BUTTON_STATUS_NORMAL, COLOR_PANEL_BORDER);
__pNextbutton->SetColor(BUTTON_STATUS_DISABLED, COLOR_PANEL_BORDER);
AppLogDebug("ENTER");\r
\r
result r = Popup::Construct(L"IDL_MSG_OPTION_POPUP");\r
+ Popup::AddKeyEventListener(*this);\r
if (!__pConvData)\r
{\r
r = E_FAILURE;\r
}\r
\r
void\r
+OptionPopup::OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)\r
+{\r
+ AppLogDebug("ENTER");\r
+\r
+ // Destroy Popup\r
+ switch (keyCode)\r
+ {\r
+ case KEY_BACK:\r
+ {\r
+ SetShowState(false);\r
+ RequestId requestId = REQUEST_DESTROY_OPTION_POPUP;\r
+ __pParentCnt.SendUserEvent(requestId, null);\r
+ }\r
+ break;\r
+\r
+ default:\r
+ break;\r
+ }\r
+\r
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));\r
+ return;\r
+}\r
+void\r
OptionPopup::ShowMessageDetails(void)\r
{\r
AppLogDebug("ENTER");\r
using namespace Tizen::Base;\r
using namespace Tizen::Base::Collection;\r
using namespace Tizen::Graphics;\r
+using namespace Tizen::Ui;\r
using namespace Tizen::Ui::Controls;\r
\r
PhoneNumberListPopup::PhoneNumberListPopup(IPopupEventListener& listener)\r
\r
__pPhoneNumberList = pPhoneNumberList;\r
result r = Popup::Construct(L"IDL_MSG_CONTACT_NUMBER_POPUP");\r
+ Popup::AddKeyEventListener(*this);\r
if (!IsFailed(r))\r
{\r
String strText;\r
AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));\r
return;\r
}\r
+\r
+void\r
+PhoneNumberListPopup::OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)\r
+{\r
+ AppLogDebug("ENTER");\r
+ switch (keyCode)\r
+ {\r
+ case KEY_BACK:\r
+ {\r
+ SetShowState(false);\r
+ __popupListener.OnPopupClose(this);\r
+ }\r
+ break;\r
+\r
+ default:\r
+ break;\r
+ }\r
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));\r
+}\r
+\r
case KEY_BACK:
{
- if (__pErrorMessagePopup)
+ if (__pErrorMessagePopup && __pErrorMessagePopup->GetShowState())
{
+ SetFormEnabled(true);
+ __pExpandEditArea->SetKeypadEnabled(true);
+ if(!__pExpandEditArea->HasFocus())
+ {
+ __pExpandEditArea->SetFocus();
+ }
__pErrorMessagePopup->SetShowState(false);
}
}
using namespace Tizen::Base;\r
using namespace Tizen::Base::Collection;\r
using namespace Tizen::Graphics;\r
+using namespace Tizen::Ui;\r
using namespace Tizen::Ui::Controls;\r
\r
MsgResendDeletePopup::MsgResendDeletePopup(ConversationData* pConvData, IPopupEventListener& listener)\r
return r;\r
}\r
r = Popup::Construct(L"IDL_MSG_RESEND_DELETE_POPUP");\r
+ Popup::AddKeyEventListener(*this);\r
if (r == E_SUCCESS)\r
{\r
String strText;\r
}\r
\r
void\r
+MsgResendDeletePopup::OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)\r
+{\r
+ AppLogDebug("ENTER");\r
+\r
+ switch (keyCode)\r
+ {\r
+ case Tizen::Ui::KEY_BACK:\r
+ {\r
+ Popup::SetShowState(false);\r
+ __popupListener.OnPopupClose(this);\r
+ break;\r
+ }\r
+\r
+ default:\r
+ break;\r
+ }\r
+\r
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));\r
+ return;\r
+}\r
+\r
+void\r
MsgResendDeletePopup::OnUserEventReceivedN(RequestId requestId, IList* pArgs)\r
{\r
switch (requestId)\r
break;
}
- if (month != 5)
+ String displayLanguageValue;
+ SettingInfo::GetValue(IDS_KEY_LANGUAGE_CHANGE, displayLanguageValue);
+ String arabicLanguage(L"ara_AE");
+ if (month != 5 && !displayLanguageValue.Equals(arabicLanguage))
{
__groupName.Append(L".");
}
__groupName.Append(year);
}
__groupName.Append(L")");
+
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
}
const int
}
break;
+ case KEY_BACK:
+ {
+ if (__pDeletePopup && __pDeletePopup->GetShowState())
+ {
+ __pDeletePopup->SetShowState(false);
+ }
+ if (__pBlockPopup && __pBlockPopup->GetShowState())
+ {
+ __pBlockPopup->SetShowState(false);
+ }
+ }
+ break;
+
default:
break;
}
}
__pDeletePopup = new (std::nothrow) BaseCustomPopup();
__pDeletePopup->Construct(L"IDL_DELETE_POPUP");
-
+ __pDeletePopup->AddKeyEventListener(*this);
Button* pButtonDelete = static_cast<Button*>(__pDeletePopup->GetControl(L"IDC_BUTTON_LEFT"));
Button* pButtonCancel = static_cast<Button*>(__pDeletePopup->GetControl(L"IDC_BUTTON_RIGHT"));
__pBlockPopup = new (std::nothrow) Popup();
__pBlockPopup->Construct(L"IDL_BLOCK_POPUP");
+ __pBlockPopup->AddKeyEventListener(*this);
Button* pButtonOk = static_cast<Button*>(__pBlockPopup->GetControl(L"IDC_BUTTON_OK"));
pButtonOk->SetActionId(IDA_PHONENUMBER_BLOCK_OK);
pButtonOk->AddActionEventListener(*this);
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
using namespace Tizen::Ui::Controls;
TokenOptionPopup::TokenOptionPopup(Control& parent)
{
AppLogDebug("ENTER");
result r = Popup::Construct(L"IDL_ATTACH_LIST_POPUP");
+ Popup::AddKeyEventListener(*this);
if (!IsFailed(r) && pRecipient)
{
// Transfer ownership
}
AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
}
+
+void
+TokenOptionPopup::OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)
+{
+ AppLogDebug("ENTER");
+ switch (keyCode)
+ {
+ case KEY_BACK:
+ {
+ SetShowState(false);
+ RequestId requestId = REQUEST_DESTROY_TOKEN_OPTION_POPUP;
+ __parentCntl.SendUserEvent(requestId, null);
+ }
+ break;
+
+ default:
+ break;
+ }
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
+}
const int W_SEND_BUTTON = 108;
const int W_ATTACH_BUTTON = 64;
const int H_ATTACH_BUTTON = 64;
-const int W_PLAYCONTROL_BUTTON = 74;
-const int H_PLAYCONTROL_BUTTON = 74;
+const int W_PLAYCONTROL_BUTTON = 104;
+const int H_PLAYCONTROL_BUTTON = 104;
//Check Box
const int H_CHECKBOX = 75;