diff -r 000000000000 -r eb1f2e154e89 fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/src/AknFepUiAvkonCtrlJapanesePredictiveListboxItemDrawer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/src/AknFepUiAvkonCtrlJapanesePredictiveListboxItemDrawer.cpp Tue Feb 02 01:02:04 2010 +0200 @@ -0,0 +1,85 @@ +/* +* 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 +#include +#include +#include +#include + +#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(iData); + data->SetHighlightArea(aHighlightStartXPos, aHighlightEndXPos); + + DrawActualItem( + aItemIndex, + actualItemRect, + aItemIsCurrent, aViewIsEmphasized, aViewIsDimmed, aItemIsSelected); + } + +// End of File