Changeset 3:6e0b2c96d1fd

Show
Ignore:
Timestamp:
02/06/08 18:09:21 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

build with dwt-win

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dsss.conf

    r0 r3  
    11 
    22[*] 
    3 buildflags+=-g -gc 
     3buildflags+=-g -gc -debug 
     4version(Windows){ 
     5    #buildflags+= -L/SUBSYSTEM:windows:5 
     6    buildflags+= -L/SUBSYSTEM:console:5 
     7
    48 
    59[dwtexamples/simple.d] 
     
    1014[dwtexamples/helloworld/HelloWorld5.d] 
    1115 
     16[test1/draw.d] 
    1217 
    1318[dwtexamples/addressbook/AddressBook.d] 
    14 buildflags+=-g -gc 
     19buildflags+=-g -gc -debug 
     20version(Windows){ 
     21    buildflags+= -L/SUBSYSTEM:console:5 
     22
    1523buildflags+=-Jdwtexamples/addressbook 
    1624 
    1725[dwtexamples/controlexample/ControlExample.d] 
    18 buildflags+=-g -gc 
     26buildflags+=-g -gc -debug 
     27version(Windows){ 
     28    buildflags+= -L/SUBSYSTEM:console:5 
     29
    1930buildflags+=-Jdwtexamples/controlexample 
    2031buildflags+=-version=CONTROL_EXAMPLE_MAIN 
    2132 
    2233[dwtexamples/controlexample/CustomControlExample.d] 
    23 buildflags+=-g -gc 
     34buildflags+=-g -gc -debug 
     35version(Windows){ 
     36    buildflags+= -L/SUBSYSTEM:console:5 
     37
    2438buildflags+=-Jdwtexamples/controlexample 
    2539buildflags+=-version=CUSTOM_CONTROL_EXAMPLE_MAIN 
  • dwtexamples/addressbook/AddressBook.d

    r0 r3  
    385385        displayError(resAddressBook.getString("IO_error_write") ~ "\n" ~ file.toString()); 
    386386        result = false; 
    387     } catch(TracedException e2 ) { 
     387    } catch(Exception e2 ) { 
    388388        displayError(resAddressBook.getString("error_write") ~ "\n" ~ e2.toString()); 
    389389        result = false; 
  • dwtexamples/controlexample/ControlExample.d

    r0 r3  
    3333import dwtexamples.controlexample.CoolBarTab; 
    3434//import dwtexamples.controlexample.DateTimeTab; 
    35 import dwtexamples.controlexample.DialogTab; 
     35version(linux){ 
     36    import dwtexamples.controlexample.DialogTab; 
     37
    3638import dwtexamples.controlexample.ExpandBarTab; 
    3739import dwtexamples.controlexample.GroupTab; 
     
    7981        Stdout.formatln( "todo: DateTimeTab not implemented" ); 
    8082        Stdout.formatln( "todo: ExpandBarTab looks strange" ); 
    81         Stdout.formatln( "todo: ProgressBarTab crash on vertical" ); 
    82         Stdout.formatln( "todo: SliderTab horizontal arrow buttons are too high" ); 
     83        Stdout.formatln( "" ); 
     84        Stdout.formatln( "On linux GTK:" ); 
     85        Stdout.formatln( "bug:  ProgressBarTab crash on vertical" ); 
     86        Stdout.formatln( "        in java it behaves the same" ); 
     87        Stdout.formatln( "bug:  SliderTab horizontal arrow buttons are too high." ); 
     88        Stdout.formatln( "        in java it behaves the same" ); 
     89        Stdout.formatln( "        Known bug:" ); 
     90        Stdout.formatln( "        https://bugs.eclipse.org/bugs/show_bug.cgi?id=197402" ); 
     91        Stdout.formatln( "        http://bugzilla.gnome.org/show_bug.cgi?id=475909" ); 
     92        Stdout.formatln( "" ); 
    8393        Stdout.formatln( "please report problems" ); 
    8494        ControlExample.main( null ); 
     
    140150     */ 
    141151    Tab[] createTabs() { 
     152        version(Windows){ 
     153        return [ cast(Tab) 
     154            new ButtonTab (this), 
     155            new CanvasTab (this), 
     156            new ComboTab (this), 
     157            new CoolBarTab (this), 
     158            //new DateTimeTab (this), // DateTime Control not implemented 
     159            //new DialogTab (this),   // Dialog not implemented 
     160            new ExpandBarTab (this), 
     161            new GroupTab (this), 
     162            new LabelTab (this), 
     163            new LinkTab (this), 
     164            new ListTab (this), 
     165            new MenuTab (this), 
     166            //new ProgressBarTab (this), // crash on start 
     167            new SashTab (this), 
     168            //new ScaleTab (this),       // crash on start 
     169            shellTab = new ShellTab(this), 
     170            //new SliderTab (this),      // crash on start 
     171            //new SpinnerTab (this),     // crash on start 
     172            new TabFolderTab (this), 
     173            new TableTab (this), 
     174            new TextTab (this), 
     175            new ToolBarTab (this), 
     176            new ToolTipTab (this), 
     177            new TreeTab (this) 
     178        ]; 
     179        } else { // linux 
    142180        return [ cast(Tab) 
    143181            new ButtonTab (this), 
     
    166204            new TreeTab (this) 
    167205        ]; 
     206        } 
    168207    } 
    169208 
     
    263302                } 
    264303                return; 
    265             } catch (TracedException t) { 
     304            } catch (Exception t) { 
    266305                Stdout.formatln( "ups {}", t ); 
    267306            } 
     
    271310            "Unable to load resources"; //$NON-NLS-1$ 
    272311        freeResources(); 
    273         throw new TracedException(error); 
     312        throw new Exception(error); 
    274313    } 
    275314 
  • dwtexamples/controlexample/MenuTab.d

    r0 r3  
    1 /******************************************************************************* 
     1/******************************************************************************* 
    22 * Copyright (c) 2000, 2005 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
     
    3131import dwtexamples.controlexample.Tab; 
    3232import dwtexamples.controlexample.ControlExample; 
     33 
     34import dwt.dwthelper.utils; 
     35 
    3336import tango.util.Convert; 
    3437 
  • dwtexamples/controlexample/ProgressBarTab.d

    r0 r3  
    1 /******************************************************************************* 
     1/******************************************************************************* 
    22 * Copyright (c) 2000, 2007 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
  • dwtexamples/controlexample/ShellTab.d

    r0 r3  
    2929import dwtexamples.controlexample.Tab; 
    3030import dwtexamples.controlexample.ControlExample; 
     31 
     32import dwt.dwthelper.utils; 
     33 
    3134import tango.util.Convert; 
    3235 
  • dwtexamples/controlexample/Tab.d

    r0 r3  
    8080import dwt.widgets.ExpandBar; 
    8181 
     82import dwt.dwthelper.utils; 
     83 
    8284import dwtexamples.controlexample.ControlExample; 
    8385import tango.text.convert.Format; 
  • dwtexamples/controlexample/TableTab.d

    r0 r3  
    1 /******************************************************************************* 
     1/******************************************************************************* 
    22 * Copyright (c) 2000, 2007 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
     
    4343import dwtexamples.controlexample.ControlExample; 
    4444import dwtexamples.controlexample.ScrollableTab; 
     45 
     46import dwt.dwthelper.utils; 
     47 
    4548import tango.text.convert.Format; 
    4649import tango.util.Convert; 
  • dwtexamples/controlexample/ToolBarTab.d

    r0 r3  
    1 /******************************************************************************* 
     1/******************************************************************************* 
    22 * Copyright (c) 2000, 2007 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
     
    3434import dwtexamples.controlexample.Tab; 
    3535import dwtexamples.controlexample.ControlExample; 
     36 
     37import dwt.dwthelper.utils; 
     38 
    3639import tango.util.Convert; 
    3740 
  • dwtexamples/controlexample/TreeTab.d

    r0 r3  
    1 /******************************************************************************* 
     1/******************************************************************************* 
    22 * Copyright (c) 2000, 2007 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
     
    4444import dwtexamples.controlexample.ControlExample; 
    4545import dwtexamples.controlexample.ScrollableTab; 
     46 
     47import dwt.dwthelper.utils; 
     48 
    4649import tango.text.convert.Format; 
    4750import tango.util.Convert;