1 /* |
|
2 * Copyright (c) 2002-2004 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: Predictive candidate list |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 // INCLUDE FILES |
|
30 #include <eikdef.h> |
|
31 #include <aknViewAppUi.h> |
|
32 #include <avkon.hrh> |
|
33 #include <aknPopup.h> |
|
34 #include <aknlists.h> |
|
35 |
|
36 #include "AknFepUiInterfacePanic.h" |
|
37 #include "AknFepUIAvkonCtrlJapanesePredictiveCellListBoxData.h" |
|
38 #include "AknFepUIAvkonCtrlJapanesePredictiveListboxItemDrawer.h" |
|
39 |
|
40 // ============================ MEMBER FUNCTIONS =============================== |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CAknFepUICtrlJapanesePredictiveListboxItemDrawer:: |
|
44 // CAknFepUICtrlJapanesePredictiveListboxItemDrawer |
|
45 // Constractor |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 CAknFepUICtrlJapanesePredictiveListboxItemDrawer::CAknFepUICtrlJapanesePredictiveListboxItemDrawer( |
|
49 MTextListBoxModel* aTextListBoxModel, |
|
50 const CFont* aFont, |
|
51 CFormattedCellListBoxData* aFormattedCellData) |
|
52 : CFormattedCellListBoxItemDrawer(aTextListBoxModel, |
|
53 aFont, |
|
54 aFormattedCellData) |
|
55 { |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CAknFepUICtrlJapanesePredictiveListboxItemDrawer::DrawItem |
|
60 // Drawing a item |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 void CAknFepUICtrlJapanesePredictiveListboxItemDrawer::DrawItem( |
|
64 TInt aItemIndex, |
|
65 TPoint aItemRectPos, |
|
66 TBool aItemIsSelected, |
|
67 TBool aItemIsCurrent, |
|
68 TBool aViewIsEmphasized, |
|
69 TBool aViewIsDimmed, |
|
70 TInt aHighlightStartXPos, |
|
71 TInt aHighlightEndXPos) const |
|
72 { |
|
73 TRect actualItemRect(aItemRectPos, iItemCellSize); |
|
74 |
|
75 CAknFepUICtrlJapanesePredictiveCellListBoxData* data = |
|
76 static_cast<CAknFepUICtrlJapanesePredictiveCellListBoxData*>(iData); |
|
77 data->SetHighlightArea(aHighlightStartXPos, aHighlightEndXPos); |
|
78 |
|
79 DrawActualItem( |
|
80 aItemIndex, |
|
81 actualItemRect, |
|
82 aItemIsCurrent, aViewIsEmphasized, aViewIsDimmed, aItemIsSelected); |
|
83 } |
|
84 |
|
85 // End of File |
|