equal
deleted
inserted
replaced
27 #include "peninputlayoutvkb.h" |
27 #include "peninputlayoutvkb.h" |
28 #include "peninputlayout.h" |
28 #include "peninputlayout.h" |
29 #include "peninputpluginutils.h" |
29 #include "peninputpluginutils.h" |
30 |
30 |
31 _LIT( KKeyShiftCharacter, "\x2191"); |
31 _LIT( KKeyShiftCharacter, "\x2191"); |
|
32 _LIT( KKeyStarCharacter, "\x002a"); |
32 |
33 |
33 const TInt KDefaultKeyMargin = 10; |
34 const TInt KDefaultKeyMargin = 10; |
34 |
35 |
35 // --------------------------------------------------------------------------- |
36 // --------------------------------------------------------------------------- |
36 // CVirtualKeyCtrl::NewL |
37 // CVirtualKeyCtrl::NewL |
140 { |
141 { |
141 CFbsBitGc* gc = static_cast<CFbsBitGc*>(BitGc()); |
142 CFbsBitGc* gc = static_cast<CFbsBitGc*>(BitGc()); |
142 AknPenInputDrawUtils::DrawColorIcon( iKeyboard->ShiftIcon(), |
143 AknPenInputDrawUtils::DrawColorIcon( iKeyboard->ShiftIcon(), |
143 *gc, |
144 *gc, |
144 textLayout.TextRect() ); |
145 textLayout.TextRect() ); |
|
146 } |
|
147 else if(iKeyboard->StarIcon() && |
|
148 iKeyInfo->KeyUnicodes(TVirtualKeyTextPos(i)) == KKeyStarCharacter ) |
|
149 { |
|
150 CFbsBitGc* gc = static_cast<CFbsBitGc*>(BitGc()); |
|
151 AknPenInputDrawUtils::DrawColorIcon( iKeyboard->StarIcon(), |
|
152 *gc, |
|
153 textLayout.TextRect() ); |
145 } |
154 } |
146 else |
155 else |
147 { |
156 { |
148 textLayout.DrawText(*BitGc(), iKeyInfo->KeyUnicodes(TVirtualKeyTextPos(i)), |
157 textLayout.DrawText(*BitGc(), iKeyInfo->KeyUnicodes(TVirtualKeyTextPos(i)), |
149 EFalse, color); |
158 EFalse, color); |