photosgallery/viewframework/uiutilities/src/glxanimationview.cpp
branchRCL_3
changeset 18 bcb43dc84c44
parent 0 4e91876724a2
equal deleted inserted replaced
14:ce1c7ad1f18b 18:bcb43dc84c44
   137     opacity.SetStyle(EAlfTimedValueStyleLinear);
   137     opacity.SetStyle(EAlfTimedValueStyleLinear);
   138 
   138 
   139     // Find out the screen size
   139     // Find out the screen size
   140     CGlxUiUtility* uiUtility = CGlxUiUtility::UtilityL();
   140     CGlxUiUtility* uiUtility = CGlxUiUtility::UtilityL();
   141     CleanupClosePushL( *uiUtility );
   141     CleanupClosePushL( *uiUtility );
   142     //TSize dispSize = uiUtility->ScreenFurniture().CentralScreenRect().Size();// tobe implemented by sf
       
   143     CleanupStack::PopAndDestroy( uiUtility );
   142     CleanupStack::PopAndDestroy( uiUtility );
   144 
   143 
   145     // Animate each of the control groups
   144     // Animate each of the control groups
   146     TInt cgCount = iControlGroups.Count();
   145     TInt cgCount = iControlGroups.Count();
   147     for ( TInt cg = 0; cg < cgCount; cg++ )
   146     for ( TInt cg = 0; cg < cgCount; cg++ )
   153             }
   152             }
   154 
   153 
   155         // Set up control group transformations
   154         // Set up control group transformations
   156         iControlGroups[cg]->EnableTransformationL();
   155         iControlGroups[cg]->EnableTransformationL();
   157         CAlfTransformation& trans = iControlGroups[cg]->Transformation();
   156         CAlfTransformation& trans = iControlGroups[cg]->Transformation();
   158 
       
   159         //trans.Translate(dispSize.iWidth/2, dispSize.iHeight/2);//tobe implemented by sf
       
   160         trans.Scale( scale, scale );
   157         trans.Scale( scale, scale );
   161        // trans.Translate(-dispSize.iWidth/2, -dispSize.iHeight/2);//tobe implemented by sf
       
   162         
   158         
   163         // Set opacity of all toplevel visuals in all controls in this group
   159         // Set opacity of all toplevel visuals in all controls in this group
   164         TInt controlCount = iControlGroups[cg]->Count();
   160         TInt controlCount = iControlGroups[cg]->Count();
   165         for(TInt i = 0; i < controlCount; i++ )
   161         for(TInt i = 0; i < controlCount; i++ )
   166             {
   162             {