Changeset 345

Show
Ignore:
Timestamp:
05/06/07 07:43:21 (2 years ago)
Author:
keinfarbton
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/poseidon/dsss.conf

    r343 r345  
    11[*] 
    22version( Windows ){ 
    3     buildflags+=-ll"swt-wgl-win32-3235" 
    4     buildflags+=-ll"swt-awt-win32-3235" 
    5     buildflags+=-ll"swt-gdip-win32-3235" 
    6     buildflags+=-ll"swt-win32-3235" 
    7     buildflags+=-L/SUBSYSTEM:console:5 
    83} 
    94version( linux ){ 
     
    3328 
    3429[poseidon\poseidon.d] 
     30target=poseidon.exe 
     31buildflags+=poseidon\style\xpm.d 
    3532buildflags+=-ICodeAnalyzer 
    3633buildflags+=-Ic:\Project\tangobos 
     34 
     35    buildflags+=-S. 
     36    buildflags+=-I..\tangobos 
     37    buildflags+=-ll"swt-wgl-win32-3235" 
     38    buildflags+=-ll"swt-awt-win32-3235" 
     39    buildflags+=-ll"swt-gdip-win32-3235" 
     40    buildflags+=-ll"swt-win32-3235" 
     41    buildflags+=-ll"Stangobos-etc" 
     42    buildflags+=-ll"Stangobos" 
     43    buildflags+=-ll"Scrc32" 
     44    buildflags+=-L/SUBSYSTEM:console:5 
    3745 
    3846 
  • branches/poseidon/poseidon/controller/dialog/splash.d

    r343 r345  
    44private import poseidon.globals; 
    55import dejavu.lang.String; 
     6import dejavu.lang.Class; 
    67import std.path; 
    78 
    8 class Splash : Shell 
     9class Splash 
    910{ 
    1011    Canvas canvas; 
     
    1213    Point pt; 
    1314    Font font; 
     15        Shell shell; 
    1416     
    1517    this(Shell shell)  
    1618    { 
    17        super(shell, SWT.NO_TRIM); 
     19            this.shell= new Shell( shell, SWT.NO_TRIM ); 
    1820         
    1921        try{ 
    20             image = new Image(display, 
     22            image = new Image(shell.getDisplay, 
    2123                                String.fromUtf8(std.path.join(Globals.appDir, "splash.jpg"))); 
    2224        }catch(Object o){ 
     
    2628        if(image)  
    2729        { 
    28             font = new Font(getDisplay(), String.fromUtf8("Verdana"), 11, SWT.NORMAL); 
     30            font = new Font(shell.getDisplay(), String.fromUtf8("Verdana"), 11, SWT.NORMAL); 
    2931             
    30             canvas = new Canvas(this, SWT.NONE); 
     32            canvas = new Canvas(shell, SWT.NONE); 
    3133            canvas.handleEvent(null, SWT.Paint, &onPaint); 
    3234            Rectangle rect = image.getBounds();  
    3335            pt = new Point(rect.width, rect.height); 
    34             setSize(pt); 
     36            shell.setSize(pt); 
    3537            pt.x -= 1; 
    3638            pt.y -= 1; 
    37             setLayout(new FillLayout()); 
     39            shell.setLayout(new FillLayout()); 
     40                        shell.handleEvent( this, SWT.Paint, &onPaint ); 
    3841            //FIXME: centerWindow(null); 
    39             open(); 
     42            shell.open(); 
    4043        }else{ 
    4144            // since we failed to load the splash image, dispose me 
    42             dispose(); 
     45            shell.dispose(); 
    4346        } 
    4447    } 
     
    4952         
    5053        GC gc = e.gc; 
    51         gc.setForeground(getDisplay().getSystemColor(SWT.COLOR_WHITE)); 
     54        gc.setForeground(shell.getDisplay().getSystemColor(SWT.COLOR_WHITE)); 
    5255        gc.setFont(font); 
    5356        gc.drawImage(image, 0, 0); 
    5457        gc.dh_drawString("v " ~ Globals.getVersionS(), x, y, true); 
    5558        // draw a frame outside the image 
    56         gc.setForeground(getDisplay().getSystemColor(SWT.COLOR_BLACK)); 
     59        gc.setForeground(shell.getDisplay().getSystemColor(SWT.COLOR_BLACK)); 
    5760        gc.drawRectangle(0, 0, pt.x, pt.y); 
    5861    } 
    5962     
    60     ~this() 
     63    void dispose() 
    6164    { 
    6265        // release image here 
     
    6568        if(font) 
    6669            font.dispose(); 
    67         dispose(); 
     70        shell.dispose(); 
    6871    } 
    6972} 
  • branches/poseidon/poseidon/controller/gui.d

    r343 r345  
    1818private import poseidon.intellisense.autocomplete; 
    1919 
     20import poseidon.controller.dialog.splash; 
     21 
    2022import dejavu.lang.JObjectImpl; 
    2123import dejavu.lang.Runnable; 
     
    5052        SashForm        mainSash, topSash; 
    5153 
    52         public this(Display display, Shell mainShell, Shell splashShell) 
     54        public this(Display display, Shell mainShell, Splash splashShell) 
    5355        { 
    5456                sGUI = this; 
  • branches/poseidon/poseidon/loader.d

    r335 r345  
    2424 
    2525        // show splash screen if desired 
    26         Shell splash; 
     26        Splash splash; 
    2727        if(Globals.showSplash){ 
    2828            splash = new Splash(shell); 
  • branches/poseidon/poseidon/poseidon.d

    r343 r345  
    22 
    33private import poseidon.loader; 
    4  
     4import dejavu.Intern; 
    55version(none){ 
    66    version(build){ 
     
    6464    } 
    6565} 
     66import org.eclipse.swt.StaticCtorsSwt; 
     67extern(C) ubyte[] resources_getDataById( char[] id ){ 
     68    return null; 
     69} 
    6670/** 
    6771 * the global entrance 
    6872 */ 
    6973void main(char[][] args){ 
    70     Loader.main(args); 
     74    org.eclipse.swt.StaticCtorsSwt.callAllStaticCtors(); 
     75    Loader.main(args); 
    7176}