fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/AknFepUIAvkonCtrlJapaneseCandidateListbox.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:            Candidate list
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #ifndef CAKNFEPUICTRLJAPANESECANDIDATELISTBOX_H
       
    30 #define CAKNFEPUICTRLJAPANESECANDIDATELISTBOX_H
       
    31 
       
    32 // INCLUDES
       
    33 
       
    34 // CONSTANTS
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  CAknFepUICtrlJapaneseCandidateListbox class.
       
    42 *
       
    43 *  @lib AknFep.lib
       
    44 *  @since 2.6
       
    45 */
       
    46 NONSHARABLE_CLASS(CAknFepUICtrlJapaneseCandidateListbox)
       
    47         : public CAknSinglePopupMenuStyleListBox
       
    48     {
       
    49     public: // New functions
       
    50         /**
       
    51         * Set max digit number for listbox
       
    52         * @since 2.6
       
    53         * @param aMaximumColumns    max digit number
       
    54         */
       
    55         void SetMaximumColumns(const TInt aMaximumColumns);
       
    56 
       
    57         /**
       
    58         * Set max visible rows for listbox
       
    59         * @since 3.0
       
    60         * @param aMaximumRows    max visible rows
       
    61         */
       
    62         void SetMaximumRows(const TInt aMaximumRows);
       
    63 
       
    64         /**
       
    65         * Return max visible rows for listbox
       
    66         * @since 3.0
       
    67         */
       
    68         inline TInt MaximumRows();
       
    69 
       
    70         /**
       
    71          * Handling of pointer event within the @c CEikListBox.
       
    72          * Used for e.g. selecting an item from the list box.
       
    73          *
       
    74          * @since 3.2
       
    75          * @param aPointerEvent Details of the pointer event that is being handled.
       
    76          */
       
    77         void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    78 
       
    79     public: // Functions from CAknSinglePopupMenuStyleListBox
       
    80         virtual void SizeChanged();
       
    81 
       
    82     public: // Functions from CEikFormattedCellListBox
       
    83         virtual CListBoxView* MakeViewClassInstanceL();
       
    84 
       
    85     protected:  // Functions from CAknSinglePopupMenuStyleListBox
       
    86         virtual void CreateItemDrawerL();
       
    87 
       
    88     protected: // Functions from CEikListBox
       
    89         /**
       
    90          * from CEikListBox
       
    91          * Used for scrolling through the items in the list box.
       
    92          *
       
    93          * @param aScrollBar Scroll bar for the list box.
       
    94          * @param aEventType Type of the event that occured.
       
    95          */
       
    96         virtual void HandleScrollEventL(CEikScrollBar* aScrollBar,
       
    97                                                  TEikScrollEvent aEventType);
       
    98 
       
    99     private:    // Data
       
   100         TInt iMaximumColumns;
       
   101         TInt iMaximumRows;
       
   102     };
       
   103 
       
   104 TInt CAknFepUICtrlJapaneseCandidateListbox::MaximumRows()
       
   105     {
       
   106     return iMaximumRows;
       
   107     }
       
   108 
       
   109 #endif  // CAKNFEPUICTRLJAPANESECANDIDATELISTBOX_H
       
   110 
       
   111 // End of File