phoneuis/Ussd/src/UssdEditorLines.cpp
branchRCL_3
changeset 3 8871b09be73b
parent 0 5f000ab63145
child 5 2a26698d78ba
equal deleted inserted replaced
2:c84cf270c54f 3:8871b09be73b
   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           iRects && i < iRects->Count() && i < UssdLayout::NumberOfEditorLines(); 
   108             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     }
   117 // -----------------------------------------------------------------------------
   117 // -----------------------------------------------------------------------------
   118 // CUssdEditorLines::Draw
   118 // CUssdEditorLines::Draw
   119 // 
   119 // 
   120 // -----------------------------------------------------------------------------
   120 // -----------------------------------------------------------------------------
   121 //
   121 //
   122 void CUssdEditorLines::Draw( const TRect& aRect ) const
   122 void CUssdEditorLines::Draw( const TRect& /*aRect*/ ) const
   123     {
   123     {
   124     // Take the colour from some ramdom line.
   124     // Take the colour from some ramdom line.
   125     // Here it is takem from the first line.
   125     // Here it is taken from the first line.
   126 
   126 
   127     TRgb lineColour( KRgbWhite );
   127     TRgb lineColour( KRgbWhite );
   128 
   128 
   129     if ( iRects->Count() )
   129     if ( iRects->Count() )
   130         {
   130         {
   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; iRects && i < count && i < lines; i++ )
   154     for ( TInt i = 0; 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