browserutilities/browserdialogsprovider/Inc/BrowserSelectElementItemDrawer.h
changeset 0 dd21522fd290
child 25 0ed94ceaa377
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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:  Listbox for select element.
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CBROWSERSELECTELEMENTITEMDRAWER_H
       
    20 #define CBROWSERSELECTELEMENTITEMDRAWER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "BrCtlDialogsProvider.h"
       
    24 
       
    25 #include <aknlists.h>
       
    26 #include <avkon.mbg>
       
    27 
       
    28 /**
       
    29 *  Itemdrawer for the WML selection list.
       
    30 */
       
    31 class CBrowserSelectElementItemDrawer : public CFormattedCellListBoxItemDrawer
       
    32     {
       
    33     public: // Constructors and destructor
       
    34         
       
    35         /**
       
    36         * C++ default constructor.
       
    37         * @param aTextListBoxModel The model.
       
    38         * @param aFont The font.
       
    39         * @param aFormattedCellData The data.
       
    40         * @param The select element.
       
    41         */
       
    42         CBrowserSelectElementItemDrawer(
       
    43             MTextListBoxModel& aTextListBoxModel,
       
    44             const CFont& aFont,
       
    45             CFormattedCellListBoxData& aFormattedCellData,
       
    46             TBrCtlSelectOptionType aBrCtlSelectOptionType,
       
    47             const CArrayFix<TBrCtlSelectOptionData>& aOptions );
       
    48 
       
    49     public: // New functions
       
    50 
       
    51         /**
       
    52         * Fills the iconarray depending on select element's data.
       
    53         */
       
    54         void LoadIconsL();
       
    55 
       
    56     public: // From CFormattedCellListBoxItemDrawer
       
    57 
       
    58         /**
       
    59         * @see CFormattedCellListBoxItemDrawer.
       
    60         */
       
    61         void DrawItem( TInt aItemIndex,
       
    62                        TPoint aItemRectPos,
       
    63                        TBool aItemIsSelected,
       
    64                        TBool aItemIsCurrent,
       
    65                        TBool aViewIsEmphasized,
       
    66                        TBool aViewIsDimmed ) const;
       
    67 
       
    68     private:    // Data
       
    69 
       
    70         const CArrayFix<TBrCtlSelectOptionData>& iOptions;
       
    71 
       
    72         TBrCtlSelectOptionType iBrCtlSelectOptionType;
       
    73     };
       
    74 
       
    75 #endif
       
    76 // End of file