int w_AudioPlay = W_RENAME_ICON;\r
int h_AudioPlay = W_RENAME_ICON;\r
\r
- int w_Title = width - (W_LISTVIEW_ITEM_BITMAP + (4 * X_LISTVIEW) + (2 * w_AudioPlay));\r
- int x_Play = width - (w_AudioPlay + w_AudioPlay + (2 * X_LISTVIEW));\r
+ int w_Title = width - (W_LISTVIEW_ITEM_BITMAP + (4 * thumbnailX) + (2 * w_AudioPlay));\r
+ int x_Play = width - (w_AudioPlay + w_AudioPlay + (2 * thumbnailX));\r
AppControlView currentViewStyle;\r
\r
__thumbnailRect.SetBounds(thumbnailX, thumbnailY, thumbnailWidth, thumbnailHeight); //right side width:20\r
\r
if (currentViewStyle == APPCONTROL_VIEW_IMPORT)\r
{\r
- w_Title = width - (W_LISTVIEW_ITEM_BITMAP + 3 * X_LISTVIEW) - w_AudioPlay;\r
+ w_Title = width - (W_LISTVIEW_ITEM_BITMAP + 3 * thumbnailX) - w_AudioPlay;\r
}\r
else if (currentViewStyle == APPCONTROL_VIEW_EXPORT)\r
{\r
- w_Title = width - (W_LISTVIEW_ITEM_BITMAP + 3 * X_LISTVIEW);\r
+ w_Title = width - (W_LISTVIEW_ITEM_BITMAP + 3 * thumbnailX);\r
}\r
\r
- __titleRect.SetBounds(thumbnailX + thumbnailWidth + normalGap, (itemHeight - (textHeight + 10)) / 2, w_Title + w_AudioPlay, textHeight);\r
+ __titleRect.SetBounds(thumbnailX + thumbnailWidth + thumbnailX, (itemHeight - (textHeight + 10)) / 2, w_Title + w_AudioPlay, textHeight);\r
\r
if (__pPlayBitmap != null)\r
{\r
__editPlayRect.SetBounds(x_Play, (itemHeight - w_AudioPlay) / 2, w_AudioPlay, h_AudioPlay);\r
- __titleRect.SetBounds(thumbnailX + thumbnailWidth + normalGap, (itemHeight - (textHeight + 10)) / 2, w_Title, textHeight);\r
+ __titleRect.SetBounds(thumbnailX + thumbnailWidth + thumbnailX, (itemHeight - (textHeight + 10)) / 2, w_Title, textHeight);\r
\r
}\r
else if (__pPauseBitmap != null)\r
if (__bCheckNullArgs)
{
if (_pFolderEntryPM != null)
+ {
_pFolderEntryPM->RefreshFolderEntries();
+ if (_pFolderEntryPM->GetSourceForm() == CREATE_ITEM_SOURCE_CATEGORY_SEARCH_FORM)
+ {
+ _pFolderEntryPM->SortFolderEntries();
+ }
+ }
if (_pEditListView != null && _pEditListView->IsVisible())
{
TryCatch(r == E_SUCCESS, ,"Construction of pDeviceList failed");
GetDeviceList(pDeviceList);
-#if 0
deviceListCount = pDeviceList->GetCount();
__deviceListCount = deviceListCount;
currentDirectoryPath = new (std::nothrow) String(*static_cast<String*>(pDeviceList->GetAt(0)));
-#else
- currentDirectoryPath = new (std::nothrow) String(L"/opt/usr/media");
-#endif
TryCatch(__pFolderEntryStack != null, , "Stack is null");
r = __pFolderEntryStack->Push(currentDirectoryPath);
TryCatch(r == E_SUCCESS, ,"push failed");
pCurrentFolderEntry->SetCheckDirectory(false);
pCurrentFolderEntry->SetCreationTime(currentDirEntry.GetDateTime());
- if(currentDirEntry.IsDirectory() && directoryName != "." && directoryName != "..")
+ if(currentDirEntry.IsDirectory() && directoryName != "." && directoryName != ".." && directoryName.IsEmpty() == false)
{
if (__sourceForm == CREATE_ITEM_SOURCE_SEARCH_FORM)
{
SearchForm::OnFileEventOccured(const unsigned long events,const Tizen::Base::String & path, const unsigned int eventId)
{
AppLogDebug("SearchForm::OnFileEventOccured");
- bool cacheKeyStatus = false;
- HashMap* pCacheList = null;
- DirectoryEntry* pCurrentEntry = null;
-
- String cachePath;
-
- ArrayList* pCurrentList = null;
-
if ((events & FILE_EVENT_TYPE_CREATE) || (events & FILE_EVENT_TYPE_DELETE) || (events & FILE_EVENT_TYPE_MOVED_FROM) || (events & FILE_EVENT_TYPE_MOVED_TO ))
{
__backFromAppControl = true;
- /*//changes added for Nabi issue # N_SE-38472
- if ( (events & FILE_EVENT_TYPE_DELETE) || (events & FILE_EVENT_TYPE_MOVED_FROM))
- {
- pCacheList = CacheManager::GetInstance()->GetCacheHashMap();
- if (pCacheList != null)
- {
- if (__isSearchCompleted == false)
- {
- if (__isSearchStarted == true)
- pCurrentList = __pSearchedContentList;
- else
- pCurrentList = __pContentListFromLastView;
- }
- else
- pCurrentList = __pSearchedContentList;
-
- if( pCurrentList )
- {
- pCurrentEntry = static_cast<DirectoryEntry*>(pCurrentList->GetAt(__selectedItemIndex));
- if (pCurrentEntry != null)
- {
- cachePath = pCurrentEntry->GetFullFilePath();
- }
- cacheKeyStatus = pCacheList->ContainsKey(cachePath);
- if (cacheKeyStatus)
- {
- CacheManager::GetInstance()->RemoveCacheEntry(cachePath);
- }
- }
- }
- }
- if (((MyFilesApp*) Application::GetInstance())->IsAppControlLaunched() == false)
- {
- if (__searchText.IsEmpty() == false)
- StartSearch();
- }*/
-
SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
}
AppResource* pAppResource = null;
Bitmap* pBitmapEmailContextItem = null;
Bitmap* pBitmapMessageContextItem = null;
-// Bitmap* pBitmapBluetoothContextItem = null;
-// Bitmap* pBitmapWiFiDirectContextItem = null;
_pFooter = GetFooter();
if (_pFooter != null)
pAppResource->GetString(L"IDS_COM_OPT1_WI_FI_DIRECT", wifiDirect);
pBitmapEmailContextItem = pAppResource->GetBitmapN(IDB_POPUP_EMAIL_ICON, BITMAP_PIXEL_FORMAT_ARGB8888);
pBitmapMessageContextItem = pAppResource->GetBitmapN(IDB_POPUP_MESSAGE_ICON, BITMAP_PIXEL_FORMAT_ARGB8888);
-
- //pBitmapBluetoothContextItem = pAppResource->GetBitmapN(IDB_POPUP_BLUETOOTH_ICON, BITMAP_PIXEL_FORMAT_ARGB8888);
- //pBitmapWiFiDirectContextItem = pAppResource->GetBitmapN(IDB_POPUP_WIFIDIRECT_ICON, BITMAP_PIXEL_FORMAT_ARGB8888);
}
+
AppLogDebug("enter1");
_pShareContextMenu = new (std::nothrow) ContextMenu();
_pShareContextMenu->Construct(startPosition, CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
_pShareContextMenu->SetItemTextColor(CONTEXT_MENU_ITEM_STATUS_NORMAL, Color::GetColor(COLOR_ID_BLACK));
_pShareContextMenu->SetItemTextColor(CONTEXT_MENU_ITEM_STATUS_PRESSED, Color::GetColor(COLOR_ID_WHITE));
-
+ _pShareContextMenu->SetFocusable(true);
_pShareContextMenu->SetShowState(false);
_pShareContextMenu->AddActionEventListener(*this);
case IDA_ICONLISTVIEW_DELETE:
{
+ _bIsDeleteFromContextSwipe = true;
+
if (_pIconListViewContextMenu != null)
{
delete _pIconListViewContextMenu;
//Set the ContextMenu's ActionEventListener
_pIconListViewContextMenu->AddActionEventListener(*this);
+ _pIconListViewContextMenu->SetFocusable(true);
_pIconListViewContextMenu->SetShowState(true);
return r;
}
}
+ GetHeader()->Invalidate(true);
+
if( !_bBackFromAppControl )
return;
_pIconListView->UpdateList();
_pIconListView->ScrollToItem(0);
}
- _pFolderEntryPM->InitThumbnailManager();
+ //_pFolderEntryPM->InitThumbnailManager();
}
else
{