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