Changeset 86:bef1ed4ebc50

Show
Ignore:
Timestamp:
02/06/08 15:33:24 (1 year ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

again copied events from dwt-linux

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/events/ArmListener.d

    r0 r86  
    2121 * such as a menu item, is armed. 
    2222 * <p> 
    23  * After creating an instance of a class that extends 
     23 * After creating an instance of a class that : 
    2424 * this interface it can be added to a widget using the 
    2525 * <code>addArmListener</code> method and removed using 
  • dwt/events/ControlListener.d

    r0 r86  
    2121 * and resizing controls. 
    2222 * <p> 
    23  * After creating an instance of a class that extends 
     23 * After creating an instance of a class that : 
    2424 * this interface it can be added to a control using the 
    2525 * <code>addControlListener</code> method and removed using 
  • dwt/events/DisposeListener.d

    r0 r86  
    2222 * is disposed. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a widget using the 
    2626 * <code>addDisposeListener</code> method and removed using 
  • dwt/events/DragDetectListener.d

    r0 r86  
    2222 * gesture is detected. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addDragDetectListener</code> method and removed using 
  • dwt/events/ExpandListener.d

    r0 r86  
    2222 * 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a <code>ExpandBar</code> 
    2626 * control using the <code>addExpandListener</code> method and 
  • dwt/events/FocusListener.d

    r0 r86  
    2222 * gain and lose focus. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addFocusListener</code> method and removed using 
  • dwt/events/HelpListener.d

    r0 r86  
    2222 * requested for a control, typically when the user presses F1. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addHelpListener</code> method and removed using 
  • dwt/events/KeyEvent.d

    r48 r86  
    9999 * @return a string representation of the event 
    100100 */ 
    101 override public char[] toString() { 
     101public override char[] toString() { 
    102102    return Format( "{} character={} keyCode={} stateMask={} doit={}}", 
    103103        super.toString[ 0 .. $-2 ], 
  • dwt/events/KeyListener.d

    r0 r86  
    2222 * are pressed on the system keyboard. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addKeyListener</code> method and removed using 
  • dwt/events/MenuDetectEvent.d

    r48 r86  
    6868 * @return a string representation of the event 
    6969 */ 
    70 override public char[] toString() { 
     70public override char[] toString() { 
    7171    return Format( "{} x={} y={} doit={}}", super.toString[ 0 .. $-2 ], x, y, doit ); 
    7272} 
  • dwt/events/MenuDetectListener.d

    r0 r86  
    2323 * detected. 
    2424 * <p> 
    25  * After creating an instance of a class that extends 
     25 * After creating an instance of a class that : 
    2626 * this interface it can be added to a control or TrayItem 
    2727 * using the <code>addMenuDetectListener</code> method and 
  • dwt/events/MenuListener.d

    r0 r86  
    2121 * that deal with the hiding and showing of menus. 
    2222 * <p> 
    23  * After creating an instance of a class that extends 
     23 * After creating an instance of a class that : 
    2424 * this interface it can be added to a menu using the 
    2525 * <code>addMenuListener</code> method and removed using 
  • dwt/events/ModifyListener.d

    r0 r86  
    2222 * is modified. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a text widget using the 
    2626 * <code>addModifyListener</code> method and removed using 
  • dwt/events/MouseEvent.d

    r0 r86  
    9494 * @return a string representation of the event 
    9595 */ 
    96 public char[] toString() { 
     96public override char[] toString() { 
    9797    return Format( "{} button={} stateMask={} x={} y={} count={}}", 
    98         super.toString[ 0 .. $-2 ], 
     98        super.toString[ 0 .. $-1 ], 
    9999        button, stateMask, x, y, count ); 
    100100} 
  • dwt/events/MouseListener.d

    r0 r86  
    2222 * are pressed. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addMouseListener</code> method and removed using 
  • dwt/events/MouseMoveListener.d

    r0 r86  
    2222 * pointer moves. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addMouseMoveListener</code> method and removed using 
  • dwt/events/MouseTrackListener.d

    r0 r86  
    2222 * pointer passes (or hovers) over controls. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addMouseTrackListener</code> method and removed using 
  • dwt/events/MouseWheelListener.d

    r0 r86  
    2222 * wheel is scrolled. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addMouseWheelListener</code> method and removed using 
  • dwt/events/PaintEvent.d

    r48 r86  
    9393 * @return a string representation of the event 
    9494 */ 
    95 override public char[] toString() { 
     95public override char[] toString() { 
    9696    return Format( "{} gc={} x={} y={} width={} height={} count={}}", 
    97         super.toString[ 0 .. $-2 ], 
    98         gc, x, y, width, height, count ); 
     97        super.toString[ 0 .. $-1 ], 
     98        gc is null ? "null" : gc.toString, 
     99        x, 
     100        y, 
     101        width, 
     102        height, 
     103        count ); 
    99104} 
    100105} 
  • dwt/events/PaintListener.d

    r0 r86  
    2222 * control needs to be painted. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addPaintListener</code> method and removed using 
  • dwt/events/SelectionEvent.d

    r48 r86  
    129129 * @return a string representation of the event 
    130130 */ 
    131 override public char[] toString() { 
     131public override char[] toString() { 
    132132    return Format( "{} item={} detail={} x={} y={} width={} height={} stateMask={} text={} doit={}}", 
    133133        super.toString[ 0 .. $-2 ], 
  • dwt/events/SelectionListener.d

    r0 r86  
    2222 * occurs in a control. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addSelectionListener</code> method and removed using 
  • dwt/events/ShellEvent.d

    r0 r86  
    5353 * @return a string representation of the event 
    5454 */ 
    55 public char[] toString() { 
     55public override char[] toString() { 
    5656    return Format( "{} doit={}}", super.toString[ 0 .. $-2 ], doit ); 
    5757} 
  • dwt/events/ShellListener.d

    r0 r86  
    2121 * that deal with changes in state of <code>Shell</code>s. 
    2222 * <p> 
    23  * After creating an instance of a class that extends 
     23 * After creating an instance of a class that : 
    2424 * this interface it can be added to a shell using the 
    2525 * <code>addShellListener</code> method and removed using 
  • dwt/events/TraverseEvent.d

    r48 r86  
    132132 * @return a string representation of the event 
    133133 */ 
    134 override public char[] toString() { 
     134public override char[] toString() { 
    135135    return Format( "{} detail={}}", super.toString[ 0 .. $-2 ], detail ); 
    136136} 
  • dwt/events/TraverseListener.d

    r0 r86  
    2222 * traverse event occurs in a control. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a control using the 
    2626 * <code>addTraverseListener</code> method and removed using 
  • dwt/events/TreeListener.d

    r0 r86  
    2222 * branches. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a tree control using the 
    2626 * <code>addTreeListener</code> method and removed using 
  • dwt/events/TypedEvent.d

    r48 r86  
    9999 * @return a string representation of the event 
    100100 */ 
    101 override public char[] toString() { 
    102     return Format( "{}{{{} time={} data={}}", widget.toString(), time, data.toString() ); 
     101public override char[] toString() { 
     102    char[] str_widget = widget is null ? "null" : widget.toString; 
     103    char[] str_data   = data is null ? "null" : data.toString; 
     104    return Format( "{}{{time={} data={}}", str_widget, time, str_data ); 
    103105} 
    104106} 
  • dwt/events/VerifyEvent.d

    r48 r86  
    6161 * @return a string representation of the event 
    6262 */ 
    63 override public char[] toString() { 
     63public override char[] toString() { 
    6464    return Format( "{} start={} end={} text={}}", super.toString[ 0 .. $-2 ], start, end, text ); 
    6565} 
  • dwt/events/VerifyListener.d

    r0 r86  
    2222 * is about to be modified. 
    2323 * <p> 
    24  * After creating an instance of a class that extends 
     24 * After creating an instance of a class that : 
    2525 * this interface it can be added to a text control using the 
    2626 * <code>addVerifyListener</code> method and removed using