javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtcomposite.cpp
branchRCL_3
changeset 34 71c436fe3ce0
parent 24 0fd27995241b
child 46 4376525cdefb
equal deleted inserted replaced
25:9ac0a0a7da70 34:71c436fe3ce0
   449                         iPhysics->RegisterPanningPosition(drag);
   449                         iPhysics->RegisterPanningPosition(drag);
   450                         iPhysicsAction = KSwtPhysicsPanning;
   450                         iPhysicsAction = KSwtPhysicsPanning;
   451 
   451 
   452                         // Unfocus
   452                         // Unfocus
   453                         MSwtControl* ctrl = GetShell().FocusControl();
   453                         MSwtControl* ctrl = GetShell().FocusControl();
   454                         if (ctrl && ctrl != iPhysicsFocusedCtrl)
   454                         if (ctrl)
   455                         {
   455                         {
   456                             ctrl->CoeControl().SetFocus(EFalse);
   456 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   457                             // While panning there should be no focus highlight
       
   458                             // Highlight is enabled after pressing any key
       
   459                             ctrl->EnableFocusHighlight(EFalse);
       
   460 #endif //RD_JAVA_S60_RELEASE_9_2
       
   461                             if (ctrl != iPhysicsFocusedCtrl)
       
   462                             {
       
   463                                 ctrl->CoeControl().SetFocus(EFalse);
       
   464                             }
   457                         }
   465                         }
   458 
   466 
   459                         // Revert
   467                         // Revert
   460                         if (iPointerGrabbingControl)
   468                         if (iPointerGrabbingControl)
   461                         {
   469                         {
   526         // This way we guarantee that eventual component controls
   534         // This way we guarantee that eventual component controls
   527         // get the event also. See CSwtComposite::CountComponentControls(),
   535         // get the event also. See CSwtComposite::CountComponentControls(),
   528         // CSwtTable::CountComponentControls(), etc.
   536         // CSwtTable::CountComponentControls(), etc.
   529         CAknControl::HandlePointerEventL(aPointerEvent);
   537         CAknControl::HandlePointerEventL(aPointerEvent);
   530     }
   538     }
       
   539     PostMouseEventL(aPointerEvent);
   531 }
   540 }
   532 
   541 
   533 void CSwtComposite::HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType)
   542 void CSwtComposite::HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType)
   534 {
   543 {
   535     if (aScrollBar == NULL)
   544     if (aScrollBar == NULL)
   934     {
   943     {
   935         iChildren[i]->UpdateDoNotDrawFlag();
   944         iChildren[i]->UpdateDoNotDrawFlag();
   936     }
   945     }
   937 }
   946 }
   938 
   947 
       
   948 void CSwtComposite::SetBounds(const TRect& aRect)
       
   949 {
       
   950     // Divert the job to UiUtils if this is a parent to an editor
       
   951     // open for split view editing.
       
   952     MSwtUiUtils& utils = iDisplay.UiUtils();
       
   953     if (utils.SplitInputView() == this)
       
   954     {
       
   955         utils.SetSplitInputViewSize(aRect.Size());
       
   956         SetLocation(aRect.iTl);
       
   957     }
       
   958     else
       
   959     {
       
   960         ASwtScrollableBase::SetBounds(aRect);
       
   961     }
       
   962 }
       
   963 
       
   964 void CSwtComposite::SetWidgetSize(const TSize& aSize)
       
   965 {
       
   966     // Divert the job to UiUtils if this is a parent to an editor
       
   967     // open for split view editing.
       
   968     MSwtUiUtils& utils = iDisplay.UiUtils();
       
   969     if (utils.SplitInputView() == this)
       
   970     {
       
   971         utils.SetSplitInputViewSize(aSize);
       
   972     }
       
   973     else
       
   974     {
       
   975         ASwtScrollableBase::SetWidgetSize(aSize);
       
   976     }
       
   977 }
       
   978 
   939 void CSwtComposite::DrawScrollBarBackground(const TRect& aRect) const
   979 void CSwtComposite::DrawScrollBarBackground(const TRect& aRect) const
   940 {
   980 {
   941     const CCoeControl& coeControl = CoeControl();
   981     const CCoeControl& coeControl = CoeControl();
   942     CWindowGc& gc = SystemGc();
   982     CWindowGc& gc = SystemGc();
   943     MAknsControlContext* cc = SwtMopSupplyCtrlContext();
   983     MAknsControlContext* cc = SwtMopSupplyCtrlContext();