85 // --------------------------------------------------------------------------- |
85 // --------------------------------------------------------------------------- |
86 // |
86 // |
87 CPeninputFingerHwrArWnd::~CPeninputFingerHwrArWnd() |
87 CPeninputFingerHwrArWnd::~CPeninputFingerHwrArWnd() |
88 { |
88 { |
89 #ifdef RD_TACTILE_FEEDBACK |
89 #ifdef RD_TACTILE_FEEDBACK |
90 if(UiLayout()) |
90 if(UiLayout() && iWritingBox) |
91 { |
91 { |
92 UiLayout()->DeRegisterFeedbackArea(reinterpret_cast<TInt>(iWritingBox), |
92 UiLayout()->DeRegisterFeedbackArea(reinterpret_cast<TInt>(iWritingBox), |
93 iWritingBox->Rect()); |
93 iWritingBox->Rect()); |
94 } |
94 } |
95 #endif |
95 #endif |
350 // |
350 // |
351 void CPeninputFingerHwrArWnd::SetBubbleTextL( const TDesC& aInfo ) |
351 void CPeninputFingerHwrArWnd::SetBubbleTextL( const TDesC& aInfo ) |
352 { |
352 { |
353 if ( aInfo.Length() > 0 ) |
353 if ( aInfo.Length() > 0 ) |
354 { |
354 { |
355 iContextField->ShowBubble( aInfo, iContextField->MsgBubbleCtrl()->Rect() ); |
355 TRect rect(iLafManager->IndicatorBubbleRect()); |
|
356 iContextField->MsgBubbleCtrl()->SetRect(rect); |
|
357 // iContextField->ShowBubble( aInfo, iContextField->MsgBubbleCtrl()->Rect()); |
|
358 iContextField->ShowBubble( aInfo, rect); |
356 } |
359 } |
357 else |
360 else |
358 { |
361 { |
359 iContextField->HideBubble(); |
362 iContextField->HideBubble(); |
360 } |
363 } |
617 NULL, |
620 NULL, |
618 KAknsIIDQsnFrInputPreviewSideL, |
621 KAknsIIDQsnFrInputPreviewSideL, |
619 KAknsIIDQsnFrInputPreviewMiddle, |
622 KAknsIIDQsnFrInputPreviewMiddle, |
620 KAknsIIDQsnFrInputPreviewSideR ); |
623 KAknsIIDQsnFrInputPreviewSideR ); |
621 iContextField->SetMsgBubbleCtrlSize( TSize( bubbleLineLayout.iW,bubbleLineLayout.iH ) ); |
624 iContextField->SetMsgBubbleCtrlSize( TSize( bubbleLineLayout.iW,bubbleLineLayout.iH ) ); |
|
625 iContextField->MsgBubbleCtrl()->SetTextL(KNullDesC); |
622 |
626 |
623 iContextField->SetLineSeparatorAfterPrompt(ETrue); |
627 iContextField->SetLineSeparatorAfterPrompt(ETrue); |
624 |
628 |
625 //transfer to headerPane |
629 //transfer to headerPane |
626 AddControlL( iContextField ); |
630 AddControlL( iContextField ); |
819 // --------------------------------------------------------------------------- |
823 // --------------------------------------------------------------------------- |
820 // load virtual number mode sct keys. |
824 // load virtual number mode sct keys. |
821 // --------------------------------------------------------------------------- |
825 // --------------------------------------------------------------------------- |
822 // |
826 // |
823 void CPeninputFingerHwrArWnd::LoadNumSymbolVirtualKeysL( const TInt aResId, |
827 void CPeninputFingerHwrArWnd::LoadNumSymbolVirtualKeysL( const TInt aResId, |
824 const RArray<TRect>& aCellRects ) |
828 const RArray<TRect>& aCellRects, TBool aReload) |
825 { |
829 { |
826 TAknTextLineLayout txtlayout = iLafManager->NumpadKeyTxtLayout(); |
830 TAknTextLineLayout txtlayout = iLafManager->NumpadKeyTxtLayout(); |
827 iNumSymbolTable->KeyPad()->SetTextLineLayout( txtlayout ); |
831 iNumSymbolTable->KeyPad()->SetTextLineLayout( txtlayout ); |
828 |
832 |
829 TInt fontid = txtlayout.FontId(); |
833 TInt fontid = txtlayout.FontId(); |
830 const CFont* font = AknLayoutUtils::FontFromId( fontid ); |
834 const CFont* font = AknLayoutUtils::FontFromId( fontid ); |
831 iNumSymbolTable->KeyPad()->SetFont( font ); |
835 iNumSymbolTable->KeyPad()->SetFont( font ); |
832 |
836 if(aReload) |
833 iNumSymbolTable->LoadVirtualKeypadKeyL(aResId,aCellRects); |
837 { |
|
838 iNumSymbolTable->LoadVirtualKeypadKeyL(aResId,aCellRects); |
|
839 } |
|
840 else |
|
841 { |
|
842 iNumSymbolTable->UpdateAllVirtualKeysRect(aCellRects); |
|
843 } |
834 } |
844 } |
835 |
845 |
836 // --------------------------------------------------------------------------- |
846 // --------------------------------------------------------------------------- |
837 // relayout full ui, reset all controls position. |
847 // relayout full ui, reset all controls position. |
838 // --------------------------------------------------------------------------- |
848 // --------------------------------------------------------------------------- |
941 RArray<TRect> numrects; |
951 RArray<TRect> numrects; |
942 CleanupClosePushL( numrects ); |
952 CleanupClosePushL( numrects ); |
943 iLafManager->GetNumVirtualKeyRects( numrects ); |
953 iLafManager->GetNumVirtualKeyRects( numrects ); |
944 |
954 |
945 // load keys |
955 // load keys |
946 LoadNumSymbolVirtualKeysL(R_FINGER_HWR_NUMPAD, numrects); |
956 LoadNumSymbolVirtualKeysL(R_FINGER_HWR_NUMPAD, numrects,EFalse); |
947 |
957 |
948 CleanupStack::PopAndDestroy();//rects |
958 CleanupStack::PopAndDestroy();//rects |
949 |
959 |
950 //move virtual Sctpad |
960 //move virtual Sctpad |
951 TInt numpadrows = iLafManager->VirtualNumSctpadRowCount(); |
961 TInt numpadrows = iLafManager->VirtualNumSctpadRowCount(); |
952 TInt numpadcols = iLafManager->VirtualNumSctpadColCount(); |
962 TInt numpadcols = iLafManager->VirtualNumSctpadColCount(); |
953 |
963 |
954 rect = iLafManager->CtrlRect(iNumSymbolTable->ControlId()); |
964 rect = iLafManager->CtrlRect(iNumSymbolTable->ControlId()); |
955 iNumSymbolTable->SetRect(rect); |
965 iNumSymbolTable->SetRect(rect); |
956 |
966 |
957 iNumSymbolTable->SizeChanged(iLafManager->GetVirtualNumKeyRect(), |
967 iNumSymbolTable->SizeChanged(iLafManager->GetVirtualNumKeyRect()); |
958 iLafManager->GetSymBtnArray(), numpadrows, numpadcols, |
|
959 iLafManager->IsLandscape()); |
|
960 } |
968 } |
961 |
969 |
962 |
970 |
963 // --------------------------------------------------------------------------- |
971 // --------------------------------------------------------------------------- |
964 // layout for chinese range standby. |
972 // layout for chinese range standby. |
1482 // accept editor's number mapping restriction. |
1490 // accept editor's number mapping restriction. |
1483 // --------------------------------------------------------------------------- |
1491 // --------------------------------------------------------------------------- |
1484 // |
1492 // |
1485 void CPeninputFingerHwrArWnd::SetNumericMapping( const TDesC& aNumMapping ) |
1493 void CPeninputFingerHwrArWnd::SetNumericMapping( const TDesC& aNumMapping ) |
1486 { |
1494 { |
1487 iNumSymbolTable->SetNumericMapping(aNumMapping); |
1495 iNumSymbolTable->UpdateTableSymbol(aNumMapping); |
1488 } |
1496 } |
1489 // --------------------------------------------------------------------------- |
1497 // --------------------------------------------------------------------------- |
1490 // set native number mode on or off. |
1498 // set native number mode on or off. |
1491 // --------------------------------------------------------------------------- |
1499 // --------------------------------------------------------------------------- |
1492 // |
1500 // |