uifw/AvKon/src/aknutils.cpp
branchRCL_3
changeset 72 a5e7a4f63858
parent 59 978afdc0236f
equal deleted inserted replaced
64:85902f042028 72:a5e7a4f63858
  3572                 rect.LayoutRect( screenRect,
  3572                 rect.LayoutRect( screenRect,
  3573                                  AknLayoutScalable_Avkon::main_pane( variety ) );
  3573                                  AknLayoutScalable_Avkon::main_pane( variety ) );
  3574                 aRect = rect.Rect();
  3574                 aRect = rect.Rect();
  3575                 return ETrue;
  3575                 return ETrue;
  3576                 }
  3576                 }
  3577             //add below code for vga_touch
       
  3578             else if ( screenRect.iBr.iX == 640 && screenRect.iBr.iY == 480 )
       
  3579                 {
       
  3580                 TInt variety = 13;
       
  3581 
       
  3582                  rect.LayoutRect( screenRect,
       
  3583                                   AknLayoutScalable_Avkon::main_pane( variety ) );
       
  3584                  aRect = rect.Rect();
       
  3585                  return ETrue;
       
  3586                 }
       
  3587             else
  3577             else
  3588                 {
  3578                 {
  3589                 return LayoutMetricsRect( EMainPane, aRect );
  3579                 return LayoutMetricsRect( EMainPane, aRect );
  3590                 }
  3580                 }
  3591             }
  3581             }
  5308             aText, *wrapWidthArray, *font, buffer, ETrue );
  5298             aText, *wrapWidthArray, *font, buffer, ETrue );
  5309 
  5299 
  5310         CleanupStack::PopAndDestroy(); // wrapWidthArray
  5300         CleanupStack::PopAndDestroy(); // wrapWidthArray
  5311         } ); // TRAP end
  5301         } ); // TRAP end
  5312 
  5302 
  5313     if ( error == KErrNone )
  5303     // there is no layout for empty popuplist
  5314         {
  5304     if ( error != KErrNone || popupList )
  5315         n = 0;
       
  5316         for ( i = 0; i < buffer.Length(); i++ )
       
  5317             {
       
  5318             if ( buffer[i] == '\n' )
       
  5319                 {
       
  5320                 n++;
       
  5321                 }
       
  5322             }        
       
  5323         }
       
  5324     
       
  5325     // There is no layout for empty popuplist
       
  5326     // The second layout that 2 lines with big font is used for two lines text.
       
  5327     if ( n < 3 || error != KErrNone || popupList )
       
  5328         {
  5305         {
  5329         DrawEmptyListImpl_real_DrawUpToTwoLines( aGc, aText, line1, line2,
  5306         DrawEmptyListImpl_real_DrawUpToTwoLines( aGc, aText, line1, line2,
  5330                                                  line1length, line2length,
  5307                                                  line1length, line2length,
  5331                                                  font, color, buffer,
  5308                                                  font, color, buffer,
  5332                                                  popupList, parentRect, aSettingPageList );
  5309                                                  popupList, parentRect, aSettingPageList );