# HG changeset patch
# User Frank Benoit StyledTextContent> will always have
* at least one empty line.
*/
-DefaultContent() {
+this() {
super();
setText("");
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/ExtendedModifyEvent.d
--- a/dwt/custom/ExtendedModifyEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/ExtendedModifyEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -25,7 +25,7 @@
static final long serialVersionUID = 3258696507027830832L;
-public ExtendedModifyEvent(StyledTextEvent e) {
+public this(StyledTextEvent e) {
super(e);
start = e.start;
length = e.end - e.start;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/LineBackgroundEvent.d
--- a/dwt/custom/LineBackgroundEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/LineBackgroundEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -35,7 +35,7 @@
static final long serialVersionUID = 3978711687853324342L;
-public LineBackgroundEvent(StyledTextEvent e) {
+public this(StyledTextEvent e) {
super(e);
lineOffset = e.detail;
lineText = e.text;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/LineStyleEvent.d
--- a/dwt/custom/LineStyleEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/LineStyleEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -80,7 +80,7 @@
static final long serialVersionUID = 3906081274027192884L;
-public LineStyleEvent(StyledTextEvent e) {
+public this(StyledTextEvent e) {
super(e);
styles = e.styles;
ranges = e.ranges;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/MovementEvent.d
--- a/dwt/custom/MovementEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/MovementEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -53,7 +53,7 @@
static final long serialVersionUID = 3978765487853324342L;
-public MovementEvent(StyledTextEvent e) {
+public this(StyledTextEvent e) {
super(e);
lineOffset = e.detail;
lineText = e.text;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/PaintObjectEvent.d
--- a/dwt/custom/PaintObjectEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/PaintObjectEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -62,7 +62,7 @@
static final long serialVersionUID = 3906081274027192855L;
-public PaintObjectEvent(StyledTextEvent e) {
+public this(StyledTextEvent e) {
super(e);
gc = e.gc;
x = e.x;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/PopupList.d
--- a/dwt/custom/PopupList.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/PopupList.d Wed Aug 27 14:02:31 2008 +0200
@@ -32,7 +32,7 @@
*
* @param parent a Shell control which will be the parent of the new instance (cannot be null)
*/
-public PopupList(Shell parent) {
+public this(Shell parent) {
this (parent, 0);
}
/**
@@ -43,7 +43,7 @@
*
* @since 3.0
*/
-public PopupList(Shell parent, int style) {
+public this(Shell parent, int style) {
shell = new Shell(parent, checkStyle(style));
list = new List(shell, DWT.SINGLE | DWT.V_SCROLL);
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/SashForm.d
--- a/dwt/custom/SashForm.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/SashForm.d Wed Aug 27 14:02:31 2008 +0200
@@ -72,7 +72,7 @@
* @see DWT#VERTICAL
* @see #getStyle()
*/
-public SashForm(Composite parent, int style) {
+public this(Composite parent, int style) {
super(parent, checkStyle(style));
super.setLayout(new SashFormLayout());
sashStyle = ((style & DWT.VERTICAL) !is 0) ? DWT.HORIZONTAL : DWT.VERTICAL;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/ScrolledComposite.d
--- a/dwt/custom/ScrolledComposite.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/ScrolledComposite.d Wed Aug 27 14:02:31 2008 +0200
@@ -138,7 +138,7 @@
* @see DWT#V_SCROLL
* @see #getStyle()
*/
-public ScrolledComposite(Composite parent, int style) {
+public this(Composite parent, int style) {
super(parent, checkStyle(style));
super.setLayout(new ScrolledCompositeLayout());
ScrollBar hBar = getHorizontalBar ();
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/StyleRange.d
--- a/dwt/custom/StyleRange.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/StyleRange.d Wed Aug 27 14:02:31 2008 +0200
@@ -40,7 +40,7 @@
*
* @since 3.2
*/
-public StyleRange() {
+public this() {
}
/**
@@ -50,7 +50,7 @@
*
*@since 3.4
*/
-public StyleRange(TextStyle style) {
+public this(TextStyle style) {
super(style);
}
@@ -62,7 +62,7 @@
* @param foreground foreground color of the style, null if none
* @param background background color of the style, null if none
*/
-public StyleRange(int start, int length, Color foreground, Color background) {
+public this(int start, int length, Color foreground, Color background) {
super(null, foreground, background);
this.start = start;
this.length = length;
@@ -77,7 +77,7 @@
* @param background background color of the style, null if none
* @param fontStyle font style of the style, may be DWT.NORMAL, DWT.ITALIC or DWT.BOLD
*/
-public StyleRange(int start, int length, Color foreground, Color background, int fontStyle) {
+public this(int start, int length, Color foreground, Color background, int fontStyle) {
this(start, length, foreground, background);
this.fontStyle = fontStyle;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/StyledText.d
--- a/dwt/custom/StyledText.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/StyledText.d Wed Aug 27 14:02:31 2008 +0200
@@ -205,7 +205,7 @@
* @param printer printer device to print on.
* @param printOptions print options
*/
- Printing(StyledText styledText, Printer printer, StyledTextPrintOptions printOptions) {
+ this(StyledText styledText, Printer printer, StyledTextPrintOptions printOptions) {
this.printer = printer;
this.printOptions = printOptions;
this.mirrored = (styledText.getStyle() & DWT.MIRRORED) !is 0;
@@ -676,7 +676,7 @@
* beginning of document
* @param length length of content to write
*/
- public RTFWriter(int start, int length) {
+ public this(int start, int length) {
super(start, length);
colorTable = new Vector();
fontTable = new Vector();
@@ -1054,7 +1054,7 @@
* @param start start offset of content to write, 0 based from beginning of document
* @param length length of content to write
*/
- public TextWriter(int start, int length) {
+ public this(int start, int length) {
buffer = new StringBuffer(length);
startOffset = start;
endOffset = start + length;
@@ -1210,7 +1210,7 @@
* @see DWT#WRAP
* @see #getStyle
*/
-public StyledText(Composite parent, int style) {
+public this(Composite parent, int style) {
super(parent, checkStyle(style));
// set the fg in the OS to ensure that these are the same as StyledText, necessary
// for ensuring that the bg/fg the IME box uses is the same as what StyledText uses
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/StyledTextDropTargetEffect.d
--- a/dwt/custom/StyledTextDropTargetEffect.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/StyledTextDropTargetEffect.d Wed Aug 27 14:02:31 2008 +0200
@@ -61,7 +61,7 @@
*
* @param styledText the
StyledText
over which the user positions the cursor to drop the data
*/
- public StyledTextDropTargetEffect(StyledText styledText) {
+ public this(StyledText styledText) {
super(styledText);
paintListener = new Listener () {
public void handleEvent (Event event) {
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/StyledTextEvent.d
--- a/dwt/custom/StyledTextEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/StyledTextEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -41,7 +41,7 @@
int descent;
StyleRange style;
-StyledTextEvent (StyledTextContent content) {
+this (StyledTextContent content) {
super();
data = content;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/StyledTextListener.d
--- a/dwt/custom/StyledTextListener.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/StyledTextListener.d Wed Aug 27 14:02:31 2008 +0200
@@ -17,7 +17,7 @@
class StyledTextListener : TypedListener {
/**
*/
-StyledTextListener(DWTEventListener listener) {
+this(DWTEventListener listener) {
super(listener);
}
/**
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/StyledTextRenderer.d
--- a/dwt/custom/StyledTextRenderer.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/StyledTextRenderer.d Wed Aug 27 14:02:31 2008 +0200
@@ -75,9 +75,9 @@
bool justify;
int[] segments;
- public LineInfo() {
+ public this() {
}
- public LineInfo(LineInfo info) {
+ public this(LineInfo info) {
if (info !is null) {
flags = info.flags;
background = info.background;
@@ -89,7 +89,7 @@
}
}
-StyledTextRenderer(Device device, StyledText styledText) {
+this(Device device, StyledText styledText) {
this.device = device;
this.styledText = styledText;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/TableCursor.d
--- a/dwt/custom/TableCursor.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/TableCursor.d Wed Aug 27 14:02:31 2008 +0200
@@ -173,7 +173,7 @@
* @see Widget#checkSubclass()
* @see Widget#getStyle()
*/
-public TableCursor(Table parent, int style) {
+public this(Table parent, int style) {
super(parent, style);
table = parent;
setBackground(null);
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/TableEditor.d
--- a/dwt/custom/TableEditor.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/TableEditor.d Wed Aug 27 14:02:31 2008 +0200
@@ -83,7 +83,7 @@
* @param table the Table Control above which this editor will be displayed
*
*/
-public TableEditor (Table table) {
+public this (Table table) {
super(table);
this.table = table;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/TableTree.d
--- a/dwt/custom/TableTree.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/TableTree.d Wed Aug 27 14:02:31 2008 +0200
@@ -92,7 +92,7 @@
* @see DWT#FULL_SELECTION
* @see #getStyle
*/
-public TableTree(Composite parent, int style) {
+public this(Composite parent, int style) {
super(parent, checkStyle (style));
table = new Table(this, style);
Listener tableListener = new Listener() {
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/TableTreeEditor.d
--- a/dwt/custom/TableTreeEditor.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/TableTreeEditor.d Wed Aug 27 14:02:31 2008 +0200
@@ -92,7 +92,7 @@
* @param tableTree the TableTree Control above which this editor will be displayed
*
*/
-public TableTreeEditor (TableTree tableTree) {
+public this (TableTree tableTree) {
super(tableTree.getTable());
this.tableTree = tableTree;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/TableTreeItem.d
--- a/dwt/custom/TableTreeItem.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/TableTreeItem.d Wed Aug 27 14:02:31 2008 +0200
@@ -64,7 +64,7 @@
* @see DWT
* @see Widget#getStyle()
*/
-public TableTreeItem(TableTree parent, int style) {
+public this(TableTree parent, int style) {
this (parent, style, parent.getItemCount());
}
@@ -97,7 +97,7 @@
* @see DWT
* @see Widget#getStyle()
*/
-public TableTreeItem(TableTree parent, int style, int index) {
+public this(TableTree parent, int style, int index) {
this (parent, null, style, index);
}
@@ -129,7 +129,7 @@
* @see DWT
* @see Widget#getStyle()
*/
-public TableTreeItem(TableTreeItem parent, int style) {
+public this(TableTreeItem parent, int style) {
this (parent, style, parent.getItemCount());
}
@@ -162,11 +162,11 @@
* @see DWT
* @see Widget#getStyle()
*/
-public TableTreeItem(TableTreeItem parent, int style, int index) {
+public this(TableTreeItem parent, int style, int index) {
this (parent.getParent(), parent, style, index);
}
-TableTreeItem(TableTree parent, TableTreeItem parentItem, int style, int index) {
+this(TableTree parent, TableTreeItem parentItem, int style, int index) {
super(parent, style);
this.parent = parent;
this.parentItem = parentItem;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/TextChangedEvent.d
--- a/dwt/custom/TextChangedEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/TextChangedEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -27,7 +27,7 @@
* @param source the object that will be sending the TextChangedEvent,
* cannot be null
*/
-public TextChangedEvent(StyledTextContent source) {
+public this(StyledTextContent source) {
super(source);
}
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/TextChangingEvent.d
--- a/dwt/custom/TextChangingEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/TextChangingEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -53,10 +53,10 @@
* @param source the object that will be sending the new TextChangingEvent,
* cannot be null
*/
-public TextChangingEvent(StyledTextContent source) {
+public this(StyledTextContent source) {
super(source);
}
-TextChangingEvent(StyledTextContent source, StyledTextEvent e) {
+this(StyledTextContent source, StyledTextEvent e) {
super(source);
start = e.start;
replaceCharCount = e.replaceCharCount;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/TreeEditor.d
--- a/dwt/custom/TreeEditor.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/TreeEditor.d Wed Aug 27 14:02:31 2008 +0200
@@ -83,7 +83,7 @@
* @param tree the Tree Control above which this editor will be displayed
*
*/
-public TreeEditor (Tree tree) {
+public this (Tree tree) {
super(tree);
this.tree = tree;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/ViewForm.d
--- a/dwt/custom/ViewForm.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/ViewForm.d Wed Aug 27 14:02:31 2008 +0200
@@ -145,7 +145,7 @@
* @see DWT#FLAT
* @see #getStyle()
*/
-public ViewForm(Composite parent, int style) {
+public this(Composite parent, int style) {
super(parent, checkStyle(style));
super.setLayout(new ViewFormLayout());
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/Clipboard.d
--- a/dwt/dnd/Clipboard.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/dnd/Clipboard.d Wed Aug 27 14:02:31 2008 +0200
@@ -41,7 +41,7 @@
* @see Clipboard#dispose
* @see Clipboard#checkSubclass
*/
-public Clipboard(Display display) {
+public this(Display display) {
checkSubclass ();
if (display is null) {
display = Display.getCurrent();
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/DNDListener.d
--- a/dwt/dnd/DNDListener.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/dnd/DNDListener.d Wed Aug 27 14:02:31 2008 +0200
@@ -20,7 +20,7 @@
* DNDListener constructor comment.
* @param listener dwt.internal.DWTEventListener
*/
-DNDListener(DWTEventListener listener) {
+this(DWTEventListener listener) {
super(listener);
}
public void handleEvent (Event e) {
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/DragSource.d
--- a/dwt/dnd/DragSource.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/dnd/DragSource.d Wed Aug 27 14:02:31 2008 +0200
@@ -142,7 +142,7 @@
* @see DND#DROP_MOVE
* @see DND#DROP_LINK
*/
-public DragSource(Control control, int style) {
+public this(Control control, int style) {
super (control, checkStyle(style));
this.control = control;
if (control.getData(DND.DRAG_SOURCE_KEY) !is null) {
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/DragSourceEffect.d
--- a/dwt/dnd/DragSourceEffect.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/dnd/DragSourceEffect.d Wed Aug 27 14:02:31 2008 +0200
@@ -47,7 +47,7 @@
* Table
that the user clicks on to initiate the drag
*/
- public TableDragSourceEffect(Table table) {
+ public this(Table table) {
super(table);
}
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/TableDropTargetEffect.d
--- a/dwt/dnd/TableDropTargetEffect.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/dnd/TableDropTargetEffect.d Wed Aug 27 14:02:31 2008 +0200
@@ -81,7 +81,7 @@
*
* @param table the Table
over which the user positions the cursor to drop the data
*/
- public TableDropTargetEffect(Table table) {
+ public this(Table table) {
super(table);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/TextTransfer.d
--- a/dwt/dnd/TextTransfer.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/dnd/TextTransfer.d Wed Aug 27 14:02:31 2008 +0200
@@ -35,7 +35,7 @@
static final int TEXTID = OS.kScrapFlavorTypeText;
static final int UTEXTID = OS.kScrapFlavorTypeUnicode;
-TextTransfer() {}
+this() {}
/**
* Returns the singleton instance of the TextTransfer class.
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/TreeDragSourceEffect.d
--- a/dwt/dnd/TreeDragSourceEffect.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/dnd/TreeDragSourceEffect.d Wed Aug 27 14:02:31 2008 +0200
@@ -35,7 +35,7 @@
*
* @param tree the Tree
that the user clicks on to initiate the drag
*/
- public TreeDragSourceEffect(Tree tree) {
+ public this(Tree tree) {
super(tree);
}
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/TreeDropTargetEffect.d
--- a/dwt/dnd/TreeDropTargetEffect.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/dnd/TreeDropTargetEffect.d Wed Aug 27 14:02:31 2008 +0200
@@ -99,7 +99,7 @@
*
* @param tree the Tree
over which the user positions the cursor to drop the data
*/
- public TreeDropTargetEffect(Tree tree) {
+ public this(Tree tree) {
super(tree);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dwthelper/utils.d
--- a/dwt/dwthelper/utils.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/dwthelper/utils.d Wed Aug 27 14:02:31 2008 +0200
@@ -786,7 +786,7 @@
}
void ExceptionPrintStackTrace( Exception e ){
- ExceptionPrintStackTrace( e, Stderr );
+ this( e, Stderr );
}
void ExceptionPrintStackTrace( Exception e, Print!(char) print ){
Exception exception = e;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/effects/Effect.d
--- a/dwt/effects/Effect.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/effects/Effect.d Wed Aug 27 14:02:31 2008 +0200
@@ -18,7 +18,7 @@
public class Effect {
public int handle;
- public Effect() {
+ public this() {
}
public void dispose() {
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/ArmEvent.d
--- a/dwt/events/ArmEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/ArmEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -30,7 +30,7 @@
*
* @param e the untyped event containing the information
*/
-public ArmEvent(Event e) {
+public this(Event e) {
super(e);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/ControlEvent.d
--- a/dwt/events/ControlEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/ControlEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -32,7 +32,7 @@
*
* @param e the untyped event containing the information
*/
-public ControlEvent(Event e) {
+public this(Event e) {
super(e);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/DisposeEvent.d
--- a/dwt/events/DisposeEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/DisposeEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -32,7 +32,7 @@
*
* @param e the untyped event containing the information
*/
-public DisposeEvent(Event e) {
+public this(Event e) {
super(e);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/DragDetectEvent.d
--- a/dwt/events/DragDetectEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/DragDetectEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -33,7 +33,7 @@
*
* @param e the untyped event containing the information
*/
-public DragDetectEvent(Event e) {
+public this(Event e) {
super(e);
}
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/ExpandEvent.d
--- a/dwt/events/ExpandEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/ExpandEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -34,7 +34,7 @@
*
* @param e the untyped event containing the information
*/
-public ExpandEvent(Event e) {
+public this(Event e) {
super(e);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/FocusEvent.d
--- a/dwt/events/FocusEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/FocusEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -32,7 +32,7 @@
*
* @param e the untyped event containing the information
*/
-public FocusEvent(Event e) {
+public this(Event e) {
super(e);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/HelpEvent.d
--- a/dwt/events/HelpEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/HelpEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -32,7 +32,7 @@
*
* @param e the untyped event containing the information
*/
-public HelpEvent(Event e) {
+public this(Event e) {
super(e);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/KeyEvent.d
--- a/dwt/events/KeyEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/KeyEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -81,7 +81,7 @@
*
* @param e the untyped event containing the information
*/
-public KeyEvent(Event e) {
+public this(Event e) {
super(e);
this.character = e.character;
this.keyCode = e.keyCode;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/MenuDetectEvent.d
--- a/dwt/events/MenuDetectEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/MenuDetectEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -52,7 +52,7 @@
*
* @param e the untyped event containing the information
*/
-public MenuDetectEvent(Event e) {
+public this(Event e) {
super(e);
this.x = e.x;
this.y = e.y;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/MenuEvent.d
--- a/dwt/events/MenuEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/MenuEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -32,7 +32,7 @@
*
* @param e the untyped event containing the information
*/
-public MenuEvent(Event e) {
+public this(Event e) {
super(e);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/ModifyEvent.d
--- a/dwt/events/ModifyEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/ModifyEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -32,7 +32,7 @@
*
* @param e the untyped event containing the information
*/
-public ModifyEvent(Event e) {
+public this(Event e) {
super(e);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/MouseEvent.d
--- a/dwt/events/MouseEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/MouseEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -75,7 +75,7 @@
*
* @param e the untyped event containing the information
*/
-public MouseEvent(Event e) {
+public this(Event e) {
super(e);
this.x = e.x;
this.y = e.y;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/PaintEvent.d
--- a/dwt/events/PaintEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/PaintEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -72,7 +72,7 @@
*
* @param e the untyped event containing the information
*/
-public PaintEvent(Event e) {
+public this(Event e) {
super(e);
this.gc = e.gc;
this.x = e.x;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/SelectionEvent.d
--- a/dwt/events/SelectionEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/SelectionEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -107,7 +107,7 @@
*
* @param e the untyped event containing the information
*/
-public SelectionEvent(Event e) {
+public this(Event e) {
super(e);
this.item = e.item;
this.x = e.x;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/ShellEvent.d
--- a/dwt/events/ShellEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/ShellEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -38,7 +38,7 @@
*
* @param e the untyped event containing the information
*/
-public ShellEvent(Event e) {
+public this(Event e) {
super(e);
this.doit = e.doit;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/TraverseEvent.d
--- a/dwt/events/TraverseEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/TraverseEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -118,7 +118,7 @@
*
* @param e the untyped event containing the information
*/
-public TraverseEvent(Event e) {
+public this(Event e) {
super(e);
this.detail = e.detail;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/TreeEvent.d
--- a/dwt/events/TreeEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/TreeEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -32,7 +32,7 @@
*
* @param e the untyped event containing the information
*/
-public TreeEvent(Event e) {
+public this(Event e) {
super(e);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/TypedEvent.d
--- a/dwt/events/TypedEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/TypedEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -60,7 +60,7 @@
*
* @param object the object that fired the event
*/
-public TypedEvent(Object object) {
+public this(Object object) {
super(object);
}
@@ -70,7 +70,7 @@
*
* @param e the low level event to initialize the receiver with
*/
-public TypedEvent(Event e) {
+public this(Event e) {
super(e.widget);
this.display = e.display;
this.widget = e.widget;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/events/VerifyEvent.d
--- a/dwt/events/VerifyEvent.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/events/VerifyEvent.d Wed Aug 27 14:02:31 2008 +0200
@@ -45,7 +45,7 @@
*
* @param e the untyped event containing the information
*/
-public VerifyEvent(Event e) {
+public this(Event e) {
super(e);
this.start = e.start;
this.end = e.end;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Color.d
--- a/dwt/graphics/Color.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/graphics/Color.d Wed Aug 27 14:02:31 2008 +0200
@@ -43,7 +43,7 @@
*/
public float[] handle;
-Color(Device device) {
+this(Device device) {
super(device);
}
@@ -71,7 +71,7 @@
*
* @see #dispose
*/
-public Color(Device device, int red, int green, int blue) {
+public this(Device device, int red, int green, int blue) {
super(device);
init(red, green, blue);
init();
@@ -99,7 +99,7 @@
*
* @see #dispose
*/
-public Color(Device device, RGB rgb) {
+public this(Device device, RGB rgb) {
super(device);
if (rgb is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
init(rgb.red, rgb.green, rgb.blue);
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Cursor.d
--- a/dwt/graphics/Cursor.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/graphics/Cursor.d Wed Aug 27 14:02:31 2008 +0200
@@ -65,7 +65,7 @@
/**
* Prevents uninitialized instances from being created outside the package.
*/
-Cursor(Device device) {
+this(Device device) {
super(device);
}
@@ -110,7 +110,7 @@
* @see DWT#CURSOR_NO
* @see DWT#CURSOR_HAND
*/
-public Cursor(Device device, int style) {
+public this(Device device, int style) {
super(device);
switch (style) {
case DWT.CURSOR_HAND: handle = NSCursor.pointingHandCursor(); break;
@@ -174,7 +174,7 @@
*
null
if none
* @param background the background color of the style, null
if none
*/
-public TextStyle (Font font, Color foreground, Color background) {
+public this (Font font, Color foreground, Color background) {
if (font !is null && font.isDisposed()) DWT.error (DWT.ERROR_INVALID_ARGUMENT);
if (foreground !is null && foreground.isDisposed()) DWT.error (DWT.ERROR_INVALID_ARGUMENT);
if (background !is null && background.isDisposed()) DWT.error (DWT.ERROR_INVALID_ARGUMENT);
@@ -171,7 +171,7 @@
*
* @since 3.4
*/
-public TextStyle (TextStyle style) {
+public this (TextStyle style) {
if (style is null) DWT.error (DWT.ERROR_INVALID_ARGUMENT);
font = style.font;
foreground = style.foreground;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Transform.d
--- a/dwt/graphics/Transform.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/graphics/Transform.d Wed Aug 27 14:02:31 2008 +0200
@@ -69,7 +69,7 @@
*
* @see #dispose()
*/
-public Transform (Device device) {
+public this (Device device) {
this(device, 1, 0, 0, 1, 0, 0);
}
@@ -98,7 +98,7 @@
*
* @see #dispose()
*/
-public Transform(Device device, float[] elements) {
+public this(Device device, float[] elements) {
this (device, checkTransform(elements)[0], elements[1], elements[2], elements[3], elements[4], elements[5]);
}
@@ -131,7 +131,7 @@
*
* @see #dispose()
*/
-public Transform (Device device, float m11, float m12, float m21, float m22, float dx, float dy) {
+public this (Device device, float m11, float m12, float m21, float m22, float dx, float dy) {
super(device);
handle = NSAffineTransform.transform();
if (handle is null) DWT.error(DWT.ERROR_NO_HANDLES);
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/cocoa/WebDataSource.d
--- a/dwt/internal/cocoa/WebDataSource.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/cocoa/WebDataSource.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,11 +12,11 @@
public class WebDataSource : NSObject {
-public WebDataSource() {
+public this() {
super();
}
-public WebDataSource(int id) {
+public this(int id) {
super(id);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/cocoa/WebDocumentRepresentation.d
--- a/dwt/internal/cocoa/WebDocumentRepresentation.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/cocoa/WebDocumentRepresentation.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,7 +12,7 @@
public class WebDocumentRepresentation : NSObject {
-public WebDocumentRepresentation(int id) {
+public this(int id) {
super(id);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/cocoa/WebFrame.d
--- a/dwt/internal/cocoa/WebFrame.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/cocoa/WebFrame.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,11 +12,11 @@
public class WebFrame : NSObject {
-public WebFrame() {
+public this() {
super();
}
-public WebFrame(int id) {
+public this(int id) {
super(id);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/cocoa/WebFrameView.d
--- a/dwt/internal/cocoa/WebFrameView.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/cocoa/WebFrameView.d Wed Aug 27 14:02:31 2008 +0200
@@ -2,11 +2,11 @@
public class WebFrameView : NSObject {
-public WebFrameView() {
+public this() {
super();
}
-public WebFrameView(int id) {
+public this(int id) {
super(id);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/cocoa/WebOpenPanelResultListener.d
--- a/dwt/internal/cocoa/WebOpenPanelResultListener.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/cocoa/WebOpenPanelResultListener.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,7 +12,7 @@
public class WebOpenPanelResultListener : NSObject {
-public WebOpenPanelResultListener(int id) {
+public this(int id) {
super(id);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/cocoa/WebPolicyDecisionListener.d
--- a/dwt/internal/cocoa/WebPolicyDecisionListener.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/cocoa/WebPolicyDecisionListener.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,7 +12,7 @@
public class WebPolicyDecisionListener : NSObject {
-public WebPolicyDecisionListener(int id) {
+public this(int id) {
super(id);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/cocoa/WebPreferences.d
--- a/dwt/internal/cocoa/WebPreferences.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/cocoa/WebPreferences.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,11 +12,11 @@
public class WebPreferences : NSObject {
-public WebPreferences() {
+public this() {
super();
}
-public WebPreferences(int id) {
+public this(int id) {
super(id);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/cocoa/WebView.d
--- a/dwt/internal/cocoa/WebView.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/cocoa/WebView.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,11 +12,11 @@
public class WebView : NSView {
-public WebView() {
+public this() {
super();
}
-public WebView(int id) {
+public this(int id) {
super(id);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGAppn.d
--- a/dwt/internal/image/JPEGAppn.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGAppn.d Wed Aug 27 14:02:31 2008 +0200
@@ -13,11 +13,11 @@
final class JPEGAppn : JPEGVariableSizeSegment {
- public JPEGAppn(byte[] reference) {
+ public this(byte[] reference) {
super(reference);
}
- public JPEGAppn(LEDataInputStream byteStream) {
+ public this(LEDataInputStream byteStream) {
super(byteStream);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGArithmeticConditioningTable.d
--- a/dwt/internal/image/JPEGArithmeticConditioningTable.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGArithmeticConditioningTable.d Wed Aug 27 14:02:31 2008 +0200
@@ -13,7 +13,7 @@
final class JPEGArithmeticConditioningTable : JPEGVariableSizeSegment {
- public JPEGArithmeticConditioningTable(LEDataInputStream byteStream) {
+ public this(LEDataInputStream byteStream) {
super(byteStream);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGComment.d
--- a/dwt/internal/image/JPEGComment.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGComment.d Wed Aug 27 14:02:31 2008 +0200
@@ -13,11 +13,11 @@
final class JPEGComment : JPEGVariableSizeSegment {
- public JPEGComment(byte[] reference) {
+ public this(byte[] reference) {
super(reference);
}
- public JPEGComment(LEDataInputStream byteStream) {
+ public this(LEDataInputStream byteStream) {
super(byteStream);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGEndOfImage.d
--- a/dwt/internal/image/JPEGEndOfImage.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGEndOfImage.d Wed Aug 27 14:02:31 2008 +0200
@@ -13,11 +13,11 @@
final class JPEGEndOfImage : JPEGFixedSizeSegment {
- public JPEGEndOfImage() {
+ public this() {
super();
}
- public JPEGEndOfImage(byte[] reference) {
+ public this(byte[] reference) {
super(reference);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGFixedSizeSegment.d
--- a/dwt/internal/image/JPEGFixedSizeSegment.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGFixedSizeSegment.d Wed Aug 27 14:02:31 2008 +0200
@@ -15,16 +15,16 @@
abstract class JPEGFixedSizeSegment : JPEGSegment {
- public JPEGFixedSizeSegment() {
+ public this() {
reference = new byte[fixedSize()];
setSegmentMarker(signature());
}
- public JPEGFixedSizeSegment(byte[] reference) {
+ public this(byte[] reference) {
super(reference);
}
- public JPEGFixedSizeSegment(LEDataInputStream byteStream) {
+ public this(LEDataInputStream byteStream) {
reference = new byte[fixedSize()];
try {
byteStream.read(reference);
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGFrameHeader.d
--- a/dwt/internal/image/JPEGFrameHeader.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGFrameHeader.d Wed Aug 27 14:02:31 2008 +0200
@@ -19,11 +19,11 @@
public int[] componentIdentifiers;
public int[][] componentParameters;
- public JPEGFrameHeader(byte[] reference) {
+ public this(byte[] reference) {
super(reference);
}
- public JPEGFrameHeader(LEDataInputStream byteStream) {
+ public this(LEDataInputStream byteStream) {
super(byteStream);
initializeComponentParameters();
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGHuffmanTable.d
--- a/dwt/internal/image/JPEGHuffmanTable.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGHuffmanTable.d Wed Aug 27 14:02:31 2008 +0200
@@ -74,11 +74,11 @@
(byte)250
};
-public JPEGHuffmanTable(byte[] reference) {
+public this(byte[] reference) {
super(reference);
}
-public JPEGHuffmanTable(LEDataInputStream byteStream) {
+public this(LEDataInputStream byteStream) {
super(byteStream);
initialize();
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGQuantizationTable.d
--- a/dwt/internal/image/JPEGQuantizationTable.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGQuantizationTable.d Wed Aug 27 14:02:31 2008 +0200
@@ -35,11 +35,11 @@
99, 99, 99, 99, 99, 99, 99, 99
};
-public JPEGQuantizationTable(byte[] reference) {
+public this(byte[] reference) {
super(reference);
}
-public JPEGQuantizationTable(LEDataInputStream byteStream) {
+public this(LEDataInputStream byteStream) {
super(byteStream);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGRestartInterval.d
--- a/dwt/internal/image/JPEGRestartInterval.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGRestartInterval.d Wed Aug 27 14:02:31 2008 +0200
@@ -13,7 +13,7 @@
final class JPEGRestartInterval : JPEGFixedSizeSegment {
- public JPEGRestartInterval(LEDataInputStream byteStream) {
+ public this(LEDataInputStream byteStream) {
super(byteStream);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGScanHeader.d
--- a/dwt/internal/image/JPEGScanHeader.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGScanHeader.d Wed Aug 27 14:02:31 2008 +0200
@@ -16,11 +16,11 @@
final class JPEGScanHeader : JPEGVariableSizeSegment {
public int[][] componentParameters;
-public JPEGScanHeader(byte[] reference) {
+public this(byte[] reference) {
super(reference);
}
-public JPEGScanHeader(LEDataInputStream byteStream) {
+public this(LEDataInputStream byteStream) {
super(byteStream);
initializeComponentParameters();
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGSegment.d
--- a/dwt/internal/image/JPEGSegment.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGSegment.d Wed Aug 27 14:02:31 2008 +0200
@@ -14,10 +14,10 @@
class JPEGSegment {
public byte[] reference;
- JPEGSegment() {
+ this() {
}
- public JPEGSegment(byte[] reference) {
+ public this(byte[] reference) {
this.reference = reference;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGStartOfImage.d
--- a/dwt/internal/image/JPEGStartOfImage.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGStartOfImage.d Wed Aug 27 14:02:31 2008 +0200
@@ -13,15 +13,15 @@
final class JPEGStartOfImage : JPEGFixedSizeSegment {
- public JPEGStartOfImage() {
+ public this() {
super();
}
- public JPEGStartOfImage(byte[] reference) {
+ public this(byte[] reference) {
super(reference);
}
- public JPEGStartOfImage(LEDataInputStream byteStream) {
+ public this(LEDataInputStream byteStream) {
super(byteStream);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/JPEGVariableSizeSegment.d
--- a/dwt/internal/image/JPEGVariableSizeSegment.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/JPEGVariableSizeSegment.d Wed Aug 27 14:02:31 2008 +0200
@@ -15,11 +15,11 @@
abstract class JPEGVariableSizeSegment : JPEGSegment {
- public JPEGVariableSizeSegment(byte[] reference) {
+ public this(byte[] reference) {
super(reference);
}
- public JPEGVariableSizeSegment(LEDataInputStream byteStream) {
+ public this(LEDataInputStream byteStream) {
try {
byte[] header = new byte[4];
byteStream.read(header);
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/LEDataInputStream.d
--- a/dwt/internal/image/LEDataInputStream.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/LEDataInputStream.d Wed Aug 27 14:02:31 2008 +0200
@@ -31,11 +31,11 @@
protected int pos;
- public LEDataInputStream(InputStream input) {
+ public this(InputStream input) {
this(input, 512);
}
- public LEDataInputStream(InputStream input, int bufferSize) {
+ public this(InputStream input, int bufferSize) {
this.in = input;
if (bufferSize > 0) {
buf = new byte[bufferSize];
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/LEDataOutputStream.d
--- a/dwt/internal/image/LEDataOutputStream.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/LEDataOutputStream.d Wed Aug 27 14:02:31 2008 +0200
@@ -16,7 +16,7 @@
final class LEDataOutputStream : OutputStream {
OutputStream out;
-public LEDataOutputStream(OutputStream output) {
+public this(OutputStream output) {
this.out = output;
}
/**
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngChunk.d
--- a/dwt/internal/image/PngChunk.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngChunk.d Wed Aug 27 14:02:31 2008 +0200
@@ -62,7 +62,7 @@
* Construct a PngChunk using the reference bytes
* given.
*/
-PngChunk(byte[] reference) {
+this(byte[] reference) {
super();
setReference(reference);
if (reference.length < LENGTH_OFFSET + LENGTH_FIELD_LENGTH) DWT.error(DWT.ERROR_INVALID_IMAGE);
@@ -73,7 +73,7 @@
* Construct a PngChunk with the specified number of
* data bytes.
*/
-PngChunk(int dataLength) {
+this(int dataLength) {
this(new byte[MIN_LENGTH + dataLength]);
setLength(dataLength);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngChunkReader.d
--- a/dwt/internal/image/PngChunkReader.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngChunkReader.d Wed Aug 27 14:02:31 2008 +0200
@@ -19,7 +19,7 @@
PngIhdrChunk headerChunk;
PngPlteChunk paletteChunk;
-PngChunkReader(LEDataInputStream inputStream) {
+this(LEDataInputStream inputStream) {
this.inputStream = inputStream;
readState = new PngFileReadState();
headerChunk = null;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngDecodingDataStream.d
--- a/dwt/internal/image/PngDecodingDataStream.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngDecodingDataStream.d Wed Aug 27 14:02:31 2008 +0200
@@ -27,7 +27,7 @@
static final int PRIME = 65521;
static final int MAX_BIT = 7;
-PngDecodingDataStream(InputStream stream) throws IOException {
+this(InputStream stream) throws IOException {
super();
this.stream = stream;
nextBitIndex = MAX_BIT + 1;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngDeflater.d
--- a/dwt/internal/image/PngDeflater.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngDeflater.d Wed Aug 27 14:02:31 2008 +0200
@@ -38,7 +38,7 @@
int hash, value;
Link previous, next;
- Link() {
+ this() {
this.hash = 0;
this.value = 0;
@@ -53,7 +53,7 @@
int length, distance;
- Match(int length, int distance) {
+ this(int length, int distance) {
this.length = length;
this.distance = distance;
@@ -103,7 +103,7 @@
int code, extraBits, min, max;
- Code(int code, int extraBits, int min, int max) {
+ this(int code, int extraBits, int min, int max) {
this.code = code;
this.extraBits = extraBits;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngEncoder.d
--- a/dwt/internal/image/PngEncoder.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngEncoder.d Wed Aug 27 14:02:31 2008 +0200
@@ -42,7 +42,7 @@
int filterMethod = 0;
int interlaceMethod = 0;
-public PngEncoder(ImageLoader loader) {
+public this(ImageLoader loader) {
this.loader = loader;
this.data = loader.data[0];
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngHuffmanTable.d
--- a/dwt/internal/image/PngHuffmanTable.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngHuffmanTable.d Wed Aug 27 14:02:31 2008 +0200
@@ -20,7 +20,7 @@
static final int BAD_CODE = 0xFFFFFFF;
static final int incs[] = {1391376, 463792, 198768, 86961, 33936, 13776, 4592, 1968, 861, 336, 112, 48, 21, 7, 3, 1};
-PngHuffmanTable (int[] lengths) {
+this (int[] lengths) {
super();
initialize(lengths);
generateTable(lengths);
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngHuffmanTables.d
--- a/dwt/internal/image/PngHuffmanTables.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngHuffmanTables.d Wed Aug 27 14:02:31 2008 +0200
@@ -68,12 +68,12 @@
return FixedDistanceTable;
}
-private PngHuffmanTables () {
+private this () {
literalTable = getFixedLiteralTable();
distanceTable = getFixedDistanceTable();
}
-private PngHuffmanTables (PngDecodingDataStream stream) throws IOException {
+private this (PngDecodingDataStream stream) throws IOException {
int literals = PngLzBlockReader.FIRST_LENGTH_CODE
+ stream.getNextIdatBits(5);
int distances = PngLzBlockReader.FIRST_DISTANCE_CODE
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngIdatChunk.d
--- a/dwt/internal/image/PngIdatChunk.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngIdatChunk.d Wed Aug 27 14:02:31 2008 +0200
@@ -21,7 +21,7 @@
static final int HEADER_BYTE2_DATA_OFFSET = DATA_OFFSET + 1;
static final int ADLER_DATA_OFFSET = DATA_OFFSET + 2; // plus variable compressed data length
-PngIdatChunk(byte headerByte1, byte headerByte2, byte[] data, int adler) {
+this(byte headerByte1, byte headerByte2, byte[] data, int adler) {
super(data.length + HEADER_BYTES_LENGTH + ADLER_FIELD_LENGTH);
setType(TYPE_IDAT);
reference[HEADER_BYTE1_DATA_OFFSET] = headerByte1;
@@ -31,7 +31,7 @@
setCRC(computeCRC());
}
-PngIdatChunk(byte[] reference) {
+this(byte[] reference) {
super(reference);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngIendChunk.d
--- a/dwt/internal/image/PngIendChunk.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngIendChunk.d Wed Aug 27 14:02:31 2008 +0200
@@ -15,13 +15,13 @@
class PngIendChunk : PngChunk {
-PngIendChunk() {
+this() {
super(0);
setType(TYPE_IEND);
setCRC(computeCRC());
}
-PngIendChunk(byte[] reference){
+this(byte[] reference){
super(reference);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngIhdrChunk.d
--- a/dwt/internal/image/PngIhdrChunk.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngIhdrChunk.d Wed Aug 27 14:02:31 2008 +0200
@@ -47,7 +47,7 @@
int width, height;
byte bitDepth, colorType, compressionMethod, filterMethod, interlaceMethod;
-PngIhdrChunk(int width, int height, byte bitDepth, byte colorType, byte compressionMethod, byte filterMethod, byte interlaceMethod) {
+this(int width, int height, byte bitDepth, byte colorType, byte compressionMethod, byte filterMethod, byte interlaceMethod) {
super(IHDR_DATA_LENGTH);
setType(TYPE_IHDR);
setWidth(width);
@@ -64,7 +64,7 @@
* Construct a PNGChunk using the reference bytes
* given.
*/
-PngIhdrChunk(byte[] reference) {
+this(byte[] reference) {
super(reference);
if (reference.length <= IHDR_DATA_LENGTH) DWT.error(DWT.ERROR_INVALID_IMAGE);
width = getInt32(WIDTH_DATA_OFFSET);
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngInputStream.d
--- a/dwt/internal/image/PngInputStream.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngInputStream.d Wed Aug 27 14:02:31 2008 +0200
@@ -20,7 +20,7 @@
final static int DATA_OFFSET = 8;
-public PngInputStream(PngIdatChunk chunk, PngChunkReader reader) {
+public this(PngIdatChunk chunk, PngChunkReader reader) {
this.chunk = chunk;
this.reader = reader;
length = chunk.getLength();
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngLzBlockReader.d
--- a/dwt/internal/image/PngLzBlockReader.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngLzBlockReader.d Wed Aug 27 14:02:31 2008 +0200
@@ -55,7 +55,7 @@
};
-PngLzBlockReader(PngDecodingDataStream stream) {
+this(PngDecodingDataStream stream) {
this.stream = stream;
isLastBlock = false;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngPlteChunk.d
--- a/dwt/internal/image/PngPlteChunk.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngPlteChunk.d Wed Aug 27 14:02:31 2008 +0200
@@ -19,7 +19,7 @@
int paletteSize;
-PngPlteChunk(PaletteData palette) {
+this(PaletteData palette) {
super(palette.getRGBs().length * 3);
paletteSize = length / 3;
setType(TYPE_PLTE);
@@ -27,7 +27,7 @@
setCRC(computeCRC());
}
-PngPlteChunk(byte[] reference){
+this(byte[] reference){
super(reference);
paletteSize = length / 3;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/PngTrnsChunk.d
--- a/dwt/internal/image/PngTrnsChunk.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/PngTrnsChunk.d Wed Aug 27 14:02:31 2008 +0200
@@ -19,7 +19,7 @@
static final int TRANSPARENCY_TYPE_ALPHAS = 1;
static final int RGB_DATA_LENGTH = 6;
-PngTrnsChunk(RGB rgb) {
+this(RGB rgb) {
super(RGB_DATA_LENGTH);
setType(TYPE_tRNS);
setInt16(DATA_OFFSET, rgb.red);
@@ -28,7 +28,7 @@
setCRC(computeCRC());
}
-PngTrnsChunk(byte[] reference){
+this(byte[] reference){
super(reference);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/TIFFDirectory.d
--- a/dwt/internal/image/TIFFDirectory.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/TIFFDirectory.d Wed Aug 27 14:02:31 2008 +0200
@@ -74,13 +74,13 @@
static final int IFD_ENTRY_SIZE = 12;
-public TIFFDirectory(TIFFRandomFileAccess file, bool isLittleEndian, ImageLoader loader) {
+public this(TIFFRandomFileAccess file, bool isLittleEndian, ImageLoader loader) {
this.file = file;
this.isLittleEndian = isLittleEndian;
this.loader = loader;
}
-public TIFFDirectory(ImageData image) {
+public this(ImageData image) {
this.image = image;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/image/TIFFRandomFileAccess.d
--- a/dwt/internal/image/TIFFRandomFileAccess.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/image/TIFFRandomFileAccess.d Wed Aug 27 14:02:31 2008 +0200
@@ -21,7 +21,7 @@
static final int CHUNK_SIZE = 8192;
static final int LIST_SIZE = 128;
-public TIFFRandomFileAccess(LEDataInputStream stream) {
+public this(LEDataInputStream stream) {
inputStream = stream;
start = current = next = inputStream.getPosition();
buffers = new byte[LIST_SIZE][];
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/ButtonDrawData.d
--- a/dwt/internal/theme/ButtonDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/ButtonDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,7 +12,7 @@
public class ButtonDrawData : DrawData {
-public ButtonDrawData() {
+public this() {
state = new int[1];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/ComboDrawData.d
--- a/dwt/internal/theme/ComboDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/ComboDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,7 +12,7 @@
public class ComboDrawData : DrawData {
-public ComboDrawData() {
+public this() {
state = new int[2];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/DrawData.d
--- a/dwt/internal/theme/DrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/DrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -64,7 +64,7 @@
public static final int COMBO_ARROW = 1;
-public DrawData() {
+public this() {
state = new int[1];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/ExpanderDrawData.d
--- a/dwt/internal/theme/ExpanderDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/ExpanderDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,7 +12,7 @@
public class ExpanderDrawData : DrawData {
-public ExpanderDrawData() {
+public this() {
state = new int[1];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/GroupDrawData.d
--- a/dwt/internal/theme/GroupDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/GroupDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -17,7 +17,7 @@
public int headerHeight;
public Rectangle headerArea;
-public GroupDrawData() {
+public this() {
state = new int[1];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/ProgressBarDrawData.d
--- a/dwt/internal/theme/ProgressBarDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/ProgressBarDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,7 +12,7 @@
public class ProgressBarDrawData : RangeDrawData {
-public ProgressBarDrawData() {
+public this() {
state = new int[1];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/ScaleDrawData.d
--- a/dwt/internal/theme/ScaleDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/ScaleDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -14,7 +14,7 @@
public int increment;
public int pageIncrement;
-public ScaleDrawData() {
+public this() {
state = new int[4];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/ScrollBarDrawData.d
--- a/dwt/internal/theme/ScrollBarDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/ScrollBarDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -15,7 +15,7 @@
public int increment;
public int pageIncrement;
-public ScrollBarDrawData() {
+public this() {
state = new int[6];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/TabFolderDrawData.d
--- a/dwt/internal/theme/TabFolderDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/TabFolderDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -21,7 +21,7 @@
public int selectedWidth;
public int spacing;
-public TabFolderDrawData() {
+public this() {
state = new int[1];
if (DWT.getPlatform().opEquals("gtk")) {
spacing = -2;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/TabItemDrawData.d
--- a/dwt/internal/theme/TabItemDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/TabItemDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -16,7 +16,7 @@
public TabFolderDrawData parent;
public int position;
-public TabItemDrawData() {
+public this() {
state = new int[1];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/Theme.d
--- a/dwt/internal/theme/Theme.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/Theme.d Wed Aug 27 14:02:31 2008 +0200
@@ -16,7 +16,7 @@
public class Theme {
Device device;
-public Theme(Device device) {
+public this(Device device) {
this.device = device;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/ToolBarDrawData.d
--- a/dwt/internal/theme/ToolBarDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/ToolBarDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -12,7 +12,7 @@
public class ToolBarDrawData : DrawData {
-public ToolBarDrawData() {
+public this() {
state = new int[1];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/internal/theme/ToolItemDrawData.d
--- a/dwt/internal/theme/ToolItemDrawData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/internal/theme/ToolItemDrawData.d Wed Aug 27 14:02:31 2008 +0200
@@ -14,7 +14,7 @@
public ToolBarDrawData parent;
-public ToolItemDrawData() {
+public this() {
state = new int[2];
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/layout/FillLayout.d
--- a/dwt/layout/FillLayout.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/layout/FillLayout.d Wed Aug 27 14:02:31 2008 +0200
@@ -93,7 +93,7 @@
/**
* Constructs a new instance of this class.
*/
-public FillLayout () {
+public this () {
}
/**
@@ -103,7 +103,7 @@
*
* @since 2.0
*/
-public FillLayout (int type) {
+public this (int type) {
this.type = type;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/layout/FormAttachment.d
--- a/dwt/layout/FormAttachment.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/layout/FormAttachment.d Wed Aug 27 14:02:31 2008 +0200
@@ -140,7 +140,7 @@
*
* @since 3.2
*/
-public FormAttachment () {
+public this () {
}
/**
@@ -153,7 +153,7 @@
*
* @since 3.0
*/
-public FormAttachment (int numerator) {
+public this (int numerator) {
this (numerator, 100, 0);
}
@@ -166,7 +166,7 @@
* @param numerator the percentage of the position
* @param offset the offset of the side from the position
*/
-public FormAttachment (int numerator, int offset) {
+public this (int numerator, int offset) {
this (numerator, 100, offset);
}
@@ -180,7 +180,7 @@
* @param denominator the denominator of the position
* @param offset the offset of the side from the position
*/
-public FormAttachment (int numerator, int denominator, int offset) {
+public this (int numerator, int denominator, int offset) {
if (denominator is 0) DWT.error (DWT.ERROR_CANNOT_BE_ZERO);
this.numerator = numerator;
this.denominator = denominator;
@@ -196,7 +196,7 @@
*
* @param control the control the side is attached to
*/
-public FormAttachment (Control control) {
+public this (Control control) {
this (control, 0, DWT.DEFAULT);
}
@@ -209,7 +209,7 @@
* @param control the control the side is attached to
* @param offset the offset of the side from the control
*/
-public FormAttachment (Control control, int offset) {
+public this (Control control, int offset) {
this (control, offset, DWT.DEFAULT);
}
@@ -221,7 +221,7 @@
* @param offset the offset of the side from the control
* @param alignment the alignment of the side to the control it is attached to
*/
-public FormAttachment (Control control, int offset, int alignment) {
+public this (Control control, int offset, int alignment) {
this.control = control;
this.offset = offset;
this.alignment = alignment;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/layout/FormData.d
--- a/dwt/layout/FormData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/layout/FormData.d Wed Aug 27 14:02:31 2008 +0200
@@ -95,7 +95,7 @@
* Constructs a new instance of FormData using
* default values.
*/
-public FormData () {
+public this () {
}
/**
@@ -106,7 +106,7 @@
* @param width a minimum width for the control
* @param height a minimum height for the control
*/
-public FormData (int width, int height) {
+public this (int width, int height) {
this.width = width;
this.height = height;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/layout/FormLayout.d
--- a/dwt/layout/FormLayout.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/layout/FormLayout.d Wed Aug 27 14:02:31 2008 +0200
@@ -162,7 +162,7 @@
/**
* Constructs a new instance of this class.
*/
-public FormLayout () {
+public this () {
}
/*
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/layout/GridData.d
--- a/dwt/layout/GridData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/layout/GridData.d Wed Aug 27 14:02:31 2008 +0200
@@ -397,7 +397,7 @@
* Constructs a new instance of GridData using
* default values.
*/
-public GridData () {
+public this () {
super ();
}
@@ -407,7 +407,7 @@
*
* @param style the GridData style
*/
-public GridData (int style) {
+public this (int style) {
super ();
if ((style & VERTICAL_ALIGN_BEGINNING) !is 0) verticalAlignment = BEGINNING;
if ((style & VERTICAL_ALIGN_CENTER) !is 0) verticalAlignment = CENTER;
@@ -431,7 +431,7 @@
*
* @since 3.0
*/
-public GridData (int horizontalAlignment, int verticalAlignment, bool grabExcessHorizontalSpace, bool grabExcessVerticalSpace) {
+public this (int horizontalAlignment, int verticalAlignment, bool grabExcessHorizontalSpace, bool grabExcessVerticalSpace) {
this (horizontalAlignment, verticalAlignment, grabExcessHorizontalSpace, grabExcessVerticalSpace, 1, 1);
}
@@ -447,7 +447,7 @@
*
* @since 3.0
*/
-public GridData (int horizontalAlignment, int verticalAlignment, bool grabExcessHorizontalSpace, bool grabExcessVerticalSpace, int horizontalSpan, int verticalSpan) {
+public this (int horizontalAlignment, int verticalAlignment, bool grabExcessHorizontalSpace, bool grabExcessVerticalSpace, int horizontalSpan, int verticalSpan) {
super ();
this.horizontalAlignment = horizontalAlignment;
this.verticalAlignment = verticalAlignment;
@@ -467,7 +467,7 @@
*
* @since 3.0
*/
-public GridData (int width, int height) {
+public this (int width, int height) {
super ();
this.widthHint = width;
this.heightHint = height;
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/layout/GridLayout.d
--- a/dwt/layout/GridLayout.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/layout/GridLayout.d Wed Aug 27 14:02:31 2008 +0200
@@ -142,7 +142,7 @@
/**
* Constructs a new instance of this class.
*/
-public GridLayout () {}
+public this () {}
/**
* Constructs a new instance of this class given the
@@ -156,7 +156,7 @@
*
* @since 2.0
*/
-public GridLayout (int numColumns, bool makeColumnsEqualWidth) {
+public this (int numColumns, bool makeColumnsEqualWidth) {
this.numColumns = numColumns;
this.makeColumnsEqualWidth = makeColumnsEqualWidth;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/layout/RowData.d
--- a/dwt/layout/RowData.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/layout/RowData.d Wed Aug 27 14:02:31 2008 +0200
@@ -73,7 +73,7 @@
* Constructs a new instance of RowData using
* default values.
*/
-public RowData () {
+public this () {
}
/**
@@ -84,7 +84,7 @@
* @param width a minimum width for the control
* @param height a minimum height for the control
*/
-public RowData (int width, int height) {
+public this (int width, int height) {
this.width = width;
this.height = height;
}
@@ -97,7 +97,7 @@
* @param point a point whose x coordinate specifies a minimum width for the control
* and y coordinate specifies a minimum height for the control
*/
-public RowData (Point point) {
+public this (Point point) {
this (point.x, point.y);
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/layout/RowLayout.d
--- a/dwt/layout/RowLayout.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/layout/RowLayout.d Wed Aug 27 14:02:31 2008 +0200
@@ -186,7 +186,7 @@
/**
* Constructs a new instance of this class.
*/
-public RowLayout () {
+public this () {
}
/**
@@ -196,7 +196,7 @@
*
* @since 2.0
*/
-public RowLayout (int type) {
+public this (int type) {
this.type = type;
}
diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/opengl/GLCanvas.d
--- a/dwt/opengl/GLCanvas.d Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/opengl/GLCanvas.d Wed Aug 27 14:02:31 2008 +0200
@@ -47,7 +47,7 @@
*