equal
deleted
inserted
replaced
281 CAknTransitionUtils::EEventWsBufferRedirection ); |
281 CAknTransitionUtils::EEventWsBufferRedirection ); |
282 CAknTransitionUtils::RemoveData( (TInt) this ); |
282 CAknTransitionUtils::RemoveData( (TInt) this ); |
283 delete listener; |
283 delete listener; |
284 } |
284 } |
285 #endif |
285 #endif |
286 // When destruct secret editor, inform FEP that secret editor has been destroyed , |
|
287 // so FEP can get opportunity to do some clean work, e.g. closing opened SCT dialog. |
|
288 if ( iFepState ) |
|
289 { |
|
290 TRAP_IGNORE( |
|
291 static_cast<CAknEdwinState*>( iFepState )->ReportAknEdStateEventL( |
|
292 MAknEdStateObserver::EAknEdwinDestroy ) |
|
293 ); |
|
294 } |
|
295 delete iInlineEditText; |
286 delete iInlineEditText; |
296 delete iFepState; |
287 delete iFepState; |
297 delete iTimer; |
288 delete iTimer; |
298 delete iSecCharArr; |
289 delete iSecCharArr; |
299 delete iExtension; |
290 delete iExtension; |
949 // The status of AknLayoutUtils::Variant() is no longer checked -> Both |
940 // The status of AknLayoutUtils::Variant() is no longer checked -> Both |
950 // European and APAC variants enable EAknEditorFlagLatinInputModesOnly. |
941 // European and APAC variants enable EAknEditorFlagLatinInputModesOnly. |
951 editorState->SetFlags( EAknEditorFlagNoLRNavigation | |
942 editorState->SetFlags( EAknEditorFlagNoLRNavigation | |
952 EAknEditorFlagLatinInputModesOnly | |
943 EAknEditorFlagLatinInputModesOnly | |
953 EAknEditorFlagNoT9 | |
944 EAknEditorFlagNoT9 | |
954 EAknEditorFlagUseSCTNumericCharmap | |
945 EAknEditorFlagUseSCTNumericCharmap ); |
955 EAknEditorFlagAvkonSecretEditor ); |
|
956 |
946 |
957 editorState->SetDefaultInputMode(EAknEditorSecretAlphaInputMode); |
947 editorState->SetDefaultInputMode(EAknEditorSecretAlphaInputMode); |
958 editorState->SetCurrentInputMode(EAknEditorSecretAlphaInputMode); |
948 editorState->SetCurrentInputMode(EAknEditorSecretAlphaInputMode); |
959 editorState->SetPermittedCases(EAknEditorLowerCase|EAknEditorUpperCase); |
949 editorState->SetPermittedCases(EAknEditorLowerCase|EAknEditorUpperCase); |
960 editorState->SetCurrentCase(EAknEditorLowerCase); |
950 editorState->SetCurrentCase(EAknEditorLowerCase); |
1216 TInt pos = ( iSecCharArr->Length() < charsFit ? |
1206 TInt pos = ( iSecCharArr->Length() < charsFit ? |
1217 iSecCharArr->Length() : charsFit ); |
1207 iSecCharArr->Length() : charsFit ); |
1218 TInt textWidth( iRevealSecretText ? |
1208 TInt textWidth( iRevealSecretText ? |
1219 iFont->TextWidthInPixels( *iSecCharArr ) : |
1209 iFont->TextWidthInPixels( *iSecCharArr ) : |
1220 iFont->CharWidthInPixels( KSecretChar ) * pos ); |
1210 iFont->CharWidthInPixels( KSecretChar ) * pos ); |
1221 TInt x( 0 ); |
1211 TInt x; |
1222 if ( iExtension ) |
1212 if ( iExtension ) |
1223 { |
1213 { |
1224 if ( iAlign == CGraphicsContext::ELeft ) |
1214 if ( iAlign == CGraphicsContext::ELeft ) |
1225 { |
1215 { |
1226 x = iExtension->iTextRect.iTl.iX + textWidth; |
1216 x = iExtension->iTextRect.iTl.iX + textWidth; |
1286 CAknEdwinState* edwinState( static_cast<CAknEdwinState*>( |
1276 CAknEdwinState* edwinState( static_cast<CAknEdwinState*>( |
1287 iFepState ) ); |
1277 iFepState ) ); |
1288 TInt flags( edwinState->Flags() ); |
1278 TInt flags( edwinState->Flags() ); |
1289 if ( aEnable ) |
1279 if ( aEnable ) |
1290 { |
1280 { |
1291 flags |= EAknEditorFlagTextCursorVisible; |
1281 flags &= ~EEikEdwinAvkonDisableCursor; |
1292 } |
1282 } |
1293 else |
1283 else |
1294 { |
1284 { |
1295 flags &= ~EAknEditorFlagTextCursorVisible; |
1285 flags |= EEikEdwinAvkonDisableCursor; |
1296 } |
1286 } |
1297 edwinState->SetFlags( flags ); |
1287 edwinState->SetFlags( flags ); |
1298 } |
1288 } |
1299 } |
1289 } |
1300 |
1290 |