idlehomescreen/xmluirendering/uiengine/src/xneffectmanager.cpp
branchRCL_3
changeset 26 1b758917cafc
parent 23 7be2816dbabd
equal deleted inserted replaced
25:137ebc85284b 26:1b758917cafc
   364             GfxTransEffect::Begin( bg, KGfxControlActionBgImgToImgAppear );
   364             GfxTransEffect::Begin( bg, KGfxControlActionBgImgToImgAppear );
   365             }
   365             }
   366         
   366         
   367         iBgEffect = ETrue;
   367         iBgEffect = ETrue;
   368         }
   368         }
   369                   
   369     
       
   370     // because of changes in nga end has to call here. Effects below are
       
   371     // grouped and those will be triggered when calling GfxTransEffect::EndGroup
   370     if ( iLandscape )
   372     if ( iLandscape )
   371         {
   373         {
   372         GfxTransEffect::Begin( thisView, KGfxControlActionDisappearLsc );
   374         GfxTransEffect::Begin( thisView, KGfxControlActionDisappearLsc );
   373         GfxTransEffect::Begin( otherView, KGfxControlActionAppearLsc );
   375         GfxTransEffect::Begin( otherView, KGfxControlActionAppearLsc );
       
   376         
       
   377         GfxTransEffect::SetDemarcation( otherView, otherView->Position() );
       
   378         GfxTransEffect::End( otherView );
       
   379             
       
   380         GfxTransEffect::SetDemarcation( thisView, thisView->Position() );
       
   381         GfxTransEffect::End( thisView );
   374         }
   382         }
   375     else
   383     else
   376         {
   384         {
   377         GfxTransEffect::Begin( thisView, KGfxControlActionDisappearPrt );
   385         GfxTransEffect::Begin( thisView, KGfxControlActionDisappearPrt );
   378         GfxTransEffect::Begin( otherView, KGfxControlActionAppearPrt );
   386         GfxTransEffect::Begin( otherView, KGfxControlActionAppearPrt );
       
   387         
       
   388         GfxTransEffect::SetDemarcation( otherView, otherView->Position() );
       
   389         GfxTransEffect::End( otherView );
       
   390             
       
   391         GfxTransEffect::SetDemarcation( thisView, thisView->Position() );
       
   392         GfxTransEffect::End( thisView );
   379         }    
   393         }    
   380     
   394     
   381     return ETrue;
   395     return ETrue;
   382     }
   396     }
   383 
   397 
   394         // Not a valid view switch effect uid or group effect is not started
   408         // Not a valid view switch effect uid or group effect is not started
   395         return;
   409         return;
   396         }
   410         }
   397     
   411     
   398     CXnControlAdapter* thisView( aThis.ViewNode()->Control() );                             
   412     CXnControlAdapter* thisView( aThis.ViewNode()->Control() );                             
   399     CXnControlAdapter* otherView( aOther.ViewNode()->Control() ); 
   413     CXnControlAdapter* otherView( aOther.ViewNode()->Control() );
   400     
   414     
   401     if ( iBgEffect )
   415     if ( iBgEffect )
   402         {    
   416         {    
   403         CCoeControl* bg( &iAppUiAdapter.ViewAdapter().BgManager() );
   417         CCoeControl* bg( &iAppUiAdapter.ViewAdapter().BgManager() );
   404         
   418         
   405         GfxTransEffect::SetDemarcation( bg, bg->Position() );
   419         GfxTransEffect::SetDemarcation( bg, bg->Position() );
   406         GfxTransEffect::End( bg );        
   420         GfxTransEffect::End( bg );        
   407         }
   421         }
   408         
       
   409     GfxTransEffect::SetDemarcation( thisView, thisView->Position() );
       
   410     GfxTransEffect::End( thisView );
       
   411     
       
   412     GfxTransEffect::SetDemarcation( otherView, otherView->Position() );
       
   413     GfxTransEffect::End( otherView );                     
       
   414                             
   422                             
   415     GfxTransEffect::EndGroup( iGroupId );
   423     GfxTransEffect::EndGroup( iGroupId );
   416     
   424     
       
   425     GfxTransEffect::Deregister( otherView );
   417     GfxTransEffect::Deregister( thisView );
   426     GfxTransEffect::Deregister( thisView );
   418     GfxTransEffect::Deregister( otherView );    
       
   419     }
   427     }
   420 
   428 
   421 // -----------------------------------------------------------------------------
   429 // -----------------------------------------------------------------------------
   422 // CXnEffectManager::BgAppearEffect
   430 // CXnEffectManager::BgAppearEffect
   423 //
   431 //