|
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: Provides the TAknFepUiInputStateInitialHiragana methods. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 // INCLUDE FILES |
|
30 #include "AknFepUiInputStateInitialHiragana.h" |
|
31 #include "AknFepUIManagerStateInterface.h" // MAknFepUIManagerStateInterface |
|
32 #include "AknFepManagerUIInterface.h" // MAknFepManagerUIInterface |
|
33 |
|
34 #include <PtiDefs.h> // keys |
|
35 #include <PtiEngine.h> |
|
36 |
|
37 // CONSTANTS |
|
38 |
|
39 /** |
|
40 * TAknFepUiInputStateInitialHiragana class. |
|
41 * |
|
42 */ |
|
43 //============================ MEMBER FUNCTIONS ============================== |
|
44 |
|
45 // --------------------------------------------------------------------------- |
|
46 // TAknFepUiInputStateInitialHiragana::TAknFepUiInputStateInitialHiragana |
|
47 // C++ default Constructor |
|
48 // --------------------------------------------------------------------------- |
|
49 // |
|
50 TAknFepUiInputStateInitialHiragana::TAknFepUiInputStateInitialHiragana( |
|
51 MAknFepUIManagerStateInterface* aOwner, |
|
52 MAknFepUICtrlContainerJapanese* aUIContainer) |
|
53 :TAknFepUiInputStateInitialJapaneseBase(aOwner, aUIContainer) |
|
54 { |
|
55 |
|
56 } |
|
57 |
|
58 // --------------------------------------------------------------------------- |
|
59 // TAknFepUiInputStateInitialHiragana::InitializeStateL |
|
60 // Initialize State |
|
61 // --------------------------------------------------------------------------- |
|
62 // |
|
63 void TAknFepUiInputStateInitialHiragana::InitializeStateL() |
|
64 { |
|
65 TAknFepUiInputStateInitialJapaneseBase::InitializeStateL(); |
|
66 |
|
67 // Setup PtiEngine |
|
68 CPtiEngine* ptiEngine = iOwner->PtiEngine(); |
|
69 ptiEngine->ClearCurrentWord(); |
|
70 ptiEngine->SetInputMode( (iOwner->IsQwerty())? |
|
71 EPtiEngineHiraganaQwerty |
|
72 : EPtiEngineHiragana); |
|
73 } |
|
74 |
|
75 // --------------------------------------------------------------------------- |
|
76 // TAknFepUiInputStateInitialHiragana::HandleNumericShortKeyL |
|
77 // Handling short keypress events of the numeric and the star. |
|
78 // --------------------------------------------------------------------------- |
|
79 // |
|
80 TBool TAknFepUiInputStateInitialHiragana::HandleNumericShortKeyL(TInt aKey) |
|
81 { |
|
82 TBool ret = EFalse; |
|
83 if (aKey == EPtiKeyStar) |
|
84 { |
|
85 ret = ETrue; |
|
86 } |
|
87 else |
|
88 { |
|
89 iOwner->FepMan()->StartInlineEditL(); |
|
90 iOwner->ChangeState(EEntry); |
|
91 } |
|
92 return ret; |
|
93 } |
|
94 // End of file |