837 //Move Writing box |
837 //Move Writing box |
838 rect = iLafManager->CtrlRect( iWritingBox->ControlId() ); |
838 rect = iLafManager->CtrlRect( iWritingBox->ControlId() ); |
839 iWritingBox->SetRect( rect ); |
839 iWritingBox->SetRect( rect ); |
840 |
840 |
841 //resize indicator |
841 //resize indicator |
842 TRect indicatorRect; |
|
843 indicatorRect.iTl = rect.iTl; |
|
844 indicatorRect.Move(TPoint(10,10)); |
|
845 |
|
846 indicatorRect.SetSize(TSize(50,30)); |
|
847 |
|
848 iHandwritingIndicator->ConstructFromResourceL(R_AKN_FEP_HWR_INDICATOR_ICON); |
842 iHandwritingIndicator->ConstructFromResourceL(R_AKN_FEP_HWR_INDICATOR_ICON); |
849 iHandwritingIndicator->SizeChanged(indicatorRect,ETrue); |
843 iHandwritingIndicator->SizeChanged(iLafManager->GetIndicatorRect(),ETrue); |
850 |
844 |
851 //Move buttons |
845 //Move buttons |
852 TSize siBtnPadding = iLafManager->ButtonInnerPadding(); |
846 TSize siBtnPadding = iLafManager->ButtonInnerPadding(); |
853 TInt pdx = siBtnPadding.iWidth; |
847 TInt pdx = siBtnPadding.iWidth; |
854 TInt pdy = siBtnPadding.iHeight; |
848 TInt pdy = siBtnPadding.iHeight; |
859 rect = iLafManager->CtrlRect( iSymbolTableBtn->ControlId() ); |
853 rect = iLafManager->CtrlRect( iSymbolTableBtn->ControlId() ); |
860 MoveIconButton( iSymbolTableBtn, rect, pdx, pdy, ETrue ); |
854 MoveIconButton( iSymbolTableBtn, rect, pdx, pdy, ETrue ); |
861 |
855 |
862 rect = iLafManager->CtrlRect( iBackspaceBtn->ControlId() ); |
856 rect = iLafManager->CtrlRect( iBackspaceBtn->ControlId() ); |
863 MoveIconButton( iBackspaceBtn, rect, pdx, pdy, ETrue ); |
857 MoveIconButton( iBackspaceBtn, rect, pdx, pdy, ETrue ); |
864 |
|
865 rect = iLafManager->CtrlRect( iArrowUpBtn->ControlId() ); |
|
866 MoveIconButton( iArrowUpBtn, rect, pdx, pdy, ETrue ); |
|
867 |
|
868 rect = iLafManager->CtrlRect( iArrowLeftBtn->ControlId() ); |
|
869 MoveIconButton( iArrowLeftBtn, rect, pdx, pdy, ETrue ); |
|
870 |
|
871 rect = iLafManager->CtrlRect( iArrowRightBtn->ControlId() ); |
|
872 MoveIconButton( iArrowRightBtn, rect, pdx, pdy, ETrue ); |
|
873 |
|
874 rect = iLafManager->CtrlRect( iArrowDownBtn->ControlId() ); |
|
875 MoveIconButton( iArrowDownBtn, rect, pdx, pdy, ETrue ); |
|
876 |
858 |
877 rect = iLafManager->CtrlRect( iOptionBtn->ControlId() ); |
859 rect = iLafManager->CtrlRect( iOptionBtn->ControlId() ); |
878 MoveIconButton( iOptionBtn, rect, pdx, pdy, ETrue ); |
860 MoveIconButton( iOptionBtn, rect, pdx, pdy, ETrue ); |
879 |
861 |
|
862 pdx = iLafManager->GetArrowPaddingSize().iWidth; |
|
863 pdy = iLafManager->GetArrowPaddingSize().iHeight; |
|
864 |
|
865 rect = iLafManager->CtrlRect( iArrowUpBtn->ControlId() ); |
|
866 MoveIconButton( iArrowUpBtn, rect, pdx, pdy, ETrue ); |
|
867 |
|
868 rect = iLafManager->CtrlRect( iArrowLeftBtn->ControlId() ); |
|
869 MoveIconButton( iArrowLeftBtn, rect, pdx, pdy, ETrue ); |
|
870 |
|
871 rect = iLafManager->CtrlRect( iArrowRightBtn->ControlId() ); |
|
872 MoveIconButton( iArrowRightBtn, rect, pdx, pdy, ETrue ); |
|
873 |
|
874 rect = iLafManager->CtrlRect( iArrowDownBtn->ControlId() ); |
|
875 MoveIconButton( iArrowDownBtn, rect, pdx, pdy, ETrue ); |
|
876 |
880 // load vkb key image |
877 // load vkb key image |
881 TSize keysize = iLafManager->VirtualSctpadCellSize().Size(); |
878 TSize keysize = iLafManager->VirtualSctpadCellSize().Size(); |
882 iSymbolTable->LoadVkbKeyImageL(R_FINGER_HWR_SCTPAD_IMAGE, keysize ); |
879 iSymbolTable->LoadVkbKeyImageL(R_FINGER_HWR_SCTPAD_IMAGE, keysize ); |
883 |
880 |
884 // get the key rect |
881 // get the key rect |
954 iSymbolTableBtn->SetHighlight( ETrue ); |
951 iSymbolTableBtn->SetHighlight( ETrue ); |
955 |
952 |
956 // avoid overlap refresh problem after opening symbil table |
953 // avoid overlap refresh problem after opening symbil table |
957 // so set this control to be not ready |
954 // so set this control to be not ready |
958 iContextField->SetReady(EFalse); |
955 iContextField->SetReady(EFalse); |
|
956 |
959 iSymbolTable->OpenSymbolTable(); |
957 iSymbolTable->OpenSymbolTable(); |
|
958 iSymbolTable->BringToTop(); |
960 } |
959 } |
961 |
960 |
962 |
961 |
963 // --------------------------------------------------------------------------- |
962 // --------------------------------------------------------------------------- |
964 // EventButton layout helper. Move button to specified rect. |
963 // EventButton layout helper. Move button to specified rect. |