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