equal
deleted
inserted
replaced
19 |
19 |
20 #include <AknIconArray.h> |
20 #include <AknIconArray.h> |
21 #include <aknlists.h> |
21 #include <aknlists.h> |
22 #include <AknsUtils.h> |
22 #include <AknsUtils.h> |
23 #include <avkon.mbg> |
23 #include <avkon.mbg> |
|
24 #include <aknbutton.h> |
|
25 #include <akntoolbar.h> |
24 #include <calalarm.h> |
26 #include <calalarm.h> |
25 #include <calentry.h> |
27 #include <calentry.h> |
26 #include <calinstance.h> |
28 #include <calinstance.h> |
27 #include <data_caging_path_literals.hrh> |
29 #include <data_caging_path_literals.hrh> |
28 #include <eikclbd.h> |
30 #include <eikclbd.h> |
942 iListBox->SetSelectionIndexesL( newArray ); |
944 iListBox->SetSelectionIndexesL( newArray ); |
943 |
945 |
944 // set marked todo items info |
946 // set marked todo items info |
945 static_cast<CCalenTodoView*>( iView )->SetMarkedToDoItems(newArray); |
947 static_cast<CCalenTodoView*>( iView )->SetMarkedToDoItems(newArray); |
946 |
948 |
|
949 MCalenToolbar* toolbarImpl = iServices.ToolbarOrNull(); |
|
950 if( MarkedCount() ) |
|
951 { |
|
952 if(toolbarImpl) |
|
953 { |
|
954 CAknToolbar& toolbar = toolbarImpl->Toolbar(); |
|
955 |
|
956 // dim clear and clear all toolbar buttons |
|
957 toolbar.SetItemDimmed(ECalenNewMeeting,ETrue,ETrue); |
|
958 } |
|
959 |
|
960 } |
|
961 else |
|
962 { |
|
963 if(toolbarImpl) |
|
964 { |
|
965 CAknToolbar& toolbar = toolbarImpl->Toolbar(); |
|
966 |
|
967 // dim clear and clear all toolbar buttons |
|
968 toolbar.SetItemDimmed(ECalenNewMeeting,EFalse,ETrue); |
|
969 } |
|
970 } |
|
971 |
947 CleanupStack::Pop( newArray ); |
972 CleanupStack::Pop( newArray ); |
948 |
973 |
949 TRACE_EXIT_POINT; |
974 TRACE_EXIT_POINT; |
950 } |
975 } |
951 |
976 |
980 iListBox->ClearSelection(); |
1005 iListBox->ClearSelection(); |
981 |
1006 |
982 // when all the todo items are unmarked,clear all marked todo items info from View |
1007 // when all the todo items are unmarked,clear all marked todo items info from View |
983 static_cast<CCalenTodoView*>( iView )->ClearMarkedToDoItems(); |
1008 static_cast<CCalenTodoView*>( iView )->ClearMarkedToDoItems(); |
984 } |
1009 } |
|
1010 |
|
1011 MCalenToolbar* toolbarImpl = iServices.ToolbarOrNull(); |
|
1012 if( MarkedCount() ) |
|
1013 { |
|
1014 if(toolbarImpl) |
|
1015 { |
|
1016 CAknToolbar& toolbar = toolbarImpl->Toolbar(); |
|
1017 |
|
1018 // dim clear and clear all toolbar buttons |
|
1019 toolbar.SetItemDimmed(ECalenNewMeeting,ETrue,ETrue); |
|
1020 } |
|
1021 |
|
1022 } |
|
1023 else |
|
1024 { |
|
1025 if(toolbarImpl) |
|
1026 { |
|
1027 CAknToolbar& toolbar = toolbarImpl->Toolbar(); |
|
1028 |
|
1029 // dim clear and clear all toolbar buttons |
|
1030 toolbar.SetItemDimmed(ECalenNewMeeting,EFalse,ETrue); |
|
1031 } |
|
1032 } |
985 |
1033 |
986 TRACE_EXIT_POINT; |
1034 TRACE_EXIT_POINT; |
987 } |
1035 } |
988 |
1036 |
989 // ---------------------------------------------------------------------------- |
1037 // ---------------------------------------------------------------------------- |