Mercurial > projects > dwt-mac
changeset 21:fdbd69a5f101
Ported dwt.widgets.Decorations
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sun, 07 Sep 2008 22:09:59 +0200 |
parents | 453387bb0706 |
children | c6edc6e9bd0d |
files | dwt/widgets/Decorations.d |
diffstat | 1 files changed, 14 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/widgets/Decorations.d Sun Sep 07 18:22:28 2008 +0200 +++ b/dwt/widgets/Decorations.d Sun Sep 07 22:09:59 2008 +0200 @@ -7,17 +7,26 @@ * * Contributors: * IBM Corporation - initial API and implementation + * + * Port to the D programming language: + * Jacob Carlborg <jacob.carlborg@gmail.com> *******************************************************************************/ module dwt.widgets.Decorations; -import dwt.dwthelper.utils; - import dwt.DWT; import dwt.DWTException; import dwt.graphics.Image; import dwt.graphics.ImageData; +import dwt.dwthelper.utils; +import dwt.dwthelper.System; +import dwt.widgets.Button; +import dwt.widgets.Composite; +import dwt.widgets.Control; +import dwt.widgets.Display; +import dwt.widgets.Menu; + /** * Instances of this class provide the appearance and * behavior of <code>Shells</code>, but are not top @@ -640,10 +649,10 @@ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ -public void setText (String string) { +public void setText (String str) { checkWidget(); - if (string is null) error (DWT.ERROR_NULL_ARGUMENT); - text = string; + //if (str is null) error (DWT.ERROR_NULL_ARGUMENT); + text = str; } void sort (Image [] images) {