taskswitcher/taskswitcherui/taskswitcherapp/src/tsappview.cpp
branchRCL_3
changeset 102 ba63c83f4716
parent 88 3321d3e205b6
equal deleted inserted replaced
93:b01126ce0bec 102:ba63c83f4716
   203     
   203     
   204     TAknLayoutRect bgTport;
   204     TAknLayoutRect bgTport;
   205     bgTport.LayoutRect( iViewRect,
   205     bgTport.LayoutRect( iViewRect,
   206         AknLayoutScalable_Apps::bg_popup_window_pane_cp01( variety ) );
   206         AknLayoutScalable_Apps::bg_popup_window_pane_cp01( variety ) );
   207     iBgContextOuterRect = bgTport.Rect();
   207     iBgContextOuterRect = bgTport.Rect();
   208     if( iBgContextOuterRect == iViewRect )
   208     bgTport.LayoutRect( iBgContextOuterRect,
   209         {
   209         AknLayoutScalable_Avkon::aid_inside_area_window_primary( variety ) );
   210         //full screen
   210     iBgContextInnerRect = bgTport.Rect();
   211         iBgContextInnerRect = iBgContextOuterRect;
       
   212         }
       
   213     else
       
   214         {
       
   215         bgTport.LayoutRect( iBgContextOuterRect,
       
   216                 AknLayoutScalable_Avkon::
       
   217                 aid_inside_area_window_primary( variety ) );
       
   218         iBgContextInnerRect = bgTport.Rect();
       
   219         }
       
   220     TSLOG4( TSLOG_INFO, "outer rect for popup = %d %d %d %d",
   211     TSLOG4( TSLOG_INFO, "outer rect for popup = %d %d %d %d",
   221             iBgContextOuterRect.iTl.iX, iBgContextOuterRect.iTl.iY,
   212             iBgContextOuterRect.iTl.iX, iBgContextOuterRect.iTl.iY,
   222             iBgContextOuterRect.iBr.iX, iBgContextOuterRect.iBr.iY );
   213             iBgContextOuterRect.iBr.iX, iBgContextOuterRect.iBr.iY );
   223     TSLOG4( TSLOG_INFO, "inner rect for popup = %d %d %d %d",
   214     TSLOG4( TSLOG_INFO, "inner rect for popup = %d %d %d %d",
   224             iBgContextInnerRect.iTl.iX, iBgContextInnerRect.iTl.iY,
   215             iBgContextInnerRect.iTl.iX, iBgContextInnerRect.iTl.iY,
   250     
   241     
   251     iAppsHeading->SetContainerWindowL( *this );
   242     iAppsHeading->SetContainerWindowL( *this );
   252     iAppsHeading->ConstructL( KNullDesC() );
   243     iAppsHeading->ConstructL( KNullDesC() );
   253     iAppsHeading->SetLayout( CAknPopupHeadingPane::EListHeadingPane ); 
   244     iAppsHeading->SetLayout( CAknPopupHeadingPane::EListHeadingPane ); 
   254 
   245 
       
   246     //TODO: check why we need to set rect (set already in contructL)
   255     iFastSwapArea->SetRect( rects[1] ); // cannot be before iAppsHeading constructL
   247     iFastSwapArea->SetRect( rects[1] ); // cannot be before iAppsHeading constructL
   256     iAppsHeading->SetRect( rects[0] );
   248     iAppsHeading->SetRect( rects[0] );
   257     
   249     
   258     CleanupStack::PopAndDestroy( &rects );
   250     CleanupStack::PopAndDestroy( &rects );
   259     
   251