calendarui/views/src/calenmissedalarmscontainer.cpp
branchRCL_3
changeset 28 96907930389d
parent 18 d68a4b5d5885
equal deleted inserted replaced
27:aba12c885d83 28:96907930389d
   150     CleanupStack::Pop();
   150     CleanupStack::Pop();
   151 
   151 
   152     iListBox->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray);
   152     iListBox->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray);
   153     iListBox->View()->SetListEmptyTextL( KNullDesC );
   153     iListBox->View()->SetListEmptyTextL( KNullDesC );
   154     iFirstTap = EFalse;
   154     iFirstTap = EFalse;
       
   155     
       
   156     //Set toolbar visibility to false, bcoz this view is not using the ToolBar
       
   157     MCalenToolbar* toolbar = iServices.ToolbarOrNull();
       
   158     if(toolbar)
       
   159         {
       
   160         toolbar->SetToolbarVisibilityL(EFalse);  
       
   161         }
   155 
   162 
   156     TRACE_EXIT_POINT;
   163     TRACE_EXIT_POINT;
   157     }
   164     }
   158 
   165 
   159 // ----------------------------------------------------------------------------
   166 // ----------------------------------------------------------------------------
   399     
   406     
   400     CCalenContainer::HandleResourceChange( aType );
   407     CCalenContainer::HandleResourceChange( aType );
   401 
   408 
   402     if ( aType == KAknsMessageSkinChange || aType == KEikDynamicLayoutVariantSwitch )
   409     if ( aType == KAknsMessageSkinChange || aType == KEikDynamicLayoutVariantSwitch )
   403         {
   410         {
   404 //        SizeChanged();
   411         SizeChanged();
   405     TRect main_pane;
   412 	      /*TRect main_pane;
   406     AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, main_pane );
   413 	      AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, main_pane );
   407     SetRect( main_pane );
   414 	      SetRect( main_pane );
   408     if(iListBox)
   415 	      if(iListBox)
   409         {
   416 	        {
   410         TRect mainPane;
   417 	        TRect mainPane;
   411         AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, mainPane );
   418 	        AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, mainPane );
   412         TRect bgContextRect( TPoint(0, 0), mainPane.Size() );
   419 	        TRect bgContextRect( TPoint(0, 0), mainPane.Size() );
   413         iListBox->SetRect( bgContextRect );
   420 	        iListBox->SetRect( bgContextRect );
   414         }
   421 	        }*/
   415 
   422 
   416         // refresh
   423         // refresh
   417         TRAPD(error,iView->BeginRepopulationL());
   424         TRAPD(error,iView->BeginRepopulationL());
   418         if(error!=KErrNone)
   425         if(error!=KErrNone)
   419             {
   426             {