fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/AknFepUIAvkonCtrlJapanesePredictiveCellListBoxData.h
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     1 /*
       
     2 * Copyright (c) 2003 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:            Predictive Candidate list
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #ifndef CAKNFEPUICTRLJAPANESEPREDICTIVECELLLISTBOXDATA_H
       
    30 #define CAKNFEPUICTRLJAPANESEPREDICTIVECELLLISTBOXDATA_H
       
    31 
       
    32 // INCLUDES
       
    33 
       
    34 // CONSTANTS
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  CAknFepUICtrlJapanesePredictiveCellListBoxData class.
       
    42 *
       
    43 *  @lib AknFep.lib
       
    44 *  @since 2.6
       
    45 */
       
    46 NONSHARABLE_CLASS(CAknFepUICtrlJapanesePredictiveCellListBoxData)
       
    47         : public CFormattedCellListBoxData
       
    48     {
       
    49     public:  // Constructors and destructor
       
    50         /**
       
    51         * Two-phased constructor.
       
    52         */
       
    53         static CAknFepUICtrlJapanesePredictiveCellListBoxData* NewL();
       
    54 
       
    55     public: // New functions
       
    56         /**
       
    57         * Set a starting x-point and ending to highlight
       
    58         * @since 2.6
       
    59         * @param aHighlightStartXPos    a starting x-point
       
    60         * @param aHighlightEndXPos      a ending x-point
       
    61         */
       
    62         void SetHighlightArea(TInt aHighlightStartXPos,
       
    63                               TInt aHighlightEndXPos);
       
    64 
       
    65     public: // Functions from CFormattedCellListBoxData
       
    66 
       
    67         /**
       
    68         * From CFormattedCellListBoxData Draw() is the most important method in
       
    69         * CAknFepUICtrlJapanesePredictiveCellListBoxData.
       
    70         * This is the only method that needs to be implemented in this class and
       
    71         * it draws the whole listi tem.
       
    72         * @since 0.0
       
    73         * @param aProperties Properties attached to the list item
       
    74         * @param aGc Graphics context used for drawing the list item
       
    75         * @param aText a text string describing the list item cells
       
    76         * @param aRect the area of the screen for the whole list item
       
    77         * @param aHighlight whether the list item is selected
       
    78         * @param aColors the colours used for drawing the item
       
    79         * @return None.
       
    80         */
       
    81         virtual void Draw(TListItemProperties aProperties,
       
    82                           CWindowGc& aGc,
       
    83                           const TDesC* aText,
       
    84                           const TRect& aRect,
       
    85                           TBool aHighlight,
       
    86                           const TColors& aColors) const;
       
    87 
       
    88         /**
       
    89         * From CFormattedCellListBoxData
       
    90         * Show hightlight area in listbox
       
    91         * @since 2.6
       
    92         * @param aGc        Gc
       
    93         * @param aItemRect  rect to highlight
       
    94         * @param aHighlight ETrue is highlight. EFalse is non-highlight.
       
    95         */
       
    96         void DrawDefaultHighlight(CWindowGc &aGc,
       
    97                                   const TRect &aItemRect,
       
    98                                   TBool aHighlight) const;
       
    99 
       
   100     private:    // Data
       
   101         TInt iHighlightStartXPos;
       
   102         TInt iHighlightEndXPos;
       
   103     };
       
   104 
       
   105 #endif  // CAKNFEPUICTRLJAPANESEPREDICTIVECELLLISTBOXDATA_H
       
   106 
       
   107 // End of File