textinput/peninputcommonctrls/inc/peninputdropdownlist/peninputlistonerowwithouticon.h
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  One rows list with icon for drop-down list objects
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CLISTONEROWWITHOUTICON_H
       
    20 #define C_CLISTONEROWWITHOUTICON_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <w32std.h>
       
    25 
       
    26 #include "peninputlist.h"
       
    27 #include "peninputcandidate.h"
       
    28 
       
    29 // class forward decalaration
       
    30 class MFepCtrlDropdownListContext;
       
    31 
       
    32 /**
       
    33  *  One rows list with icon for drop-down list
       
    34  *
       
    35  *  One rows list with icon for drop-down list
       
    36  *
       
    37  *  @lib FepCtrlDropdownList.lib
       
    38  *  @since S60 v3.2
       
    39  */  
       
    40 NONSHARABLE_CLASS(CListOneRowWithoutIcon) : public CList
       
    41     {
       
    42   
       
    43 public:  // Methods
       
    44 
       
    45     /**
       
    46      * Create a object of CListOneRowWithoutIcon, static method
       
    47      *
       
    48      * @since S60 v3.2
       
    49      * @param iOwner The drop down list
       
    50      * @return The CListOneRowWithoutIcon pointer.
       
    51      */
       
    52     static CListOneRowWithoutIcon* NewL(CListManager* aManager, 
       
    53                                         MFepCtrlDropdownListContext* iOwner);
       
    54 
       
    55     /**
       
    56      * Destructor
       
    57      *
       
    58      * @since S60 v3.2
       
    59      */    
       
    60     virtual ~CListOneRowWithoutIcon();
       
    61 
       
    62 // from base class CList
       
    63 
       
    64     /**
       
    65      * Draw the list
       
    66      *
       
    67      * @since S60 v3.2
       
    68      */  
       
    69     virtual void Draw();
       
    70 
       
    71     /**
       
    72      * Update the list, including re-calculate the rect of candidates.
       
    73      *
       
    74      * @since S60 v3.2
       
    75      * @param aRecalculate Re-calculate or not calculate the rect of candidates, the default is re-calculate
       
    76      */
       
    77     virtual void UpdateListL(TBool aDrawFlag = ETrue, TBool aRecalculate = ETrue);
       
    78 
       
    79     /**
       
    80      * Deal with the pointer down event.
       
    81      *
       
    82      * @since S60 v3.2
       
    83      * @param aPoint The point of the mouse
       
    84      * @return None.
       
    85      */ 
       
    86     virtual void HandlePointerDownL(const TPoint& aPoint);
       
    87 
       
    88     /**
       
    89      * Deal with the pointer up event.
       
    90      *
       
    91      * @since S60 v3.2
       
    92      * @param aPoint The point of the mouse
       
    93      * @return None.
       
    94      */  
       
    95     virtual void HandlePointerUpL(const TPoint& aPoint);
       
    96 
       
    97     /**
       
    98      * Deal with the pointer drag event.
       
    99      *
       
   100      * @since S60 v3.2
       
   101      * @param aPoint The point of the mouse
       
   102      * @return None.
       
   103      */ 
       
   104     virtual void HandlePointerDragL(const TPoint& aPoint);
       
   105 
       
   106                    
       
   107 protected:  // Methods
       
   108 
       
   109     /**
       
   110      * Constructor.
       
   111      *
       
   112      * @param aManager The list manager
       
   113      * @param aOwner The context of the drop down list           
       
   114      * @since S60 v3.2
       
   115      */  
       
   116     CListOneRowWithoutIcon(CListManager* aManager, MFepCtrlDropdownListContext* aOwner);
       
   117                    
       
   118 private: //Methods
       
   119 
       
   120     /**
       
   121      * Calculate the position of current visible candidates.
       
   122      *
       
   123      * @since S60 v3.2
       
   124      * @return the last candidate visible.
       
   125      */  
       
   126     virtual TInt CalculatePositionsL();
       
   127 
       
   128     /**
       
   129      * Calculate all kinds of rectangles of list.
       
   130      *
       
   131      * @since S60 v3.2
       
   132      */  
       
   133     virtual void CalculateAreas();
       
   134 
       
   135     };
       
   136 
       
   137 #endif //C_CLISTONEROWWITHOUTICON_H
       
   138 
       
   139 // End Of File