textinput/peninputfingerhwrar/src/peninputfingerhwrarwnd.cpp
branchRCL_3
changeset 6 6ceef9a83b1a
parent 5 a47de9135b21
child 7 6defe5d1bd39
equal deleted inserted replaced
5:a47de9135b21 6:6ceef9a83b1a
   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.
  1162         {
  1161         {
  1163     	icfframecolor = TRgb( KDefaultFrameColor );
  1162     	icfframecolor = TRgb( KDefaultFrameColor );
  1164         }
  1163         }
  1165 
  1164 
  1166     iContextField->SetBorderColor( icfframecolor );
  1165     iContextField->SetBorderColor( icfframecolor );
  1167     iContextField->SetBgImgSkinId( KAknsIIDQsnFrCall2Rect );
  1166     iContextField->SetBgImgSkinId( KAknsIIDQgnGrafFepInputBg );
  1168     CleanupStack::PopAndDestroy( 1 ); // icfreader       
  1167     CleanupStack::PopAndDestroy( 1 ); // icfreader       
  1169     }
  1168     }
  1170 
  1169 
  1171 // ---------------------------------------------------------------------------
  1170 // ---------------------------------------------------------------------------
  1172 //  read writingbox appearance info.
  1171 //  read writingbox appearance info.
  1338 void CPeninputFingerHwrArWnd::CloseSymbolTable()
  1337 void CPeninputFingerHwrArWnd::CloseSymbolTable()
  1339 	{
  1338 	{
  1340 	if(iSymbolTable->IsPopup())
  1339 	if(iSymbolTable->IsPopup())
  1341 		{
  1340 		{
  1342 	    iSymbolTable->CloseSymbolTable();
  1341 	    iSymbolTable->CloseSymbolTable();
       
  1342 	    iSymbolTable->BringToBack();
  1343 	    SwitchToStandbyView();		
  1343 	    SwitchToStandbyView();		
  1344 	    }	
  1344 	    }	
  1345     }
  1345     }
  1346 
  1346 
  1347 // --------------------------------------------------------------------------
  1347 // --------------------------------------------------------------------------