equal
deleted
inserted
replaced
|
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: japanese popup view |
|
15 ** |
|
16 */ |
|
17 |
|
18 #include "peninputjapaneseview.h" |
|
19 #include <eiklbx.h> // ScrollBarFrame() |
|
20 |
|
21 EXPORT_C void CPeninputJapaneseView::ConstructL() |
|
22 { |
|
23 CreateBackedUpWindowL(iCoeEnv->RootWin()); |
|
24 } |
|
25 |
|
26 TInt CPeninputJapaneseView::CountComponentControls() const |
|
27 { |
|
28 if (iListBox) |
|
29 { |
|
30 if (iListBox->ScrollBarFrame() && iListBox->ScrollBarFrame()->GetScrollBarHandle(CEikScrollBar::EVertical)) |
|
31 { |
|
32 return 2; |
|
33 } |
|
34 return 1; |
|
35 } |
|
36 return 0; |
|
37 } |
|
38 |
|
39 CCoeControl* CPeninputJapaneseView::ComponentControl(TInt aIndex) const |
|
40 { |
|
41 if (aIndex |
|
42 && iListBox |
|
43 && iListBox->ScrollBarFrame() |
|
44 && iListBox->ScrollBarFrame()->GetScrollBarHandle(CEikScrollBar::EVertical)) |
|
45 { |
|
46 return iListBox->ScrollBarFrame()->GetScrollBarHandle(CEikScrollBar::EVertical); |
|
47 } |
|
48 return iListBox; |
|
49 } |
|
50 |
|
51 void CPeninputJapaneseView::SetListBox(CEikListBox* aListBox) |
|
52 { |
|
53 iListBox = aListBox; |
|
54 } |
|
55 |
|
56 void CPeninputJapaneseView::Draw(const TRect& /*aRect*/) const |
|
57 { |
|
58 } |
|
59 // End Of File |