1 /* |
1 /* |
2 * Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
44 #include <babitflags.h> |
44 #include <babitflags.h> |
45 #endif |
45 #endif |
46 |
46 |
47 // For MAknMfneCommandObserver |
47 // For MAknMfneCommandObserver |
48 #if !defined(__AKNMFNECOMMANDOBSERVER) |
48 #if !defined(__AKNMFNECOMMANDOBSERVER) |
49 #include <AknMfneCommandObserver.h> |
49 #include <aknmfnecommandobserver.h> |
50 #endif //!defined(__AKNMFNECOMMANDOBSERVER) |
50 #endif //!defined(__AKNMFNECOMMANDOBSERVER) |
51 |
51 |
52 // |
52 // |
53 // Forward Declarations |
53 // Forward Declarations |
54 // |
54 // |
810 0 (or EFalse) enables VKB. When disabled, |
810 0 (or EFalse) enables VKB. When disabled, |
811 editor doesn't request PenInputServer to start VKB */ |
811 editor doesn't request PenInputServer to start VKB */ |
812 EDisablePenInput, |
812 EDisablePenInput, |
813 |
813 |
814 /** Support finger input. Paramter is TFingerSupportParams.*/ |
814 /** Support finger input. Paramter is TFingerSupportParams.*/ |
815 EFingerSupport |
815 EFingerSupport, |
|
816 |
|
817 ELaunchPenInputAutomatic, |
|
818 |
|
819 EPartialScreenInput |
816 }; |
820 }; |
817 /** Parameter for finger support feature: |
821 /** Parameter for finger support feature: |
818 * 0 means disable the suppor; |
822 * 0 means disable the suppor; |
819 * 1 means enable the support; |
823 * 1 means enable the support; |
820 * 2 means enable the support with highlight of whole text. |
824 * 2 means enable the support with highlight of whole text. |
1141 void ReportUpdate(); |
1145 void ReportUpdate(); |
1142 IMPORT_C virtual void MakeVisible(TBool aVisible); |
1146 IMPORT_C virtual void MakeVisible(TBool aVisible); |
1143 void SetCurrentField( TInt aCurrentField ); |
1147 void SetCurrentField( TInt aCurrentField ); |
1144 void SetValidateCallBack( TCallBack aCallBack ); |
1148 void SetValidateCallBack( TCallBack aCallBack ); |
1145 void ReportStateChangeEventL(); |
1149 void ReportStateChangeEventL(); |
|
1150 void SetFirstEditableField(); |
1146 |
1151 |
1147 private: |
1152 private: |
1148 // framework |
1153 // framework |
1149 IMPORT_C virtual void Draw(const TRect& aRect) const; |
1154 IMPORT_C virtual void Draw(const TRect& aRect) const; |
1150 |
1155 |
1151 // new virtual functions |
1156 // new virtual functions |
1152 IMPORT_C virtual void CreatePopoutIfRequiredL(); |
1157 IMPORT_C virtual void CreatePopoutIfRequiredL(); |
1153 // miscellaneous functions |
1158 // miscellaneous functions |
1154 void DrawRange(CWindowGc& aGc, TInt aFirstField, TInt aLastField) const; |
1159 |
|
1160 /** |
|
1161 * Draws the specified fields within the MFNE. |
|
1162 * All fields between and including the @c aFirstField and @c aLastField |
|
1163 * will be drawn. |
|
1164 * |
|
1165 * @param aGc The graphics context to draw to. |
|
1166 * @param aFirstField First field to be drawn. |
|
1167 * @param aLastField Last field to be drawn. |
|
1168 * @param aSkipBackgroundDrawer @c ETrue to skip the background drawing |
|
1169 * with a background drawer if it's used |
|
1170 * for the MFNE. |
|
1171 */ |
|
1172 void DrawRange( CWindowGc& aGc, |
|
1173 TInt aFirstField, |
|
1174 TInt aLastField, |
|
1175 TBool aSkipBackgroundDrawer = EFalse ) const; |
|
1176 |
1155 CWindowGc& PreparedGc() const; |
1177 CWindowGc& PreparedGc() const; |
1156 void SetGcToNormalVideo(CWindowGc& aGc) const; |
1178 void SetGcToNormalVideo(CWindowGc& aGc) const; |
1157 void SetGcToInverseVideo(CWindowGc& aGc) const; |
1179 void SetGcToInverseVideo(CWindowGc& aGc) const; |
1158 void SetGcToDimmedVideo(CWindowGc& aGc) const; |
1180 void SetGcToDimmedVideo(CWindowGc& aGc) const; |
1159 void DrawCursor(); |
1181 void DrawCursor(); |
1160 void HideCursor(); |
1182 void HideCursor(); |
1161 IMPORT_C void Reserved_2(); |
1183 IMPORT_C void Reserved_2(); |
1162 IMPORT_C virtual void CEikMfne_Reserved(); |
1184 IMPORT_C virtual void CEikMfne_Reserved(); |
|
1185 |
|
1186 void LaunchPenInputL(); |
1163 |
1187 |
1164 private: |
1188 private: |
1165 /** |
1189 /** |
1166 * From CAknControl |
1190 * From CAknControl |
1167 */ |
1191 */ |