# HG changeset patch # User Jacob Carlborg # Date 1220888671 -7200 # Node ID 060cdd4457aa16548612c82affec697a4eb91238 # Parent d4399516bdc2053c180930900e19ab3b24795d21 Ported dwt.widgets.Scrollable diff -r d4399516bdc2 -r 060cdd4457aa dwt/widgets/Scrollable.d --- a/dwt/widgets/Scrollable.d Mon Sep 08 17:41:09 2008 +0200 +++ b/dwt/widgets/Scrollable.d Mon Sep 08 17:44:31 2008 +0200 @@ -7,11 +7,12 @@ * * Contributors: * IBM Corporation - initial API and implementation + * + * Port to the D programming language: + * Jacob Carlborg *******************************************************************************/ module dwt.widgets.Scrollable; -import dwt.dwthelper.utils; - import dwt.DWT; import dwt.DWTException; @@ -24,6 +25,13 @@ import dwt.internal.cocoa.OS; import dwt.internal.cocoa.SWTScrollView; +import dwt.dwthelper.utils; +import dwt.widgets.Composite; +import dwt.widgets.Control; +import dwt.widgets.Display; +import dwt.widgets.ScrollBar; +import dwt.widgets.Widget; + /** * This class is the abstract superclass of all classes which * represent controls that have standard scroll bars. @@ -109,7 +117,7 @@ public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); if (scrollView !is null) { - NSSize size = new NSSize(); + NSSize size = NSSize(); size.width = width; size.height = height; int border = hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder;