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