phonebookui/Phonebook2/ccapplication/ccapp/ccapputil/src/ccappstatuscontrol.cpp
branchRCL_3
changeset 39 a6539d1e8e43
parent 23 5586b4d2ec3e
child 45 34879f5cfc63
equal deleted inserted replaced
35:4ae315f230bc 39:a6539d1e8e43
   278 // ---------------------------------------------------------------------------
   278 // ---------------------------------------------------------------------------
   279 //
   279 //
   280 void CCCAppStatusControl::SetVariableLayouts( TInt aOption )
   280 void CCCAppStatusControl::SetVariableLayouts( TInt aOption )
   281     {
   281     {
   282     const TRect rect(Rect());
   282     const TRect rect(Rect());
   283     // set background graphics layout
   283 
   284     const TAknWindowComponentLayout innerLayout(
   284     // Set background and border graphics layout
   285             AknLayoutScalable_Apps::bg_button_pane_cp033( aOption ) );
   285     //
   286     
   286     // Avkon LAF needs to be used because phob2_cc_button_pane does not have
       
   287     // definition for inner rect (to make border visible) and LAF change to 
       
   288     // phob2_cc_button_pane was not accepted. If the border layout at some
       
   289     // point gets broken, then custom LAF for the border is needed.
   287     TAknLayoutRect innerLayoutRect;
   290     TAknLayoutRect innerLayoutRect;
   288     innerLayoutRect.LayoutRect( rect, innerLayout.LayoutLine() );
   291     innerLayoutRect.LayoutRect( rect,
   289     const TRect innerRect( innerLayoutRect.Rect() );
   292         AknLayoutScalable_Avkon::bg_button_pane_g1() );
   290     iBgContext->SetFrameRects( rect, innerRect );      
   293     iBgContext->SetFrameRects( rect, innerLayoutRect.Rect() );      
   291                        
   294                        
   292     // status icon
   295     // status icon
   293     const TAknWindowComponentLayout statusIconLayout( 
   296     const TAknWindowComponentLayout statusIconLayout( 
   294             AknLayoutScalable_Apps::phob2_cc_button_pane_g1( aOption ) );
   297             AknLayoutScalable_Apps::phob2_cc_button_pane_g1( aOption ) );
   295     
   298