133 TVirtualKeyDrawInfo() |
133 TVirtualKeyDrawInfo() |
134 { |
134 { |
135 iSupportSkin = EFalse; |
135 iSupportSkin = EFalse; |
136 }; |
136 }; |
137 }; |
137 }; |
|
138 |
|
139 class CFepUiKeyboardExt : public CBase |
|
140 { |
|
141 public: |
|
142 ~CFepUiKeyboardExt() |
|
143 { |
|
144 delete iBitmap; |
|
145 delete iHighlightDev; |
|
146 delete iHighlightGc; |
|
147 |
|
148 delete iHighlightKeyBmp; |
|
149 delete iNormalKeyBmp; |
|
150 delete iDimmedKeyBmp; |
|
151 delete iNormalKeyDev; |
|
152 delete iHighlightKeyDev; |
|
153 delete iDimmedKeyDev; |
|
154 delete iKeyGc; |
|
155 } |
|
156 private: |
|
157 void CreateBmpDevL(const TDisplayMode &aMode); |
|
158 private: |
|
159 CFbsBitmap* iBitmap; |
|
160 CFbsBitmapDevice* iHighlightDev; |
|
161 CFbsBitGc* iHighlightGc; |
|
162 |
|
163 CFbsBitmap* iHighlightKeyBmp; |
|
164 CFbsBitmap* iNormalKeyBmp; |
|
165 CFbsBitmap* iDimmedKeyBmp; |
|
166 |
|
167 CFbsBitmapDevice* iNormalKeyDev; |
|
168 CFbsBitmapDevice* iHighlightKeyDev; |
|
169 CFbsBitmapDevice* iDimmedKeyDev; |
|
170 CFbsBitGc* iKeyGc; |
|
171 |
|
172 friend class CVirtualKeyboard; |
|
173 }; |
138 |
174 |
139 //class CVirtualKeyboard |
175 //class CVirtualKeyboard |
140 /** |
176 /** |
141 * CVirtualKeyboard |
177 * CVirtualKeyboard |
142 * |
178 * |
812 |
848 |
813 /** |
849 /** |
814 * Item text display color. |
850 * Item text display color. |
815 */ |
851 */ |
816 TRgb iFontColor; |
852 TRgb iFontColor; |
817 |
853 |
818 /** |
|
819 * Reserve item |
|
820 */ |
|
821 TInt iReserver1; |
|
822 |
|
823 TAknsItemID iKeyNormalSkinId; |
854 TAknsItemID iKeyNormalSkinId; |
824 TAknsItemID iKeyHighlightSkinId; |
855 TAknsItemID iKeyHighlightSkinId; |
825 TAknsItemID iKeyDimSkinId; |
856 TAknsItemID iKeyDimSkinId; |
826 RArray<TAknTextLineLayout> iTextLineLayout; |
857 RArray<TAknTextLineLayout> iTextLineLayout; |
827 RArray<TBool> iTextLineSet; |
858 RArray<TBool> iTextLineSet; |
864 |
895 |
865 /** |
896 /** |
866 * The shift icon showing on the key |
897 * The shift icon showing on the key |
867 */ |
898 */ |
868 CPenInputColorIcon* iShiftIcon; |
899 CPenInputColorIcon* iShiftIcon; |
869 |
900 |
870 /** |
901 /** |
871 * The star icon showing on the key |
902 * The star icon showing on the key |
872 */ |
903 */ |
873 CPenInputColorIcon* iStarIcon; |
904 CPenInputColorIcon* iStarIcon; |
874 |
905 |
875 MPeninputVkbPreviewBubbleRenderer* iPreviewBubbleRenderer; |
906 MPeninputVkbPreviewBubbleRenderer* iPreviewBubbleRenderer; |
|
907 |
|
908 /** |
|
909 * Reserve item |
|
910 */ |
|
911 CFepUiKeyboardExt* iExt; |
|
912 |
|
913 |
|
914 protected: |
|
915 //void HandleResourceChange(TInt aType); |
|
916 virtual IMPORT_C void HandleResourceChange(TInt aType); |
|
917 private: |
|
918 void CreateBmpDevL(); |
|
919 CFbsBitmap* Bitmap() { return iExt->iBitmap;} |
|
920 CFbsBitmapDevice* HighlightDev() { return iExt->iHighlightDev;} |
|
921 CFbsBitGc* HighlightGc() { return iExt->iHighlightGc;} |
|
922 CFbsBitmap* NormalKeyBmp() { return iExt->iNormalKeyBmp;} |
|
923 CFbsBitmap* HighightKeyBmp() { return iExt->iHighlightKeyBmp;} |
|
924 CFbsBitmap* DimmedKeyBmp() { return iExt->iDimmedKeyBmp;} |
|
925 |
|
926 CFbsBitmapDevice* HighlightKeyDev() { return iExt->iHighlightKeyDev;} |
|
927 CFbsBitmapDevice* NormalKeyDev() { return iExt->iNormalKeyDev;} |
|
928 CFbsBitmapDevice* DimmedKeyDev() { return iExt->iDimmedKeyDev;} |
|
929 CFbsBitGc* KeyGc() { return iExt->iKeyGc;} |
|
930 |
|
931 |
|
932 CFbsBitmap* PrepareMaskBmpL(CFbsBitGc* aGc, const TDisplayMode& aMode, const TRect& aRect); |
|
933 CFbsBitmap* PrepareKeyBmpL(CFbsBitGc* aGc, const TDisplayMode& aMode, const TRect& aRect, |
|
934 const TRect& aInnerRect,const TAknsItemID& aFrameID, const TAknsItemID& aCenterID, const TRect& aKeyRect); |
|
935 |
|
936 TBool PrepareKeyBmp(CFbsBitmap* aBmp,CFbsBitmapDevice* aDev,const TRect& aRect, |
|
937 const TRect& aInnerRect,const TAknsItemID& aFrameID, const TAknsItemID& aCenterID,const TRect& aKeyRect); |
|
938 |
876 friend class CVirtualKeyCtrl; |
939 friend class CVirtualKeyCtrl; |
877 friend class CVirtualRawKeyCtrl; |
940 friend class CVirtualRawKeyCtrl; |
878 //friend class CVirtualKey; |
941 //friend class CVirtualKey; |
879 }; |
942 }; |
880 |
943 |