equal
deleted
inserted
replaced
28 #include <AknIconArray.h> |
28 #include <AknIconArray.h> |
29 #include <calencommands.hrh> // Calendar commands |
29 #include <calencommands.hrh> // Calendar commands |
30 #include <layoutmetadata.cdl.h> |
30 #include <layoutmetadata.cdl.h> |
31 #include <calentoolbar.h> |
31 #include <calentoolbar.h> |
32 #include <akntoolbar.h> |
32 #include <akntoolbar.h> |
|
33 #include <touchfeedback.h> |
33 |
34 |
34 // user includes |
35 // user includes |
35 #include "calendarui_debug.h" |
36 #include "calendarui_debug.h" |
36 #include "calencontainer.h" |
37 #include "calencontainer.h" |
37 #include "calencontainerlayoutmanager.h" |
38 #include "calencontainerlayoutmanager.h" |
515 // ?classname::?member_function |
516 // ?classname::?member_function |
516 // ?implementation_description |
517 // ?implementation_description |
517 // (other items were commented in a header). |
518 // (other items were commented in a header). |
518 // ---------------------------------------------------------------------------- |
519 // ---------------------------------------------------------------------------- |
519 // |
520 // |
520 CAknIconArray* CCalenContainer::CreateIconsL( const RArray<MCalenServices::TCalenIcons>& aIndexArray ) |
521 CAknIconArray* CCalenContainer::CreateIconsL( const RArray<MCalenServices::TCalenIcons>& aIndexArray, const TInt aViewId ) |
521 { |
522 { |
522 TRACE_ENTRY_POINT; |
523 TRACE_ENTRY_POINT; |
523 const TInt iconCount( aIndexArray.Count() ); |
524 const TInt iconCount( aIndexArray.Count() ); |
524 CAknIconArray* icons = new(ELeave) CAknIconArray( iconCount ); |
525 CAknIconArray* icons = new(ELeave) CAknIconArray( iconCount ); |
525 CleanupStack::PushL( icons ); |
526 CleanupStack::PushL( icons ); |
526 icons->SetReserveL( iconCount ); |
527 icons->SetReserveL( iconCount ); |
527 |
528 |
528 for( TInt i=0; i<iconCount; ++i ) |
529 for( TInt i=0; i<iconCount; ++i ) |
529 { |
530 { |
530 icons->AppendL( iServices.GetIconL( static_cast<MCalenServices::TCalenIcons>(aIndexArray[i] ) )); |
531 icons->AppendL( iServices.GetIconL( static_cast<MCalenServices::TCalenIcons>(aIndexArray[i] ), aViewId )); |
531 } |
532 } |
532 CleanupStack::Pop( icons ); |
533 CleanupStack::Pop( icons ); |
533 TRACE_EXIT_POINT; |
534 TRACE_EXIT_POINT; |
534 return icons; |
535 return icons; |
535 } |
536 } |
536 |
537 |
874 toolbar->Toolbar().SetItemDimmed( ECalenGotoToday, hideItem, ETrue ); |
875 toolbar->Toolbar().SetItemDimmed( ECalenGotoToday, hideItem, ETrue ); |
875 } |
876 } |
876 TRACE_EXIT_POINT; |
877 TRACE_EXIT_POINT; |
877 } |
878 } |
878 |
879 |
|
880 |
|
881 // ---------------------------------------------------------------------------- |
|
882 // CCalenContainer::GenerateTactileFeedback() |
|
883 // Generates tactile feedback on user touch action |
|
884 // ---------------------------------------------------------------------------- |
|
885 void CCalenContainer::GenerateTactileFeedback() |
|
886 { |
|
887 TRACE_ENTRY_POINT; |
|
888 |
|
889 if(!iFeedBack) |
|
890 { |
|
891 iFeedBack = MTouchFeedback::Instance(); |
|
892 } |
|
893 |
|
894 if ( iFeedBack && iFeedBack->TouchFeedbackSupported() ) |
|
895 { |
|
896 iFeedBack->InstantFeedback( ETouchFeedbackBasic ); |
|
897 } |
|
898 |
|
899 TRACE_EXIT_POINT; |
|
900 } |
879 // End of File |
901 // End of File |