classicui_pub/grids_api/tsrc/src/stifgridview.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Test grids_api
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /*
       
    20  * Include files
       
    21  */
       
    22 #include "stifgridview.h"
       
    23 // -----------------------------------------------------------------------------
       
    24 // CStifGridView::DoGridModel
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 CAknGridM* CStifGridView::DoGridModel() const
       
    28     {
       
    29     return GridModel();
       
    30     }
       
    31 
       
    32 // -----------------------------------------------------------------------------
       
    33 // CStifGridView::DoDoMoveL
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 void CStifGridView::DoDoMoveL(TCursorMovement aCursorMovement, TSelectionMode aSelectionMode)
       
    37     {
       
    38     DoMoveL( aCursorMovement, aSelectionMode );
       
    39     }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // CStifGridView::DoDrawColumnRange
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 void CStifGridView::DoDrawColumnRange(TInt aStartColIndex, TInt aEndColIndex) const
       
    46     {
       
    47     DrawColumnRange( aStartColIndex, aEndColIndex );
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CStifGridView::DoClearUnusedItemSpace
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 void CStifGridView::DoClearUnusedItemSpace(TInt aStartItemIndex, TInt aEndItemIndex) const
       
    55     {
       
    56     ClearUnusedItemSpace( aStartItemIndex, aEndItemIndex );
       
    57     }
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // CStifGridView::DoUpdateHScrollOffsetBasedOnTopItemIndex
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 void CStifGridView::DoUpdateHScrollOffsetBasedOnTopItemIndex()
       
    64     {
       
    65     UpdateHScrollOffsetBasedOnTopItemIndex();
       
    66     }
       
    67 
       
    68 // -----------------------------------------------------------------------------
       
    69 // CStifGridView::DoItemExists
       
    70 // -----------------------------------------------------------------------------
       
    71 //
       
    72 TBool CStifGridView::DoItemExists(TInt aListBoxIndex) const
       
    73     {
       
    74     TBool flag = ItemExists( aListBoxIndex );
       
    75     return flag;
       
    76     }
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // CStifGridView::GetItemHeight
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 TInt CStifGridView::GetItemHeight()
       
    83     {
       
    84     return iItemHeight;
       
    85     }
       
    86 
       
    87 // -----------------------------------------------------------------------------
       
    88 // CStifGridView::GetDataWidth
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 TInt CStifGridView::GetDataWidth()
       
    92     {
       
    93     return iDataWidth;
       
    94     }
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // CStifGridView::GetiHScrollOffset
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 TInt CStifGridView::GetiHScrollOffset()
       
   101     {
       
   102     return iHScrollOffset;
       
   103     }