extern const wchar_t* IDB_ALBUM_RENAME_PROGRESS29;
extern const wchar_t* IDB_ALBUM_RENAME_PROGRESS30;
+extern const wchar_t* IDB_IMAGE_CONTEXT_EMAIL_ICON;
+extern const wchar_t* IDB_IMAGE_CONTEXT_MESSAGE_ICON;
+
static const unsigned int CUSTOM_COLOR_GREY = Tizen::Graphics::Color32<124,124,124>::Value;
static const unsigned int CUSTOM_COLOR_TRANSPARENT = Tizen::Graphics::Color32<0,0,0>::Value;
static const unsigned int CUSTOM_BACKGROUND_COLOR_LISTVIEW = Tizen::Graphics::Color32<236,240,242>::Value;
__pShareContextMenu = null;
}
+
+ Bitmap* pBitmapEmailContextItem = null;
+ Bitmap* pBitmapMessageContextItem = null;
+ pBitmapEmailContextItem = ResourceManager::GetBitmapN(IDB_IMAGE_CONTEXT_EMAIL_ICON);
+ pBitmapMessageContextItem = ResourceManager::GetBitmapN(IDB_IMAGE_CONTEXT_MESSAGE_ICON);
+
__pShareContextMenu = new (std::nothrow) ContextMenu();
__pShareContextMenu->Construct(Point(GetClientAreaBounds().width/3 + 15, GetClientAreaBounds().height + __pSelectCountLabel->GetHeight() + 5),
CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
+
+ if ( pBitmapMessageContextItem != null)
+ {
__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);
+ IDA_CONTEXT_MENU_MESSAGE , *pBitmapMessageContextItem, null, null);
+
+ delete pBitmapMessageContextItem;
+ }
+
+ if ( pBitmapEmailContextItem != null)
+ {
+ __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"), IDA_CONTEXT_MENU_EMAIL,
+ *pBitmapEmailContextItem, null, null);
+
+ delete pBitmapEmailContextItem;
+ }
+
__pShareContextMenu->SetFocusable(true);
__pShareContextMenu->AddActionEventListener(*this);
__pShareContextMenu->SetShowState(true);
__pShareContextMenu = null;
}
+ Bitmap* pBitmapEmailContextItem = null;
+ Bitmap* pBitmapMessageContextItem = null;
+ pBitmapEmailContextItem = ResourceManager::GetBitmapN(IDB_IMAGE_CONTEXT_EMAIL_ICON);
+ pBitmapMessageContextItem = ResourceManager::GetBitmapN(IDB_IMAGE_CONTEXT_MESSAGE_ICON);
+
__pShareContextMenu = new (std::nothrow) ContextMenu();
__pShareContextMenu->Construct(Point(GetClientAreaBounds().width/3 + 15, GetClientAreaBounds().height),
CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
- __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_MESSAGE"),
- IDA_CONTEXT_MENU_SHARE_MESSAGE);
- __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"),
- IDA_CONTEXT_MENU_SHARE_EMAIL);
+
+ if ( pBitmapMessageContextItem != null)
+ {
+ __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_MESSAGE"),
+ IDA_CONTEXT_MENU_SHARE_MESSAGE, *pBitmapMessageContextItem, null, null);
+ delete pBitmapMessageContextItem;
+ }
+
+ if ( pBitmapEmailContextItem != null)
+ {
+ __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"),
+ IDA_CONTEXT_MENU_SHARE_EMAIL, *pBitmapEmailContextItem, null, null);
+ delete pBitmapEmailContextItem;
+ }
__pShareContextMenu->SetFocusable(true);
__pShareContextMenu->AddActionEventListener(*this);
- Rectangle rect = source.GetBounds();
- if (pSceneManager->GetCurrentSceneId() == IDSCN_ALL_LIST_SELECTION)
- {
- __pShareContextMenu->SetAnchorPosition(Point(rect.width / 8 * 3, rect.y));
- }
- else
- {
- __pShareContextMenu->SetAnchorPosition(Point(rect.width / 8 * 3, rect.y - H_TOAST_LABEL));
- }
- __pShareContextMenu->SetShowState(true);
- __pShareContextMenu->Show();
+ Rectangle rect = source.GetBounds();
+
+ if (pSceneManager->GetCurrentSceneId() == IDSCN_ALL_LIST_SELECTION)
+ {
+ __pShareContextMenu->SetAnchorPosition(Point(rect.width / 8 * 3, rect.y));
+ }
+ else
+ {
+ __pShareContextMenu->SetAnchorPosition(Point(rect.width / 8 * 3, rect.y - H_TOAST_LABEL));
+ }
+
+ __pShareContextMenu->SetShowState(true);
+ __pShareContextMenu->Show();
}
break;