Mercurial > projects > dwt-mac
diff dwt/widgets/Table.d @ 46:cfa563df4fdd
Updated Widget and Display to 3.514
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Fri, 05 Dec 2008 16:00:41 +0100 |
parents | d8635bb48c7c |
children | b24476d6dedf |
line wrap: on
line diff
--- a/dwt/widgets/Table.d Mon Dec 01 17:07:00 2008 +0100 +++ b/dwt/widgets/Table.d Fri Dec 05 16:00:41 2008 +0100 @@ -436,7 +436,7 @@ scrollWidget.setBorderType(hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder); NSTableView widget = cast(NSTableView)new SWTTableView().alloc(); - widget.initWithFrame(new NSRect()); + widget.initWithFrame(NSRect()); widget.setAllowsMultipleSelection((style & DWT.MULTI) !is 0); widget.setAllowsColumnReordering (false); widget.setDataSource(widget); @@ -1256,7 +1256,7 @@ public TableItem getItem (Point point) { checkWidget (); NSTableView widget = (NSTableView)view; - NSPoint pt = new NSPoint(); + NSPoint pt = NSPoint(); pt.x = point.x; pt.y = point.y; int row = cast(int)/*64*/widget.rowAtPoint(pt); @@ -1509,7 +1509,7 @@ checkWidget (); //TODO - partial item at the top NSRect rect = scrollView.documentVisibleRect(); - NSPoint point = new NSPoint(); + NSPoint point = NSPoint(); point.x = rect.x; point.y = rect.y; return csat(int)/*64*/(cast(NSTableView)view).rowAtPoint(point); @@ -1857,7 +1857,7 @@ end = Math.min (end, itemCount - 1); int length = end - start + 1; NSIndexSet indexes = cast(NSIndexSet)new NSIndexSet().alloc(); - NSRange range = new NSRange(); + NSRange range = NSRange(); range.location = start; range.length = length; indexes.initWithIndexesInRange(range);