webengine/osswebengine/WebKit/s60/formcontrols/PopupSelectListBox.h
changeset 0 dd21522fd290
child 37 cb62a4f66ebe
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 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 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:  PopupSelectLIstBox.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef POPUPSELECTLISTBOX_H
       
    20 #define POPUPSELECTLISTBOX_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <E32DEF.H>
       
    24 #include <eiktxlbx.h>
       
    25 #include <eikfrlb.h> //CFormattedCellListBox
       
    26 
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 
       
    33 class TBrCtlSelectOptionData;
       
    34 class WebView;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  PopupSelectListBox extends CEikTextListBox
       
    40 */
       
    41 //class PopupSelectListBox : public CEikFormattedCellListBox
       
    42 class PopupSelectListBox : public CEikTextListBox
       
    43     {
       
    44  
       
    45 
       
    46     public: // Constructors and destructor
       
    47     
       
    48         /**
       
    49         * Overrides CEikListBox ConstructL
       
    50         * @return 
       
    51         */
       
    52         void ConstructL(WebView* aParent, TBool aMultipleSelection, const CFont* aFont);
       
    53         /**
       
    54         * UpdateContentL
       
    55         * Updates the list
       
    56         * @param aOptions - list of TBrCtlSelectOptionData items
       
    57         * @return 
       
    58         */
       
    59         void UpdateContentL(const RPointerArray<TBrCtlSelectOptionData>& aOptions);
       
    60                 
       
    61         /**
       
    62         * Overrides CEikListBox SetFocus
       
    63         * @return 
       
    64         */
       
    65         void SetFocus(TBool aFocus);
       
    66 
       
    67         /**
       
    68         * Overrides CEikListBox SetFocus
       
    69         * @return 
       
    70         */
       
    71         TBool IsFocused() {return m_focused;}
       
    72         
       
    73         void SetBackground(TRgb aColor);
       
    74 
       
    75         /*
       
    76          * Destructor.
       
    77          */
       
    78         virtual ~PopupSelectListBox();
       
    79         
       
    80         TCoeInputCapabilities InputCapabilities() const;
       
    81 
       
    82     private:        // New functions
       
    83 
       
    84 
       
    85     private:        // Data
       
    86 
       
    87         //CArrayPtr<TBrCtlSelectOptionData>* m_options; // not owned
       
    88         CDesC16ArrayFlat* m_itemArray; // Array is owned but descriptors are NOT OWNED
       
    89         bool m_multipleSelection;
       
    90         bool m_focused;
       
    91         WebView* m_parent;
       
    92     };
       
    93 
       
    94 #endif // POPUPSELECTLISTBOX_H
       
    95 
       
    96 // End of File