diff dwt/graphics/ImageLoaderEvent.d @ 32:b9226997409c

Ported dwt.graphics.Image*
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Fri, 12 Sep 2008 13:44:30 +0200
parents 1a8b3cb347e0
children d8635bb48c7c
line wrap: on
line diff
--- a/dwt/graphics/ImageLoaderEvent.d	Fri Sep 12 12:36:09 2008 +0200
+++ b/dwt/graphics/ImageLoaderEvent.d	Fri Sep 12 13:44:30 2008 +0200
@@ -7,13 +7,21 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ *     
+ * Port to the D programming language:
+ *     Jacob Carlborg <jacob.carlborg@gmail.com>
  *******************************************************************************/
 module dwt.graphics.ImageLoaderEvent;
 
-import dwt.dwthelper.utils;
 
 import dwt.internal.DWTEventObject;
 
+import tango.text.convert.Format;
+
+import dwt.dwthelper.utils;
+import dwt.graphics.ImageData;
+import dwt.graphics.ImageLoader;
+
 /**
  * Instances of this class are sent as a result of the incremental
  * loading of image data.
@@ -56,7 +64,7 @@
      */
     public bool endOfImage;
     
-    static final long serialVersionUID = 3257284738325558065L;
+    static const long serialVersionUID = 3257284738325558065L;
     
 /**
  * Constructs a new instance of this class given the event source and
@@ -81,7 +89,7 @@
  * @return a string representation of the event
  */
 public String toString () {
-    return "ImageLoaderEvent {source=" + source + " imageData=" + imageData + " incrementCount=" + incrementCount + " endOfImage=" + endOfImage + "}"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
+    return Format("ImageLoaderEvent {source={}{}{}{}{}{}{}{}" , source , " imageData=" , imageData , " incrementCount=" , incrementCount , " endOfImage=" , endOfImage , "}"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
 }
 
 }