# HG changeset patch # User Jacob Carlborg # Date 1220818765 -7200 # Node ID c6edc6e9bd0dcdd5d255683f21fad31512007199 # Parent fdbd69a5f101e597ea0250fb272a65b4c2a250f7 Ported dwt.widgets.Composite diff -r fdbd69a5f101 -r c6edc6e9bd0d dwt/widgets/Composite.d --- a/dwt/widgets/Composite.d Sun Sep 07 22:09:59 2008 +0200 +++ b/dwt/widgets/Composite.d Sun Sep 07 22:19:25 2008 +0200 @@ -7,11 +7,12 @@ * * Contributors: * IBM Corporation - initial API and implementation + * + * Port to the D programming language: + * Jacob Carlborg *******************************************************************************/ module dwt.widgets.Composite; -import dwt.dwthelper.utils; - import dwt.DWT; import dwt.DWTException; @@ -25,6 +26,20 @@ import dwt.internal.cocoa.SWTScrollView; import dwt.internal.cocoa.SWTView; +import dwt.dwthelper.utils; +import dwt.internal.cocoa.NSInteger; +import dwt.widgets.Control; +import dwt.widgets.Decorations; +import dwt.widgets.Display; +import dwt.widgets.Event; +import dwt.widgets.Layout; +import dwt.widgets.Menu; +import dwt.widgets.Scrollable; +import dwt.widgets.ScrollBar; +import dwt.widgets.Shell; +import dwt.widgets.Widget; + + /** * Instances of this class are controls which are capable * of containing other controls. @@ -100,11 +115,11 @@ Control [] _getChildren () { NSArray views = contentView().subviews(); - int count = views.count(); + NSUInteger count = views.count(); Control [] children = new Control [count]; int j = 0; for (int i=0; i