equal
deleted
inserted
replaced
601 else |
601 else |
602 { |
602 { |
603 aMenuPane.SetItemDimmed( EFileManagerUnmarkOne, ETrue ); |
603 aMenuPane.SetItemDimmed( EFileManagerUnmarkOne, ETrue ); |
604 } |
604 } |
605 } |
605 } |
606 |
606 TInt files( 0 ); |
607 TInt files( iEngine.FilesInFolderL() ); |
607 if( iContainer->IsSearchFieldVisible() ) |
|
608 { |
|
609 files = FilesCountInSearchField(); |
|
610 } |
|
611 else |
|
612 { |
|
613 files = iEngine.FilesInFolderL(); |
|
614 } |
608 TInt count( iContainer->ListBoxSelectionIndexesCount() ); |
615 TInt count( iContainer->ListBoxSelectionIndexesCount() ); |
609 if ( count == files ) |
616 if ( count == files ) |
610 { |
617 { |
611 aMenuPane.SetItemDimmed( EFileManagerMarkAll, ETrue ); |
618 aMenuPane.SetItemDimmed( EFileManagerMarkAll, ETrue ); |
612 } |
619 } |
710 TRAPD( err, ret = FileManagerDlgUtils::ShowConfirmQueryWithYesNoL( *prompt ) ); |
717 TRAPD( err, ret = FileManagerDlgUtils::ShowConfirmQueryWithYesNoL( *prompt ) ); |
711 DenyDirectoryRefresh( EFalse ); |
718 DenyDirectoryRefresh( EFalse ); |
712 User::LeaveIfError( err ); |
719 User::LeaveIfError( err ); |
713 if ( ret ) |
720 if ( ret ) |
714 { |
721 { |
715 DeleteItemsL( index ); |
722 if( IsDriveAvailable( DriveInfo().iDrive ) ) |
|
723 { |
|
724 DeleteItemsL( index ); |
|
725 } |
|
726 else |
|
727 { |
|
728 FileManagerDlgUtils::ShowInfoNoteL( R_QTN_MEMC_NOT_AVAILABLE ); |
|
729 CheckPostponedDirectoryRefresh(); |
|
730 } |
716 } |
731 } |
717 else |
732 else |
718 { |
733 { |
719 CheckPostponedDirectoryRefresh(); |
734 CheckPostponedDirectoryRefresh(); |
720 } |
735 } |
3190 TInt driveNumber = drvInfo.iDrive; |
3205 TInt driveNumber = drvInfo.iDrive; |
3191 iEngine.GetDriveInfoL(driveNumber,drvInfo); |
3206 iEngine.GetDriveInfoL(driveNumber,drvInfo); |
3192 |
3207 |
3193 // Common remote drive filtering |
3208 // Common remote drive filtering |
3194 RemoteDriveCommonFilteringL( aMenuPane ); |
3209 RemoteDriveCommonFilteringL( aMenuPane ); |
3195 |
3210 if( iContainer->IsSearchFieldVisible() && |
|
3211 !FilesCountInSearchField() ) |
|
3212 { |
|
3213 aMenuPane.SetItemDimmed( EFileManagerMark, ETrue ); |
|
3214 } |
3196 if ( iContainer->ListBoxNumberOfItems() ) |
3215 if ( iContainer->ListBoxNumberOfItems() ) |
3197 { |
3216 { |
3198 if ( !iContainer->ListBoxSelectionIndexesCount() ) |
3217 if ( !iContainer->ListBoxSelectionIndexesCount() ) |
3199 { |
3218 { |
3200 TUint32 fileType( iEngine.FileTypeL( |
3219 TUint32 fileType( iEngine.FileTypeL( |
5049 static_cast< CFileManagerViewBase* >( aPtr )->DoLaunchProgressDialogAsync(); |
5068 static_cast< CFileManagerViewBase* >( aPtr )->DoLaunchProgressDialogAsync(); |
5050 return KErrNone; |
5069 return KErrNone; |
5051 } |
5070 } |
5052 |
5071 |
5053 // ----------------------------------------------------------------------------- |
5072 // ----------------------------------------------------------------------------- |
|
5073 // CFileManagerViewBase::FilesCountInSearchField() |
|
5074 // |
|
5075 // ----------------------------------------------------------------------------- |
|
5076 // |
|
5077 TInt CFileManagerViewBase::FilesCountInSearchField() |
|
5078 { |
|
5079 TInt count = 0; |
|
5080 |
|
5081 if( iContainer->IsSearchFieldVisible() ) |
|
5082 { |
|
5083 TInt listBoxIndex =0; |
|
5084 for(TInt i(0); i<iContainer->ListBoxNumberOfItems();i++ ) |
|
5085 { |
|
5086 listBoxIndex = iContainer->SearchFieldToListBoxIndex( i ); |
|
5087 if( !iEngine.IsFolder( listBoxIndex ) ) |
|
5088 { |
|
5089 count++; |
|
5090 } |
|
5091 } |
|
5092 } |
|
5093 return count; |
|
5094 } |
|
5095 |
|
5096 // ----------------------------------------------------------------------------- |
5054 // CFileManagerViewBase::HandleServerAppExit |
5097 // CFileManagerViewBase::HandleServerAppExit |
5055 // |
5098 // |
5056 // ----------------------------------------------------------------------------- |
5099 // ----------------------------------------------------------------------------- |
5057 // |
5100 // |
5058 void CFileManagerViewBase::HandleServerAppExit( TInt /*aReason*/ ) |
5101 void CFileManagerViewBase::HandleServerAppExit( TInt /*aReason*/ ) |