Changeset 130:021f78dcc160

Show
Ignore:
Timestamp:
01/21/08 06:38:47 (7 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

added some resource files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dsss.conf

    r128 r130  
    3737[dwtexamples/helloworld/HelloWorld5.d] 
    3838[dwtexamples/addressbook/AddressBook.d] 
     39 
    3940[dwtexamples/controlexample/ControlExample.d] 
     41buildflags+=-Jdwtexamples/controlexample 
    4042 
     43 
  • dwtexamples/controlexample/ControlExample.d

    r128 r130  
    3838import dwt.widgets.TabItem; 
    3939import dwt.dwthelper.ResourceBundle; 
    40  
     40import dwt.dwthelper.ByteArrayInputStream; 
    4141 
    4242import dwtexamples.controlexample.Tab; 
     
    8787        "backgroundImage.png",          //$NON-NLS-1$ 
    8888        "parentBackgroundImage.png"];   //$NON-NLS-1$ 
     89 
     90    static const ubyte[][] imageData = [ 
     91        cast(ubyte[]) import( "closedFolder.gif" ), 
     92        cast(ubyte[]) import( "openFolder.gif" ), 
     93        cast(ubyte[]) import( "target.gif" ), 
     94        cast(ubyte[]) import( "backgroundImage.png" ), 
     95        cast(ubyte[]) import( "parentBackgroundImage.png" ) 
     96    ]; 
    8997    static const int[] imageTypes = [ 
    9098        DWT.ICON, 
     
    234242 
    235243                    for (int i = 0; i < imageLocations.length; ++i) { 
    236                         InputStream sourceStream = clazz.getResourceAsStream(imageLocations[i]); 
     244                        InputStream sourceStream = new ByteArrayInputStream( imageData[i] ); 
    237245                        ImageData source = new ImageData(sourceStream); 
    238246                        if (imageTypes[i] is DWT.ICON) {