photosgallery/viewframework/plugins/gridviewplugin/src/glxalbumgridviewplugin.cpp
branchRCL_3
changeset 25 191387a8b767
parent 0 4e91876724a2
equal deleted inserted replaced
22:2dac0fdba72b 25:191387a8b767
    92     // Do nothing
    92     // Do nothing
    93     }
    93     }
    94 
    94 
    95     
    95     
    96 void CGlxAlbumGridViewPlugin::AddCommandHandlersL()
    96 void CGlxAlbumGridViewPlugin::AddCommandHandlersL()
    97     {
    97 	{
    98     CGlxGridViewPluginBase::AddCommandHandlersL();
    98 	CGlxGridViewPluginBase::AddCommandHandlersL();
    99     // Remove from Album
    99 	// Remove from Album
   100     ///@todo this should only be added to the albums view plugin.
   100 	///@todo this should only be added to the albums view plugin.
   101     iGridView->AddCommandHandlerL(CGlxCommandHandlerRemoveFrom::NewL(iGridView, EMPXAlbum));     
   101 	TFileName uiutilitiesrscfile;
   102     
   102 	uiutilitiesrscfile.Append(
   103     TGlxHelpContext helpInfo;
   103 			CGlxResourceUtilities::GetUiUtilitiesResourceFilenameL());
   104     helpInfo.iBrowseContext = LGAL_HLP_ALBUM_GRID;
       
   105     helpInfo.iViewContext = LGAL_HLP_ALBUM_FULLSCREEN;
       
   106    
       
   107     iGridView->AddCommandHandlerL(CGlxCommandHandlerHelp::NewL(helpInfo)); 
       
   108 
   104 
   109     }
   105 	iGridView->AddCommandHandlerL(CGlxCommandHandlerRemoveFrom::NewL(iGridView,
       
   106 			EMPXAlbum, uiutilitiesrscfile));
       
   107 
       
   108 	TGlxHelpContext helpInfo;
       
   109 	helpInfo.iBrowseContext = LGAL_HLP_ALBUM_GRID;
       
   110 	helpInfo.iViewContext = LGAL_HLP_ALBUM_FULLSCREEN;
       
   111 
       
   112 	iGridView->AddCommandHandlerL(CGlxCommandHandlerHelp::NewL(helpInfo));
       
   113 
       
   114 	}
   110 
   115 
   111 
   116 
   112 
   117 
   113 void CGlxAlbumGridViewPlugin::GetResourceFilenameL(TFileName& aResFile)
   118 void CGlxAlbumGridViewPlugin::GetResourceFilenameL(TFileName& aResFile)
   114     {
   119     {