equal
deleted
inserted
replaced
416 } |
416 } |
417 |
417 |
418 iDisplay.PostMouseEventL(iPeer, type, button, pos, stateMask); |
418 iDisplay.PostMouseEventL(iPeer, type, button, pos, stateMask); |
419 } |
419 } |
420 |
420 |
|
421 EXPORT_C void ASwtControlBase::EnableFocusHighlight(TBool /*aEnable*/) |
|
422 { |
|
423 // Method is used only on 9.2 for list controls (Lists, ListView, |
|
424 // ListBox and Table) |
|
425 } |
|
426 |
421 TPoint ASwtControlBase::ComputeLocationToSet(const TPoint& aLocation) |
427 TPoint ASwtControlBase::ComputeLocationToSet(const TPoint& aLocation) |
422 { |
428 { |
423 ASSERT(!IsShell()); |
429 ASSERT(!IsShell()); |
424 return aLocation + iParent->Scrollable()->Control()->ClientRect().iTl; //lint !e613 |
430 return aLocation + iParent->Scrollable()->Control()->ClientRect().iTl; //lint !e613 |
425 } |
431 } |
503 EXPORT_C void ASwtControlBase::DoDelete() |
509 EXPORT_C void ASwtControlBase::DoDelete() |
504 { |
510 { |
505 delete this; |
511 delete this; |
506 } |
512 } |
507 |
513 |
508 TRect ASwtControlBase::VisibleRect(TBool aVisibleBounds) const |
514 EXPORT_C TRect ASwtControlBase::VisibleRect(TBool aVisibleBounds) const |
509 { |
515 { |
510 // WINDOW COORDINATES! |
516 // WINDOW COORDINATES! |
511 if (!CoeControl().IsVisible()) |
517 if (!CoeControl().IsVisible()) |
512 return TRect(); // This is (0,0,0,0) |
518 return TRect(); // This is (0,0,0,0) |
513 |
519 |
1211 } |
1217 } |
1212 } |
1218 } |
1213 |
1219 |
1214 EXPORT_C void ASwtControlBase::HandleSizeChanged() |
1220 EXPORT_C void ASwtControlBase::HandleSizeChanged() |
1215 { |
1221 { |
1216 if (iPrevSwtSize == GetWidgetSize() && iPrevCoeSize == CoeControl().Size()) |
1222 if (iPrevCoeSize == CoeControl().Size()) |
1217 { |
1223 { |
1218 return; |
1224 return; |
1219 } |
1225 } |
1220 |
1226 |
1221 if (iPrevSwtSize != GetWidgetSize()) |
1227 if (iPrevCoeSize != CoeControl().Size()) |
1222 { |
1228 { |
1223 iPrevSwtSize = GetWidgetSize(); |
1229 iPrevCoeSize = CoeControl().Size(); |
1224 TRAP_IGNORE(iDisplay.PostResizeEventL(iPeer)); |
1230 TRAP_IGNORE(iDisplay.PostResizeEventL(iPeer)); |
1225 } |
|
1226 |
|
1227 if (iPrevCoeSize != CoeControl().Size()) |
|
1228 { |
|
1229 iPrevCoeSize = CoeControl().Size(); |
|
1230 HandleRectChanged(); |
1231 HandleRectChanged(); |
1231 } |
1232 } |
1232 } |
1233 } |
1233 |
1234 |
1234 EXPORT_C void ASwtControlBase::HandlePositionChanged() |
1235 EXPORT_C void ASwtControlBase::HandlePositionChanged() |
1902 EXPORT_C TSize ASwtControlBase::GetWidgetSize() const |
1903 EXPORT_C TSize ASwtControlBase::GetWidgetSize() const |
1903 { |
1904 { |
1904 return CoeControl().Size(); |
1905 return CoeControl().Size(); |
1905 } |
1906 } |
1906 |
1907 |
1907 EXPORT_C void ASwtControlBase::SetWidgetSize(const TSize& aNewSize) |
1908 EXPORT_C void ASwtControlBase::SetWidgetSize(const TSize& aSize) |
1908 { |
1909 { |
1909 ASSERT(!IsShell()); |
1910 ASSERT(!IsShell()); |
1910 |
1911 |
1911 CCoeControl& coeCtrl = CoeControl(); |
1912 CCoeControl& coeCtrl = CoeControl(); |
1912 TRect oldRect(coeCtrl.Rect()); |
1913 TRect oldRect(coeCtrl.Rect()); |
1913 TRect newRect(coeCtrl.Position(), aNewSize); |
1914 TRect newRect(coeCtrl.Position(), aSize); |
1914 |
1915 |
1915 if (newRect == oldRect) |
1916 if (newRect == oldRect) |
1916 { |
1917 { |
1917 return; |
1918 return; |
1918 } |
1919 } |
1961 } |
1962 } |
1962 invalidRegion.Close(); |
1963 invalidRegion.Close(); |
1963 } |
1964 } |
1964 |
1965 |
1965 // Set and redraw new rect |
1966 // Set and redraw new rect |
1966 coeCtrl.SetSize(aNewSize); |
1967 coeCtrl.SetSize(aSize); |
1967 if (!(iStyle & KSwtStyleNoRedrawResize)) |
1968 if (!(iStyle & KSwtStyleNoRedrawResize)) |
1968 { |
1969 { |
1969 if (urgent) |
1970 if (urgent) |
1970 { |
1971 { |
1971 iParent->Control()->PaintUrgently(iParent->Control()->CoeControl().Rect()); |
1972 iParent->Control()->PaintUrgently(iParent->Control()->CoeControl().Rect()); |
2560 |
2561 |
2561 #ifdef RD_SCALABLE_UI_V2 |
2562 #ifdef RD_SCALABLE_UI_V2 |
2562 EXPORT_C void ASwtControlBase::HandlePointerEventL(const TPointerEvent& aPointerEvent) |
2563 EXPORT_C void ASwtControlBase::HandlePointerEventL(const TPointerEvent& aPointerEvent) |
2563 { |
2564 { |
2564 CoeControl().HandlePointerEventL(aPointerEvent); |
2565 CoeControl().HandlePointerEventL(aPointerEvent); |
|
2566 PostMouseEventL(aPointerEvent); |
2565 } |
2567 } |
2566 #else |
2568 #else |
2567 EXPORT_C void ASwtControlBase::HandlePointerEventL(const TPointerEvent& /*aPointerEvent*/) |
2569 EXPORT_C void ASwtControlBase::HandlePointerEventL(const TPointerEvent& /*aPointerEvent*/) |
2568 { |
2570 { |
2569 ASSERT(EFalse); |
2571 ASSERT(EFalse); |