equal
deleted
inserted
replaced
59 #include <Pbk2IconId.hrh> |
59 #include <Pbk2IconId.hrh> |
60 #include "Pbk2ContactUiControlProxy.h" |
60 #include "Pbk2ContactUiControlProxy.h" |
61 #include <MPbk2UiControlCmdItem.h> |
61 #include <MPbk2UiControlCmdItem.h> |
62 #include <pbk2mapcommands.hrh> |
62 #include <pbk2mapcommands.hrh> |
63 #include "Pbk2InternalCommands.hrh" |
63 #include "Pbk2InternalCommands.hrh" |
|
64 #include "CPbk2ContactViewListBox.h" |
64 |
65 |
65 #include "CVPbkContactManager.h" |
66 #include "CVPbkContactManager.h" |
66 #include "MVPbkContactStoreList.h" |
67 #include "MVPbkContactStoreList.h" |
67 #include "VPbkContactStoreUris.h" |
68 #include "VPbkContactStoreUris.h" |
68 #include "TVPbkContactStoreUriPtr.h" |
69 #include "TVPbkContactStoreUriPtr.h" |
417 if ( EPbk2CmdOpenCca == aCommandId ) |
418 if ( EPbk2CmdOpenCca == aCommandId ) |
418 { |
419 { |
419 iControl->SetOpeningCca( ETrue ); |
420 iControl->SetOpeningCca( ETrue ); |
420 } |
421 } |
421 |
422 |
|
423 // Set focus, keep current focus on the area of the client screen |
|
424 // when scoll to the bottom of Names list view. |
|
425 CPbk2ContactViewListBox* listbox = static_cast<CPbk2ContactViewListBox*>(iControl->ComponentControl(0)); |
|
426 if ( EPbk2CmdCreateNew == aCommandId && |
|
427 listbox->CurrentItemIndex() < listbox->TopItemIndex() && |
|
428 listbox->BottomItemIndex() == listbox->Model()->NumberOfItems()-1 ) |
|
429 { |
|
430 listbox->SetCurrentItemIndex( listbox->TopItemIndex() ); |
|
431 } |
|
432 |
422 // No command handling in this class, forward to Commands |
433 // No command handling in this class, forward to Commands |
423 if (!iCommandHandler->HandleCommandL( aCommandId, *iControlProxy, &iView )) |
434 if (!iCommandHandler->HandleCommandL( aCommandId, *iControlProxy, &iView )) |
424 { |
435 { |
425 iControl->ProcessCommandL(aCommandId); |
436 iControl->ProcessCommandL(aCommandId); |
426 // Command was not handled in Pbk2Commands, forward it to AppUi |
437 // Command was not handled in Pbk2Commands, forward it to AppUi |
1375 // Without the below lines the Toolbar is drawn |
1386 // Without the below lines the Toolbar is drawn |
1376 // above the Find box |
1387 // above the Find box |
1377 iContainer->SetRect(iView.ClientRect()); |
1388 iContainer->SetRect(iView.ClientRect()); |
1378 iControl->DrawNow(); |
1389 iControl->DrawNow(); |
1379 } |
1390 } |
|
1391 if ( EPbk2CmdCreateNew == iCurrentCommandId ) |
|
1392 { |
|
1393 iControl->DrawDeferred(); |
|
1394 } |
1380 } |
1395 } |
1381 iCurrentCommandId = KErrNotFound; |
1396 iCurrentCommandId = KErrNotFound; |
1382 UpdateCbasL(); |
1397 UpdateCbasL(); |
1383 } |
1398 } |
1384 |
1399 |