Modify share via message
authorHyukSoon Choi <hs619.choi@samsung.com>
Mon, 18 Mar 2013 05:30:00 +0000 (14:30 +0900)
committerHyukSoon Choi <hs619.choi@samsung.com>
Mon, 18 Mar 2013 05:30:00 +0000 (14:30 +0900)
Change-Id: Iff22118ba6c32705430cf4e2d1aa0741ad77ee57
Signed-off-by: HyukSoon Choi <hs619.choi@samsung.com>
inc/IvTypes.h
src/IvImageViewerForm.cpp
src/IvTypes.cpp

index 1498018..3d8b353 100644 (file)
@@ -110,6 +110,7 @@ extern const wchar_t* APPCONTROL_DATA_EMAIL;
 extern const wchar_t* APPCONTROL_DATA_SINGLE;
 extern const wchar_t* APPCONTROL_DATA_CONTACT_ID;
 extern const wchar_t* APPCONTROL_DATA_URI_FILE;
+extern const wchar_t* APPCONTROL_DATA_MMS;
 
 extern const wchar_t* SETTING_VALUE_HOME_SCREEN_WALLPAPER;
 extern const wchar_t* SETTING_VALUE_LOCK_SCREEN_WALLPAPER;
index a27a529..9beb02c 100644 (file)
@@ -45,6 +45,9 @@ using namespace Tizen::Ui::Scenes;
 
 static const unsigned int COLOR_HEADER_CONTORL_PANEL = Color32<0, 0, 0, 100>::Value;
 static const unsigned int COLOR_HEADER_BUTTON1 = Color32<0, 0, 0, 100>::Value;
+static const unsigned int COLOR_DELETE_BUTTON_NORMAL = Color32<208, 82, 82>::Value;
+static const unsigned int COLOR_DELETE_BUTTON_PRESSED = Color32<194, 71, 71>::Value;
+static const unsigned int COLOR_DELETE_BUTTON_TEXT = Color32<248, 246, 239>::Value;
 
 static const Rectangle RECT_CONTORL_BUTTON_PLAY (280, 400, 160, 160);
 static const Rectangle RECT_LANDSCAP_CONTORL_BUTTON_PLAY (560, 216, 160, 160);
@@ -681,6 +684,9 @@ ImageViewerForm::InitializePopup(void)
                pDeleteButton->Construct(
                                Rectangle(0, Y_DELETE_BUTTON, popupClientBounds.width / 2 - GAP_W_POPUP_ITEM, H_DELETE_BUTTON),
                                ResourceManager::GetString(L"IDS_COM_BODY_DELETE"));
+               pDeleteButton->SetColor(BUTTON_STATUS_NORMAL, COLOR_DELETE_BUTTON_NORMAL);
+               pDeleteButton->SetColor(BUTTON_STATUS_PRESSED, COLOR_DELETE_BUTTON_PRESSED);
+               pDeleteButton->SetTextColor(COLOR_DELETE_BUTTON_TEXT);
                pDeleteButton->SetActionId(ACTION_ID_DELETE_POPUP_DEL);
                pDeleteButton->AddActionEventListener(*this);
 
@@ -1817,8 +1823,10 @@ ImageViewerForm::OnRequestMessagesAction(void)
        {
                HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
                pDataList->Construct();
+               pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_TYPE),
+                                               new (std::nothrow) String(filePath));
                pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_ATTACHMENTS),
-                               new (std::nothrow) String(filePath));
+                               new (std::nothrow) String(APPCONTROL_DATA_MMS));
 
                __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGES,
                                APPCONTROL_OPERATION_ID_COMPOSE, pDataList, this);
index 1928bc0..e8ad056 100644 (file)
@@ -64,6 +64,7 @@ const wchar_t* APPCONTROL_DATA_EMAIL = L"email";
 const wchar_t* APPCONTROL_DATA_SINGLE = L"single";
 const wchar_t* APPCONTROL_DATA_CONTACT_ID = L"contactId";
 const wchar_t* APPCONTROL_DATA_URI_FILE = L"file://";
+const wchar_t* APPCONTROL_DATA_MMS = L"MMS";
 
 const wchar_t* SETTING_VALUE_HOME_SCREEN_WALLPAPER = L"http://tizen.org/setting/screen.wallpaper";
 const wchar_t* SETTING_VALUE_LOCK_SCREEN_WALLPAPER = L"http://tizen.org/setting/screen.wallpaper.lock";