calendarui/editors/src/calenunifiededitor.cpp
branchRCL_3
changeset 18 d68a4b5d5885
parent 16 55d60436f00b
child 20 9c5b1510919f
equal deleted inserted replaced
16:55d60436f00b 18:d68a4b5d5885
  1283                     }
  1283                     }
  1284                 }
  1284                 }
  1285             
  1285             
  1286             aMenuPane->AddMenuItemsL( R_CALEN_UNIFIED_EDITOR_DEFAULT_MENUPANE );
  1286             aMenuPane->AddMenuItemsL( R_CALEN_UNIFIED_EDITOR_DEFAULT_MENUPANE );
  1287 
  1287 
  1288             if( ( ctrlid != ECalenEditorPlace ) || 
  1288             if(  !CCalenLocationUtil::IsMapProviderAvailableL() )   
  1289                     ( !CCalenLocationUtil::IsMapProviderAvailableL() ) )
       
  1290                 {
  1289                 {
  1291                 aMenuPane->DeleteMenuItem( ECalenGetLocation );
  1290                 aMenuPane->DeleteMenuItem( ECalenGetLocation );
  1292                 }
  1291                 }
  1293             
  1292             
  1294             if( IsCreatingNewEntry() )
  1293             if( IsCreatingNewEntry() )
  2597 // -----------------------------------------------------------------------------
  2596 // -----------------------------------------------------------------------------
  2598 //
  2597 //
  2599 void CCalenUnifiedEditor::UpdateLocationInfoToFormL()
  2598 void CCalenUnifiedEditor::UpdateLocationInfoToFormL()
  2600     {
  2599     {
  2601     TRACE_ENTRY_POINT;
  2600     TRACE_ENTRY_POINT;
  2602 	
  2601     // set the focus to location field as the address is inserted/updated to location field.
       
  2602     TryChangeFocusToL(ECalenEditorPlace);
  2603 	// Get location details from context
  2603 	// Get location details from context
  2604 	MCalenContext& context = iServices->Context();
  2604 	MCalenContext& context = iServices->Context();
  2605 	CPosLandmark* landmark = context.GetLandMark();
  2605 	CPosLandmark* landmark = context.GetLandMark();
  2606 	TBuf<ECalenAbsoluteMaxTextEditorLength> locationInfo;
  2606 	TBuf<ECalenAbsoluteMaxTextEditorLength> locationInfo;
  2607 	GetEdwinText(locationInfo, ECalenEditorPlace);
  2607 	GetEdwinText(locationInfo, ECalenEditorPlace);
  3272     else
  3272     else
  3273         {
  3273         {
  3274         Edited().AttachmentNamesL(aAttachmentNames);
  3274         Edited().AttachmentNamesL(aAttachmentNames);
  3275         }
  3275         }
  3276     }
  3276     }
       
  3277 
       
  3278 // -----------------------------------------------------------------------------
       
  3279 // CCalenUnifiedEditor::GetServices
       
  3280 // Gets services reference
       
  3281 // -----------------------------------------------------------------------------
       
  3282 //
       
  3283 MCalenServices& CCalenUnifiedEditor::GetServices()
       
  3284     {
       
  3285     return *iServices;
       
  3286     }
  3277 	
  3287 	
  3278 // -----------------------------------------------------------------------------
  3288 // -----------------------------------------------------------------------------
  3279 // CMapsIconPicture::CMapsIconPicture
  3289 // CMapsIconPicture::CMapsIconPicture
  3280 // C++ Constructor
  3290 // C++ Constructor
  3281 // -----------------------------------------------------------------------------
  3291 // -----------------------------------------------------------------------------