uifw/EikStd/coctlsrc/EIKLBX.CPP
branchRCL_3
changeset 4 8ca85d2f0db7
parent 0 2f259fa3e83a
child 10 9f56a4e1b8ab
equal deleted inserted replaced
0:2f259fa3e83a 4:8ca85d2f0db7
    71 
    71 
    72 #include <touchfeedback.h>
    72 #include <touchfeedback.h>
    73 #include <akncollection.h>
    73 #include <akncollection.h>
    74 #include <aknitemactionmenu.h>
    74 #include <aknitemactionmenu.h>
    75 #include <aknlongtapdetector.h>
    75 #include <aknlongtapdetector.h>
    76 #include <aknpriv.hrh>
    76 #include <AknPriv.hrh>
    77 #include "akntrace.h"
    77 #include "akntrace.h"
    78 
    78 
    79 // timeout for long keypress used in markable lists
    79 // timeout for long keypress used in markable lists
    80 const TInt KLongPressInterval = 600000; // 0,6 seconds
    80 const TInt KLongPressInterval = 600000; // 0,6 seconds
    81 const TInt KEikListBoxPointerRepeatInterval = 100000;  // in micro conds (= 0.1 secod)
    81 const TInt KEikListBoxPointerRepeatInterval = 100000;  // in micro conds (= 0.1 secod)
  1077 //
  1077 //
  1078 void CListBoxExt::LongTapPointerEventL( const TPointerEvent& aPointerEvent )
  1078 void CListBoxExt::LongTapPointerEventL( const TPointerEvent& aPointerEvent )
  1079     {
  1079     {
  1080     if ( iSingleClickEnabled && iLongTapDetector && iItemActionMenu  )
  1080     if ( iSingleClickEnabled && iLongTapDetector && iItemActionMenu  )
  1081         {
  1081         {
  1082         // Send event on down only if no marked items and item specific items
  1082         // Send event on down only if item specific items were found
  1083         // were found
       
  1084         if ( aPointerEvent.iType != TPointerEvent::EButton1Down
  1083         if ( aPointerEvent.iType != TPointerEvent::EButton1Down
  1085                 || ( !MarkedItems() && iItemActionMenu->InitMenuL() ) )
  1084                 || iItemActionMenu->InitMenuL() )
  1086             {
  1085             {
  1087             iLongTapDetector->PointerEventL ( aPointerEvent );
  1086             iLongTapDetector->PointerEventL ( aPointerEvent );
  1088             }
  1087             }
  1089         }
  1088         }
  1090     }
  1089     }
  1808         {
  1807         {
  1809         iListBoxExt->iItemsInSingleLine = aItems;
  1808         iListBoxExt->iItemsInSingleLine = aItems;
  1810         }
  1809         }
  1811     }
  1810     }
  1812 
  1811 
       
  1812 
       
  1813 // -----------------------------------------------------------------------------
       
  1814 // CEikListBox::ItemsInSingleLine
       
  1815 // -----------------------------------------------------------------------------
       
  1816 //
       
  1817 EXPORT_C TInt CEikListBox::ItemsInSingleLine() const
       
  1818     {
       
  1819     if ( iListBoxExt )
       
  1820         {
       
  1821         return iListBoxExt->iItemsInSingleLine;
       
  1822         }
       
  1823     
       
  1824     return 1;
       
  1825     }
       
  1826 
       
  1827     
  1813 EXPORT_C void CEikListBox::UpdateViewColors()
  1828 EXPORT_C void CEikListBox::UpdateViewColors()
  1814     {
  1829     {
  1815     _AKNTRACE_FUNC_ENTER;
  1830     _AKNTRACE_FUNC_ENTER;
  1816     if(!iView)
  1831     if(!iView)
  1817         {
  1832         {