Fixed wallpaper issues & Replaced the keyboard menu with EFL UG
authorHongryeol Gil <hr.gil@samsung.com>
Thu, 11 Apr 2013 05:51:40 +0000 (14:51 +0900)
committerHongryeol Gil <hr.gil@samsung.com>
Thu, 11 Apr 2013 05:51:40 +0000 (14:51 +0900)
Change-Id: I1b2f8d8a9f66e011cb90fc3e10e9918d5e04565c
Signed-off-by: Hongryeol Gil <hr.gil@samsung.com>
src/StLanguageAndRegionForm.cpp
src/StWallpaperImageSelectForm.cpp

index f780720..8126c63 100644 (file)
@@ -25,6 +25,7 @@
 #include "StSettingScenesList.h"
 #include "StTypes.h"
 
+using namespace Tizen::App;
 using namespace Tizen::Base;
 using namespace Tizen::Base::Collection;
 using namespace Tizen::Base::Utility;
@@ -966,7 +967,11 @@ LocaleForm::OnGroupedTableViewItemStateChanged(Tizen::Ui::Controls::GroupedTable
 
        case ID_GROUP_KEYBOARD:
                {
+                       #if 0
                        pSceneManager->GoForward(ForwardSceneTransition(IDSCN_KEYBOARD, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), null);
+                       #else
+                       AppControl::FindAndStart(L"http://tizen.org/appcontrol/operation/setting/ime", null, null, null, null, null);
+                       #endif
                }
                break;
 
index 1bbfd12..df53577 100644 (file)
  */
 
 #include <FContent.h>
+#include <FIo.h>
 #include "StSettingScenesList.h"
 #include "StWallpaperAlbumListPresentationModel.h"
 #include "StWallpaperImageSelectForm.h"
 
+using namespace Tizen::App;
 using namespace Tizen::Base;
 using namespace Tizen::Base::Collection;
 using namespace Tizen::Content;
 using namespace Tizen::Graphics;
+using namespace Tizen::Io;
 using namespace Tizen::System;
 using namespace Tizen::Ui;
 using namespace Tizen::Ui::Controls;
@@ -120,6 +123,25 @@ WallpaperImageSelectForm::OnActionPerformed(const Tizen::Ui::Control& source, in
                        pContentManager.Construct();
                        ImageContentInfo* pImageContentInfo = static_cast<ImageContentInfo*>(pContentManager.GetContentInfoN(*__pContentId));
 
+                       if(pImageContentInfo == null)
+                       {
+                               MessageBox messageBox;
+                               int result = E_SUCCESS;
+
+                               messageBox.Construct(ResourceManager::GetString(L"IDS_EMAIL_POP_ALERT"), ResourceManager::GetString(L"IDS_COM_POP_FAILED"), MSGBOX_STYLE_NONE, MESSAGEBOX_DISPLAY_TIME_2_SEC);
+                               messageBox.ShowAndWait(result);
+
+                               SceneManager* pSceneManager = SceneManager::GetInstance();
+                               AppAssert(pSceneManager);
+
+                               pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), null);
+                               return;
+                       }
+
+                       String dstPath = Application::GetInstance()->GetAppDataPath();
+                       String srcPath = pImageContentInfo->GetContentPath();
+                       String srcFileExtention = File::GetFileExtension(srcPath);
+
                        ArrayList* aList = new (std::nothrow) ArrayList(SingleObjectDeleter);
                        aList->Construct();
                        aList->Add(*(new (std::nothrow) String(Integer::ToString(actionId))));
@@ -127,7 +149,11 @@ WallpaperImageSelectForm::OnActionPerformed(const Tizen::Ui::Control& source, in
                        {
                        case 0:
                                {
-                                       if (SettingInfo::SetValue(RUNTIME_INFO_KEY_WALLPAPER_SCREEN, pImageContentInfo->GetContentPath()) != E_SUCCESS)
+                                       dstPath.Append(L"/home.");
+                                       dstPath.Append(srcFileExtention);
+                                       File::Copy(srcPath, dstPath, false);
+
+                                       if (SettingInfo::SetValue(RUNTIME_INFO_KEY_WALLPAPER_SCREEN, dstPath) != E_SUCCESS)
                                        {
                                                AppLogDebug("Wallpapaer Screen SetValue is Fail [%s]", GetErrorMessage(GetLastResult()));
                                        }
@@ -136,7 +162,11 @@ WallpaperImageSelectForm::OnActionPerformed(const Tizen::Ui::Control& source, in
 
                        case 1:
                                {
-                                       if (SettingInfo::SetValue(RUNTIME_INFO_KEY_WALLPAPER_SCREEN_LOCK, pImageContentInfo->GetContentPath()) != E_SUCCESS)
+                                       dstPath.Append(L"/lock.");
+                                       dstPath.Append(srcFileExtention);
+                                       File::Copy(srcPath, dstPath, false);
+
+                                       if (SettingInfo::SetValue(RUNTIME_INFO_KEY_WALLPAPER_SCREEN_LOCK, dstPath) != E_SUCCESS)
                                        {
                                                AppLogDebug("Wallpapaer Lock Screen SetValue is Fail [%s]", GetErrorMessage(GetLastResult()));
                                        }
@@ -145,12 +175,16 @@ WallpaperImageSelectForm::OnActionPerformed(const Tizen::Ui::Control& source, in
 
                        case 2:
                                {
-                                       if (SettingInfo::SetValue(RUNTIME_INFO_KEY_WALLPAPER_SCREEN, pImageContentInfo->GetContentPath()) != E_SUCCESS)
+                                       dstPath.Append(L"/homelock.");
+                                       dstPath.Append(srcFileExtention);
+                                       File::Copy(srcPath, dstPath, false);
+
+                                       if (SettingInfo::SetValue(RUNTIME_INFO_KEY_WALLPAPER_SCREEN, dstPath) != E_SUCCESS)
                                        {
                                                AppLogDebug("Wallpapaer Screen SetValue is Fail [%s]", GetErrorMessage(GetLastResult()));
                                                return;
                                        }
-                                       if (SettingInfo::SetValue(RUNTIME_INFO_KEY_WALLPAPER_SCREEN_LOCK, pImageContentInfo->GetContentPath()) != E_SUCCESS)
+                                       if (SettingInfo::SetValue(RUNTIME_INFO_KEY_WALLPAPER_SCREEN_LOCK, dstPath) != E_SUCCESS)
                                        {
                                                AppLogDebug("Wallpapaer Lock Screen SetValue is Fail [%s]", GetErrorMessage(GetLastResult()));
                                                return;