|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Provides global enumerations. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 #ifndef __AKN_FEP_GLOBAL_ENUMS_H__ |
|
34 #define __AKN_FEP_GLOBAL_ENUMS_H__ |
|
35 #include <eikon.hrh> |
|
36 |
|
37 #define EPRCFind 0x0004 |
|
38 #define ECangJie 0x0008 // Cang Jie mode for HK |
|
39 #define EZhuyinFind 0x0010 |
|
40 #define EStrokeFind 0x0020 |
|
41 #define EPinyin 0x0040 |
|
42 #define EZhuyin 0x0080 |
|
43 #define EStroke 0x0100 |
|
44 #define ELatin 0x0200 |
|
45 #define ENumber 0x0400 |
|
46 #define EHiraganaKanji 0x0800 // Hiragana |
|
47 #define EKatakana 0x1000 // Katakana |
|
48 #define EHiragana 0x10000 // Hiragana Only |
|
49 #define EHindi 0x20000 // Hindi only |
|
50 #define ENativeNumber 0x40000 |
|
51 /* Teleca change begin, 15.04.2008 ssal */ |
|
52 #define EHangul 0x160000 // Korean |
|
53 /* Teleca change end, 15.04.2008 ssal */ |
|
54 |
|
55 // Additional case flags for GS. |
|
56 #define ELatinText 0x2000 |
|
57 #define ELatinUpper 0x4000 |
|
58 #define ELatinLower 0x8000 |
|
59 |
|
60 // CangJie Mode |
|
61 #define ECangJieNormal 0 |
|
62 #define ECangJieEasy 1 |
|
63 #define ECangJieAdvanced 2 |
|
64 |
|
65 enum |
|
66 { |
|
67 KFirstMode = EZhuyinFind, |
|
68 KLastMode = EHangul |
|
69 }; |
|
70 |
|
71 enum TKeyPressLength |
|
72 { |
|
73 EShortKeyPress, |
|
74 ELongKeyPress |
|
75 }; |
|
76 |
|
77 enum TAknFepManagerState |
|
78 { |
|
79 EAknFepStateNull, |
|
80 EAknFepStateInitial, |
|
81 EAknFepStateUIActive |
|
82 }; |
|
83 |
|
84 enum TUIState |
|
85 { |
|
86 ENull, |
|
87 EInitial, |
|
88 EEntry, |
|
89 ECandidate, |
|
90 EPredictiveCandidate, |
|
91 EPredictiveInput, |
|
92 EConversion, // Japanese only |
|
93 EMultiCompletion, // Japanese only |
|
94 ENextWord, // Japanese only |
|
95 EQwerty, // Qwerty mode is not supported. |
|
96 ECandidateRetroActive, // Japanese only |
|
97 EHalfQwerty, |
|
98 ECandidateSelection, |
|
99 EStrokeSequenceEdit, |
|
100 EKeySequenceEdit, |
|
101 EZhuyinSequenceEdit, |
|
102 ESpellingSelection, |
|
103 EMiniQwertyEdit, |
|
104 EZhuyinSpelling, |
|
105 EZhuyinCandidate |
|
106 }; |
|
107 |
|
108 |
|
109 enum TCase |
|
110 { |
|
111 EUpperCase, |
|
112 ELowerCase, |
|
113 EFnKeyLowerCase, // Qwerty fn-key lower case input. |
|
114 EFnKeyUpperCase // Qwerty fn-key upper case input. |
|
115 }; |
|
116 |
|
117 enum // cba/softkeys |
|
118 { |
|
119 EAknFepSoftkeyPrevious = 0x4000, |
|
120 EAknFepSoftkeySpell, |
|
121 EAknFepSoftkeySymbol, |
|
122 EAknFepSoftkeyConvert, |
|
123 EAknFepSoftkeyCloseWindow, |
|
124 EAknFepSoftkeyCommit, // Using Multi-tap input on Japanese input |
|
125 EAknFepSoftkeySelectCandidate, // Using Predictive input on Japanese input |
|
126 EAknFepSoftkeyOtherModes, // For Japanese, Open other modes list |
|
127 EAknFepSoftkeyPredictiveOn, // For Japanese, Start Prediction |
|
128 EAknFepSoftkeyRetroActiveHalf, // For Japanese, Change the retroactive candidates to half-width |
|
129 EAknFepSoftkeyRetroActiveFull, // For Japanese, Change the retroactive candidates to full-width |
|
130 // internal command |
|
131 EAknFepAllCompletion, |
|
132 EAknFepSoftkeyStartCopy, |
|
133 EAknFepSoftkeyStartCut, |
|
134 EAknFepResourceChanged |
|
135 }; |
|
136 |
|
137 enum TWordMatchState |
|
138 { |
|
139 EWordMatchNone, |
|
140 EWordMatchFirst, |
|
141 EWordMatchLast, |
|
142 EWordMatchAfterLast, |
|
143 EWordMatchStd |
|
144 }; |
|
145 |
|
146 //ADD_JP |
|
147 enum TWidthChar |
|
148 { |
|
149 ENoneWidthChar, |
|
150 EHalfWidthChar, |
|
151 EFullWidthChar |
|
152 }; |
|
153 |
|
154 enum |
|
155 { |
|
156 EAknEditMenuCmdCopyText = 5100, |
|
157 EAknEditMenuCmdCutText = 5101, |
|
158 EAknEditMenuCmdInsertWord = 5102 |
|
159 }; |
|
160 |
|
161 /** |
|
162 * Plugin input mode. |
|
163 * |
|
164 * @since S60 v3.2 |
|
165 */ |
|
166 enum TPluginInputMode |
|
167 { |
|
168 EPluginInputModeNone = 0, |
|
169 EPluginInputModeHwr = 1, |
|
170 EPluginInputModeVkb = 2, |
|
171 EPluginInputModeFSQ = 4, |
|
172 EPluginInputModeItut = 8, |
|
173 EPluginInputModeFSc = 16, // new one |
|
174 EPluginInputModeMiniItut = 32, |
|
175 EPluginInputModeFingerHwr = 64, |
|
176 EPluginInputModeAll = 127 // EPluginInputModeHwr | ... | EPluginInputModeFingerHwr| |
|
177 }; |
|
178 |
|
179 #define KLatinToDevanagariDigitsDelta 0x0936 |
|
180 #define KLatinToArabicIndicDigitsDelta 0x0630 |
|
181 #define KLatinToEasternArabicIndicDigitsDelta 0x06C0 |
|
182 |
|
183 // definition of special number mode |
|
184 enum TCustomeNumericKeymap |
|
185 { |
|
186 ECustomNumericKeymapStart = EAknEditorReservedInternalUseKeymap, |
|
187 EKeymapFromResource |
|
188 }; |
|
189 |
|
190 |
|
191 // Clear direction (using KAknFepClearDirection shared key) |
|
192 enum TClearDirection |
|
193 { |
|
194 EClearDirectionLeft = 0, |
|
195 EClearDirectionRight = 1 |
|
196 }; |
|
197 |
|
198 // Japanese qwerty specif flags |
|
199 // (using KAknFepJapaneseSpecialCharFlag shared key) |
|
200 // Japanese Qwerty Comma ON(Japanese)/OFF(Western) |
|
201 // Japanese Qwerty Period ON(Japanese)/OFF(Western) |
|
202 // Japanese Qwerty Width Of Space Full/Half width |
|
203 enum TJapQwertySettingFlags |
|
204 { |
|
205 EJapQwertySettingNone = 0, |
|
206 EJapQwertySettingComma = 0x0001, |
|
207 EJapQwertySettingPeriod = 0x0002, |
|
208 EJapQwertySettingSpaceFullWidth = 0x0004, |
|
209 EJapTouchSettingHwrConversion = 0x0010, |
|
210 EJapTouchSettingVkbRomajiInput = 0x0020 |
|
211 }; |
|
212 |
|
213 // (using shared key) |
|
214 enum TJapaneseConversion |
|
215 { |
|
216 EJapaneseConversionOff = 0, |
|
217 EJapaneseConversionOn = 1 |
|
218 }; |
|
219 |
|
220 enum TKeyboardStyle |
|
221 { |
|
222 EKeyboardStyleNone = 0x00, |
|
223 EKeyboardStyle12Key = 0x01, |
|
224 EKeyboardStyleQwerty = 0x02, |
|
225 EKeyboardStyleHalfQwerty = 0x04 |
|
226 }; |
|
227 |
|
228 enum TPhysicalKeyboardLayout |
|
229 { |
|
230 EPhysicalKeyboardNone, |
|
231 EPhysicalKeyboard12key = 0x01, |
|
232 EPhysicalKeyboardQwerty4x12 = 0x02, |
|
233 EPhysicalKeyboardQwerty4x10 = 0x04, |
|
234 EPhysicalKeyboardQwerty3x11 = 0x08, |
|
235 EPhysicalKeyboardHalfQwerty = 0x10, |
|
236 EPhysicalKeyboardCustomQwerty = 0x20 |
|
237 }; |
|
238 |
|
239 #endif |
|
240 |
|
241 // End of file |