equal
deleted
inserted
replaced
940 // The status of AknLayoutUtils::Variant() is no longer checked -> Both |
940 // The status of AknLayoutUtils::Variant() is no longer checked -> Both |
941 // European and APAC variants enable EAknEditorFlagLatinInputModesOnly. |
941 // European and APAC variants enable EAknEditorFlagLatinInputModesOnly. |
942 editorState->SetFlags( EAknEditorFlagNoLRNavigation | |
942 editorState->SetFlags( EAknEditorFlagNoLRNavigation | |
943 EAknEditorFlagLatinInputModesOnly | |
943 EAknEditorFlagLatinInputModesOnly | |
944 EAknEditorFlagNoT9 | |
944 EAknEditorFlagNoT9 | |
945 EAknEditorFlagUseSCTNumericCharmap ); |
945 EAknEditorFlagUseSCTNumericCharmap | |
|
946 EAknEditorFlagAvkonSecretEditor ); |
946 |
947 |
947 editorState->SetDefaultInputMode(EAknEditorSecretAlphaInputMode); |
948 editorState->SetDefaultInputMode(EAknEditorSecretAlphaInputMode); |
948 editorState->SetCurrentInputMode(EAknEditorSecretAlphaInputMode); |
949 editorState->SetCurrentInputMode(EAknEditorSecretAlphaInputMode); |
949 editorState->SetPermittedCases(EAknEditorLowerCase|EAknEditorUpperCase); |
950 editorState->SetPermittedCases(EAknEditorLowerCase|EAknEditorUpperCase); |
950 editorState->SetCurrentCase(EAknEditorLowerCase); |
951 editorState->SetCurrentCase(EAknEditorLowerCase); |
1206 TInt pos = ( iSecCharArr->Length() < charsFit ? |
1207 TInt pos = ( iSecCharArr->Length() < charsFit ? |
1207 iSecCharArr->Length() : charsFit ); |
1208 iSecCharArr->Length() : charsFit ); |
1208 TInt textWidth( iRevealSecretText ? |
1209 TInt textWidth( iRevealSecretText ? |
1209 iFont->TextWidthInPixels( *iSecCharArr ) : |
1210 iFont->TextWidthInPixels( *iSecCharArr ) : |
1210 iFont->CharWidthInPixels( KSecretChar ) * pos ); |
1211 iFont->CharWidthInPixels( KSecretChar ) * pos ); |
1211 TInt x; |
1212 TInt x( 0 ); |
1212 if ( iExtension ) |
1213 if ( iExtension ) |
1213 { |
1214 { |
1214 if ( iAlign == CGraphicsContext::ELeft ) |
1215 if ( iAlign == CGraphicsContext::ELeft ) |
1215 { |
1216 { |
1216 x = iExtension->iTextRect.iTl.iX + textWidth; |
1217 x = iExtension->iTextRect.iTl.iX + textWidth; |
1276 CAknEdwinState* edwinState( static_cast<CAknEdwinState*>( |
1277 CAknEdwinState* edwinState( static_cast<CAknEdwinState*>( |
1277 iFepState ) ); |
1278 iFepState ) ); |
1278 TInt flags( edwinState->Flags() ); |
1279 TInt flags( edwinState->Flags() ); |
1279 if ( aEnable ) |
1280 if ( aEnable ) |
1280 { |
1281 { |
1281 flags &= ~EEikEdwinAvkonDisableCursor; |
1282 flags |= EAknEditorFlagTextCursorVisible; |
1282 } |
1283 } |
1283 else |
1284 else |
1284 { |
1285 { |
1285 flags |= EEikEdwinAvkonDisableCursor; |
1286 flags &= ~EAknEditorFlagTextCursorVisible; |
1286 } |
1287 } |
1287 edwinState->SetFlags( flags ); |
1288 edwinState->SetFlags( flags ); |
1288 } |
1289 } |
1289 } |
1290 } |
1290 |
1291 |