Mercurial > projects > dwt-mac
diff dwt/widgets/Sash.d @ 123:63a09873578e
Fixed compile errors
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 15 Jan 2009 23:08:54 +0100 |
parents | c7f7f4d7091a |
children | 0ba75290f8ce |
line wrap: on
line diff
--- a/dwt/widgets/Sash.d Wed Dec 31 21:01:13 2008 +0100 +++ b/dwt/widgets/Sash.d Thu Jan 15 23:08:54 2009 +0100 @@ -126,7 +126,7 @@ ourAttributes.addObject(OS.NSAccessibilityNextContentsAttribute); ourAttributes.addObject(OS.NSAccessibilityPreviousContentsAttribute); ourAttributes.addObject(OS.NSAccessibilityOrientationAttribute); - + if (accessible !is null) { // See if the accessible will override or augment the standard list. // Help, title, and description can be overridden. @@ -134,7 +134,7 @@ extraAttributes.addObject(OS.NSAccessibilityHelpAttribute); extraAttributes.addObject(OS.NSAccessibilityDescriptionAttribute); extraAttributes.addObject(OS.NSAccessibilityTitleAttribute); - + for (int i = extraAttributes.count() - 1; i >= 0; i--) { NSString attribute = new NSString(extraAttributes.objectAtIndex(i).id); if (accessible.internal_accessibilityAttributeValue(attribute, ACC.CHILDID_SELF) !is null) { @@ -142,7 +142,7 @@ } } } - + accessibilityAttributes = ourAttributes; accessibilityAttributes.retain(); } @@ -159,12 +159,12 @@ if (returnObject !is null) returnValue = returnObject.id; } - + if (returnValue !is null) return returnValue; - + if (attributeName.isEqualToString (OS.NSAccessibilityRoleAttribute) || attributeName.isEqualToString (OS.NSAccessibilityRoleDescriptionAttribute)) { NSString roleText = OS.NSAccessibilitySplitterRole; - + if (attributeName.isEqualToString (OS.NSAccessibilityRoleAttribute)) { return roleText.id; } else { // NSAccessibilityRoleDescriptionAttribute @@ -182,8 +182,8 @@ } else if (attributeName.isEqualToString (OS.NSAccessibilityMaxValueAttribute)) { NSRect parentBounds = view.bounds(); float maxValue = (style & DWT.VERTICAL) !is 0 ? - parentBounds.width : - parentBounds.height; + parentBounds.width : + parentBounds.height; return NSNumber.numberWithInt(cast(int)maxValue).id; } else if (attributeName.isEqualToString (OS.NSAccessibilityMinValueAttribute)) { return NSNumber.numberWithInt(0).id; @@ -220,7 +220,7 @@ else return NSArray.array().id; } - + return super.accessibilityAttributeValue(id, sel, arg0); } @@ -263,8 +263,8 @@ static int checkStyle (int style) { /* - * Macintosh only supports smooth dragging. - */ + * Macintosh only supports smooth dragging. + */ style |= DWT.SMOOTH; return checkBits (style, DWT.HORIZONTAL, DWT.VERTICAL, 0, 0, 0, 0); } @@ -372,7 +372,7 @@ void mouseDown(objc.id id, objc.SEL sel, objc.id theEvent) { //TODO use sendMouseEvent -// super.mouseDown(id, sel, theEvent); + // super.mouseDown(id, sel, theEvent); NSEvent nsEvent = new NSEvent(theEvent); if (nsEvent.clickCount() !is 1) return; NSPoint location = nsEvent.locationInWindow(); @@ -397,7 +397,7 @@ void mouseDragged(objc.id id, objc.SEL sel, objc.id theEvent) { //TODO use sendMouseEvent -// super.mouseDragged(id, sel, theEvent); + // super.mouseDragged(id, sel, theEvent); if (!dragging) return; NSEvent nsEvent = new NSEvent(theEvent); NSPoint location = nsEvent.locationInWindow(); @@ -427,7 +427,7 @@ void mouseUp(objc.id id, objc.SEL sel, objc.id theEvent) { //TODO use sendMouseEvent -// super.mouseUp(id, sel, theEvent); + // super.mouseUp(id, sel, theEvent); if (!dragging) return; dragging = false; NSRect frame = view.frame();