|
1 /* |
|
2 * Copyright (c) 2002-2007 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: vkb control extension |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // System includes |
|
20 #include <peninputvkbctrllayout.h> // CPeninputVkbLayoutInfo |
|
21 |
|
22 // user includes |
|
23 #include "peninputvkbctrlextjp.h" |
|
24 |
|
25 // ======== MEMBER FUNCTIONS ======== |
|
26 |
|
27 // -------------------------------------------------------------------------- |
|
28 // CPeninputVkbCtrlExtJp::NewL |
|
29 // (other items were commented in a header) |
|
30 // -------------------------------------------------------------------------- |
|
31 // |
|
32 CPeninputVkbCtrlExtJp* CPeninputVkbCtrlExtJp::NewL( const TRect& aRect, |
|
33 CFepUiLayout* aUiLayout, TInt aControlId, const TFontSpec& aFontSpec ) |
|
34 { |
|
35 CPeninputVkbCtrlExtJp* self = new ( ELeave ) CPeninputVkbCtrlExtJp |
|
36 ( aRect, aUiLayout, aControlId, aFontSpec ); |
|
37 CleanupStack::PushL( self ); |
|
38 self->ConstructL(); |
|
39 CleanupStack::Pop( self ); |
|
40 |
|
41 return self; |
|
42 } |
|
43 |
|
44 // -------------------------------------------------------------------------- |
|
45 // CPeninputVkbCtrlExtJp::NewL |
|
46 // (other items were commented in a header) |
|
47 // -------------------------------------------------------------------------- |
|
48 // |
|
49 CPeninputVkbCtrlExtJp* CPeninputVkbCtrlExtJp::NewL( const TRect& aRect, |
|
50 CFepUiLayout* aUiLayout, TInt aControlId, const CFont* aFont ) |
|
51 { |
|
52 TFontSpec fontSpec; |
|
53 |
|
54 CPeninputVkbCtrlExtJp* vkb = new (ELeave) |
|
55 CPeninputVkbCtrlExtJp( aRect, aUiLayout, aControlId, fontSpec ); |
|
56 CleanupStack::PushL( vkb ); |
|
57 vkb->ConstructL(); |
|
58 vkb->SetFont( aFont ); |
|
59 CleanupStack::Pop( vkb ); |
|
60 |
|
61 return vkb; |
|
62 } |
|
63 |
|
64 // -------------------------------------------------------------------------- |
|
65 // CPeninputVkbCtrlExtJp::~CPeninputVkbCtrlExtJp |
|
66 // (other items were commented in a header) |
|
67 // -------------------------------------------------------------------------- |
|
68 // |
|
69 CPeninputVkbCtrlExtJp::~CPeninputVkbCtrlExtJp() |
|
70 { |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------------------------- |
|
74 // CPeninputVkbCtrlExtJp::SetDimmed |
|
75 // Dim KeyBoard |
|
76 // (other items were commented in a header). |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 void CPeninputVkbCtrlExtJp::SetDimmed(TBool aDimFlag) const |
|
80 { |
|
81 TInt count = iVkbLayoutInfo->KeyInfoList().Count(); |
|
82 for (TInt ii=0; ii < count; ii++) |
|
83 { |
|
84 iVkbLayoutInfo->KeyInfoList()[ii]->Key()->SetDimmed(aDimFlag); |
|
85 } |
|
86 } |
|
87 |
|
88 // -------------------------------------------------------------------------- |
|
89 // CPeninputVkbCtrlExtJp::CPeninputVkbCtrlExtJp |
|
90 // (other items were commented in a header) |
|
91 // -------------------------------------------------------------------------- |
|
92 // |
|
93 CPeninputVkbCtrlExtJp::CPeninputVkbCtrlExtJp( const TRect& aRect, |
|
94 CFepUiLayout* aUiLayout, TInt aControlId, const TFontSpec& aFontSpec ) |
|
95 : CPeninputVkbCtrlExt( aRect, aUiLayout, aControlId, aFontSpec ) |
|
96 { |
|
97 } |
|
98 |
|
99 // End Of File |