Changeset 39:8ee0dfe6f685

Show
Ignore:
Timestamp:
03/13/08 18:53:38 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Snippet134 with non rectangular shell. Some more minor fixes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dsss.conf

    r35 r39  
    3838[dwtsnippets/menu/Snippet97.d] 
    3939[dwtsnippets/sash/Snippet107.d] 
     40[dwtsnippets/shell/Snippet134.d] 
    4041[dwtsnippets/styledtext/Snippet163.d] 
    4142[dwtsnippets/styledtext/Snippet189.d] 
  • dwtsnippets/composite/Snippet9.d

    r19 r39  
    1 /******************************************************************************* 
     1/******************************************************************************* 
    22 * Copyright (c) 2000, 2004 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
     
    3030import dwt.widgets.ScrollBar; 
    3131import dwt.widgets.Shell; 
     32import dwt.dwthelper.utils; 
    3233 
    3334void main () { 
  • dwtsnippets/table/Snippet144.d

    r27 r39  
    1 /******************************************************************************* 
     1/******************************************************************************* 
    22 * Copyright (c) 2000, 2004 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
     
    1818 * For a list of all SWT example snippets see 
    1919 * http://www.eclipse.org/swt/snippets/ 
    20  *  
     20 * 
    2121 * @since 3.0 
    2222 */ 
     
    6262            table.setItemCount (COUNT); 
    6363            auto t = elapsed.stop; 
    64             label.setText ("Items: " ~ to!(char[])(COUNT) ~  
    65                            ", Time: " ~ to!(char[])(t) ~ " (ms)"); 
     64            label.setText ("Items: " ~ to!(char[])(COUNT) ~ 
     65                           ", Time: " ~ to!(char[])(t) ~ " (sec)"); 
    6666            shell.layout (); 
    6767        } 
  • dwtsnippets/tree/Snippet8.d

    r27 r39  
    1 /******************************************************************************* 
     1/******************************************************************************* 
    22 * Copyright (c) 2000, 2004 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
     
    1212 *******************************************************************************/ 
    1313module dwtsnippets.tree.Snippet8; 
    14   
     14 
    1515/* 
    1616 * Tree example snippet: create a tree (lazy) 
     
    3030import dwt.widgets.TreeItem; 
    3131 
    32 import tango.math.Math
     32import dwt.dwthelper.utils
    3333import tango.io.FilePath; 
    3434import tango.io.FileRoots; 
  • user/dragdrop/texttolabel.d

    r32 r39  
    66 * 
    77 * Drag sellected text to a label. 
    8  *  
     8 * 
    99 * Port to the D programming language: 
    1010 *     Jesse Phillips <Jesse.K.Phillips+D> gmail.com 
     
    2727import dwt.widgets.Shell; 
    2828import dwt.widgets.Text; 
     29import dwt.dwthelper.utils; 
    2930 
    3031import tango.io.Stdout; 
     
    3334    auto display = new Display(); 
    3435    auto shell = new Shell(display); 
    35      
     36 
    3637    auto text = new Text(shell, DWT.BORDER|DWT.SINGLE); 
    3738 
     
    4243    auto source = new DragSource(text, DND.DROP_MOVE | DND.DROP_COPY); 
    4344    source.setTransfer(types); 
    44      
     45 
    4546    source.addDragListener(new class DragSourceAdapter { 
    4647      public void dragSetData(DragSourceEvent event) {