AppLogDebug("ENTER");
result r = E_SUCCESS;
__pPresentationModel->RemovePresentationModelListener(*this);
- __pPresentationModel->RemoveContentEventListener(__pFileListEditorForm);
if (__pSeletedIndexList != null)
{
delete __pSeletedIndexList;
const SceneId& currentSceneId, IList* pArgs)
{
AppLogDebug("ENTER");
+
+ ChangeOrientation();
+
__pPresentationModel = FileListPresentationModel::GetInstance();
SceneManager* pSceneManager = SceneManager::GetInstance();
if (GetItemCount() > 0)
{
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALL_LIST));
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALL_LIST, SCENE_TRANSITION_ANIMATION_TYPE_NONE,
+ SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY));
}
else
{
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
+void
+AllListSelectionPanel::ChangeOrientation()
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ const Form* pForm = dynamic_cast<Form*>(pSceneManager->GetCurrentScene()->GetForm());
+ TryReturn(pForm != null,, "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
+
+ Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
+ SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+ __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+}
+
result
AllListSelectionPanel::OnRequestMessage(void)
{
String bodyText = ResourceManager::GetString(L"IDS_COM_BODY_SELECTED");
strTmp.Format(LENGTH_COUNT_LABEL, L"%ls (%d)", bodyText.GetPointer(), __itemCount);
__pFileListEditorForm->SetTitleText(strTmp);
- if (__pContentIconListView != null)
- {
- __pContentIconListView->UpdateList();
- }
+
SetButtonState();
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
return E_SUCCESS;
}
+void AllListSelectionPanel::CancelUpdateProgress(void)
+{
+ if (__pFileUpdateTimer!= null && __pFileUpdateTimer->IsStarted())
+ {
+ __pFileUpdateTimer->Cancel();
+ delete __pFileUpdateTimer;
+ __pFileUpdateTimer = null;
+ }
+}