{
__pDeletePopup = new (std::nothrow) Popup();
__pDeletePopup->Construct(false, Dimension(W_DELETE_POPUP, H_DELETE_POPUP));
+ __pDeletePopup->SetPropagatedKeyEventListener(this);
Rectangle popupClientBounds = __pDeletePopup->GetClientAreaBounds();
__pEditorFolderIconList->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
- AddControl(*__pEditorFolderIconList);
+ AddControl(__pEditorFolderIconList);
__pEditorFolderIconList->SetShowState(true);
Bitmap* pBitmapRenameBg = null;
Bitmap* pBitmapRename = null;
String albumName ;
- int canvasWidth = 64;
- int canvasHeight = 64;
+ int canvasWidth = 75;
+ int canvasHeight = 75;
IconListViewItem* pIconListviewItem = new (std::nothrow) IconListViewItem();
pEditAlbumCanvas = new (std::nothrow) Canvas();
pEditAlbumCanvas->Construct(Rectangle(0, 0, canvasWidth, canvasHeight));
- pEditAlbumCanvas->DrawBitmap(Point(0, 0), *pBitmapRenameBg);
- pEditAlbumCanvas->DrawBitmap(Point(0, 0), *pBitmapRename);
+ pEditAlbumCanvas->DrawBitmap(Point(0, 6), *pBitmapRenameBg);
+ pEditAlbumCanvas->DrawBitmap(Point(0, 6), *pBitmapRename);
pEditAlbumBitmap = new (std::nothrow) Bitmap();
if (pEditAlbumBitmap != NULL)
{
pEditAlbumBitmap->Construct(*pEditAlbumCanvas, Rectangle(0, 0, canvasWidth, canvasHeight));
- delete pEditAlbumCanvas;
+
}
+ delete pEditAlbumCanvas;
albumName = pAlbumInfo->GetAlbumName();
String reservedCameraName = ResourceManager::GetString(L"IDS_MEDIABR_BODY_CAMERA_ROLL_ABB");
}
}
+ if (pBitmapRenameBg)
+ {
+ delete pBitmapRenameBg;
+ }
+ if (pBitmapRename)
+ {
+ delete pBitmapRename;
+ }
+
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return pIconListviewItem;
__pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_MESSAGE"),
IDA_CONTEXT_MENU_MESSAGE);
__pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"), IDA_CONTEXT_MENU_EMAIL);
+ __pShareContextMenu->SetFocusable(true);
__pShareContextMenu->AddActionEventListener(*this);
-
__pShareContextMenu->SetShowState(true);
__pShareContextMenu->Show();
}
SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_LIST));
+ AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
+}
+
+bool AlbumListEditorForm::OnKeyReleased(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo)
+{
+ AppLogDebug("ENTER");
+
+ if(keyEventInfo.GetKeyCode() == KEY_BACK)
+ {
+ __pDeletePopup->SetShowState(false);
+ __pDeletePopup->Show();
+ }
+ AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
+ return false;
}
result
__pEditorFolderIconList->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
__pEditorFolderIconList->AddIconListViewItemEventListener(*this);
- AddControl(*__pEditorFolderIconList);
+ AddControl(__pEditorFolderIconList);
int loopCount = pIndexList->GetCount();
int index = -1 ;