uifw/ganes/src/HgScroller.cpp
branchRCL_3
changeset 8 71dd06cfe933
parent 7 08e69e956a8c
child 9 0aa5fbdfbc30
--- a/uifw/ganes/src/HgScroller.cpp	Wed Mar 31 21:59:52 2010 +0300
+++ b/uifw/ganes/src/HgScroller.cpp	Wed Apr 14 16:14:00 2010 +0300
@@ -50,7 +50,7 @@
 
 #include <featdiscovery.h>
 
-const TInt KIntensity = 50; // 50%
+const TInt KIntensity = 100; // 100%
 
 // ============================ MEMBER FUNCTIONS ===============================
 
@@ -106,7 +106,7 @@
     if( appUi && appUi->IsSingleClickCompatible() )
         {
         iDetector = CAknLongTapDetector::NewL(this);
-        iActionMenu = CAknItemActionMenu::RegisterCollectionL(*this);
+        iActionMenu = CAknItemActionMenu::RegisterCollectionL( *this );
         }
 
     iDrawUtils->EnableMarquee(HasHighlight());
@@ -555,7 +555,7 @@
         iScrollbar->SetViewPosition( iViewPosition - TPoint(iWidth/2, iHeight/2));
         
         if(prevStatic != iScrollbar->IsStatic())
-            HandleScrollbarVisibilityChange(iScrollbar->IsStatic());
+            HandleScrollbarVisibilityChange( !iScrollbar->IsStatic() );
         }
     }
 // -----------------------------------------------------------------------------
@@ -1029,7 +1029,8 @@
                     iItems[selectedItem]->Time().FormatL( iPopupText1, KGanesMonthString );
                     iItems[selectedItem]->Time().FormatL( iPopupText2, KGanesYearString );
                 )
-            // To display year correctly in arabic.
+            // To display month and year correctly in arabic.
+            AknTextUtils::LanguageSpecificNumberConversion( iPopupText1 );
             AknTextUtils::LanguageSpecificNumberConversion( iPopupText2 );
             }
         }
@@ -1770,4 +1771,26 @@
         }
     }
 
+// ---------------------------------------------------------------------------
+// CHgScroller::SetMenuProviderL()
+// ---------------------------------------------------------------------------
+//     
+EXPORT_C void CHgScroller::SetMenuProviderL( MObjectProvider* aMenuProvider )
+    {
+    SetMopParent(aMenuProvider);
+    
+    if( iActionMenu )
+        {
+        iActionMenu->RemoveCollection( *this );
+        iActionMenu = NULL;
+        }
+    
+    CAknAppUi* appUi = static_cast<CAknAppUi*>(iEikonEnv->AppUi());
+    if( appUi && appUi->IsSingleClickCompatible() )
+        {
+        iActionMenu = CAknItemActionMenu::RegisterCollectionL( *this, this );
+        }
+    }
+
+
 // End of File