taskswitcher/taskswitcherui/taskswitcherapp/inc/tsfastswapgrid.h
branchRCL_3
changeset 34 d05a55b217df
parent 30 b8fae6b8a148
--- a/taskswitcher/taskswitcherui/taskswitcherapp/inc/tsfastswapgrid.h	Wed Mar 31 21:17:19 2010 +0300
+++ b/taskswitcher/taskswitcherui/taskswitcherapp/inc/tsfastswapgrid.h	Wed Apr 14 15:47:59 2010 +0300
@@ -175,6 +175,21 @@
      * Returns visible view. Items outside of visible rectangle are not drawn.
      */
     TRect VisibleViewRect();
+    
+    /**
+     * Updates layout data for item drawer. Should be called when
+     * layout maybe out of date
+     */
+    void UpdateItemDrawerLayoutDataL();
+    
+    /**
+     * Enables/disables avkon event handling.
+     * 
+     * @param  aEnable  if set to ETrue, pointer events will be forwarded
+     *                  to CAknGrid base class if necessary. If set to EFalse,
+     *                  no pointer events will be forwarded.
+     */
+    void EnableAknEventHandling( TBool aEnable );
 
 private: // From CAknGrid
     virtual void CreateItemDrawerL();
@@ -211,6 +226,9 @@
     
     // Visible view rectangle (horizontal scrolling support)
     TRect iVisibleViewRect;
+    
+    // Flag controlling input handling by grid
+    TBool iAknEventHandlingEnabled;
     };
 
 
@@ -223,8 +241,7 @@
 
 public: // Constructor and destructor
     CTsGridItemDrawer( CTsFastSwapGrid* aGrid,
-                       CFormattedCellListBoxData* aData,
-                       TRect aScreenRect );
+                       CFormattedCellListBoxData* aData );
     ~CTsGridItemDrawer();
 
 public: // New functions
@@ -292,6 +309,14 @@
      * @param aStrokeSize     size of the stroke rectangle
      */
     void SetStrokeOffset( TPoint aStrokeOffset, TSize aStrokeSize );
+    
+    /**
+     * Set screen rectangle, used by the item drawer to determine
+     * drawn area.
+     * 
+     * @param  aRect  screen rectangle
+     */
+    void SetScreenRect( TRect aRect );
 
 private: // From CFormattedCellListBoxItemDrawer
     void DrawActualItem( TInt aItemIndex, const TRect& aActualItemRect,