equal
deleted
inserted
replaced
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 |