textinput/peninputarc/src/peninputlayoutcontrol/peninputlayouthwrwindow.cpp
branchRCL_3
changeset 10 6defe5d1bd39
parent 0 eb1f2e154e89
child 43 ebd48d2de13c
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
   116 // CHwrWndBase::EndStrokeL
   116 // CHwrWndBase::EndStrokeL
   117 // Do recognition after a stroke is ended.
   117 // Do recognition after a stroke is ended.
   118 // (other items were commented in a header).
   118 // (other items were commented in a header).
   119 // ---------------------------------------------------------------------------
   119 // ---------------------------------------------------------------------------
   120 //   
   120 //   
   121 void CHwrWndBase::EndStrokeL(TBool aCharacterTimerFlag)
   121 EXPORT_C void CHwrWndBase::EndStrokeL(TBool aCharacterTimerFlag)
   122     {
   122     {
   123     if(iHasNewTrace)    //only do this when we have new trace
   123     if(iHasNewTrace)    //only do this when we have new trace
   124         {               
   124         {               
   125         if(aCharacterTimerFlag)
   125         if(aCharacterTimerFlag)
   126             {
   126             {
   239 EXPORT_C CFepUiBaseCtrl* CHwrWndBase::HandlePointerUpEventL( const TPoint& aPoint)
   239 EXPORT_C CFepUiBaseCtrl* CHwrWndBase::HandlePointerUpEventL( const TPoint& aPoint)
   240     {
   240     {
   241     iListOfPoints.AppendL(iStrokeEndMark);
   241     iListOfPoints.AppendL(iStrokeEndMark);
   242     iStrokeTimer->SetTimer(iStrokeDelay);  
   242     iStrokeTimer->SetTimer(iStrokeDelay);  
   243     CFepUiBaseCtrl::HandlePointerUpEventL(aPoint); 
   243     CFepUiBaseCtrl::HandlePointerUpEventL(aPoint); 
   244     // For EKZG-7JCBGW
       
   245     // iCtrlWithPointerDown of its CControlGroup must be set to NULL
   244     // iCtrlWithPointerDown of its CControlGroup must be set to NULL
   246     // when its up event occurs.
   245     // when its up event occurs.
   247     CFepUiBaseCtrl* parent = ParentCtrl();
   246     CFepUiBaseCtrl* parent = ParentCtrl();
   248     while ( parent )
   247     while ( parent )
   249         {
   248         {
   762         CancelClipRegion();                
   761         CancelClipRegion();                
   763         }
   762         }
   764     return affectedRect;
   763     return affectedRect;
   765     } 
   764     } 
   766 
   765 
   767 void CTransparentHwrWnd::DrawFrame( const TRect& aFrameRect )
   766 EXPORT_C void CTransparentHwrWnd::DrawFrame( const TRect& aFrameRect )
   768 	{
   767 	{
   769     CFbsBitGc* gc= static_cast<CFbsBitGc*> ( BitGc() );        
   768     CFbsBitGc* gc= static_cast<CFbsBitGc*> ( BitGc() );        
   770 	
   769 	
   771     gc->Activate( MaskBitmapDevice() );    
   770     gc->Activate( MaskBitmapDevice() );    
   772     gc->SetPenColor( KOpaqueColor );
   771     gc->SetPenColor( KOpaqueColor );
  1198 // ---------------------------------------------------------------------------
  1197 // ---------------------------------------------------------------------------
  1199 // CTransparentHwrWndExt::DrawPoint
  1198 // CTransparentHwrWndExt::DrawPoint
  1200 // (other items were commented in a header).
  1199 // (other items were commented in a header).
  1201 // ---------------------------------------------------------------------------
  1200 // ---------------------------------------------------------------------------
  1202 //       
  1201 //       
  1203 TRect CTransparentHwrWndExt::DrawPoint(const TPoint& aPoint,TBool aDrawFlag)
  1202 EXPORT_C TRect CTransparentHwrWndExt::DrawPoint(const TPoint& aPoint,TBool aDrawFlag)
  1204     {
  1203     {
  1205     TRect affectedRect(0,0,0,0);
  1204     TRect affectedRect(0,0,0,0);
  1206         {
  1205         {
  1207         CFbsBitGc* gc= static_cast<CFbsBitGc*> (BitGc());
  1206         CFbsBitGc* gc= static_cast<CFbsBitGc*> (BitGc());
  1208     
  1207     
  1245 // ---------------------------------------------------------------------------
  1244 // ---------------------------------------------------------------------------
  1246 // CTransparentHwrWndExt::DrawLine
  1245 // CTransparentHwrWndExt::DrawLine
  1247 // (other items were commented in a header).
  1246 // (other items were commented in a header).
  1248 // ---------------------------------------------------------------------------
  1247 // ---------------------------------------------------------------------------
  1249 //   
  1248 //   
  1250 TRect CTransparentHwrWndExt::DrawLine(const TPoint& aPt1,const TPoint& aPt2,TBool aDrawFlag)
  1249 EXPORT_C TRect CTransparentHwrWndExt::DrawLine(const TPoint& aPt1,const TPoint& aPt2,TBool aDrawFlag)
  1251     {
  1250     {
  1252     TRect affectedRect(0,0,0,0);
  1251     TRect affectedRect(0,0,0,0);
  1253         {
  1252         {
  1254         CFbsBitGc* gc= static_cast<CFbsBitGc*> (BitGc());
  1253         CFbsBitGc* gc= static_cast<CFbsBitGc*> (BitGc());
  1255     
  1254     
  1328 // ---------------------------------------------------------------------------
  1327 // ---------------------------------------------------------------------------
  1329 // CTransparentHwrWndExt::EndStrokeAndClearL
  1328 // CTransparentHwrWndExt::EndStrokeAndClearL
  1330 // (other items were commented in a header).
  1329 // (other items were commented in a header).
  1331 // ---------------------------------------------------------------------------
  1330 // ---------------------------------------------------------------------------
  1332 //   
  1331 //   
  1333 void CTransparentHwrWndExt::EndStrokeAndClearL()
  1332 EXPORT_C void CTransparentHwrWndExt::EndStrokeAndClearL()
  1334     {
  1333     {
  1335     iFadeTimer->Cancel();
  1334     iFadeTimer->Cancel();
  1336     iListOfShownPoints.Reset();
  1335     iListOfShownPoints.Reset();
  1337     iFadeBeginPos = Rect().iTl.iX;
  1336     iFadeBeginPos = Rect().iTl.iX;
  1338     iFadeEndPos = Rect().iTl.iX;
  1337     iFadeEndPos = Rect().iTl.iX;
  1342 // ---------------------------------------------------------------------------
  1341 // ---------------------------------------------------------------------------
  1343 // CTransparentHwrWndExt::CancelPointerDownL
  1342 // CTransparentHwrWndExt::CancelPointerDownL
  1344 // (other items were commented in a header).
  1343 // (other items were commented in a header).
  1345 // ---------------------------------------------------------------------------
  1344 // ---------------------------------------------------------------------------
  1346 //   
  1345 //   
  1347 void CTransparentHwrWndExt::CancelPointerDownL()
  1346 EXPORT_C void CTransparentHwrWndExt::CancelPointerDownL()
  1348     {
  1347     {
  1349     if( !PointerDown() )
  1348     if( !PointerDown() )
  1350         {
  1349         {
  1351         return;
  1350         return;
  1352         }
  1351         }