int normalGap = X_LISTVIEW;\r
int thumbnailWidth = W_LISTVIEW_ITEM_BITMAP;\r
int thumbnailHeight = H_LISTVIEW_ITEM_BITMAP;\r
+ int detailIconWidth = W_LISTVIEW_ITEM_BITMAP;\r
int width = __itemWidth;\r
-// int w_Rename = W_RENAME_ICON;\r
-// int h_Rename = W_RENAME_ICON;\r
- int w_Title = width - (W_LISTVIEW_ITEM_BITMAP + 4 * X_LISTVIEW);\r
-// int x_Rename = width - (W_RENAME_ICON + X_LISTVIEW);\r
+ int w_Title = 0;\r
+\r
GetItemSize(__itemHeight, titleHeight);\r
\r
if (__currentListStyle == ANNEX_STYLE_DETAILED)\r
{\r
+ w_Title = width - (W_LISTVIEW_ITEM_BITMAP + 4 * X_LISTVIEW) - detailIconWidth;\r
Construct(Dimension(__itemWidth, __itemHeight), LIST_ANNEX_STYLE_DETAILED);\r
}\r
else\r
{\r
+ w_Title = width - (W_LISTVIEW_ITEM_BITMAP + 3 * X_LISTVIEW);\r
Construct(Dimension(__itemWidth, __itemHeight), LIST_ANNEX_STYLE_NORMAL);\r
}\r
\r
SetElementTextVerticalAlignment(CONTENT_LIST_ITEM_TYPE_THUMBNAIL, ALIGNMENT_MIDDLE);\r
SetElementTextVerticalAlignment(CONTENT_LIST_ITEM_TYPE_FILEPATH, ALIGNMENT_BOTTOM);\r
-// SetElementTextVerticalAlignment(CONTENT_LIST_ITEM_TYPE_RENAME, ALIGNMENT_MIDDLE);\r
\r
__thumbnailRect.SetBounds(thumbnailX, thumbnailY, thumbnailWidth, thumbnailHeight); //right side width:20\r
__titleRect.SetBounds((2 * thumbnailX) + thumbnailWidth, Y_LISTVIEW, w_Title, H_LISTVIEW_ITEM_TITLE);\r
-// __editRenameRect.SetBounds(x_Rename, (__itemHeight - W_RENAME_ICON) / 2, w_Rename, h_Rename);\r
__editDateRect.SetBounds(thumbnailX + thumbnailWidth + normalGap, H_LISTVIEW_ITEM_TITLE + Y_LISTVIEW, w_Title, H_LISTVIEW_ITEM_DESCRIPTION);\r
\r
RefreshSearchFormListItem();\r
__pFtFilepath->SetTextWrap(TEXT_WRAP_NONE);\r
__pFtFilepath->AddText(__filepath, FONT_SUB, COLOR_DATE);\r
AddElement(__editDateRect, CONTENT_LIST_ITEM_TYPE_FILEPATH, *__pFtFilepath);\r
-\r
-// if (__pRenameBitmap != null)\r
-// {\r
-// AddElement(__editRenameRect, CONTENT_LIST_ITEM_TYPE_RENAME, *__pRenameBitmap, __pRenamePressed, __pRenameBitmap);\r
-// }\r
}\r
void\r
ContentListItem::SetFilepath(const Tizen::Base::String& filePath)\r
SubBaseFileManageForm::SetFooterVisibility(int mode)
{
AppLogDebug("ENTRY mode = %d",mode);
+ int folderCount = 0, fileCount = 0;
_pFooter = GetFooter();
- if (mode == 0)
+ if (mode == DISABLE_FOOTER_ITEM)
{
_pFooter->SetItemEnabled(0, false);
_pFooter->SetButtonEnabled(BUTTON_POSITION_LEFT, false);
SubBaseFolderEntryForm::SetFooterVisibility(int mode)
{
AppLogDebug("Entry");
+ int folderCount=0, fileCount=0;
+
_pFooter = GetFooter();
- if (mode == 0)
+ if( _pFolderEntryPM )
+ _pFolderEntryPM->GetFolderEntryCount(FolderNavigationPresentationModel::GetCurrentPath(), folderCount, fileCount);
+
+ if (mode == DISABLE_FOOTER_ITEM)
{
- _pFooter->SetItemEnabled(0, false);
- _pFooter->SetItemEnabled(1, false);
+ if (folderCount ==0 )
+ _pFooter->SetItemEnabled(0, false);
+ if (fileCount ==0 )
+ _pFooter->SetItemEnabled(1, false);
}
else
{
- _pFooter->SetItemEnabled(0, true);
- _pFooter->SetItemEnabled(1, true);
+ if(folderCount!=0)
+ _pFooter->SetItemEnabled(0, true);
+ if (fileCount!=0)
+ _pFooter->SetItemEnabled(1, true);
}
-
_pFooter->Invalidate(true);
}
{
ParentPath = FolderNavigationPresentationModel::GetParentPath();
+ if(_pFileEventManager != null)
+ {
+ _pFileEventManager->RemovePath(__currentDirectoryPath);
+ }
__currentDirectoryPath.Clear();
__currentDirectoryPath.Append(ParentPath);
case FILE_MANAGING_RESULT_DELETING_SUCCESS:
{
AppLogDebug("FILE DELETION SUCCESSFULL");
- if (_pFilenames != null)
- {
- /*pCacheList = CacheManager::GetInstance()->GetCacheHashMap();
-
- if (pCacheList != null)
- {
- pCurrentEntry = static_cast<DirectoryEntry*>(_pFilenames->GetAt(_indexTracker));
-
- if (pCurrentEntry != null)
- {
- cachePath = pCurrentEntry->GetFullFilePath();
- }
-
- cacheKeyStatus = pCacheList->ContainsKey(cachePath);
-
- if (cacheKeyStatus)
- {
- CacheManager::GetInstance()->RemoveCacheEntry(cachePath);
- }
- }*/
- /*_pFilenames->RemoveAt(_indexTracker, true);
- //r = __pListView->RefreshList(index, LIST_REFRESH_TYPE_ITEM_REMOVE);
- if (_pListView != null)
- {
- //_pListView->UpdateList();
- _pListView->RefreshList(_indexTracker, LIST_REFRESH_TYPE_ITEM_REMOVE);
- }
- if (_pIconListView != null && _pIconListView->IsVisible())
- {
- _pIconListView->RefreshList(_indexTracker, LIST_REFRESH_TYPE_ITEM_REMOVE);
- }*/
- }
HideFileProgressingPopup();
}
break;
}
break;
}
- CATCH:
+
+ SetFooterVisibility(DISABLE_FOOTER_ITEM);
+CATCH:
if (pArgs != null)
{
pArgs->RemoveAll(true);