Tizen::Ui::Controls::Button* __pFileProgressingCancelButton;\r
\r
\r
- Tizen::Ui::Controls::Label* __pDividerLabel;\r
+ Tizen::Ui::Controls::Label* __pFolderLabel;\r
Tizen::Ui::Controls::Label* __pFileProgressingHeaderLabel;\r
Tizen::Ui::Controls::Label* __pFileProgressingLabel;\r
- Tizen::Ui::Controls::Label* __pPopUpSearching;\r
+ Tizen::Ui::Controls::Label* __pLabelSearching;\r
\r
Tizen::Ui::Controls::ListContextItem* __pItemContext;\r
Tizen::Ui::Controls::ListView* __pListView;\r
}
}
- if (__sourceInfo == CREATE_ITEM_SOURCE_SHARE_FORM)
+ if (__pFolderEntryPM->GetSourceForm() == CREATE_ITEM_SOURCE_SHARE_FORM)
{
__pFolderEntryPM->GetFolderEntryCount(FolderNavigationPresentationModel::GetCurrentPath(), dirCount, fileCount);
itemCount = fileCount;
if (mode == 0)\r
{\r
_pFooter->SetItemEnabled(0, false);\r
+ _pFooter->SetItemEnabled(1, false);\r
_pFooter->SetButtonEnabled(BUTTON_POSITION_LEFT, false);\r
}\r
else\r
{\r
_pFooter->SetItemEnabled(0, true);\r
+ _pFooter->SetItemEnabled(1, true);\r
_pFooter->SetButtonEnabled(BUTTON_POSITION_LEFT, true);\r
}\r
_pFooter->Invalidate(true);\r
}
else
{
- AppLogDebug("pac not null");
- AppLogDebug("uri is %S",uriType->GetPointer());
- AppLogDebug("mimeType is %S",mimeType.GetPointer());
r = pAc->Start(uriType,pMimeInfo,null,__pAppControlEventListener);
AppLogDebug("start result is %s",GetErrorMessage(r));
}
pAppResource->GetString(L"IDS_MF_SK3_EDIT", headerText);
}
_pBaseItemProvider->SetSourceForm(CREATE_ITEM_SOURCE_FILE_MANAGE_FORM);
- _pFolderEntryPM->SetSourceForm(CREATE_ITEM_SOURCE_FILE_MANAGE_FORM);
+ if (previousSceneId != IDSCN_CATEGORY_SEARCH_FORM)
+ {
+ _pFolderEntryPM->SetSourceForm(CREATE_ITEM_SOURCE_FILE_MANAGE_FORM);
+ }
_pThumbnailItemProvider->SetCreateItemSource(thumbnailItemSource);
}
else
pAppResource->GetString(L"IDS_COM_BUTTON_SHARE", headerText);
}
_pBaseItemProvider->SetSourceForm(CREATE_ITEM_SOURCE_SHARE_FORM);
- _pFolderEntryPM->SetSourceForm(CREATE_ITEM_SOURCE_SHARE_FORM);
+ if (previousSceneId != IDSCN_CATEGORY_SEARCH_FORM)
+ {
+ _pFolderEntryPM->SetSourceForm(CREATE_ITEM_SOURCE_SHARE_FORM);
+ }
_pThumbnailItemProvider->SetCreateItemSource(thumbnailItemSource);
}
DirectoryEntry* pDirEntry = null;
String* cachePath = null;
String cacheImagePath;
- AppLogDebug("Enter");
- Bitmap* pFetchedCacheImage = null;
ContentType contentType = CONTENT_TYPE_UNKNOWN;
HashMap* pCacheList = null;
__ThumbnailRequestInProgress = false;
-
- AppLogDebug("Current ReqId : %d %d", __requestId, index);
if ( __forceStop )
{
StopThumbnailManager();
TryCatch(__pFolderEntries != null && __pFolderEntries->GetCount() != 0, , "Invalid Arguments");
TryCatch(__requestId != INVALID_INDEX, , "Item index reached to maximum value!");
+
pDirEntry = static_cast< DirectoryEntry* >(__pFolderEntries->GetAt(index));
TryCatch(pDirEntry != null, , "Invalid directory entry pointer!");
pDirEntry->SetLoadBitmap(false);
pDirEntry->SetBitmap(pThumb);
}
- else
- {
- //This is just a temporary fix, actualy fix should be in Source form.
- AppLogDebug("Request Id mismatch");
- /*pDirEntry = static_cast< DirectoryEntry* >(__pFolderEntries->GetAt(__requestId));
- TryCatch(pDirEntry != null, , "Invalid directory entry pointer!");
- if ( pDirEntry )
- {
- pDirEntry->SetDummy(false);
- pDirEntry->SetLoadBitmap(false);
- pDirEntry->SetBitmap(pThumb);
- }*/
- }
pCacheList = CacheManager::GetInstance()->GetCacheHashMap();
TryCatch(pCacheList != null, , "Cache Hashmap is null");
if (contentType == CONTENT_TYPE_IMAGE || contentType == CONTENT_TYPE_VIDEO)
{
- if ((pCacheList->GetValue(cacheImagePath)) != null)
- {
- pFetchedCacheImage = static_cast< Bitmap* >(pCacheList->GetValue(cacheImagePath));
- }
-
- if (pFetchedCacheImage == null)
+ if ((pCacheList->GetValue(cacheImagePath)) == null)
{
+ cachePath = new (std::nothrow) String(pDirEntry->GetFullFilePath());
if (cachePath != null && pThumb != null)
- {
- cachePath = new (std::nothrow) String(pDirEntry->GetFullFilePath());
__pCacheManager->AddCacheEntry(*cachePath,pThumb);
- }
}
}
}
- else
- {
- AppLogDebug("Invalid Index of No Thumbnail");
- }
FolderEntryCount = __pFolderEntries->GetCount();
__pListView = null;
__pSearchBar = null;
__pSearchPopup = null;
- __pPopUpSearching = null;
+ __pLabelSearching = null;
__pCancelSearch = null;
- __pDividerLabel = null;
+ __pFolderLabel = null;
__pThumbnailManager = null;
__pSearchModel = null;
r = __pSearchPopup->Construct(L"IDL_SEARCH_POPUP");
TryCatch(r == E_SUCCESS, , "failed to construct __pPopUpPanel");
- __pPopUpSearching = static_cast<Label*> (__pSearchPopup->GetControl(L"IDC_LABEL_SEARCHING"));
- TryCatch(__pPopUpSearching != null, , "Failed to get __pPopUpSearching");
+ __pLabelSearching = static_cast<Label*> (__pSearchPopup->GetControl(L"IDC_LABEL_SEARCHING"));
+ TryCatch(__pLabelSearching != null, , "Failed to get __pLabelSearching");
- __pDividerLabel = static_cast<Label*> (__pSearchPopup->GetControl(L"IDC_LABEL_FOLDER"));
- TryCatch(__pDividerLabel != null, r = GetLastResult(), "Failed to get __pPopUpSearching");
+ __pFolderLabel = static_cast<Label*> (__pSearchPopup->GetControl(L"IDC_LABEL_FOLDER"));
+ TryCatch(__pFolderLabel != null, r = GetLastResult(), "Failed to get __pFolderLabel");
__pCancelSearch = static_cast<Button*> (__pSearchPopup->GetControl(L"IDC_BUTTON_CANCEL"));
TryCatch(__pCancelSearch != null, , "Failed to get __pCancelSearch");
if (__currentSearchDirectoryPath.GetLength() > 0 && __currentSearchDirectoryPath != topLevelPath)
{
AppLogDebug("SearchForm::OnSceneActivatedN:%S:%S", __currentSearchDirectoryPath.GetPointer(), topLevelPath.GetPointer());
- __pDividerLabel->SetText(__currentSearchDirectoryPath);
+ __pFolderLabel->SetText(__currentSearchDirectoryPath);
}
pArgs->RemoveAll(false);
}
__pListView->UpdateList();
- __pDividerLabel->SetText(L"");
+ __pFolderLabel->SetText(L"");
__pSearchPopup->SetShowState(true);
__pSearchPopup->Show();
__pSearchBar->SetEnabled(false);
pFolderSearchResult->Replace(defSdCardPath, displaySdCard);
}
- __pDividerLabel->SetText(*pFolderSearchResult);
- __pDividerLabel->Invalidate(true);
+ __pFolderLabel->SetText(*pFolderSearchResult);
+ __pFolderLabel->Invalidate(true);
}
}
break;
__pSearchBar->SetEnabled(false);
//Show Popup
- __pDividerLabel->SetText(folderToSearch);
+ __pFolderLabel->SetText(folderToSearch);
__pSearchPopup->SetShowState(true);
__pSearchPopup->Show();
__pFolderSearchStartedMessage->Add(new (std::nothrow) String(*pCurrentDirectoryPath));
}
Application::GetInstance()->SendUserEvent(ID_FOLDER_SEARCH_STARTED, __pFolderSearchStartedMessage);
-
+ Thread::Sleep(100);
__pFolderEntryPM->SetFolderEntryPath(*pCurrentDirectoryPath);
pDirectoryEntryList = __pFolderEntryPM->GetFolderEntryList();
_pStrItemSelectedCount->Clear();
_pStrItemSelectedCount->Append(selected);
+ _pStrItemSelectedCount->Append(L"\x200E");
_pStrItemSelectedCount->Append(L" (");
_pStrItemSelectedCount->Append(selectedItemsCount);
_pStrItemSelectedCount->Append(L")");
+ _pStrItemSelectedCount->Append(L"\x200E");
if (_pLabelNumberOfItems != null)
{
{
_pLabelNumberOfItems->SetShowState(true);
_pStrItemSelectedCount->Clear();
- _pStrItemSelectedCount->Append(L"\x200E");
_pStrItemSelectedCount->Append(selected);
_pStrItemSelectedCount->Append(L"\x200E");
_pStrItemSelectedCount->Append(L" (");
_pStrItemSelectedCount->Append(selectedItemsCount);
_pStrItemSelectedCount->Append(L")");
+ _pStrItemSelectedCount->Append(L"\x200E");
_pLabelNumberOfItems->SetText(*_pStrItemSelectedCount);
_pStrItemSelectedCount->Clear();
_pStrItemSelectedCount->Append(selected);
+ _pStrItemSelectedCount->Append(L"\x200E");
_pStrItemSelectedCount->Append(L" (");
_pStrItemSelectedCount->Append(selectedItemsCount);
_pStrItemSelectedCount->Append(L")");
+ _pStrItemSelectedCount->Append(L"\x200E");
AppLogDebug("Text on Label = %ls", _pStrItemSelectedCount->GetPointer());
if (selectedItemsCount > 0)\r
{\r
_itemSelectedCount.Clear();\r
- _itemSelectedCount.Append(L"\x200E");\r
_itemSelectedCount.Append(selectedCount);\r
_itemSelectedCount.Append(L"\x200E");\r
_itemSelectedCount.Append(L"(");\r
_itemSelectedCount.Append(selectedItemsCount);\r
_itemSelectedCount.Append(L")");\r
+ _itemSelectedCount.Append(L"\x200E");\r
_pLabelNumberOfItems->SetText(_itemSelectedCount);\r
}\r
else\r
}
}
- if (__sourceForm == THUMBNAIL_PROVIDER_SOURCEID_SHARE_FORM)
+ if (__pFolderEntryPM->GetSourceForm() == CREATE_ITEM_SOURCE_SHARE_FORM)
{
__pFolderEntryPM->GetFolderEntryCount(FolderNavigationPresentationModel::GetCurrentPath(), dirCount, fileCount);
__listItemCount = fileCount;