equal
deleted
inserted
replaced
48 #include <aknitemactionmenu.h> |
48 #include <aknitemactionmenu.h> |
49 #include <aknappui.h> |
49 #include <aknappui.h> |
50 |
50 |
51 #include <featdiscovery.h> |
51 #include <featdiscovery.h> |
52 |
52 |
53 const TInt KIntensity = 50; // 50% |
53 const TInt KIntensity = 100; // 100% |
54 |
54 |
55 // ============================ MEMBER FUNCTIONS =============================== |
55 // ============================ MEMBER FUNCTIONS =============================== |
56 |
56 |
57 // ----------------------------------------------------------------------------- |
57 // ----------------------------------------------------------------------------- |
58 // CHgScroller::ConstructL() |
58 // CHgScroller::ConstructL() |
104 |
104 |
105 CAknAppUi* appUi = static_cast<CAknAppUi*>(iEikonEnv->AppUi()); |
105 CAknAppUi* appUi = static_cast<CAknAppUi*>(iEikonEnv->AppUi()); |
106 if( appUi && appUi->IsSingleClickCompatible() ) |
106 if( appUi && appUi->IsSingleClickCompatible() ) |
107 { |
107 { |
108 iDetector = CAknLongTapDetector::NewL(this); |
108 iDetector = CAknLongTapDetector::NewL(this); |
109 iActionMenu = CAknItemActionMenu::RegisterCollectionL(*this); |
109 iActionMenu = CAknItemActionMenu::RegisterCollectionL( *this ); |
110 } |
110 } |
111 |
111 |
112 iDrawUtils->EnableMarquee(HasHighlight()); |
112 iDrawUtils->EnableMarquee(HasHighlight()); |
113 |
113 |
114 InitItemsL(); |
114 InitItemsL(); |
553 iLandscapeScrolling); |
553 iLandscapeScrolling); |
554 |
554 |
555 iScrollbar->SetViewPosition( iViewPosition - TPoint(iWidth/2, iHeight/2)); |
555 iScrollbar->SetViewPosition( iViewPosition - TPoint(iWidth/2, iHeight/2)); |
556 |
556 |
557 if(prevStatic != iScrollbar->IsStatic()) |
557 if(prevStatic != iScrollbar->IsStatic()) |
558 HandleScrollbarVisibilityChange(iScrollbar->IsStatic()); |
558 HandleScrollbarVisibilityChange( !iScrollbar->IsStatic() ); |
559 } |
559 } |
560 } |
560 } |
561 // ----------------------------------------------------------------------------- |
561 // ----------------------------------------------------------------------------- |
562 // CHgScroller::HandlePointerEventL() |
562 // CHgScroller::HandlePointerEventL() |
563 // ----------------------------------------------------------------------------- |
563 // ----------------------------------------------------------------------------- |
1027 { |
1027 { |
1028 TRAP_IGNORE( |
1028 TRAP_IGNORE( |
1029 iItems[selectedItem]->Time().FormatL( iPopupText1, KGanesMonthString ); |
1029 iItems[selectedItem]->Time().FormatL( iPopupText1, KGanesMonthString ); |
1030 iItems[selectedItem]->Time().FormatL( iPopupText2, KGanesYearString ); |
1030 iItems[selectedItem]->Time().FormatL( iPopupText2, KGanesYearString ); |
1031 ) |
1031 ) |
1032 // To display year correctly in arabic. |
1032 // To display month and year correctly in arabic. |
|
1033 AknTextUtils::LanguageSpecificNumberConversion( iPopupText1 ); |
1033 AknTextUtils::LanguageSpecificNumberConversion( iPopupText2 ); |
1034 AknTextUtils::LanguageSpecificNumberConversion( iPopupText2 ); |
1034 } |
1035 } |
1035 } |
1036 } |
1036 else if( iScrollBarType == EHgScrollerLetterStrip |
1037 else if( iScrollBarType == EHgScrollerLetterStrip |
1037 || iScrollBarType == EHgScrollerLetterStripLite ) |
1038 || iScrollBarType == EHgScrollerLetterStripLite ) |
1768 iCoeEnv->ScreenDevice()->ReleaseFont(iPopupFont); |
1769 iCoeEnv->ScreenDevice()->ReleaseFont(iPopupFont); |
1769 iPopupFont = NULL; |
1770 iPopupFont = NULL; |
1770 } |
1771 } |
1771 } |
1772 } |
1772 |
1773 |
|
1774 // --------------------------------------------------------------------------- |
|
1775 // CHgScroller::SetMenuProviderL() |
|
1776 // --------------------------------------------------------------------------- |
|
1777 // |
|
1778 EXPORT_C void CHgScroller::SetMenuProviderL( MObjectProvider* aMenuProvider ) |
|
1779 { |
|
1780 SetMopParent(aMenuProvider); |
|
1781 |
|
1782 if( iActionMenu ) |
|
1783 { |
|
1784 iActionMenu->RemoveCollection( *this ); |
|
1785 iActionMenu = NULL; |
|
1786 } |
|
1787 |
|
1788 CAknAppUi* appUi = static_cast<CAknAppUi*>(iEikonEnv->AppUi()); |
|
1789 if( appUi && appUi->IsSingleClickCompatible() ) |
|
1790 { |
|
1791 iActionMenu = CAknItemActionMenu::RegisterCollectionL( *this, this ); |
|
1792 } |
|
1793 } |
|
1794 |
|
1795 |
1773 // End of File |
1796 // End of File |