author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 15 Sep 2010 12:34:44 +0300 | |
branch | RCL_3 |
changeset 50 | 5a1685599b76 |
parent 44 | ecbabf52600f |
child 56 | 8152b1f1763a |
permissions | -rw-r--r-- |
44 | 1 |
/* |
2 |
* Copyright (c) 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: |
|
15 |
* Provides the CAknFepUICtrlPinyinPopup class definitions. |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
||
20 |
||
21 |
||
22 |
||
23 |
||
24 |
||
25 |
||
26 |
||
27 |
||
28 |
||
29 |
#ifndef __AKN_FEP_UI_AVKON_PINYIN_POPUP_H |
|
30 |
#define __AKN_FEP_UI_AVKON_PINYIN_POPUP_H |
|
31 |
||
32 |
#include <AknFepUICtrlPinyinPopup.h> |
|
33 |
#include <badesca.h> |
|
34 |
#include <coecntrl.h> |
|
35 |
#include <AknUtils.h> |
|
36 |
#include "AknFepUIAvkonCtrlInputPane.h" |
|
37 |
#include "AknFepUIAvkonCtrlCandidatePane.h" |
|
38 |
||
39 |
class MAknFepUICtrlPinyinPopupSizeChangedObserver; |
|
40 |
||
41 |
NONSHARABLE_CLASS(CAknFepUICtrlPinyinPopup):public CCoeControl, public MAknFepUICtrlPinyinPopup |
|
42 |
{ |
|
43 |
public: |
|
44 |
/** |
|
45 |
* First phase construction |
|
46 |
*/ |
|
47 |
static CAknFepUICtrlPinyinPopup* NewL(RWindow& aParent, CAknFepUiLayoutDataMgr* aLafDataMgr); |
|
48 |
/** |
|
49 |
* destructor |
|
50 |
*/ |
|
51 |
~CAknFepUICtrlPinyinPopup(); |
|
52 |
/** |
|
53 |
* This function returns the index of the selected phrase item . |
|
54 |
* |
|
55 |
* @return aIndex index of entry in window, zero based |
|
56 |
*/ |
|
57 |
TInt CurrentSelection() const; |
|
58 |
/** |
|
59 |
* This function returns the visible index of the selected item. |
|
60 |
* |
|
61 |
* @return aIndex index of entry in window, zero based |
|
62 |
*/ |
|
63 |
TInt CurrentVisibleSelection() const; |
|
64 |
/** |
|
65 |
* set the observer |
|
66 |
* <p> Note that only one observer is supported! |
|
67 |
* |
|
68 |
* @param aObserver pointer to the observer |
|
69 |
*/ |
|
70 |
void SetSizeChangedObserver(MAknFepUICtrlPinyinPopupSizeChangedObserver* aObserver); |
|
71 |
||
72 |
/** |
|
73 |
* Enables the display of the control. Sets the control's |
|
74 |
* window postion and visibility, but only if the value has |
|
75 |
* changed (so it's ok to call it excessively). |
|
76 |
* |
|
77 |
* @param aEnable if ETrue, makes visible |
|
78 |
* if EFalse, makes non-visible |
|
79 |
* |
|
80 |
*/ |
|
81 |
void Enable(TBool aEnable); |
|
82 |
/** |
|
83 |
* set the number of selections that are visible |
|
84 |
* |
|
85 |
* @param aCount the number of visible selections, must be |
|
86 |
* 0 < aCount <= KMaxNumberOfSelections |
|
87 |
*/ |
|
88 |
void SetVisibleSelectionCount(TInt aCount); |
|
89 |
/** |
|
90 |
* set the number of selections that are visible |
|
91 |
* |
|
92 |
* @param aCount the number of visible selections, must be |
|
93 |
* 0 < aCount <= KMaxNumberOfSelections |
|
94 |
*/ |
|
95 |
void SetVisibleCount(TInt aCount); |
|
96 |
||
97 |
/** |
|
98 |
* get the current visible selection count |
|
99 |
* |
|
100 |
* @return visible selection count |
|
101 |
*/ |
|
102 |
TInt VisibleSelectionCount() const; |
|
103 |
||
104 |
||
105 |
/** |
|
106 |
* This sets the string of the internal buffer for the item index aIndex to aText, |
|
107 |
* even if the index falls outside the current visible candidates. |
|
108 |
* |
|
109 |
* @param aText new contents of text item |
|
110 |
* @return ETrue if successful |
|
111 |
* EFalse if index outside visible candidates (but value is still set) |
|
112 |
* |
|
113 |
*/ |
|
114 |
TBool SetItemText(TInt aIndex, const TDesC& aText); |
|
115 |
||
116 |
/** |
|
117 |
* Sets the string of the internal buffer for visible item |
|
118 |
*/ |
|
119 |
TBool SetPhraseItemTexts(); |
|
120 |
||
121 |
/** |
|
122 |
* This function gets the text at the index aIndex. |
|
123 |
* |
|
124 |
* @param aIndex index of entry in window, zero based |
|
125 |
* @output aText contains contents of text item |
|
126 |
* @return ETrue always |
|
127 |
* |
|
128 |
*/ |
|
129 |
TBool GetItemText(TInt aIndex, TDes& aText) const; |
|
130 |
||
131 |
/** |
|
132 |
* This function sets the Tone Mark for all entries |
|
133 |
* |
|
134 |
* @param aToneMark the tone mark |
|
135 |
* |
|
136 |
*/ |
|
137 |
void SetToneMark(const TDesC& aToneMark); |
|
138 |
||
139 |
/** |
|
140 |
* This function sets the Tone Mark for a specific entry |
|
141 |
* |
|
142 |
* @param aIndex index of entry |
|
143 |
* @param aToneMark the tone mark |
|
144 |
* |
|
145 |
*/ |
|
146 |
void SetToneMark(TInt aIndex, const TDesC& aToneMark); |
|
147 |
||
148 |
/** |
|
149 |
* This function gets the Tone Mark for a specific entry |
|
150 |
* |
|
151 |
* @param aIndex index of entry |
|
152 |
* @output aToneMark the tone mark |
|
153 |
* |
|
154 |
*/ |
|
155 |
void GetToneMark(TInt aIndex, TDes& aToneMark) const; |
|
156 |
||
157 |
/** |
|
158 |
* This function sets the validity of the tonemark |
|
159 |
* |
|
160 |
* @param aIndex index of the entry to be affected |
|
161 |
* @param aValid if ETrue, tonemark will be displayed as valid |
|
162 |
* if EFalse, tonemark will be displayed as not valid |
|
163 |
*/ |
|
164 |
void SetItemToneMarkValidity(TInt aIndex, TBool aValid); |
|
165 |
/** |
|
166 |
* Is the control enabled for display? |
|
167 |
* |
|
168 |
* @return if not enabled, return EFalse |
|
169 |
*/ |
|
170 |
TBool IsEnabled() const; |
|
171 |
||
172 |
/** |
|
173 |
* Select the next visible item. If already on the last one, loop to the |
|
174 |
* first one. |
|
175 |
* |
|
176 |
* @return ETrue if success, |
|
177 |
* EFalse if no items visible, or if selection is outside visible items |
|
178 |
*/ |
|
179 |
TBool SelectNextPhrase(); |
|
180 |
||
181 |
/** |
|
182 |
* Select the previous visible item. If already on the first one, loop to the |
|
183 |
* last one. |
|
184 |
* |
|
185 |
* @return ETrue if success, |
|
186 |
* EFalse if no items visible, or if selection is outside visible items |
|
187 |
*/ |
|
188 |
TBool SelectPrevPhrase(); |
|
189 |
||
190 |
/** |
|
191 |
* This function selects the item at index aIndex. |
|
192 |
* |
|
193 |
* @param aIndex index of entry in window, zero based |
|
194 |
* @return ETrue if success, EFalse if failure. |
|
195 |
*/ |
|
196 |
TBool SelectIndex(TInt aIndex); |
|
197 |
||
198 |
/** |
|
199 |
* Return Pinyin spelling candidate array |
|
200 |
*/ |
|
201 |
CDesCArrayFlat* PhoneticSpellingArray(void); |
|
202 |
||
203 |
/** |
|
204 |
* Return Pinyin spelling candidate array |
|
205 |
*/ |
|
206 |
CDesCArrayFlat* PhoneticSpellingIndexArray(); |
|
207 |
/** |
|
208 |
* Split phrase pinyin spelling candidates into pages |
|
209 |
*/ |
|
210 |
void SplitPhraseSpellingIntoPages(void); |
|
211 |
||
212 |
/** |
|
213 |
* Split pinyin spelling candidates into pages |
|
214 |
*/ |
|
215 |
void SplitSpellingIntoPages(TInt aCount); |
|
216 |
||
217 |
/** |
|
218 |
* Set display page for deliberate selection |
|
219 |
*/ |
|
220 |
void SetDisplayPage(TInt aSelection); |
|
221 |
/** |
|
222 |
* Return current page start spelling index |
|
223 |
*/ |
|
224 |
TInt CurrentPageStartIndex(void); |
|
225 |
||
226 |
/** |
|
227 |
* Return kestroke array |
|
228 |
*/ |
|
229 |
CDesCArrayFlat* KeystrokeArray(void); |
|
230 |
||
231 |
/** |
|
232 |
* Return in effect kestroke array |
|
233 |
*/ |
|
234 |
CDesCArrayFlat* InEffectKeystrokeArray(); |
|
235 |
||
236 |
/** |
|
237 |
* Return show kestroke array |
|
238 |
*/ |
|
239 |
CDesCArrayFlat* ShowKeystrokeArray(); |
|
240 |
||
241 |
/** |
|
242 |
* Return Optimize Spelling array |
|
243 |
*/ |
|
244 |
CDesCArrayFlat* OptimizeSpelling(); |
|
245 |
||
246 |
/** |
|
247 |
* Return temp Spelling array |
|
248 |
*/ |
|
249 |
CDesCArrayFlat* TempSpelling(); |
|
250 |
||
251 |
/** |
|
252 |
* Return choose chinese charater array |
|
253 |
*/ |
|
254 |
CDesCArrayFlat* ChooseChineseCharacterArray(); |
|
255 |
||
256 |
/** |
|
257 |
* Return choose chiese charater keystroke array |
|
258 |
*/ |
|
259 |
CDesCArrayFlat* ChooseChineseCharacterArrayKeystroke(); |
|
260 |
||
261 |
/** |
|
262 |
* Return the tone mark state |
|
263 |
*/ |
|
264 |
TBool GetTonemarkState(); |
|
265 |
||
266 |
/** |
|
267 |
* set the tone mark state |
|
268 |
*/ |
|
269 |
void SetTonemarkState( TBool aState ); |
|
270 |
||
271 |
/** |
|
272 |
* Set, clear and check flags status |
|
273 |
*/ |
|
274 |
inline void SetFlag(TInt aFlag); |
|
275 |
inline void ClearFlag(TInt aFlag); |
|
276 |
inline TBool IsFlagSet(TInt aFlag) const; |
|
277 |
void PopupSizeChanged(); |
|
278 |
||
279 |
/** |
|
280 |
* Set all the input pane not highlight |
|
281 |
*/ |
|
282 |
void SetNoneHighlighted(); |
|
283 |
||
284 |
/** |
|
285 |
* Return kestroke array |
|
286 |
*/ |
|
287 |
CDesCArrayFlat* KeystrokeArrayForStroke(); |
|
288 |
||
289 |
/** |
|
290 |
* Return in effect kestroke array |
|
291 |
*/ |
|
292 |
CDesCArrayFlat* InEffectKeystrokeArrayForStroke(); |
|
293 |
||
294 |
/** |
|
295 |
* Return show kestroke array |
|
296 |
*/ |
|
297 |
CDesCArrayFlat* ShowKeystrokeArrayForStroke(); |
|
298 |
||
299 |
/** |
|
300 |
* Return choose chinese charater array |
|
301 |
*/ |
|
302 |
CDesCArrayFlat* ChooseChineseCharacterArrayForStroke(); |
|
303 |
||
304 |
/** |
|
305 |
* Return choose chiese charater keystroke array |
|
306 |
*/ |
|
307 |
CDesCArrayFlat* ChooseChineseCharacterArrayKeystrokeForStroke(); |
|
308 |
||
309 |
CDesCArrayFlat* ZhuyinSymbols(); |
|
310 |
||
311 |
CDesCArrayFlat* ZhuyinShowSymbols(); |
|
312 |
||
313 |
CDesCArrayFlat* FirstValidZhuyinGrp() ; |
|
314 |
||
315 |
CDesCArrayFlat* ChineseCharsDisped() ; |
|
316 |
||
317 |
CDesCArrayFlat* ZhuyinSymbolsForChineseCharsDisped() ; |
|
318 |
||
319 |
void SetEEPContent ( const TDes& aDes ); |
|
320 |
TDes& GetEEPContent ( ); |
|
321 |
||
322 |
void SetEEPContentValid ( TBool aValid ); |
|
323 |
TBool GetEEPContentValid ( ); |
|
324 |
||
325 |
/** |
|
326 |
* Reset all array |
|
327 |
*/ |
|
328 |
void ResetStrokeArray(); |
|
329 |
||
330 |
/** |
|
331 |
* Set the state is changed |
|
332 |
*/ |
|
333 |
void SetChangeState( TBool aChangeState ); |
|
334 |
||
335 |
/** |
|
336 |
* Return if has changed state or not |
|
337 |
*/ |
|
338 |
TBool IsChangeStatet() const; |
|
339 |
||
340 |
/** |
|
341 |
* Set whether state change from entry to spelling editing is automatical. |
|
342 |
* |
|
343 |
* @param aState.1 for automatical, 0 for manual. |
|
344 |
* @return None. |
|
345 |
*/ |
|
346 |
void SetState( TInt aState ); |
|
347 |
||
348 |
/** |
|
349 |
* Get state change status. |
|
350 |
*/ |
|
351 |
TInt GetState(); |
|
352 |
||
353 |
/** |
|
354 |
* Set whether state change from pinyin input state to pinyin phrase creation. |
|
355 |
* |
|
356 |
* @param aState. ETrue for state change from pinyin input to phrase creation, |
|
357 |
* EFalse is not. |
|
358 |
* @return None. |
|
359 |
*/ |
|
360 |
void SetPhraseCreationState( TBool aState ); |
|
361 |
||
362 |
/** |
|
363 |
* Set whether state change from pinyin input state to pinyin phrase creation. |
|
364 |
* |
|
365 |
* @return ETrue for state change from pinyin input to phrase creation, |
|
366 |
* EFalse is not. |
|
367 |
*/ |
|
368 |
TBool GetPhraseCreationState(); |
|
369 |
||
370 |
/** |
|
371 |
* Set whether at the editing state happen editing for pinyin phrase creation. |
|
372 |
* |
|
373 |
* @param aState. ETrue happen editing,EFalse others. |
|
374 |
* @return None. |
|
375 |
*/ |
|
376 |
void SetPhraseCreationEditingState( TBool aState ); |
|
377 |
||
378 |
/** |
|
379 |
* Get whether at the editing state happen editing for pinyin phrase creation. |
|
380 |
* |
|
381 |
* @param aState. ETrue happen editing,EFalse others. |
|
382 |
* @return None. |
|
383 |
*/ |
|
384 |
TBool GetPhraseCreationEditingState(); |
|
385 |
||
386 |
/** |
|
387 |
* Set flag whether from candidate state change state. |
|
388 |
* |
|
389 |
* @param aFlag ETrue from the candidate state change state, other EFalse. |
|
390 |
* @since S60 V5.0 |
|
391 |
* @return none. |
|
392 |
*/ |
|
393 |
void SetFromCandidateChangeStateFlag( TBool aFlag ); |
|
394 |
||
395 |
/** |
|
396 |
* Get flag whether from candidate state change state. |
|
397 |
* |
|
398 |
* @since S60 V5.0 |
|
399 |
* @return ETrue from the candidate state change state, other EFalse. |
|
400 |
*/ |
|
401 |
TBool GetFromCandidateChangeStateFlag(); |
|
402 |
||
403 |
/** |
|
404 |
* Set count of valid keystroke. |
|
405 |
* |
|
406 |
* @since S60 V5.0 |
|
407 |
* @return none |
|
408 |
*/ |
|
409 |
void SetValidKeystrokeCount( TInt aCount ); |
|
410 |
||
411 |
/** |
|
412 |
* get count of valid keystroke. |
|
413 |
* |
|
414 |
* @since S60 V5.0 |
|
415 |
* @return count of valid keystroke. |
|
416 |
*/ |
|
417 |
TInt GetValidKeystrokeCount(); |
|
418 |
||
419 |
/** |
|
420 |
* Set last cba resouce id. |
|
421 |
* |
|
422 |
* @since S60 V5.0 |
|
423 |
* @return None |
|
424 |
*/ |
|
425 |
void SetLastResouce( TInt aResouceId ); |
|
426 |
||
427 |
/** |
|
428 |
* Get last cba resouce id. |
|
429 |
* |
|
430 |
* @since S60 V5.0 |
|
431 |
* @return last resouce id |
|
432 |
*/ |
|
433 |
TInt GetLastResouce(); |
|
434 |
||
435 |
||
436 |
/** |
|
437 |
* Set change state from Edit to Spelling flag. |
|
438 |
* |
|
439 |
* @param aFlag,If ETrue Change from Edit state to spelling state,EFalse others. |
|
440 |
* @since S60 V5.0 |
|
441 |
* @return none. |
|
442 |
*/ |
|
443 |
void SetFromEditToSpellingFlag( TBool aFlag = EFalse ); |
|
444 |
||
445 |
/** |
|
446 |
* Get change state from Edit to Spelling flag. |
|
447 |
* |
|
448 |
* @param none. |
|
449 |
* @since S60 V5.0 |
|
450 |
* @return ETrue Change from Edit state to spelling state,EFalse others.. |
|
451 |
*/ |
|
452 |
TInt GetFromEditToSpellingFlag(); |
|
453 |
||
454 |
||
455 |
/** |
|
456 |
* Set valid keystroke change flag. |
|
457 |
* |
|
458 |
* @param aFlag, ETrue valid keystroke changed,EFalse others. |
|
459 |
* @since S60 V5.0 |
|
460 |
* @return none |
|
461 |
*/ |
|
462 |
void SetValidKeystrokeChange( TBool aFlag ); |
|
463 |
||
464 |
/** |
|
465 |
* Get valid keystroke change flag. |
|
466 |
* |
|
467 |
* @since S60 V5.0 |
|
468 |
* @return ETrue,if vallid keystroke changed, others EFalse. |
|
469 |
*/ |
|
470 |
TBool GetValidKeystrokeChange(); |
|
471 |
||
472 |
/** |
|
473 |
* Set PreStateIsPredict flag. |
|
474 |
* |
|
475 |
* @param aFlag, ETrue PreStateIsPredict,EFalse others. |
|
476 |
* @since S60 V5.0 |
|
477 |
* @return none |
|
478 |
*/ |
|
479 |
void SetPreStateIsPredictive( TBool aFlag ); |
|
480 |
||
481 |
/** |
|
482 |
* Get PreStateIsPredict flag. |
|
483 |
* |
|
484 |
* @since S60 V5.0 |
|
485 |
* @return ETrue,if PreStateIsPredict, others EFalse. |
|
486 |
*/ |
|
487 |
TBool GetPreStateIsPredictive(); |
|
488 |
||
489 |
void SetInputLayoutMiniQwertyZhuyin(); |
|
490 |
||
491 |
void ResetInputLayoutMiniQwertyZhuyin(); |
|
492 |
||
493 |
CDesCArrayFlat* ChooseChineseCharacterArraySpelling(void); |
|
494 |
||
495 |
protected: // From CCoeControl |
|
496 |
TTypeUid::Ptr MopSupplyObject(TTypeUid aId); |
|
497 |
||
498 |
protected: |
|
499 |
/** |
|
500 |
* constructor |
|
501 |
*/ |
|
502 |
CAknFepUICtrlPinyinPopup(CAknFepUiLayoutDataMgr* aLafDataMgr); |
|
503 |
/** |
|
504 |
* second phase construction |
|
505 |
*/ |
|
506 |
void ConstructL(RWindow& aParent); |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
507 |
|
44 | 508 |
/** |
509 |
* layout the rectangles |
|
510 |
*/ |
|
511 |
void LayoutRects(); |
|
512 |
||
513 |
/** |
|
514 |
* layout contained controls |
|
515 |
*/ |
|
516 |
void LayoutContainedControls(); |
|
517 |
||
518 |
/** |
|
519 |
* Layout the input panes |
|
520 |
*/ |
|
521 |
void LayoutInputPanes(); |
|
522 |
||
523 |
/** |
|
524 |
* set the visibility of the input panes, according to the current layout |
|
525 |
*/ |
|
526 |
void SetInputPaneVisibility(); |
|
527 |
||
528 |
/** |
|
529 |
* layout the background frames |
|
530 |
*/ |
|
531 |
void LayoutFrames(); |
|
532 |
||
533 |
/** |
|
534 |
* just layout one of the input panes |
|
535 |
* |
|
536 |
* @param aIndex index of input pane to lay out |
|
537 |
* |
|
538 |
*/ |
|
539 |
void LayoutInputPane(TInt aIndex); |
|
540 |
||
541 |
/** |
|
542 |
* update input panes' visibility |
|
543 |
*/ |
|
544 |
void UpdateInputPaneVisibility(void); |
|
545 |
||
546 |
||
547 |
public: //from CcoeControl |
|
548 |
/** |
|
549 |
* size changed |
|
550 |
*/ |
|
551 |
virtual void SizeChanged(); |
|
552 |
||
553 |
/** |
|
554 |
* count component controls |
|
555 |
* |
|
556 |
* @return number of contained controls |
|
557 |
*/ |
|
558 |
TInt CountComponentControls() const; |
|
559 |
||
560 |
/** |
|
561 |
* Component control |
|
562 |
* |
|
563 |
* @param aIndex the control to return, must be between 0 and the number of controls |
|
564 |
* @return pointer to contained control, ownership is not passed |
|
565 |
* |
|
566 |
*/ |
|
567 |
CCoeControl* ComponentControl(TInt aIndex) const; |
|
568 |
/** |
|
569 |
* draw |
|
570 |
* |
|
571 |
* @param aRect rectangle |
|
572 |
* |
|
573 |
*/ |
|
574 |
virtual void Draw(const TRect& aRect) const; |
|
575 |
/** |
|
576 |
* layout the background frames |
|
577 |
* |
|
578 |
* @param aOuterRect filled with outer rect coords |
|
579 |
* @param aInnerRect filled with inner rect coords |
|
580 |
* |
|
581 |
*/ |
|
582 |
void CalculateFrameRects(TRect& aOuterRect, TRect& aInnerRect) const; |
|
583 |
||
584 |
private: // the following need resetting |
|
585 |
RPointerArray<CAknFepUICtrlInputPane> iInputPaneArray; |
|
586 |
private: // the following are not owned |
|
587 |
CAknFepUiLayoutDataMgr* iLafDataMgr; |
|
588 |
MAknFepUICtrlPinyinPopupSizeChangedObserver* iSizeChangedObserver; |
|
589 |
private: // the following are owned |
|
590 |
CAknsFrameBackgroundControlContext* iBgContext; |
|
591 |
||
592 |
private: |
|
593 |
TInt iSelected; |
|
594 |
TInt iEnabled; |
|
595 |
TToneMark iToneMark; |
|
596 |
TAknLayoutRect iRectCoverMainPaneInput; |
|
597 |
TAknLayoutRect iRectFirstShadowInput; |
|
598 |
TAknLayoutRect iRectOutlineFrameInput; |
|
599 |
TAknLayoutRect iRectInsideAreaInput; |
|
600 |
TInt iVisibleCount; |
|
601 |
RArray<TPage> iPages; |
|
602 |
TInt iCurDisplayPage; |
|
603 |
CDesCArrayFlat* iSpellingArray; |
|
604 |
//Spelling index array |
|
605 |
CDesCArrayFlat* iSpellingIndexArray; |
|
606 |
//keystroke arrray |
|
607 |
CDesCArrayFlat* iKeystrokeArray; |
|
608 |
//in effect keystroke array |
|
609 |
CDesCArrayFlat* iInEffectKeystrokeArray; |
|
610 |
//show Keystroke array |
|
611 |
CDesCArrayFlat* iShowKeystrokeArray; |
|
612 |
//Optimize Keystroke array |
|
613 |
CDesCArrayFlat* iOptimizeSpelling; |
|
614 |
//temp Keystroke array |
|
615 |
CDesCArrayFlat* iTempSpelling; |
|
616 |
//Chinese array |
|
617 |
CDesCArrayFlat* iChooseChineseCharacterArray; |
|
618 |
CDesCArrayFlat* iChooseChineseCharacterArraySpelling; |
|
619 |
//Chinese Keystroke array |
|
620 |
CDesCArrayFlat* iChooseChineseCharacterArrayKeystroke; |
|
621 |
||
622 |
CDesCArrayFlat* iKeystrokeArrayForStroke; |
|
623 |
CDesCArrayFlat* iInEffectKeystrokeArrayForStroke; |
|
624 |
CDesCArrayFlat* iShowKeystrokeArrayForStroke; |
|
625 |
CDesCArrayFlat* iChooseChineseCharacterArrayForStroke; |
|
626 |
CDesCArrayFlat* iChooseChineseCharacterArrayKeystrokeForStroke; |
|
627 |
||
628 |
CDesCArrayFlat* iZhuyinSymbols; |
|
629 |
CDesCArrayFlat* iZhuyinShowSymbols; |
|
630 |
CDesCArrayFlat* iFirstValidZhuyinGrp; |
|
631 |
CDesCArrayFlat* iChineseCharsDisped; |
|
632 |
CDesCArrayFlat* iZhuyinSymbolsForChineseCharsDisped; |
|
633 |
TBuf<100> iEEPContent; |
|
634 |
TBool iEEPContentValid; |
|
635 |
||
636 |
//the tone mark state |
|
637 |
TInt iTonemarkState; |
|
638 |
||
639 |
//the stroke state |
|
640 |
TInt iStrokeState; |
|
641 |
||
642 |
// The highlight goes back to wrong position when transfer from pinyin |
|
643 |
// spelling pane to pinyin candidate pane more than one time. |
|
644 |
TInt iHighLightFlag; |
|
645 |
||
646 |
TInt iFlags; |
|
647 |
||
648 |
TInt iValidKeystrokeCount; |
|
649 |
TInt iPhraseCreation; |
|
650 |
TInt iPhraseCreationEditingState; |
|
651 |
TInt iChangeState; |
|
652 |
/** |
|
653 |
* whether the state change from entry to spelling editing is automatical. |
|
654 |
*/ |
|
655 |
TInt iState; |
|
656 |
||
657 |
TInt iLastResouce; |
|
658 |
||
659 |
/** |
|
660 |
* whether the state change from Edit to spelling. |
|
661 |
*/ |
|
662 |
TInt iChangeStateFromEditToSpelling; |
|
663 |
||
664 |
/** |
|
665 |
* whether the valid keystroke changed. |
|
666 |
*/ |
|
667 |
TInt iValidKeystrokeChanged; |
|
668 |
||
669 |
/** |
|
670 |
* whether the previous state is predictive display. |
|
671 |
*/ |
|
672 |
TBool iPreStateIsPredictive; |
|
673 |
}; |
|
674 |
||
675 |
inline void CAknFepUICtrlPinyinPopup::SetFlag(TInt aFlag) |
|
676 |
{ |
|
677 |
iFlags |= aFlag; |
|
678 |
} |
|
679 |
||
680 |
inline void CAknFepUICtrlPinyinPopup::ClearFlag(TInt aFlag) |
|
681 |
{ |
|
682 |
iFlags &= ~aFlag; |
|
683 |
} |
|
684 |
||
685 |
inline TBool CAknFepUICtrlPinyinPopup::IsFlagSet(TInt aFlag) const |
|
686 |
{ |
|
687 |
return iFlags & aFlag; |
|
688 |
} |
|
689 |
||
690 |
#endif // __AKN_FEP_UI_AVKON_PINYIN_POPUP_H |
|
691 |
||
692 |
// End of file |