|
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: drop-down list control |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_GENERICITUTWINDOWMANAGER_H |
|
20 #define C_GENERICITUTWINDOWMANAGER_H |
|
21 |
|
22 #include <peninputlayout.h> |
|
23 #include <peninputpluginutils.h> |
|
24 #include <peninputlayoutmultilineicf.h> |
|
25 #include <peninputinputcontextfield.h> |
|
26 |
|
27 #include <peninputlayoutvkb.h> |
|
28 #include "peninputgenericitutlayout.h" |
|
29 #include "peninputgenericitutpropertysubscriber.h" |
|
30 #include "peninputgenericitutlayoutcontext.h" |
|
31 |
|
32 class CGenericItutWindow; |
|
33 |
|
34 class CGenericItutWindowManager : public CBase, |
|
35 public MItutPropertySubscriber |
|
36 { |
|
37 public: |
|
38 static CGenericItutWindowManager* NewL(CGenericItutUiLayout* aLayoutOwner, |
|
39 CGenericItutDataMgr* iDataMgr); |
|
40 |
|
41 ~CGenericItutWindowManager(); |
|
42 |
|
43 void HandleCtrlEventL(TInt aEventType, CFepUiBaseCtrl* aCtrl, const TDesC& aEventData); |
|
44 |
|
45 TInt OnAppEditorTextComing(const TFepInputContextFieldData& aData); |
|
46 |
|
47 TBool HandleCommandL(TInt aCmd, TUint8* aData); |
|
48 |
|
49 void SetPropertyL( MItutPropertySubscriber::TItutProperty aPropertyName, |
|
50 const TDesC& aPropertyValue); |
|
51 |
|
52 TInt SizeChanged(TBool aIcfOverlap); |
|
53 |
|
54 CFepUiLayout* UiLayout(); |
|
55 |
|
56 void SubmitText(const TDesC& aEventData); |
|
57 |
|
58 void ShowArrowBtn(TInt aShowFlag); |
|
59 |
|
60 void HandleAppInfoChangeL(const TDesC& aInfo); |
|
61 |
|
62 void SimulateRawEvent(TInt aScanCode, TRawEvent::TType aType ); |
|
63 |
|
64 /** |
|
65 * Simulate raw event to window server immediately |
|
66 * simulating raw event command won't be scheduled by AO |
|
67 * because it won't be added into CPeninputAnimObj::iAnimCmd. |
|
68 * |
|
69 */ |
|
70 void SimulateImmeRawEvent(TInt aScanCode, TRawEvent::TType aType ); |
|
71 |
|
72 void SetPromptTextL(TUint8* aData); |
|
73 TInt OnSkinChange(); |
|
74 |
|
75 void SetLanguageL(TInt aLanguage); |
|
76 |
|
77 void ResetIndicatorL(CFepUiBaseCtrl* aIndicator); |
|
78 |
|
79 void ShowInputModeSwitchL(); |
|
80 |
|
81 void SetLastRawKeyDown(TInt aScanCode, TBool aKeyDown, CFepUiBaseCtrl* aCtrl); |
|
82 |
|
83 void CreateChineseSpecificCtrlsIfNeededL(); |
|
84 |
|
85 void ApplyVariantLafDataL(TBool aResolutionChange); |
|
86 |
|
87 CFepUiBaseCtrl* Control(TInt aCtrlId); |
|
88 |
|
89 void DimArrowKeys( TBool aDimArrow ); |
|
90 |
|
91 void ShowBubble(TInt aShow); |
|
92 |
|
93 void OnActivate(); |
|
94 |
|
95 inline CGenericItutWindow* Window(); |
|
96 |
|
97 /* Teleca change begin, 18.05.2009 ssal */ |
|
98 static TInt HideByteWarningBubble(TAny* aPointer); |
|
99 void HideByteWarningBubble(); |
|
100 void DisplayWarningNote(const TDesC& aInfo); |
|
101 /* Teleca change end, 18.05.2009 ssal */ |
|
102 private: |
|
103 |
|
104 CGenericItutWindowManager(CGenericItutUiLayout* aLayoutOwner, |
|
105 CGenericItutDataMgr* iDataMgr); |
|
106 |
|
107 void ConstructL(); |
|
108 void UpdateIndicatorL(TUint8* aData); |
|
109 |
|
110 void ReportItemSelected(TInt aCmdId, TInt aIdx, TBool aCommit); |
|
111 |
|
112 private: |
|
113 |
|
114 CGenericItutUiLayout* iLayoutOwner; |
|
115 |
|
116 CGenericItutWindow* iWindow; |
|
117 CGenericItutDataMgr* iDataMgr; |
|
118 |
|
119 TAknWindowLineLayout iBubbleSize; |
|
120 TAknTextLineLayout iBubbleTextLayout; |
|
121 |
|
122 |
|
123 TBool iRawKeyDown; |
|
124 CFepUiBaseCtrl* iRawKeyCtrl; |
|
125 TInt iLastRawKeyDown; |
|
126 TBool iInEditWordQueryDlg; |
|
127 TBool iDimOperationBtn; |
|
128 |
|
129 /* Teleca change begin, 18.05.2009 ssal */ |
|
130 CPeriodic* iInfoTimer; |
|
131 /* Teleca change end, 18.05.2009 ssal */ |
|
132 }; |
|
133 |
|
134 inline CGenericItutWindow* CGenericItutWindowManager::Window() |
|
135 { |
|
136 return iWindow; |
|
137 } |
|
138 #endif // C_GENERICITUTWINDOWMANAGER_H |