photosgallery/slideshow/engine/controlsrc/shweffectcontrol.cpp
branchRCL_3
changeset 12 ce1c7ad1f18b
parent 0 4e91876724a2
child 13 bcb43dc84c44
equal deleted inserted replaced
11:71da52165949 12:ce1c7ad1f18b
   470         	// set the temporary layout for default icon
   470         	// set the temporary layout for default icon
   471         	iSplitter.SetLayoutL( &iDefaultIconLayout, iCurrentVisual );
   471         	iSplitter.SetLayoutL( &iDefaultIconLayout, iCurrentVisual );
   472 		    }
   472 		    }
   473 		else
   473 		else
   474 		    {
   474 		    {
   475 		    // Set paused effect on current visual 
       
   476 		    //if(iPausedVisuals.Count())
       
   477 		    //    {
       
   478 		    //	iSplitter.SetLayoutL( &iPausedLayout, iCurrentVisual );
       
   479 		    //	}
       
   480 			//else
       
   481 			//    {
       
   482 	            // enter the view mode for visual
   475 	            // enter the view mode for visual
   483 	            // ask the layout chain and set that to the current visual
   476 	            // ask the layout chain and set that to the current visual
   484 	            // set also effect fade-in
   477 	            // set also effect fade-in
   485 	        		iSplitter.SetLayoutL( 
   478 	        		iSplitter.SetLayoutL( 
   486 	    			currentEffect->EnterViewL( 
   479 	    			currentEffect->EnterViewL( 
   487 	    				iCurrentVisual, 
   480 	    				iCurrentVisual, 
   488 	    				iViewDuration, 
   481 	    				iViewDuration, 
   489 	    				KFirstEffectFadeInDuration ), 
   482 	    				KFirstEffectFadeInDuration ), 
   490 	    			iCurrentVisual );
   483 	    			iCurrentVisual );
   491 		      //  }
       
   492 		    }
   484 		    }
   493 		// bring the focus visual to the front
   485 		// bring the focus visual to the front
   494 		iCurrentVisual->MoveToFront();    
   486 		iCurrentVisual->MoveToFront();    
   495 		}
   487 		}
   496 	//parts of the code commented to remove layout dependency
   488 	//parts of the code commented to remove layout dependency
   675 	    TInt count = iPausedVisuals.Count();
   667 	    TInt count = iPausedVisuals.Count();
   676 	    if (count > 0)    
   668 	    if (count > 0)    
   677 	        {
   669 	        {
   678             while (count > 0)
   670             while (count > 0)
   679 		        {
   671 		        {
   680 		        // unpause and remove the visuals
   672 		        //remove the visuals
   681     		    //iPausedVisuals[count]->Resume();
       
   682 		        iPausedVisuals.Remove(--count);
   673 		        iPausedVisuals.Remove(--count);
   683 		        }
   674 		        }
   684 	        }
   675 	        }
   685         }
   676         }
   686     }
   677     }