int ShowMessagePopUp(const Tizen::Base::String& title, const Tizen::Base::String& text, const Tizen::Ui::Controls::MessageBoxStyle style, const unsigned long timeout);
void ConstructDeletePopup(Tizen::Ui::Controls::Popup* pPopup, Tizen::Ui::IActionEventListener* pActionEventListener);
Tizen::Base::String GetSettingsFontType(void);
-void RefreshEditListScene(void);
+void RefreshCurrentScene(void);
#endif /* _MM_COMMON_UTILS_H_ */
#include <FLocales.h>
#include "MmCommonUtils.h"
#include "MmTypes.h"
+#include "MmMemoApp.h"
using namespace Tizen::App;
using namespace Tizen::Base;
delete pBitmapDim;
}
-void RefreshEditListScene(void)
+void RefreshCurrentScene(void)
{
- SceneManager* pSceneManager = SceneManager::GetInstance();
- if(pSceneManager != null)
- {
- Footer* pFooter = pSceneManager->GetCurrentScene()->GetForm()->GetFooter();
- if(pFooter != null)
- {
- pFooter->SetItemEnabled(0, true);
- pFooter->SetItemEnabled(1, true);
- pFooter->SetItemEnabled(2, true);
- pFooter->Draw();
- }
- Header* pHeader = pSceneManager->GetCurrentScene()->GetForm()->GetHeader();
- if(pHeader != null)
- {
- pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, false);
- pHeader->Draw();
- }
-
- }
- /*SceneManager* pSceneManager = SceneManager::GetInstance();
- IList* pArgs = new (std::nothrow) ArrayList();
- pArgs->Add(new (std::nothrow) Integer(ID_REFRESH_LIST_FROM_DATABASEVIEW));
-
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_MEMO_LIST), pArgs);*/
+ MemoApp::CreateInstance()->GetAppFrame()->GetFrame()->SetEnabled(true);
}
String GetSettingsFontType(void)
}
__pDrawingFileName->Append(File::GetFileName(__pMemoData->GetMemoDrawingPath()));
__pShareMemoList->Add(__pDrawingFileName);
-
+ static_cast<MemoApp*>(MemoApp::CreateInstance())->SetAppControlLaunchedStatus(true);
LaunchAppToShare(index, __pShareMemoList);
}
return;
else
{
UpdateMemoInfo();
+ (MemoThumbnailProvider::GetInstance())->RemoveObjectBitmap(__pEditMemo->GetMemoIndex());
}
isUpdate = true;
}
}
__pDeletePopup->SetShowState(true);
__pDeletePopup->Show();
- __pFormHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, false);
- __pFormHeader->Show();
- __pFormFooter->SetItemEnabled(2, false);
- SetFooterEnabled(false);
}
break;
}
__pPopup->SetShowState(true);
__pPopup->Show();
- __pFormHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, false);
- __pFormHeader->Show();
- __pFormFooter->SetItemEnabled(2, false);
- SetFooterEnabled(false);
}
break;
{
__pPopup->SetShowState(false);
__pPopup->Invalidate(true);
- __pFormHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, true);
- __pFormHeader->Show();
- __pFormFooter->SetItemEnabled(2, true);
- SetFooterEnabled(true);
}
break;
MemoApp::SetAppControlLaunchedStatus(const bool launched)
{
__isAppControlLaunched = launched;
+ MemoApp::CreateInstance()->GetAppFrame()->GetFrame()->SetEnabled(false);
}
void
if(__isAppControlLaunched == true)
{
__isAppControlLaunched = false;
- RefreshEditListScene();
+ RefreshCurrentScene();
}
}
#include "MmInfo.h"
#include "MmItemProviders.h"
#include "MmListPresentationModel.h"
+#include "MmMemoApp.h"
#include "MmTextDetailForm.h"
#include "MmTypes.h"
#include "MmVMemoCreator.h"
*__pVntFilename = __pVMemoCreator->CreateVMemo(*__pMemoData);
__pShareMemoList->Add(__pVntFilename);
-
+ static_cast<MemoApp*>(MemoApp::CreateInstance())->SetAppControlLaunchedStatus(true);
LaunchAppToShare(index, __pShareMemoList);
}
return;
void
MemoThumbnailProvider::RemoveObjectBitmap(int index)
{
- if (__pThumbnailList->GetCount() == 0)
+ if (__pThumbnailList == null ||__pThumbnailList->GetCount() == 0)
{
return ;
}
return THUMBNAIL_MANAGER_RESULT_VALUES_FAILED;
}
- /*if (pRequest != null)
- {
- pRequest->SetBitmap(pBitmap);
- }*/
-
if (__pThumbnailList == null)
{
__pThumbnailList = new (std::nothrow) HashMap();