TryReturnVoid(__pFileListEditorForm != null, "[%s] fail to get SceneManager.", GetErrorMessage(GetLastResult()));
__pPresentationModel->AddContentEventListener(__pFileListEditorForm);
- if (previousSceneId == IDSCN_ALL_LIST)
+ if (previousSceneId == IDSCN_ALL_LIST_SELECTION)
+ {
+ ResetSelection();
+ if (pArgs != null && pArgs->GetCount() > 0)
+ {
+ IList* pSeletedIndexList = pArgs;
+ int loopCount = pSeletedIndexList->GetCount();
+ for (int i = 0; i < loopCount; ++i)
+ {
+ int index = static_cast<Integer*>(pSeletedIndexList->GetAt(i))->ToInt();
+ __pContentIconListView->SetItemChecked(index, true);
+ }
+ __pContentIconListView->RequestRedraw(true);
+ }
+
+ int checkedCount = GetItemCheckedCount();
+ String strTmp;
+
+ if (checkedCount == 0)
+ {
+ strTmp = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED");
+ }
+ else if (checkedCount == 1)
+ {
+ strTmp = ResourceManager::GetString(L"IDS_VR_POP_1_ITEM_SELECTED");
+ }
+ else
+ {
+ strTmp.Format(LENGTH_COUNT_LABEL,
+ ResourceManager::GetString(L"IDS_VR_POP_PD_ITEMS_SELECTED").GetPointer(), checkedCount);
+ }
+
+ __pLabelSelectCnt->SetText(strTmp);
+ __pLabelSelectCnt->RequestRedraw(true);
+ SetButtonState();
+ }
+ else if (previousSceneId == IDSCN_ALL_LIST)
{
ResetSelection();
}