textinput/peninputcommonctrlsjp/inc/peninputjapanesecandidatelistbox.h
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2009 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 ListBox
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CPENINPUTJAPANESECANDIDATELISTBOX_H
       
    19 #define C_CPENINPUTJAPANESECANDIDATELISTBOX_H
       
    20 
       
    21 #include <aknlists.h>   // CAknSinglePopupMenuStyleListBox
       
    22 
       
    23 class CPeninputJapaneseCandidateListBox: public CAknSinglePopupMenuStyleListBox
       
    24     {
       
    25 public: // New functions
       
    26     /**
       
    27     * Set max digit number for listbox
       
    28     * @since 2.6
       
    29     * @param aMaximumColumns    max digit number
       
    30     */
       
    31     void SetMaximumColumns(const TInt aMaximumColumns);
       
    32 
       
    33     /**
       
    34     * Set max visible rows for listbox
       
    35     * @since 3.0
       
    36     * @param aMaximumRows    max visible rows
       
    37     */
       
    38     void SetMaximumRows(const TInt aMaximumRows);
       
    39 
       
    40     /**
       
    41      * Handling of pointer event within the @c CEikListBox. 
       
    42      * Used for e.g. selecting an item from the list box.
       
    43      *
       
    44      * @param aPointerEvent Details of the pointer event that is being handled.
       
    45      */
       
    46     void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    47 
       
    48 protected:
       
    49     /**
       
    50      * from CEikListBox
       
    51      * Used for scrolling through the items in the list box. 
       
    52      *
       
    53      * @param aScrollBar Scroll bar for the list box.
       
    54      * @param aEventType Type of the event that occured.
       
    55      */
       
    56     virtual void HandleScrollEventL(CEikScrollBar* aScrollBar, 
       
    57                                              TEikScrollEvent aEventType);
       
    58 
       
    59 public: // Functions from CAknSinglePopupMenuStyleListBox
       
    60     TSize MinimumSize();
       
    61     virtual void SizeChanged();
       
    62 
       
    63 protected:  // Functions from CAknSinglePopupMenuStyleListBox
       
    64     virtual void CreateItemDrawerL();
       
    65 
       
    66 private:    // Data
       
    67     TInt iMaximumColumns;
       
    68     TInt iMaximumRows;
       
    69     };
       
    70 
       
    71 #endif //C_CPENINPUTJAPANESECANDIDATELISTBOX_H
       
    72 
       
    73 // End Of File