photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerdelete.cpp
changeset 3 9a9c174934f5
parent 0 4e91876724a2
child 25 191387a8b767
equal deleted inserted replaced
2:7d9067c6fcb1 3:9a9c174934f5
    87    	TCommandInfo info( EGlxCmdDelete );
    87    	TCommandInfo info( EGlxCmdDelete );
    88    	// Filter out static items
    88    	// Filter out static items
    89     info.iMinSelectionLength = 1;
    89     info.iMinSelectionLength = 1;
    90     info.iDisallowSystemItems = aIsContainerList;
    90     info.iDisallowSystemItems = aIsContainerList;
    91    	AddCommandL(info);
    91    	AddCommandL(info);
       
    92    	
       
    93    	TCommandInfo singleclkinfo( EGlxCmdSingleClickDelete );
       
    94     singleclkinfo.iMinSelectionLength = 1;
       
    95     singleclkinfo.iDisallowSystemItems = aIsContainerList;
       
    96     AddCommandL(singleclkinfo);
    92 	}
    97 	}
    93 
    98 
    94 // ---------------------------------------------------------------------------
    99 // ---------------------------------------------------------------------------
    95 // Destructor
   100 // Destructor
    96 // ---------------------------------------------------------------------------
   101 // ---------------------------------------------------------------------------
   226                 if (naviState->Id() == TMPXItemId(KGlxCollectionPluginImageViewerImplementationUid))
   231                 if (naviState->Id() == TMPXItemId(KGlxCollectionPluginImageViewerImplementationUid))
   227                     {
   232                     {
   228                     //it means we are in img viewer.
   233                     //it means we are in img viewer.
   229                     fullscreenViewingMode = ETrue;
   234                     fullscreenViewingMode = ETrue;
   230                     }
   235                     }
   231                 else
       
   232                     {
       
   233                      //it means we are in grid view.
       
   234                     fullscreenViewingMode = EFalse;
       
   235                     }
       
   236                 } 
   236                 } 
   237             else 
   237             else 
   238                 {
   238                 {
   239                 //it means we are in Fullscreen.
   239                 //it means we are in Fullscreen.
   240                 fullscreenViewingMode = ETrue;
   240                 fullscreenViewingMode = ETrue;
   241                 }                
   241                 }                
   242             }
   242             }
   243         CleanupStack::PopAndDestroy( naviState );
   243         CleanupStack::PopAndDestroy( naviState );
   244         aNavigationalState->Close();
   244         aNavigationalState->Close();
   245         if(EGlxCmdDelete==aCommandId && (0 == aList.Count() ) && !fullscreenViewingMode)
   245         if (EGlxCmdDelete==aCommandId && 0 == aList.Count() &&
       
   246 		                                 !fullscreenViewingMode)
   246             {   
   247             {   
   247             return ETrue;
   248             return ETrue;
   248             }
   249             }
       
   250         
       
   251         if (EGlxCmdSingleClickDelete==aCommandId && 0 == aList.SelectionCount())
       
   252             {
       
   253             return ETrue;
       
   254             }
       
   255         
   249         return EFalse;
   256         return EFalse;
   250         }
   257         }
   251 //end of file
   258 //end of file
   252 		
   259