fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/src/AknFepUiAvkonCtrlJapanesePredictiveListboxItemDrawer.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 10:15:25 +0300
branchRCL_3
changeset 19 ac7e4d1d9209
parent 0 eb1f2e154e89
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0""
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:            Predictive candidate list
*
*/












// INCLUDE FILES
#include <eikdef.h>
#include <aknViewAppUi.h>
#include <avkon.hrh>
#include <aknPopup.h>
#include <aknlists.h>

#include "AknFepUiInterfacePanic.h"
#include "AknFepUIAvkonCtrlJapanesePredictiveCellListBoxData.h"
#include "AknFepUIAvkonCtrlJapanesePredictiveListboxItemDrawer.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CAknFepUICtrlJapanesePredictiveListboxItemDrawer::
//                              CAknFepUICtrlJapanesePredictiveListboxItemDrawer
// Constractor
// -----------------------------------------------------------------------------
//
CAknFepUICtrlJapanesePredictiveListboxItemDrawer::CAknFepUICtrlJapanesePredictiveListboxItemDrawer(
        MTextListBoxModel* aTextListBoxModel,
        const CFont* aFont,
        CFormattedCellListBoxData* aFormattedCellData)
            : CFormattedCellListBoxItemDrawer(aTextListBoxModel,
                                              aFont,
                                              aFormattedCellData)
    {
    }

// -----------------------------------------------------------------------------
// CAknFepUICtrlJapanesePredictiveListboxItemDrawer::DrawItem
// Drawing a item
// -----------------------------------------------------------------------------
//
void CAknFepUICtrlJapanesePredictiveListboxItemDrawer::DrawItem(
        TInt aItemIndex,
        TPoint aItemRectPos,
        TBool aItemIsSelected,
        TBool aItemIsCurrent,
        TBool aViewIsEmphasized,
        TBool aViewIsDimmed,
        TInt aHighlightStartXPos,
        TInt aHighlightEndXPos) const
    {
    TRect actualItemRect(aItemRectPos, iItemCellSize);

    CAknFepUICtrlJapanesePredictiveCellListBoxData* data =
        static_cast<CAknFepUICtrlJapanesePredictiveCellListBoxData*>(iData);
    data->SetHighlightArea(aHighlightStartXPos, aHighlightEndXPos);

    DrawActualItem(
        aItemIndex,
        actualItemRect, 
        aItemIsCurrent, aViewIsEmphasized, aViewIsDimmed, aItemIsSelected);
    }

// End of File