phoneuis/Ussd/src/UssdEditorLines.cpp
branchRCL_3
changeset 15 2a26698d78ba
parent 9 8871b09be73b
child 19 544e34b3255a
equal deleted inserted replaced
14:24062c24fe38 15:2a26698d78ba
     1 /*
     1 /*
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   102 //
   102 //
   103 void CUssdEditorLines::SizeChanged()
   103 void CUssdEditorLines::SizeChanged()
   104     {
   104     {
   105     // Move rectangles to right position
   105     // Move rectangles to right position
   106     
   106     
   107     for ( TInt i = 0;
   107     for ( TInt i = 0; 
   108             i < iRects->Count() && i < UssdLayout::NumberOfEditorLines(); 
   108           iRects && i < iRects->Count() && i < UssdLayout::NumberOfEditorLines(); 
   109             i++ )
   109           i++ )
   110         {
   110         {
   111         iRects->At( i )->LayoutRect( Rect() , 
   111         iRects->At( i )->LayoutRect( Rect() , 
   112             UssdLayout::MessageWritingLayoutElements6( i+1 ) );
   112             UssdLayout::MessageWritingLayoutElements6( i+1 ) );
   113         }
   113         }
   114     }
   114     }
   149     gc.SetBrushColor( lineColour );
   149     gc.SetBrushColor( lineColour );
   150     
   150     
   151     // Draw row lines by clearing rectangles corresponding to row locations.
   151     // Draw row lines by clearing rectangles corresponding to row locations.
   152     TInt count( iRects->Count() );
   152     TInt count( iRects->Count() );
   153     TInt lines( UssdLayout::NumberOfEditorLines() );
   153     TInt lines( UssdLayout::NumberOfEditorLines() );
   154     for ( TInt i = 0; i < count && i < lines; i++ )
   154     for ( TInt i = 0; iRects && i < count && i < lines; i++ )
   155         {
   155         {
   156         gc.Clear( iRects->At( i )->Rect() );
   156         gc.Clear( iRects->At( i )->Rect() );
   157         }
   157         }
   158    }
   158    }
   159 
   159