161 const TPoint& aPoint ) |
161 const TPoint& aPoint ) |
162 { |
162 { |
163 CFepUiBaseCtrl* ctrl = CControlGroup::HandlePointerMoveEventL( aPoint ); |
163 CFepUiBaseCtrl* ctrl = CControlGroup::HandlePointerMoveEventL( aPoint ); |
164 if(ctrl) |
164 if(ctrl) |
165 { |
165 { |
|
166 HandlePointerEnter(aPoint); |
166 ctrl->UpdateArea(ctrl->Rect(),EFalse); |
167 ctrl->UpdateArea(ctrl->Rect(),EFalse); |
167 } |
168 } |
168 else |
169 else |
169 { |
170 { |
170 CControlGroup::HandlePointerLeave(aPoint); |
171 HandlePointerLeave(aPoint); |
171 UpdateArea(iRect,EFalse); |
172 UpdateArea(iRect,EFalse); |
172 } |
173 } |
173 |
174 |
174 return ctrl; |
175 return ctrl; |
175 } |
176 } |
206 { |
207 { |
207 iIsLandscape = aIsLandscape; |
208 iIsLandscape = aIsLandscape; |
208 |
209 |
209 // relayout the button group |
210 // relayout the button group |
210 TRect spaceBtnRect(iRect.iTl,iRect.iTl+TPoint(aButtonSize.iWidth,aButtonSize.iHeight)); |
211 TRect spaceBtnRect(iRect.iTl,iRect.iTl+TPoint(aButtonSize.iWidth,aButtonSize.iHeight)); |
211 MoveIconButton(iSpaceBtn,spaceBtnRect,KSymbolButtonInnerPadding,KSymbolButtonInnerPadding); |
212 |
212 |
213 TInt pdx = (spaceBtnRect.Size().iWidth/3)/2; |
213 TRect innerRect = spaceBtnRect; |
214 MoveIconButton(iSpaceBtn,spaceBtnRect,pdx,KSymbolButtonInnerPadding); |
214 innerRect.Shrink(4*KSymbolButtonInnerPadding,KSymbolButtonInnerPadding); |
215 |
|
216 TRect pieceInnerRect = spaceBtnRect; |
|
217 pieceInnerRect.Shrink(pdx*2,KSymbolButtonInnerPadding); |
215 |
218 |
216 // that's a not good algrithm in funciton AknPenInputDrawUtils::Draw3PiecesColorIcon for drawing 3Pieces icons |
219 // that's a not good algrithm in funciton AknPenInputDrawUtils::Draw3PiecesColorIcon for drawing 3Pieces icons |
217 // as when the outter rect's height was not equal to the inter rect's height, the target rects the left icons and right icons |
220 // as when the outter rect's height was not equal to the inter rect's height, the target rects the left icons and right icons |
218 // would be bitblited onto are Rect(0.0.0.0.0) [[which should not be that behavior]]. |
221 // would be bitblited onto are Rect(0.0.0.0.0) [[which should not be that behavior]]. |
219 // Please theck the codes: AknPenInputDrawUtils::Draw3PiecesColorIcon: this function should be Updated. |
222 // Please theck the codes: AknPenInputDrawUtils::Draw3PiecesColorIcon: this function should be Updated. |
220 iSpaceBtn->SetDraw3PieceFrameInfo( |
223 iSpaceBtn->SetDraw3PieceFrameInfo( |
221 TDraw3PiecesFrame(KAknsIIDQgnIndiInputSpaceL, |
224 TDraw3PiecesFrame(KAknsIIDQgnIndiInputSpaceL, |
222 KAknsIIDQgnIndiInputSpaceMiddle, |
225 KAknsIIDQgnIndiInputSpaceMiddle, |
223 KAknsIIDQgnIndiInputSpaceR, |
226 KAknsIIDQgnIndiInputSpaceR, |
224 innerRect)); |
227 pieceInnerRect)); |
225 TRect enterBtnRect = spaceBtnRect; |
228 TRect enterBtnRect = spaceBtnRect; |
226 enterBtnRect.Move(TPoint(aButtonSize.iWidth,0)); |
229 enterBtnRect.Move(TPoint(aButtonSize.iWidth,0)); |
227 |
230 |
228 MoveIconButton(iEnterBtn,enterBtnRect,KSymbolButtonInnerPadding,KSymbolButtonInnerPadding); |
231 MoveIconButton(iEnterBtn,enterBtnRect,pdx,KSymbolButtonInnerPadding); |
229 |
232 |
230 TRect pageBtnRect = enterBtnRect; |
233 TRect pageBtnRect = enterBtnRect; |
231 pageBtnRect.Move(TPoint(aButtonSize.iWidth,0)); |
234 pageBtnRect.Move(TPoint(aButtonSize.iWidth,0)); |
232 |
235 |
233 if(aIsLandscape) |
236 if(aIsLandscape) |
276 spec ); |
279 spec ); |
277 |
280 |
278 AddControlL( iMutiPageKeypad ); |
281 AddControlL( iMutiPageKeypad ); |
279 iMutiPageKeypad->AddEventObserver( UiLayout() ); |
282 iMutiPageKeypad->AddEventObserver( UiLayout() ); |
280 |
283 |
|
284 iMutiPageKeypad->SetKeySkinId( EKeyBmpNormal, KAknsIIDQsnFrKeypadButtonNormal ); |
|
285 iMutiPageKeypad->SetKeySkinId( EKeyBmpHighlight, KAknsIIDQsnFrKeypadButtonPressed ); |
|
286 iMutiPageKeypad->SetKeySkinId( EKeyBmpDim, KAknsIIDQsnFrKeypadButtonInactive ); |
281 iMutiPageKeypad->SetResourceId( KInvalidResId ); |
287 iMutiPageKeypad->SetResourceId( KInvalidResId ); |
282 |
288 |
283 iMutiPageKeypad->SetKeyTextColorGroup( EAknsCIQsnTextColorsCG68 ); |
289 iMutiPageKeypad->SetKeyTextColorGroup( EAknsCIQsnTextColorsCG68 ); |
284 iMutiPageKeypad->SetDrawOpaqueBackground( EFalse ); |
290 iMutiPageKeypad->SetDrawOpaqueBackground( EFalse ); |
285 } |
291 } |