idlehomescreen/nativeuicontroller/src/aistatuspanel.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
equal deleted inserted replaced
34:5456b4e8b3a8 35:3321d3e205b6
   353     }
   353     }
   354 
   354 
   355 
   355 
   356 void CAiStatusPanel::SetNaviPaneTextL( const TDesC& aText )
   356 void CAiStatusPanel::SetNaviPaneTextL( const TDesC& aText )
   357     {
   357     {
       
   358     __PRINT(__DBG_FORMAT("XAI: CAiStatusPanel::SetNaviPaneTextL aText = %S"), 
       
   359         &aText );
   358     delete iNaviPaneText;
   360     delete iNaviPaneText;
   359     iNaviPaneText = NULL;
   361     iNaviPaneText = NULL;
   360     if ( !AknStatuspaneUtils::FlatLayoutActive() )
   362     if ( !AknStatuspaneUtils::FlatLayoutActive() )
   361         {
   363         {
   362         HBufC* temp = aText.AllocL();
   364         HBufC* temp = aText.AllocL();
   366 
   368 
   367 
   369 
   368 
   370 
   369 void CAiStatusPanel::SetTitlePaneTextL( const TDesC& aText )
   371 void CAiStatusPanel::SetTitlePaneTextL( const TDesC& aText )
   370     {
   372     {
       
   373     __PRINT(__DBG_FORMAT("XAI: CAiStatusPanel::SetTitlePaneTextL aText = %S"), 
       
   374         &aText );
       
   375 
   371     HBufC* temp = aText.AllocL();
   376     HBufC* temp = aText.AllocL();
   372     delete iTitlePaneText;
   377     delete iTitlePaneText;
   373     iTitlePaneText = temp;
   378     iTitlePaneText = temp;
   374     }
   379     }
   375 
   380 
   393     RenderTextOnNaviPaneL();
   398     RenderTextOnNaviPaneL();
   394     }
   399     }
   395 
   400 
   396 void CAiStatusPanel::StopTitlePaneScrollingL()
   401 void CAiStatusPanel::StopTitlePaneScrollingL()
   397     {
   402     {
       
   403     __PRINTS("XAI: CAiStatusPanel::StopTitlePaneScrollingL");
   398     // stop scrolling
   404     // stop scrolling
   399     if(  iTextInTitlePane && iTitlePane->Text() )
   405     if(  iTextInTitlePane && iTitlePane->Text() )
   400         {
   406         {
       
   407         __PRINTS("XAI: stop scrolling");
   401         iTitlePane->SetTextL( *iTitlePane->Text(), EFalse );
   408         iTitlePane->SetTextL( *iTitlePane->Text(), EFalse );
   402         }
   409         }
   403     }
   410     }
   404 
   411 
   405 void CAiStatusPanel::ScrollTitlePaneTextL()
   412 void CAiStatusPanel::ScrollTitlePaneTextL()
   406     {
   413     {
       
   414     __PRINTS("XAI: CAiStatusPanel::ScrollTitlePaneTextL");
   407     // start scrolling
   415     // start scrolling
   408     if ( iTextInTitlePane && iTitlePane->Text() )           
   416     if ( iTextInTitlePane && iTitlePane->Text() )           
   409         {
   417         {
       
   418         __PRINTS("XAI: start scrolling");
   410         iTitlePane->SetTextL( *iTitlePane->Text(), ETrue );
   419         iTitlePane->SetTextL( *iTitlePane->Text(), ETrue );
   411         }
   420         }
   412     }
   421     }
   413 
   422 
   414 void CAiStatusPanel::SetNaviDecoratorObserver( MAknNaviDecoratorObserver* aObserver )
   423 void CAiStatusPanel::SetNaviDecoratorObserver( MAknNaviDecoratorObserver* aObserver )