calendarui/controller/src/calenmultipledbui.cpp
branchRCL_3
changeset 21 9711e452b5e9
parent 20 21239b3bcd78
child 27 55d60436f00b
equal deleted inserted replaced
20:21239b3bcd78 21:9711e452b5e9
   113                                                     aViewIsEmphasized,
   113                                                     aViewIsEmphasized,
   114                                                     aViewIsDimmed);
   114                                                     aViewIsDimmed);
   115      
   115      
   116      iGc->Reset();
   116      iGc->Reset();
   117              
   117              
   118      TAknWindowComponentLayout tempLayout = 
   118      TAknWindowComponentLayout tempLayout = AknLayoutScalable_Apps::list_cale_time_pane_g6(0);     
   119                 AknLayoutScalable_Apps::list_cale_time_pane_g6( aItemIndex - iListBox->TopItemIndex()) ;     
   119 
   120 
   120      TAknLayoutRect colourstrips;
   121         TAknLayoutRect colourstrips;
   121      colourstrips.LayoutRect( actualItemRect, tempLayout.LayoutLine() );
   122         colourstrips.LayoutRect( actualItemRect, tempLayout.LayoutLine() );
       
   123       
   122       
   124      iGc->SetPenColor( CGraphicsContext::ENullPen );
   123      iGc->SetPenColor( CGraphicsContext::ENullPen );
   125      iGc->DrawRect( colourstrips.Rect() );
   124      iGc->DrawRect( colourstrips.Rect() );
   126      iGc->SetBrushStyle( CGraphicsContext::ESolidBrush );
   125      iGc->SetBrushStyle( CGraphicsContext::ESolidBrush );
   127      iGc->SetBrushColor( TRgb(iColorUidArray[aItemIndex] ));
   126      iGc->SetBrushColor( TRgb(iColorUidArray[aItemIndex] ));
   519               aMenuPane->DeleteMenuItem(cmd);
   518               aMenuPane->DeleteMenuItem(cmd);
   520                
   519                
   521               HBufC* calendarFileName = 
   520               HBufC* calendarFileName = 
   522                   calendarInfoList[currentIndex]->FileNameL().AllocLC();
   521                   calendarInfoList[currentIndex]->FileNameL().AllocLC();
   523               if (!(calendarFileName->CompareF(
   522               if (!(calendarFileName->CompareF(
   524                       _L("c:Calendar1"))))
   523                         iController.Services().SessionL().DefaultFileNameL())))
   525                   {
   524                   {
   526                   aMenuPane->DeleteMenuItem(ECalenCmdDelete);
   525                   aMenuPane->DeleteMenuItem(ECalenCmdDelete);
   527                   }
   526                   }
   528               CleanupStack::PopAndDestroy(calendarFileName);
   527               CleanupStack::PopAndDestroy(calendarFileName);
   529               CleanupStack::PopAndDestroy(&calendarInfoList);
   528               CleanupStack::PopAndDestroy(&calendarInfoList);
   589           {
   588           {
   590           DoAsyncActionL(EAknSoftkeyExit);
   589           DoAsyncActionL(EAknSoftkeyExit);
   591           }
   590           }
   592           break;
   591           break;
   593       case EAknCmdHelp:      
   592       case EAknCmdHelp:      
   594             if (FeatureManager::FeatureSupported(KFeatureIdHelp)) //ravi
   593             if (FeatureManager::FeatureSupported(KFeatureIdHelp))
   595                 {
   594                 {
   596                 HlpLauncher::LaunchHelpApplicationL(
   595                 HlpLauncher::LaunchHelpApplicationL(
   597                         iCoeEnv->WsSession(),iAvkonAppUi->AppHelpContextL());                        
   596                         iCoeEnv->WsSession(),iAvkonAppUi->AppHelpContextL());                        
   598                 }
   597                 }
   599           break;
   598           break;