Mercurial > projects > dwt-mac
diff dwt/widgets/DateTime.d @ 90:c7f7f4d7091a
All widgets are ported
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 30 Dec 2008 18:54:31 +0100 |
parents | cda53a4e462f |
children | 63a09873578e |
line wrap: on
line diff
--- a/dwt/widgets/DateTime.d Tue Dec 30 17:01:10 2008 +0100 +++ b/dwt/widgets/DateTime.d Tue Dec 30 18:54:31 2008 +0100 @@ -31,7 +31,7 @@ import tango.text.convert.Format; -import dwt.internal.c.Carbon; +import Carbon = dwt.internal.c.Carbon; import dwt.widgets.Composite; import dwt.widgets.TypedListener; @@ -270,8 +270,8 @@ } String getNameText() { - return (style & DWT.TIME) !is 0 ? Format("{}{}{}{}{}", getHours() , ":" + getMinutes() , ":" , getSeconds()) - : Format("{}{}{}{}{}", (getMonth() + 1) + "/" + getDay() + "/" + getYear()); + return (style & DWT.TIME) !is 0 ? Format("{}{}{}{}{}", getHours() , ":" , getMinutes() , ":" , getSeconds()) + : Format("{}{}{}{}{}", (getMonth() + 1) , "/" , getDay() , "/" , getYear()); } /** @@ -339,7 +339,7 @@ postEvent (DWT.Selection); } -void setBackground (CGFloat [] color) { +void setBackground (Carbon.CGFloat [] color) { NSColor nsColor; if (color is null) { return; // TODO reset to OS default @@ -400,7 +400,7 @@ } } -void setForeground (CGFloat [] color) { +void setForeground (Carbon.CGFloat [] color) { NSColor nsColor; if (color is null) { return; // TODO reset to OS default