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) 2002-2005 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: peninput generic vkb window layout class |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef C_PENINPUTSPLITQWERTYWINDOW_H |
|
19 |
#define C_PENINPUTSPLITQWERTYWINDOW_H |
|
20 |
||
21 |
// System includes |
|
22 |
#include <peninputlayoutwindowext.h> |
|
23 |
#include <peninputuistatemgrinterface.h> |
|
24 |
#include <AknLayoutDef.h> |
|
25 |
||
26 |
// Forward declarations |
|
27 |
class CAknFepCtrlEventButton; |
|
28 |
class CAknFepCtrlDragButton; |
|
29 |
class CAknFepCtrlRepeatButton; |
|
30 |
class CAknFepCtrlCommonButton; |
|
31 |
class CPeninputCommonChoiceList; |
|
32 |
class CPeninputSplitQwertyLafMgr; |
|
33 |
class CPeninputSyncBitmapRotator; |
|
34 |
class CRepository; |
|
35 |
class CFepLayoutScrollableList; |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
36 |
class CPopupBubbleCtrl; |
44 | 37 |
|
38 |
// Constants |
|
39 |
const TInt KMaxFileLength = 80; |
|
40 |
const TInt KMaxRangeLabelLength = 50; |
|
41 |
||
42 |
/** |
|
43 |
* class TAllRangeLabels |
|
44 |
*/ |
|
45 |
class TAllRangeLabels |
|
46 |
{ |
|
47 |
public: |
|
48 |
TBuf<KMaxRangeLabelLength> iLabelNativeChar; |
|
49 |
TBuf<KMaxRangeLabelLength> iLabelNativeNumber; |
|
50 |
TBuf<KMaxRangeLabelLength> iLabelLatinChar; |
|
51 |
TBuf<KMaxRangeLabelLength> iLabelLatinNumber; |
|
52 |
TBuf<KMaxRangeLabelLength> iLabelSymbol; |
|
53 |
TBuf<KMaxRangeLabelLength> iLabelAccent; |
|
54 |
}; |
|
55 |
||
56 |
/** |
|
57 |
* class CPeninputSplitQwertyWindow |
|
58 |
* Main window of IME Split-Qwerty |
|
59 |
* |
|
60 |
* @lib peninputsplitqwerty.lib |
|
61 |
* @since S60 v5.0 |
|
62 |
*/ |
|
63 |
class CPeninputSplitQwertyWindow : public CPeninputLayoutWindowExt |
|
64 |
{ |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
65 |
private: |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
66 |
enum TIndicatorAlign |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
67 |
{ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
68 |
EIndiAlignLeft, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
69 |
EIndiAlignCenter, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
70 |
EIndiAlignRight |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
71 |
}; |
44 | 72 |
public: |
73 |
/** |
|
74 |
* Symbian constructor |
|
75 |
* |
|
76 |
* @since S60 v5.0 |
|
77 |
* @param aUiLayout The plugin ui layout |
|
78 |
* @param aLayoutContext The vkb layout context |
|
79 |
* @return The pointer to CPeninputSplitQwertyWindow object |
|
80 |
*/ |
|
81 |
static CPeninputSplitQwertyWindow* NewL( CFepUiLayout* aUiLayout, |
|
82 |
MPeninputLayoutContext* aLayoutContext, |
|
83 |
MPeninputUiStateMgr* aUiStateMgr ); |
|
84 |
||
85 |
/** |
|
86 |
* C++ destructor |
|
87 |
* |
|
88 |
* @since S60 v5.0 |
|
89 |
* @return None |
|
90 |
*/ |
|
91 |
virtual ~CPeninputSplitQwertyWindow(); |
|
92 |
||
93 |
public: //from base class CPeninputLayoutWindowExt |
|
94 |
/** |
|
95 |
* From CPeninputLayoutWindowExt |
|
96 |
* Get id of window config resource |
|
97 |
* |
|
98 |
* @since S60 v5.0 |
|
99 |
* @return The id of window config resource |
|
100 |
*/ |
|
101 |
TInt GetWindowConfigResId(); |
|
102 |
||
103 |
/** |
|
104 |
* From CPeninputLayoutWindowExt |
|
105 |
* Get id of window resource |
|
106 |
* |
|
107 |
* @since S60 v5.0 |
|
108 |
* @return The id of window resource |
|
109 |
*/ |
|
110 |
TInt GetWindowResId(); |
|
111 |
||
112 |
/** |
|
113 |
* From CPeninputLayoutWindowExt |
|
114 |
* Get resource id of numeric keymapping |
|
115 |
* |
|
116 |
* @since S60 v5.0 |
|
117 |
* @return The id of window resource |
|
118 |
*/ |
|
119 |
TInt GetNumKeymappingResId(); |
|
120 |
||
121 |
/** |
|
122 |
* From CPeninputLayoutWindowExt |
|
123 |
* Get file name of window config resource |
|
124 |
* |
|
125 |
* @since S60 v5.0 |
|
126 |
* @param aLangID The id of language |
|
127 |
* @return The file name of window config resource |
|
128 |
*/ |
|
129 |
const TDesC& GetWindowConfigResFileName( TInt aLangID ); |
|
130 |
||
131 |
/** |
|
132 |
* From CPeninputLayoutWindow |
|
133 |
* Get file name of window resource |
|
134 |
* |
|
135 |
* @since S60 v5.0 |
|
136 |
* @return The file name of window resource |
|
137 |
*/ |
|
138 |
const TDesC& GetWindowResFileName(); |
|
139 |
||
140 |
/** |
|
141 |
* From CPeninputLayoutWindowExt |
|
142 |
* Change unit size |
|
143 |
* |
|
144 |
* @since S60 v5.0 |
|
145 |
* @return The window rect |
|
146 |
*/ |
|
147 |
const TRect ChangeUnitSize(); |
|
148 |
||
149 |
/** |
|
150 |
* From CPeninputLayoutWindowExt |
|
151 |
* Change size of client area |
|
152 |
* |
|
153 |
* @since S60 v5.0 |
|
154 |
* @return None |
|
155 |
*/ |
|
156 |
void ChangeClientSize(); |
|
157 |
||
158 |
/** |
|
159 |
* From CPeninputLayoutWindowExt |
|
160 |
* Construct all controls specified in resource |
|
161 |
* |
|
162 |
* @since S60 v5.0 |
|
163 |
* @return None |
|
164 |
*/ |
|
165 |
void CreateAllControlsL(); |
|
166 |
||
167 |
/** |
|
168 |
* From CPeninputLayoutWindowExt |
|
169 |
* Set control fonts. Fonts info comes from resource |
|
170 |
* |
|
171 |
* @since S60 v5.0 |
|
172 |
* @return None |
|
173 |
*/ |
|
174 |
void SetControlsFont(); |
|
175 |
||
176 |
/** |
|
177 |
* From CPeninputLayoutWindowExt |
|
178 |
* Pop up choice list |
|
179 |
* |
|
180 |
* @since S60 v5.0 |
|
181 |
* @return None |
|
182 |
*/ |
|
183 |
void PopupChoiceList(); |
|
184 |
||
185 |
/** |
|
186 |
* From CPeninputLayoutWindowExt |
|
187 |
* Re-organize all controls in the assigned client area layout |
|
188 |
* |
|
189 |
* @since S60 v5.0 |
|
190 |
* @param aClientLayoutId The id of client area layout |
|
191 |
* @return None |
|
192 |
*/ |
|
193 |
void ReorganizeControls( TInt aClientLayoutId, TBool aNeedReset ); |
|
194 |
||
195 |
/** |
|
196 |
* From CPeninputLayoutWindowExt |
|
197 |
* Do when case changed |
|
198 |
* |
|
199 |
* @since S60 v5.0 |
|
200 |
* @param aNewCase The new case |
|
201 |
* @return None |
|
202 |
*/ |
|
203 |
void DoCaseChange( TInt aNewCase ); |
|
204 |
||
205 |
public: |
|
206 |
/** |
|
207 |
* From CPeninputLayoutWindowExt |
|
208 |
* Handle control event |
|
209 |
* |
|
210 |
* @since S60 v5.0 |
|
211 |
* @param aEventType The event type |
|
212 |
* @param aCtrl The control who sends the event |
|
213 |
* @param aEventData The event data |
|
214 |
* @return None |
|
215 |
*/ |
|
216 |
void HandleControlEvent( TInt aEventType, CFepUiBaseCtrl* aCtrl, |
|
217 |
const TDesC& aEventData ); |
|
218 |
||
219 |
public: |
|
220 |
/** |
|
221 |
* ConstructFromResourceL load settings from resource. |
|
222 |
* Before calling this function, the resource id should be set |
|
223 |
* |
|
224 |
* @since S60 v5.0 |
|
225 |
* @return None |
|
226 |
*/ |
|
227 |
void ConstructFromResourceL(); |
|
228 |
||
229 |
/** |
|
230 |
* Callback function to do background construction |
|
231 |
* |
|
232 |
* |
|
233 |
* @since S60 v5.0 |
|
234 |
* @return None |
|
235 |
*/ |
|
236 |
static TInt BackgroundTaskL( TAny* aPtr ); |
|
237 |
||
238 |
/** |
|
239 |
* Set current language |
|
240 |
* |
|
241 |
* @since S60 v5.0 |
|
242 |
* @param aLang Current language |
|
243 |
* @return None |
|
244 |
*/ |
|
245 |
void SetSwitchlistLanguage( TInt aLang ); |
|
246 |
||
247 |
/** |
|
248 |
* Set current editor is secret |
|
249 |
* |
|
250 |
* @since S60 v5.0 |
|
251 |
* @param aSecret Editor is secret |
|
252 |
* @return None |
|
253 |
*/ |
|
254 |
void SetSwitchlistSecretFlag( TBool aSecret ); |
|
255 |
||
256 |
/** |
|
257 |
* Dim the arrow keys on qwerty when the editor is findpane or secret editor |
|
258 |
* |
|
259 |
* @since S60 v5.0 |
|
260 |
* @param aSecret Editor is secret |
|
261 |
* @return None |
|
262 |
*/ |
|
263 |
void DimArrowKeys( TBool aDimArrow ); |
|
264 |
||
265 |
/** |
|
266 |
* Handle accented char event |
|
267 |
* |
|
268 |
* @since S60 v5.0 |
|
269 |
* @param aEventType The event type |
|
270 |
* @param aEventData The event data |
|
271 |
* @param aDeadKey The DeadKey char buffer |
|
272 |
* @param anewCharBuf The new Accented buffer |
|
273 |
* @return None |
|
274 |
*/ |
|
275 |
TBool HandleAccentCharEvent( TInt aEventType, const TDesC& aEventData, |
|
276 |
const TDesC& aDeadKey, HBufC* anewCharBuf ); |
|
277 |
||
278 |
/** |
|
279 |
* Handle virtual key latched event |
|
280 |
* |
|
281 |
* @since S60 v5.0 |
|
282 |
* @param aEventType The event type |
|
283 |
* @param aCtrl The controler |
|
284 |
* @param aEventData Event data |
|
285 |
* @return None |
|
286 |
*/ |
|
287 |
void HandleVirtualKeyLatchedEvent( TInt aEventType, CFepUiBaseCtrl* aCtrl, |
|
288 |
const TDesC& aEventData ); |
|
289 |
||
290 |
/** |
|
291 |
* Handle virtual key up event |
|
292 |
* |
|
293 |
* @since S60 v5.0 |
|
294 |
* @param aEventType The event type |
|
295 |
* @param aCtrl The controler |
|
296 |
* @param aEventData Event data |
|
297 |
* @return None |
|
298 |
*/ |
|
299 |
TBool HandleVirtualKeyUpEvent( TInt aEventType, CFepUiBaseCtrl* aCtrl, |
|
300 |
const TDesC& aEventData ); |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
301 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
302 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
303 |
* Handle virtual key down event |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
304 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
305 |
* @since S60 v5.0 |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
306 |
* @param None |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
307 |
* @return None |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
308 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
309 |
void HandleVirtualKeyDownEvent(); |
44 | 310 |
|
311 |
/** |
|
312 |
* Submit dead key |
|
313 |
* |
|
314 |
* @param abuf Dead key buffer |
|
315 |
* @return None |
|
316 |
*/ |
|
317 |
void SubmitDeadKeyL( const TDesC& abuf ); |
|
318 |
||
319 |
/* |
|
320 |
* Set dead key |
|
321 |
* |
|
322 |
* @since S60 v5.0 |
|
323 |
* @return None |
|
324 |
*/ |
|
325 |
void SetDeadKey(); |
|
326 |
||
327 |
/** |
|
328 |
* Unlatch a DeadKey by the key buffer |
|
329 |
* |
|
330 |
* @since S60 v5.0 |
|
331 |
* @param abuf The key buffer which will be unlatched |
|
332 |
* @return None |
|
333 |
*/ |
|
334 |
void UnLatchDeadKey( const TDesC& abuf = KNullDesC ); |
|
335 |
||
336 |
/** |
|
337 |
* Update laf data |
|
338 |
* |
|
339 |
* @since S60 v5.0 |
|
340 |
* @return None |
|
341 |
*/ |
|
342 |
void UpdateLafData(); |
|
343 |
||
344 |
/* |
|
345 |
* Load accent labels for range list |
|
346 |
* |
|
347 |
* @since S60 v5.0 |
|
348 |
* @param aLang current language id |
|
349 |
* @return None |
|
350 |
*/ |
|
351 |
void ConstructAccentListL( TInt aLangId ); |
|
352 |
||
353 |
/* |
|
354 |
* Load range labels for range list |
|
355 |
* |
|
356 |
* @since S60 v5.0 |
|
357 |
* @param aLangId current language id |
|
358 |
* @return None |
|
359 |
*/ |
|
360 |
void ConstructRangeLabelListL( TInt aLangId ); |
|
361 |
||
362 |
/** |
|
363 |
* Show or hide preview bubble |
|
364 |
* |
|
365 |
* @since S60 v5.0 |
|
366 |
* @param aShow ETrue if preview bubble is going to be Shown |
|
367 |
* @return None |
|
368 |
*/ |
|
369 |
void ShowBubble( TInt aShow ); |
|
370 |
||
371 |
/** |
|
372 |
* Update state of range button |
|
373 |
* |
|
374 |
* @since S60 v5.0 |
|
375 |
* @return None |
|
376 |
*/ |
|
377 |
void UpdateRangeCtrlsL(); |
|
378 |
||
379 |
/** |
|
380 |
* Update layout position and size |
|
381 |
* |
|
382 |
* @since S60 v5.0 |
|
383 |
* @return None |
|
384 |
*/ |
|
385 |
void UpdateLayoutPosAndSize(); |
|
386 |
||
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
387 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
388 |
* Set split indicator bubble size with text |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
389 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
390 |
* @return None |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
391 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
392 |
void SetSplitIndiBubbleSizeWithText(); |
44 | 393 |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
394 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
395 |
* Set split indicator bubble size without text |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
396 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
397 |
* @return None |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
398 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
399 |
void SetSplitIndiBubbleSizeWithoutText(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
400 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
401 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
402 |
* Update split indicator bubble |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
403 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
404 |
* @param aData text |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
405 |
* @return None |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
406 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
407 |
void UpdateSplitIndiBubbleL( TUint8* aData ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
408 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
409 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
410 |
* Set bubble image |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
411 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
412 |
* @param aImgID1 image ID1 |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
413 |
* @param aMaskID1 mask image id1 |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
414 |
* @param aImgID2 image ID2 |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
415 |
* @param aMaskID2 mask image id2 |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
416 |
* @return None |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
417 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
418 |
void SetSplitIndiBubbleImageL( const TInt aImgID1, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
419 |
const TInt aMaskID1, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
420 |
const TInt aImgID2, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
421 |
const TInt aMaskID2 ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
422 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
423 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
424 |
* Calculate indicator bubble rect |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
425 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
426 |
* @param aBoundRect |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
427 |
* @param aRealRect1 |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
428 |
* @param aRealRect2 |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
429 |
* @param aAlign |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
430 |
* @return None |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
431 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
432 |
void CalIndicatorRect(const TRect& aBoundRect, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
433 |
TRect& aRealRect1, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
434 |
TRect& aRealRect2, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
435 |
TIndicatorAlign aAlign); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
436 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
437 |
* Get indicator data |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
438 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
439 |
* @return TFepIndicatorInfo indicator info |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
440 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
441 |
inline TFepIndicatorInfo SplitIndicatorData(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
442 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
443 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
444 |
* Set indicator data |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
445 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
446 |
* @param aIndicatorData Indicator Data |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
447 |
* @return None |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
448 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
449 |
inline void SetSplitIndicatorData( const TFepIndicatorInfo& aIndicatorData ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
450 |
|
44 | 451 |
protected: //from base class CPeninputLayoutWindowExt |
452 |
/** |
|
453 |
* Set laf layout type |
|
454 |
* |
|
455 |
* @since S60 v5.0 |
|
456 |
* @param aRows row count |
|
457 |
* @param aColumns column count |
|
458 |
* @return None |
|
459 |
*/ |
|
460 |
virtual void SetLafLayOut( TInt aRows, TInt aColumns ); |
|
461 |
||
462 |
/** |
|
463 |
* Create custom control |
|
464 |
* |
|
465 |
* @since S60 v5.0 |
|
466 |
* @return ETrue if success |
|
467 |
*/ |
|
468 |
virtual TBool CreateCustomControlL( TInt16 aControlId, TInt32 aImageId ); |
|
469 |
||
470 |
/** |
|
471 |
* Add custom control to this group |
|
472 |
* |
|
473 |
* @since S60 v5.0 |
|
474 |
* @param aCtrl a control |
|
475 |
* @return None |
|
476 |
*/ |
|
477 |
virtual void AddCustomControlGroupL( CFepUiBaseCtrl* aCtrl ); |
|
478 |
||
479 |
/** |
|
480 |
* Set layout size |
|
481 |
* |
|
482 |
* @since S60 v5.0 |
|
483 |
* @return None |
|
484 |
*/ |
|
485 |
void SetVkbLayoutSize(); |
|
486 |
||
487 |
private: |
|
488 |
/** |
|
489 |
* C++ constructor |
|
490 |
* |
|
491 |
* @since S60 v5.0 |
|
492 |
* @param aUiLayout The plugin ui layout |
|
493 |
* @param aLayoutContext The vkb layout context |
|
494 |
* @return None |
|
495 |
*/ |
|
496 |
CPeninputSplitQwertyWindow( CFepUiLayout* aUiLayout, |
|
497 |
MPeninputLayoutContext* aLayoutContext, |
|
498 |
MPeninputUiStateMgr* aUiStateMgr ); |
|
499 |
||
500 |
/** |
|
501 |
* Symbian constructor |
|
502 |
* |
|
503 |
* @since S60 v5.0 |
|
504 |
* @return None |
|
505 |
*/ |
|
506 |
void ConstructL(); |
|
507 |
||
508 |
private: |
|
509 |
/** |
|
510 |
* Add range bar into client area |
|
511 |
* |
|
512 |
* @since S60 v5.0 |
|
513 |
* @return None |
|
514 |
*/ |
|
515 |
void AddRangeBarL(); |
|
516 |
||
517 |
/** |
|
518 |
* Add button to client area |
|
519 |
* |
|
520 |
* @since S60 v5.0 |
|
521 |
* @param aControlId The control id |
|
522 |
* @param aEventId The control's event id |
|
523 |
* @param aResId The control's resource id |
|
524 |
* @param aUnicode The control's unicode |
|
525 |
* @param aIsRepeat The TBool indicating whether the |
|
526 |
* control is repeated or not |
|
527 |
* @return The pointer to CAknFepCtrlEventButton object |
|
528 |
*/ |
|
529 |
CAknFepCtrlEventButton* AddButtonL( const TInt aControlId, |
|
530 |
const TInt aEventId, |
|
531 |
const TInt aResId, |
|
532 |
const TInt aUnicode = 0, |
|
533 |
const TBool aIsRepeat = EFalse ); |
|
534 |
||
535 |
/** |
|
536 |
* Add popup window to display accented char list |
|
537 |
* |
|
538 |
* @since S60 v5.0 |
|
539 |
* @return None |
|
540 |
*/ |
|
541 |
void AddPopupWindowL(); |
|
542 |
||
543 |
/** |
|
544 |
* Reorgnize position and size of function buttons |
|
545 |
* |
|
546 |
* @since S60 v5.0 |
|
547 |
* @return None |
|
548 |
*/ |
|
549 |
void ReorgnizeTitleBar(); |
|
550 |
||
551 |
/** |
|
552 |
* Show range list |
|
553 |
* |
|
554 |
* @since S60 v5.0 |
|
555 |
* @return None |
|
556 |
*/ |
|
557 |
void PopupRangeListL(); |
|
558 |
||
559 |
/** |
|
560 |
* Get resource info of accented chars popup window |
|
561 |
* |
|
562 |
* @since S60 v5.0 |
|
563 |
* @return None |
|
564 |
*/ |
|
565 |
void GetPopupWndInfoFromResL( TResourceReader reader, const TRect& aRect ); |
|
566 |
||
567 |
/** |
|
568 |
* Background constructor |
|
569 |
* |
|
570 |
* @since S60 v5.0 |
|
571 |
* @return None |
|
572 |
*/ |
|
573 |
void DoIdleConstructL(); |
|
574 |
||
575 |
/** |
|
576 |
* Simulate raw event |
|
577 |
* |
|
578 |
* @since S60 v5.0 |
|
579 |
* @param aScanCode scan code of key |
|
580 |
* @param aType event type |
|
581 |
* @return None |
|
582 |
*/ |
|
583 |
void SimulateRawEvent( TInt aScanCode, TRawEvent::TType aType ); |
|
584 |
||
585 |
inline TBool IsRtoLLanguage( TInt aLanguage ); |
|
586 |
inline TBool IsValidLanguage( TInt aLanguage ); |
|
587 |
||
588 |
/** |
|
589 |
* Handle size changed for range list |
|
590 |
* |
|
591 |
* @since S60 v5.0 |
|
592 |
* @return None |
|
593 |
*/ |
|
594 |
void HandlePopupSizeChange(); |
|
595 |
||
596 |
/** |
|
597 |
* Handle dead key event |
|
598 |
* |
|
599 |
* @since S60 v5.0 |
|
600 |
* @param aEventType event type |
|
601 |
* @param aEventData event data |
|
602 |
* @return ETrue if event is handled |
|
603 |
*/ |
|
604 |
TBool HandleDeadKeyL( TInt aEventType, const TDesC& aEventData ); |
|
605 |
||
606 |
/** |
|
607 |
* Handle resource of button(base on language direction) |
|
608 |
* |
|
609 |
* @since S60 v5.0 |
|
610 |
* @param aControlId id of button control |
|
611 |
* @return None |
|
612 |
*/ |
|
613 |
void HandleButtonResOnLangDirChange( TInt aControlId ); |
|
614 |
void HandleButtonResOnLangDirChangeL( TInt aControlId ); |
|
615 |
||
616 |
/** |
|
617 |
* Utils to get an event button |
|
618 |
* |
|
619 |
* @since S60 v5.0 |
|
620 |
* @param aCtrlId id of button control |
|
621 |
* @return pointer to an event button |
|
622 |
*/ |
|
623 |
inline CAknFepCtrlEventButton* EventButtonCtrl( TInt aCtrlId ); |
|
624 |
||
625 |
/** |
|
626 |
* Utils to get an common button |
|
627 |
* |
|
628 |
* @since S60 v5.0 |
|
629 |
* @param aCtrlId id of button control |
|
630 |
* @return pointer to an common button |
|
631 |
*/ |
|
632 |
inline CAknFepCtrlCommonButton* CommonButtonCtrl( TInt aCtrlId ); |
|
633 |
||
634 |
/** |
|
635 |
* Utils to get context value |
|
636 |
* |
|
637 |
* @since S60 v5.0 |
|
638 |
* @param aDataIndex index of context value |
|
639 |
* @return conext value |
|
640 |
*/ |
|
641 |
TInt IntContext( TPeninputDataType aDataIndex ); |
|
642 |
||
643 |
/** |
|
644 |
* Handle range list event |
|
645 |
* |
|
646 |
* @since S60 v5.0 |
|
647 |
* @return None |
|
648 |
*/ |
|
649 |
void HandleRangeListSelectedL( CFepUiBaseCtrl* aCtrl, const TDesC& aData ); |
|
650 |
||
651 |
||
652 |
/** |
|
653 |
* Get resource ids of range button icon |
|
654 |
* |
|
655 |
* @since S60 v5.0 |
|
656 |
* @param aLangId current language id |
|
657 |
* @param aAlphaRange variable to receive icon resource id for alpha range |
|
658 |
* @param aOtherRange variable to receive icon resource id for other ranges |
|
659 |
* @return None |
|
660 |
*/ |
|
661 |
void GetRangeIconResource( TInt aLangId, TInt& aAlphaRange, TInt& aOtherRange ); |
|
662 |
||
663 |
||
664 |
/** |
|
665 |
* Prepare range list items |
|
666 |
* |
|
667 |
* @since S60 v5.0 |
|
668 |
* @param aRangeItems items in range list |
|
669 |
* @return None |
|
670 |
*/ |
|
671 |
void PrepareRangeListItems( RArray<CFepLayoutChoiceList::SItem>& aRangeItems ); |
|
672 |
||
673 |
/** |
|
674 |
* Called when short press occurs on range button. |
|
675 |
* |
|
676 |
* @since S60 v3.2 |
|
677 |
* @return None |
|
678 |
*/ |
|
679 |
void HandleRangeButtonShortPress(); |
|
680 |
||
681 |
private: // Data |
|
682 |
||
683 |
/** |
|
684 |
* The vkb extenting control for vkb area |
|
685 |
* Not own |
|
686 |
*/ |
|
687 |
CPeninputVkbCtrlExt* iVkbCtrl; |
|
688 |
||
689 |
/** |
|
690 |
* button ctrl: left arrow |
|
691 |
* Not own |
|
692 |
*/ |
|
693 |
CAknFepCtrlRepeatButton* iArrowLeftButton; |
|
694 |
||
695 |
/** |
|
696 |
* button ctrl: right arrow |
|
697 |
* Not own |
|
698 |
*/ |
|
699 |
CAknFepCtrlRepeatButton* iArrowRightButton; |
|
700 |
||
701 |
/** |
|
702 |
* button ctrl: range |
|
703 |
* Not own |
|
704 |
*/ |
|
705 |
CAknFepCtrlCommonButton* iRangeButton; |
|
706 |
||
707 |
/** |
|
708 |
* Range list |
|
709 |
* Not own |
|
710 |
*/ |
|
711 |
CPeninputCommonChoiceList* iPopupWnd; |
|
712 |
||
713 |
/** |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
714 |
* Indicator bubble |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
715 |
* Not own |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
716 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
717 |
CPopupBubbleCtrl* iSplitIndiBubble; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
718 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
719 |
/** |
44 | 720 |
* The resource file name |
721 |
*/ |
|
722 |
TBuf<KMaxFileLength> iResourceFilename; |
|
723 |
||
724 |
/** |
|
725 |
* The background bitmap of popup window |
|
726 |
* Not own |
|
727 |
*/ |
|
728 |
CFbsBitmap* iPopupWndBgImg; |
|
729 |
||
730 |
/** |
|
731 |
* The focus bitmap of popup window |
|
732 |
* Not own |
|
733 |
*/ |
|
734 |
CFbsBitmap* iPopupWndFocusImg; |
|
735 |
||
736 |
/** |
|
737 |
* The UI state manager |
|
738 |
* Not own |
|
739 |
*/ |
|
740 |
MPeninputUiStateMgr* iUiStateMgr; |
|
741 |
||
742 |
/** |
|
743 |
* Application window rect |
|
744 |
*/ |
|
745 |
TRect iAppWndRect; |
|
746 |
||
747 |
/** |
|
748 |
* AO for background task |
|
749 |
* Own |
|
750 |
*/ |
|
751 |
CIdle* iIdle; |
|
752 |
||
753 |
/** |
|
754 |
* Whether popup window has been initied |
|
755 |
*/ |
|
756 |
TBool iPopupInited; |
|
757 |
||
758 |
/** |
|
759 |
* Popup window item rect |
|
760 |
*/ |
|
761 |
TRect iPopupItemRect; |
|
762 |
||
763 |
/** |
|
764 |
* Choice text layout |
|
765 |
*/ |
|
766 |
TAknTextLineLayout iChoiceTextLayout; |
|
767 |
||
768 |
/** |
|
769 |
* Whether popup window text property has been set |
|
770 |
*/ |
|
771 |
TBool iPopupSet; |
|
772 |
||
773 |
/** |
|
774 |
* Array of unit size |
|
775 |
* Own |
|
776 |
*/ |
|
777 |
RArray<TSize> iUnits; |
|
778 |
||
779 |
/** |
|
780 |
* Laf data manager |
|
781 |
* Own |
|
782 |
*/ |
|
783 |
CPeninputSplitQwertyLafMgr* iLafMgr; |
|
784 |
||
785 |
/** |
|
786 |
* The new DeadKey buffer |
|
787 |
*/ |
|
788 |
TBuf<16> iNewDeadKeyBuf; |
|
789 |
||
790 |
/** |
|
791 |
* The old DeadKey buffer |
|
792 |
*/ |
|
793 |
TBuf<16> iOldDeadKeyBuf; |
|
794 |
||
795 |
/** |
|
796 |
* Window layout of preview bubble |
|
797 |
*/ |
|
798 |
TAknWindowLineLayout iBubbleSize; |
|
799 |
||
800 |
/** |
|
801 |
* Text layout of preview bubble |
|
802 |
*/ |
|
803 |
TAknTextLineLayout iBubbleTextLayout; |
|
804 |
||
805 |
/** |
|
806 |
* Flag for first construction |
|
807 |
*/ |
|
808 |
TBool iFirstConstruct; |
|
809 |
||
810 |
/** |
|
811 |
* Writing language |
|
812 |
*/ |
|
813 |
TInt iLanguage; |
|
814 |
||
815 |
/** |
|
816 |
* Bitmap rotator |
|
817 |
* Own |
|
818 |
*/ |
|
819 |
CPeninputSyncBitmapRotator* iBmpRotator; |
|
820 |
||
821 |
/** |
|
822 |
* Accent commonds for range list |
|
823 |
* Own |
|
824 |
*/ |
|
825 |
RArray<CFepLayoutChoiceList::SItem> iAccentCmdList; |
|
826 |
||
827 |
/** |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
828 |
* Indicator bubble size |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
829 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
830 |
TSize iSplitIndicatorSize; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
831 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
832 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
833 |
* Indicator text size |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
834 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
835 |
TSize iSplitIndicatorTextSize; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
836 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
837 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
838 |
* Indicator data |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
839 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
840 |
TFepIndicatorInfo iSplitIndicatorData; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
841 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
842 |
/** |
44 | 843 |
* Range labels for range list |
844 |
*/ |
|
845 |
TAllRangeLabels iRangeLabels; |
|
846 |
||
847 |
/** |
|
848 |
* Indicates whether range button short press is handled. |
|
849 |
*/ |
|
850 |
TBool iHandleRangeShortPress; |
|
851 |
}; |
|
852 |
||
853 |
inline TBool CPeninputSplitQwertyWindow::IsRtoLLanguage( TInt aLanguage ) |
|
854 |
{ |
|
855 |
return ( aLanguage == ELangArabic || aLanguage == ELangHebrew |
|
856 |
|| aLanguage == ELangFarsi || aLanguage == ELangUrdu ); |
|
857 |
} |
|
858 |
||
859 |
inline TBool CPeninputSplitQwertyWindow::IsValidLanguage( TInt aLanguage ) |
|
860 |
{ |
|
861 |
return ( aLanguage != ELangTest && aLanguage != ELangNone ); |
|
862 |
} |
|
863 |
||
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
864 |
inline void CPeninputSplitQwertyWindow::SetSplitIndicatorData( |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
865 |
const TFepIndicatorInfo& aIndicatorData ) |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
866 |
{ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
867 |
iSplitIndicatorData.iIndicatorImgID = aIndicatorData.iIndicatorImgID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
868 |
iSplitIndicatorData.iIndicatorMaskID = aIndicatorData.iIndicatorMaskID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
869 |
iSplitIndicatorData.iIndicatorTextImgID = aIndicatorData.iIndicatorTextImgID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
870 |
iSplitIndicatorData.iIndicatorTextMaskID = aIndicatorData.iIndicatorTextMaskID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
871 |
} |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
872 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
873 |
inline TFepIndicatorInfo CPeninputSplitQwertyWindow::SplitIndicatorData() |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
874 |
{ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
875 |
return iSplitIndicatorData; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
876 |
} |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
877 |
|
44 | 878 |
inline CAknFepCtrlEventButton* CPeninputSplitQwertyWindow::EventButtonCtrl( |
879 |
TInt aCtrlId ) |
|
880 |
{ |
|
881 |
return static_cast<CAknFepCtrlEventButton*> ( Control( aCtrlId ) ); |
|
882 |
} |
|
883 |
||
884 |
inline CAknFepCtrlCommonButton* CPeninputSplitQwertyWindow::CommonButtonCtrl( |
|
885 |
TInt aCtrlId ) |
|
886 |
{ |
|
887 |
return static_cast<CAknFepCtrlCommonButton*> ( Control( aCtrlId ) ); |
|
888 |
} |
|
889 |
||
890 |
#endif // C_PENINPUTSPLITQWERTYWINDOW_H |