virtual void OnBoundsChanged(const Tizen::Graphics::Rectangle& oldRect, const Tizen::Graphics::Rectangle& newRect);\r
// Form ComposeBaseControl\r
virtual ComposeControlType GetControlType(void) const;\r
+ virtual result OnTerminating(void);\r
\r
private:\r
Tizen::Graphics::Bitmap* __pBgBitmap;\r
// Constructor
MessageComposePanel(void);
// Destructor
- ~MessageComposePanel(void);
+ virtual ~MessageComposePanel(void);
// 2nd phase constructor
result Construct(const Tizen::Base::String& resourceId);
// New API
// Adjust size and control position.\r
Rectangle rect = GetClientAreaBounds();\r
int newHeight = GetHeight() + increaseHeight;\r
- Popup::SetBounds(0, ((rect.height - newHeight) / 2), GetWidth(), newHeight);\r
+ //Popup::SetBounds(0, ((rect.height - newHeight) / 2), GetWidth(), newHeight);\r
+ Popup::SetSize(Dimension(GetWidth(), GetHeight() + increaseHeight));\r
pAttachmentsListview->SetSize(pAttachmentsListview->GetWidth(),\r
pAttachmentsListview->GetHeight() + increaseHeight);\r
Point pos = pCancelButton->GetPosition();\r
AppLogDebug("ENTER");
Rectangle clientArea = GetClientAreaBounds();
+ AppLogDebug("client area height : %d",clientArea.height);
if (__pMsgComposePanel != null && __pRecipientPanel)
{
__pMsgComposePanel->SetMaximumSize(Dimension(__pMsgComposePanel->GetWidth(), clientArea.height - __pRecipientPanel->GetHeight() + 1));
{
AppLogDebug("ENTER");
// Remove temporary compose file.
- if (__pMediaCntl && __isMediaNeedToRemove)
- {
- File::Remove(__pMediaCntl->GetMediaPath());
- }
if (__pBgBitmap)
{
delete __pBgBitmap;
return r;
}
+result
+MediaTextExpandEditArea::OnTerminating(void)
+{
+ AppLogDebug("ENTER");
+
+ result r = E_SUCCESS;
+
+ // Remove temporary compose file.
+ if (__pMediaCntl && __isMediaNeedToRemove)
+ {
+ String tempFilePath(__pMediaCntl->GetMediaPath());
+ if(File::IsFileExist(tempFilePath))
+ {
+ AppLogDebug("REMOVE FILE PATH: %S", tempFilePath.GetPointer());
+ File::Remove(tempFilePath);
+ }
+ }
+ AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
+ return r;
+}
+
void
MediaTextExpandEditArea::OnBoundsChanged(const Rectangle& oldRect, const Rectangle& newRect)
{
pComposePage->SetUpdateActionId(IDA_CHECK_COMPOSE_STATE);
pComposePage->SetActionEventListener(*this);
pComposePage->SetText(pageText);
- pImageTextPanel->AddControl(*pComposePage);
+ pImageTextPanel->AddControl(pComposePage);
__pScrollPanel->ScrollToBottom();
if (__pSizeChangeListener)
{
pDefaultPage->SetDeleteActionId(IDA_COMPOSE_DELETE_ATTACHEMENT);
pDefaultPage->SetUpdateActionId(IDA_CHECK_COMPOSE_STATE);
pDefaultPage->SetActionEventListener(*this);
- pImageTextSlidePanel->AddControl(*pDefaultPage);
+ pImageTextSlidePanel->AddControl(pDefaultPage);
if (redraw)
{
Draw(); // For immediate refresh, otherwise it will hide behind keypad
}\r
}\r
break;\r
+ default:\r
+ break;\r
}\r
// Release resource\r
if (pArgs)\r