equal
deleted
inserted
replaced
156 { |
156 { |
157 __PRINTS("XAI: Rendering text to title pane"); |
157 __PRINTS("XAI: Rendering text to title pane"); |
158 if( !iTitlePaneText ) |
158 if( !iTitlePaneText ) |
159 { |
159 { |
160 __PRINTS("XAI: Rendering text to title pane - invalid text, aborting"); |
160 __PRINTS("XAI: Rendering text to title pane - invalid text, aborting"); |
|
161 |
|
162 iTextInTitlePane = EFalse; |
|
163 |
161 return; |
164 return; |
162 } |
165 } |
163 |
166 |
164 TTelTitleDisplay displayText; |
167 TTelTitleDisplay displayText; |
165 displayText.iLogoHandle = 0; |
168 displayText.iLogoHandle = 0; |
171 |
174 |
172 // SetText took ownership |
175 // SetText took ownership |
173 iTitlePaneText = NULL; |
176 iTitlePaneText = NULL; |
174 |
177 |
175 UpdatePhoneDisplayInfo( displayText ); |
178 UpdatePhoneDisplayInfo( displayText ); |
|
179 |
|
180 iTextInTitlePane = ETrue; |
|
181 |
176 __PRINTS("XAI: Rendering text to title pane - done"); |
182 __PRINTS("XAI: Rendering text to title pane - done"); |
177 } |
183 } |
178 |
184 |
179 |
185 |
180 void CAiStatusPanel::RenderBitmapOnTitlePaneL() |
186 void CAiStatusPanel::RenderBitmapOnTitlePaneL() |
181 { |
187 { |
182 __PRINTS("XAI: Rendering bitmap to title pane"); |
188 __PRINTS("XAI: Rendering bitmap to title pane"); |
183 if( iBitmapHandle == KErrNotFound ) |
189 if( iBitmapHandle == KErrNotFound ) |
184 { |
190 { |
185 __PRINTS("XAI: Rendering bitmap to title pane - invalid bitmap handle, aborting"); |
191 __PRINTS("XAI: Rendering bitmap to title pane - invalid bitmap handle, aborting"); |
|
192 |
186 return; |
193 return; |
187 } |
194 } |
188 |
195 |
189 TSize size; |
196 TSize size; |
190 TRect rect; |
197 TRect rect; |
273 // Assume invalid bitmaps. Client needs to set the handles again |
280 // Assume invalid bitmaps. Client needs to set the handles again |
274 // Otherwise invalid handles could be hold here and when drawing |
281 // Otherwise invalid handles could be hold here and when drawing |
275 // undetermined stuff could occurr |
282 // undetermined stuff could occurr |
276 iBitmapHandle = KErrNotFound; |
283 iBitmapHandle = KErrNotFound; |
277 iMaskHandle = KErrNotFound; |
284 iMaskHandle = KErrNotFound; |
|
285 |
|
286 iTextInTitlePane = EFalse; |
|
287 |
278 __PRINTS("XAI: Rendering bitmap to title pane - done"); |
288 __PRINTS("XAI: Rendering bitmap to title pane - done"); |
279 } |
289 } |
280 |
290 |
281 TInt CAiStatusPanel::GetTitlePaneSize( TSize& aSize ) |
291 TInt CAiStatusPanel::GetTitlePaneSize( TSize& aSize ) |
282 { |
292 { |
384 } |
394 } |
385 |
395 |
386 void CAiStatusPanel::StopTitlePaneScrollingL() |
396 void CAiStatusPanel::StopTitlePaneScrollingL() |
387 { |
397 { |
388 // stop scrolling |
398 // stop scrolling |
389 if( iTitlePane->Text() ) |
399 if( iTextInTitlePane && iTitlePane->Text() ) |
390 { |
400 { |
391 iTitlePane->SetTextL( *iTitlePane->Text(), EFalse ); |
401 iTitlePane->SetTextL( *iTitlePane->Text(), EFalse ); |
392 } |
402 } |
393 } |
403 } |
394 |
404 |
395 void CAiStatusPanel::ScrollTitlePaneTextL() |
405 void CAiStatusPanel::ScrollTitlePaneTextL() |
396 { |
406 { |
397 // start scrolling |
407 // start scrolling |
398 if( iTitlePane->Text() ) |
408 if ( iTextInTitlePane && iTitlePane->Text() ) |
399 { |
409 { |
400 iTitlePane->SetTextL( *iTitlePane->Text(), ETrue ); |
410 iTitlePane->SetTextL( *iTitlePane->Text(), ETrue ); |
401 } |
411 } |
402 } |
412 } |
403 |
413 |