photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerslideshow.cpp
branchRCL_3
changeset 12 ce1c7ad1f18b
parent 11 71da52165949
child 13 bcb43dc84c44
equal deleted inserted replaced
11:71da52165949 12:ce1c7ad1f18b
    96     TFileName resourceFile;
    96     TFileName resourceFile;
    97     resourceFile.Append(parse.FullName());
    97     resourceFile.Append(parse.FullName());
    98     CGlxResourceUtilities::GetResourceFilenameL(resourceFile);  
    98     CGlxResourceUtilities::GetResourceFilenameL(resourceFile);  
    99    	iResourceOffset = CCoeEnv::Static()->AddResourceFileL( resourceFile );
    99    	iResourceOffset = CCoeEnv::Static()->AddResourceFileL( resourceFile );
   100 
   100 
   101    // CGlxSettingsModel* model = CGlxSettingsModel::InstanceL();
   101     iShowInToolbar = ETrue;
   102     iShowInToolbar = ETrue; //model->ShowSlideshowInToolbar();
       
   103    // model->Close();
       
   104 
   102 
   105    	// Add supported commands with filter fields
   103    	// Add supported commands with filter fields
   106    	// Play slideshow forwards
   104    	// Play slideshow forwards
   107    	TCommandInfo info( EGlxCmdSlideshowPlay );
   105    	TCommandInfo info( EGlxCmdSlideshowPlay );
   108    	// Disable for static items and dont enable empty slideshow
   106    	// Disable for static items and dont enable empty slideshow
   122 	TCommandInfo::TCategoryRule categoryRule = TCommandInfo::EForbidAll;
   120 	TCommandInfo::TCategoryRule categoryRule = TCommandInfo::EForbidAll;
   123 	info.iCategoryFilter = categoryFilter;
   121 	info.iCategoryFilter = categoryFilter;
   124 	info.iCategoryRule = categoryRule;
   122 	info.iCategoryRule = categoryRule;
   125    	AddCommandL( info );
   123    	AddCommandL( info );
   126    	
   124    	
   127    	// Play slideshow backwards: only the id changes
       
   128    	//info.iCommandId = EGlxCmdSlideshowPlayBackwards;
       
   129    	//AddCommandL( info );
       
   130 
       
   131     // new info to get the default filters
   125     // new info to get the default filters
   132    	TCommandInfo info_show_always( EGlxCmdSlideshowSettings );
   126    	TCommandInfo info_show_always( EGlxCmdSlideshowSettings );
   133    	// Disable for empty views and views with only static items
   127    	// Disable for empty views and views with only static items
   134     info_show_always.iMinSelectionLength = 1;
   128     info_show_always.iMinSelectionLength = 1;
   135    	// slideshow settings
   129    	// slideshow settings