equal
deleted
inserted
replaced
210 |
210 |
211 // switching control |
211 // switching control |
212 iSettingListContainer->MakeVisible(EFalse); |
212 iSettingListContainer->MakeVisible(EFalse); |
213 iCurrentContainer = iMainListContainer; |
213 iCurrentContainer = iMainListContainer; |
214 iAppUi->AddToViewStackL( *this, iCurrentContainer ); |
214 iAppUi->AddToViewStackL( *this, iCurrentContainer ); |
215 UpdateMskL(); |
215 UpdateMSK(); |
216 } |
216 } |
217 |
217 |
218 // --------------------------------------------------------------------------- |
218 // --------------------------------------------------------------------------- |
219 // CXDMPlugin::DoDeactivate() |
219 // CXDMPlugin::DoDeactivate() |
220 // --------------------------------------------------------------------------- |
220 // --------------------------------------------------------------------------- |
272 case EGSXDMPluginCmdNewDefault: |
272 case EGSXDMPluginCmdNewDefault: |
273 LoadSettingsViewL(ENewDefault, iSettingListContainer->GetCurrentSetName()); |
273 LoadSettingsViewL(ENewDefault, iSettingListContainer->GetCurrentSetName()); |
274 break; |
274 break; |
275 case EGSXDMPluginCmdDelete: |
275 case EGSXDMPluginCmdDelete: |
276 iMainListContainer->DeleteSetProcedureL(); |
276 iMainListContainer->DeleteSetProcedureL(); |
277 UpdateMskL(); |
277 UpdateMSK(); |
278 break; |
278 break; |
279 case EAknCmdHelp: |
279 case EAknCmdHelp: |
280 HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(), AppUi()->AppHelpContextL ()); |
280 HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(), AppUi()->AppHelpContextL ()); |
281 break; |
281 break; |
282 case EGSXDMPluginCmdExitFromSL: |
282 case EGSXDMPluginCmdExitFromSL: |
340 iAppUi->RemoveFromViewStack( *this, iCurrentContainer ); |
340 iAppUi->RemoveFromViewStack( *this, iCurrentContainer ); |
341 iCurrentContainer = iSettingListContainer; |
341 iCurrentContainer = iSettingListContainer; |
342 iAppUi->AddToViewStackL( *this, iCurrentContainer ); |
342 iAppUi->AddToViewStackL( *this, iCurrentContainer ); |
343 iMainListContainer->MakeVisible(EFalse); |
343 iMainListContainer->MakeVisible(EFalse); |
344 iSettingListContainer->MakeVisible(ETrue); |
344 iSettingListContainer->MakeVisible(ETrue); |
345 UpdateMskL(); |
345 UpdateMSK(); |
346 } |
346 } |
347 |
347 |
348 // --------------------------------------------------------------------------- |
348 // --------------------------------------------------------------------------- |
349 // CXDMPlugin::LoadMainViewL() |
349 // CXDMPlugin::LoadMainViewL() |
350 // --------------------------------------------------------------------------- |
350 // --------------------------------------------------------------------------- |
360 |
360 |
361 iMainListContainer->SetFocusIfExist(iSettingListContainer->GetCurrentSetName()); |
361 iMainListContainer->SetFocusIfExist(iSettingListContainer->GetCurrentSetName()); |
362 |
362 |
363 iSettingListContainer->MakeVisible(EFalse); |
363 iSettingListContainer->MakeVisible(EFalse); |
364 iMainListContainer->MakeVisible(ETrue); |
364 iMainListContainer->MakeVisible(ETrue); |
365 UpdateMskL(); |
365 UpdateMSK(); |
366 } |
366 } |
367 |
367 |
368 // --------------------------------------------------------------------------- |
368 // --------------------------------------------------------------------------- |
369 // CXDMPlugin::DynInitMenuPaneL() |
369 // CXDMPlugin::DynInitMenuPaneL() |
370 // --------------------------------------------------------------------------- |
370 // --------------------------------------------------------------------------- |
442 |
442 |
443 return icon; |
443 return icon; |
444 } |
444 } |
445 |
445 |
446 // --------------------------------------------------------------------------- |
446 // --------------------------------------------------------------------------- |
447 // CXDMPlugin::UpdateMskL() |
447 // CXDMPlugin::UpdateMSK() |
448 // --------------------------------------------------------------------------- |
448 // --------------------------------------------------------------------------- |
449 // |
449 // |
450 void CXDMPlugin::UpdateMskL() |
450 void CXDMPlugin::UpdateMSK() |
451 { |
451 { |
452 if ( !Cba() ) |
|
453 { |
|
454 return; |
|
455 } |
|
456 |
|
457 CEikCba* cba = static_cast< CEikCba* >( Cba()->ButtonGroup() ); |
452 CEikCba* cba = static_cast< CEikCba* >( Cba()->ButtonGroup() ); |
458 if(iCurrentContainer==iMainListContainer) |
453 if(iCurrentContainer==iMainListContainer) |
459 { |
454 { |
460 TBool showEdit = !(iMainListContainer->IsListEmpty()); |
455 TBool showEdit = !(iMainListContainer->IsListEmpty()); |
461 cba->SetCommandSetL(R_XDMUI_MAINVIEW_SOFTKEYS); |
456 cba->SetCommandSetL(R_XDMUI_MAINVIEW_SOFTKEYS); |