Mercurial > projects > dwt-win
diff dwt/internal/image/FileFormat.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | 41dbc4d9faab |
children | 36f5cb12e1a2 |
line wrap: on
line diff
--- a/dwt/internal/image/FileFormat.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/internal/image/FileFormat.d Mon May 05 00:12:38 2008 +0200 @@ -32,6 +32,7 @@ import tango.core.Exception; import tango.core.Tuple; +import dwt.dwthelper.utils; /** * Abstract factory class for loading/unloading images from files or streams @@ -39,9 +40,9 @@ * */ public abstract class FileFormat { - static const char[] FORMAT_PACKAGE = "dwt.internal.image"; //$NON-NLS-1$ - static const char[] FORMAT_SUFFIX = "FileFormat"; //$NON-NLS-1$ - static const char[][] FORMATS = [ "WinBMP"[], "WinBMP", "GIF", "WinICO", "JPEG", "PNG", "TIFF", "OS2BMP" ]; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$//$NON-NLS-5$ //$NON-NLS-6$//$NON-NLS-7$//$NON-NLS-8$ + static const String FORMAT_PACKAGE = "dwt.internal.image"; //$NON-NLS-1$ + static const String FORMAT_SUFFIX = "FileFormat"; //$NON-NLS-1$ + static const String[] FORMATS = [ "WinBMP"[], "WinBMP", "GIF", "WinICO", "JPEG", "PNG", "TIFF", "OS2BMP" ]; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$//$NON-NLS-5$ //$NON-NLS-6$//$NON-NLS-7$//$NON-NLS-8$ alias Tuple!( WinBMPFileFormat, WinBMPFileFormat, GIFFileFormat, WinICOFileFormat, JPEGFileFormat, PNGFileFormat, TIFFFileFormat, OS2BMPFileFormat ) TFormats; LEDataInputStream inputStream; LEDataOutputStream outputStream;