Mercurial > projects > dwt-win
changeset 86:bef1ed4ebc50
again copied events from dwt-linux
line wrap: on
line diff
--- a/dwt/events/ArmListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/ArmListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -20,7 +20,7 @@ * that deals with the event that is generated when a widget, * such as a menu item, is armed. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a widget using the * <code>addArmListener</code> method and removed using * the <code>removeArmListener</code> method. When the
--- a/dwt/events/ControlListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/ControlListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -20,7 +20,7 @@ * that deal with the events that are generated by moving * and resizing controls. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addControlListener</code> method and removed using * the <code>removeControlListener</code> method. When a
--- a/dwt/events/DisposeListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/DisposeListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deals with the event that is generated when a widget * is disposed. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a widget using the * <code>addDisposeListener</code> method and removed using * the <code>removeDisposeListener</code> method. When a
--- a/dwt/events/DragDetectListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/DragDetectListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deal with the events that are generated when a drag * gesture is detected. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addDragDetectListener</code> method and removed using * the <code>removeDragDetectListener</code> method. When the
--- a/dwt/events/ExpandListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/ExpandListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deal with the expanding and collapsing of <code>ExpandItem</code>s. * * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a <code>ExpandBar</code> * control using the <code>addExpandListener</code> method and * removed using the <code>removeExpandListener</code> method.
--- a/dwt/events/FocusListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/FocusListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deal with the events that are generated as controls * gain and lose focus. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addFocusListener</code> method and removed using * the <code>removeFocusListener</code> method. When a
--- a/dwt/events/HelpListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/HelpListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deals with the event that is generated when help is * requested for a control, typically when the user presses F1. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addHelpListener</code> method and removed using * the <code>removeHelpListener</code> method. When help
--- a/dwt/events/KeyEvent.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/KeyEvent.d Wed Feb 06 21:33:24 2008 +0100 @@ -98,7 +98,7 @@ * * @return a string representation of the event */ -override public char[] toString() { +public override char[] toString() { return Format( "{} character={} keyCode={} stateMask={} doit={}}", super.toString[ 0 .. $-2 ], character, keyCode, stateMask, doit );
--- a/dwt/events/KeyListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/KeyListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deal with the events that are generated as keys * are pressed on the system keyboard. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addKeyListener</code> method and removed using * the <code>removeKeyListener</code> method. When a
--- a/dwt/events/MenuDetectEvent.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/MenuDetectEvent.d Wed Feb 06 21:33:24 2008 +0100 @@ -67,7 +67,7 @@ * * @return a string representation of the event */ -override public char[] toString() { +public override char[] toString() { return Format( "{} x={} y={} doit={}}", super.toString[ 0 .. $-2 ], x, y, doit ); } }
--- a/dwt/events/MenuDetectListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/MenuDetectListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -22,7 +22,7 @@ * platform-specific trigger for showing a context menu is * detected. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control or TrayItem * using the <code>addMenuDetectListener</code> method and * removed using the <code>removeMenuDetectListener</code> method.
--- a/dwt/events/MenuListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/MenuListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -20,7 +20,7 @@ * Classes which implement this interface provide methods * that deal with the hiding and showing of menus. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a menu using the * <code>addMenuListener</code> method and removed using * the <code>removeMenuListener</code> method. When the
--- a/dwt/events/ModifyListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/ModifyListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deals with the events that are generated when text * is modified. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a text widget using the * <code>addModifyListener</code> method and removed using * the <code>removeModifyListener</code> method. When the
--- a/dwt/events/MouseEvent.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/MouseEvent.d Wed Feb 06 21:33:24 2008 +0100 @@ -93,9 +93,9 @@ * * @return a string representation of the event */ -public char[] toString() { +public override char[] toString() { return Format( "{} button={} stateMask={} x={} y={} count={}}", - super.toString[ 0 .. $-2 ], + super.toString[ 0 .. $-1 ], button, stateMask, x, y, count ); } }
--- a/dwt/events/MouseListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/MouseListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deal with the events that are generated as mouse buttons * are pressed. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addMouseListener</code> method and removed using * the <code>removeMouseListener</code> method. When a
--- a/dwt/events/MouseMoveListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/MouseMoveListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deals with the events that are generated as the mouse * pointer moves. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addMouseMoveListener</code> method and removed using * the <code>removeMouseMoveListener</code> method. As the
--- a/dwt/events/MouseTrackListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/MouseTrackListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deal with the events that are generated as the mouse * pointer passes (or hovers) over controls. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addMouseTrackListener</code> method and removed using * the <code>removeMouseTrackListener</code> method. When the
--- a/dwt/events/MouseWheelListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/MouseWheelListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deals with the event that is generated as the mouse * wheel is scrolled. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addMouseWheelListener</code> method and removed using * the <code>removeMouseWheelListener</code> method. When the
--- a/dwt/events/PaintEvent.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/PaintEvent.d Wed Feb 06 21:33:24 2008 +0100 @@ -92,10 +92,15 @@ * * @return a string representation of the event */ -override public char[] toString() { +public override char[] toString() { return Format( "{} gc={} x={} y={} width={} height={} count={}}", - super.toString[ 0 .. $-2 ], - gc, x, y, width, height, count ); + super.toString[ 0 .. $-1 ], + gc is null ? "null" : gc.toString, + x, + y, + width, + height, + count ); } }
--- a/dwt/events/PaintListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/PaintListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deal with the events that are generated when the * control needs to be painted. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addPaintListener</code> method and removed using * the <code>removePaintListener</code> method. When a
--- a/dwt/events/SelectionEvent.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/SelectionEvent.d Wed Feb 06 21:33:24 2008 +0100 @@ -128,7 +128,7 @@ * * @return a string representation of the event */ -override public char[] toString() { +public override char[] toString() { return Format( "{} item={} detail={} x={} y={} width={} height={} stateMask={} text={} doit={}}", super.toString[ 0 .. $-2 ], item,
--- a/dwt/events/SelectionListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/SelectionListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deal with the events that are generated when selection * occurs in a control. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addSelectionListener</code> method and removed using * the <code>removeSelectionListener</code> method. When
--- a/dwt/events/ShellEvent.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/ShellEvent.d Wed Feb 06 21:33:24 2008 +0100 @@ -52,7 +52,7 @@ * * @return a string representation of the event */ -public char[] toString() { +public override char[] toString() { return Format( "{} doit={}}", super.toString[ 0 .. $-2 ], doit ); } }
--- a/dwt/events/ShellListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/ShellListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -20,7 +20,7 @@ * Classes which implement this interface provide methods * that deal with changes in state of <code>Shell</code>s. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a shell using the * <code>addShellListener</code> method and removed using * the <code>removeShellListener</code> method. When the
--- a/dwt/events/TraverseEvent.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/TraverseEvent.d Wed Feb 06 21:33:24 2008 +0100 @@ -131,7 +131,7 @@ * * @return a string representation of the event */ -override public char[] toString() { +public override char[] toString() { return Format( "{} detail={}}", super.toString[ 0 .. $-2 ], detail ); } }
--- a/dwt/events/TraverseListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/TraverseListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deals with the events that are generated when a * traverse event occurs in a control. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a control using the * <code>addTraverseListener</code> method and removed using * the <code>removeTraverseListener</code> method. When a
--- a/dwt/events/TreeListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/TreeListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deal with the expanding and collapsing of tree * branches. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a tree control using the * <code>addTreeListener</code> method and removed using * the <code>removeTreeListener</code> method. When a branch
--- a/dwt/events/TypedEvent.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/TypedEvent.d Wed Feb 06 21:33:24 2008 +0100 @@ -98,7 +98,9 @@ * * @return a string representation of the event */ -override public char[] toString() { - return Format( "{}{{{} time={} data={}}", widget.toString(), time, data.toString() ); +public override char[] toString() { + char[] str_widget = widget is null ? "null" : widget.toString; + char[] str_data = data is null ? "null" : data.toString; + return Format( "{}{{time={} data={}}", str_widget, time, str_data ); } }
--- a/dwt/events/VerifyEvent.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/VerifyEvent.d Wed Feb 06 21:33:24 2008 +0100 @@ -60,7 +60,7 @@ * * @return a string representation of the event */ -override public char[] toString() { +public override char[] toString() { return Format( "{} start={} end={} text={}}", super.toString[ 0 .. $-2 ], start, end, text ); } }
--- a/dwt/events/VerifyListener.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/VerifyListener.d Wed Feb 06 21:33:24 2008 +0100 @@ -21,7 +21,7 @@ * that deals with the events that are generated when text * is about to be modified. * <p> - * After creating an instance of a class that extends + * After creating an instance of a class that : * this interface it can be added to a text control using the * <code>addVerifyListener</code> method and removed using * the <code>removeVerifyListener</code> method. When the