# HG changeset patch # User Frank Benoit # Date 1219838551 -7200 # Node ID 1a8b3cb347e0f20f0ec43e9925f43da42143c08e # Parent ab8b5765e3d16617350f1451b34d4dd9e994eef9 Fix Ctors to 'this' diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/AppFileLocProvider.d --- a/dwt/browser/AppFileLocProvider.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/AppFileLocProvider.d Wed Aug 27 14:02:31 2008 +0200 @@ -45,7 +45,7 @@ static final String USER_PLUGINS_DIR = ".mozilla" + SEPARATOR_OS + "plugins"; //$NON-NLS-1$ //$NON-NLS-2$ static final String PREFERENCES_FILE = "prefs.js"; //$NON-NLS-1$ -AppFileLocProvider (String path) { +this (String path) { mozillaPath = path + SEPARATOR_OS; createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/Download.d --- a/dwt/browser/Download.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/Download.d Wed Aug 27 14:02:31 2008 +0200 @@ -45,7 +45,7 @@ Label status; Button cancel; -Download () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/DownloadFactory.d --- a/dwt/browser/DownloadFactory.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/DownloadFactory.d Wed Aug 27 14:02:31 2008 +0200 @@ -24,7 +24,7 @@ XPCOMObject factory; int refCount = 0; -DownloadFactory () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/DownloadFactory_1_8.d --- a/dwt/browser/DownloadFactory_1_8.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/DownloadFactory_1_8.d Wed Aug 27 14:02:31 2008 +0200 @@ -24,7 +24,7 @@ XPCOMObject factory; int refCount = 0; -DownloadFactory_1_8 () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/Download_1_8.d --- a/dwt/browser/Download_1_8.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/Download_1_8.d Wed Aug 27 14:02:31 2008 +0200 @@ -46,7 +46,7 @@ static final bool is32 = C.PTR_SIZEOF is 4; -Download_1_8 () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/FilePicker.d --- a/dwt/browser/FilePicker.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/FilePicker.d Wed Aug 27 14:02:31 2008 +0200 @@ -39,7 +39,7 @@ static final String SEPARATOR = System.getProperty ("file.separator"); //$NON-NLS-1$ -FilePicker () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/FilePickerFactory.d --- a/dwt/browser/FilePickerFactory.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/FilePickerFactory.d Wed Aug 27 14:02:31 2008 +0200 @@ -24,7 +24,7 @@ XPCOMObject factory; int refCount = 0; -FilePickerFactory () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/HelperAppLauncherDialog.d --- a/dwt/browser/HelperAppLauncherDialog.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/HelperAppLauncherDialog.d Wed Aug 27 14:02:31 2008 +0200 @@ -31,7 +31,7 @@ XPCOMObject helperAppLauncherDialog; int refCount = 0; -HelperAppLauncherDialog () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/HelperAppLauncherDialogFactory.d --- a/dwt/browser/HelperAppLauncherDialogFactory.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/HelperAppLauncherDialogFactory.d Wed Aug 27 14:02:31 2008 +0200 @@ -24,7 +24,7 @@ XPCOMObject factory; int refCount = 0; -HelperAppLauncherDialogFactory () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/InputStream.d --- a/dwt/browser/InputStream.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/InputStream.d Wed Aug 27 14:02:31 2008 +0200 @@ -26,7 +26,7 @@ byte[] buffer; int index = 0; -InputStream (byte[] buffer) { +this (byte[] buffer) { this.buffer = buffer; index = 0; createCOMInterfaces (); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/Mozilla.d --- a/dwt/browser/Mozilla.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/Mozilla.d Wed Aug 27 14:02:31 2008 +0200 @@ -1703,7 +1703,7 @@ if (rc !is XPCOM.NS_OK) error (rc); baseWindow.Release (); - Release (); + this (); webBrowser.Release (); webBrowser = null; webBrowserObject = null; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/PromptDialog.d --- a/dwt/browser/PromptDialog.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/PromptDialog.d Wed Aug 27 14:02:31 2008 +0200 @@ -29,11 +29,11 @@ class PromptDialog : Dialog { - PromptDialog(Shell parent, int style) { + this(Shell parent, int style) { super(parent, style); } - PromptDialog(Shell parent) { + this(Shell parent) { this(parent, 0); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/PromptService2.d --- a/dwt/browser/PromptService2.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/PromptService2.d Wed Aug 27 14:02:31 2008 +0200 @@ -40,7 +40,7 @@ XPCOMObject promptService2; int refCount = 0; -PromptService2 () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/PromptService2Factory.d --- a/dwt/browser/PromptService2Factory.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/PromptService2Factory.d Wed Aug 27 14:02:31 2008 +0200 @@ -24,7 +24,7 @@ XPCOMObject factory; int refCount = 0; -PromptService2Factory () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/SimpleEnumerator.d --- a/dwt/browser/SimpleEnumerator.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/SimpleEnumerator.d Wed Aug 27 14:02:31 2008 +0200 @@ -26,7 +26,7 @@ nsISupports[] values; int index = 0; -SimpleEnumerator (nsISupports[] values) { +this (nsISupports[] values) { this.values = values; for (int i = 0; i < values.length; i++) { values[i].AddRef (); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/browser/WindowCreator2.d --- a/dwt/browser/WindowCreator2.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/browser/WindowCreator2.d Wed Aug 27 14:02:31 2008 +0200 @@ -35,7 +35,7 @@ XPCOMObject windowCreator2; int refCount = 0; -WindowCreator2 () { +this () { createCOMInterfaces (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/custom/DefaultContent.d --- a/dwt/custom/DefaultContent.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/custom/DefaultContent.d Wed Aug 27 14:02:31 2008 +0200 @@ -35,7 +35,7 @@ * Creates a new DefaultContent and initializes it. A 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 @@ *
  • ERROR_NULL_ARGUMENT - if the control is null
  • * */ - public DragSourceEffect(Control control) { + public this(Control control) { if (control is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); this.control = control; } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/DragSourceEvent.d --- a/dwt/dnd/DragSourceEvent.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/dnd/DragSourceEvent.d Wed Aug 27 14:02:31 2008 +0200 @@ -81,7 +81,7 @@ * * @param e the untyped event containing the information */ -public DragSourceEvent(DNDEvent e) { +public this(DNDEvent e) { super(e); this.data = e.data; this.detail = e.detail; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/DropTarget.d --- a/dwt/dnd/DropTarget.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/dnd/DropTarget.d Wed Aug 27 14:02:31 2008 +0200 @@ -140,7 +140,7 @@ * @see DND#DROP_MOVE * @see DND#DROP_LINK */ -public DropTarget(Control control, int style) { +public this(Control control, int style) { super(control, checkStyle(style)); this.control = control; if (DragTrackingHandler is null || DragTrackingHandler is null) { diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/DropTargetEffect.d --- a/dwt/dnd/DropTargetEffect.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/dnd/DropTargetEffect.d Wed Aug 27 14:02:31 2008 +0200 @@ -60,7 +60,7 @@ *
  • ERROR_NULL_ARGUMENT - if the control is null
  • * */ - public DropTargetEffect(Control control) { + public this(Control control) { if (control is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); this.control = control; } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/DropTargetEvent.d --- a/dwt/dnd/DropTargetEvent.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/dnd/DropTargetEvent.d Wed Aug 27 14:02:31 2008 +0200 @@ -87,7 +87,7 @@ * * @param e the untyped event containing the information */ -public DropTargetEvent(DNDEvent e) { +public this(DNDEvent e) { super(e); this.data = e.data; this.x = e.x; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/FileTransfer.d --- a/dwt/dnd/FileTransfer.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/dnd/FileTransfer.d Wed Aug 27 14:02:31 2008 +0200 @@ -41,7 +41,7 @@ static final int HFSID = registerType(HFS); static final int FURLID = registerType(FURL); -FileTransfer() {} +this() {} /** * Returns the singleton instance of the FileTransfer class. diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/HTMLTransfer.d --- a/dwt/dnd/HTMLTransfer.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/dnd/HTMLTransfer.d Wed Aug 27 14:02:31 2008 +0200 @@ -31,7 +31,7 @@ static final String HTML = "HTML"; //$NON-NLS-1$ static final int HTMLID = registerType(HTML); -HTMLTransfer() {} +this() {} /** * Returns the singleton instance of the HTMLTransfer class. diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/ImageTransfer.d --- a/dwt/dnd/ImageTransfer.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/dnd/ImageTransfer.d Wed Aug 27 14:02:31 2008 +0200 @@ -41,7 +41,7 @@ static final int PICTID = registerType(PICT); static final int TIFFID = registerType(TIFF); -ImageTransfer() { +this() { } /** diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/RTFTransfer.d --- a/dwt/dnd/RTFTransfer.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/dnd/RTFTransfer.d Wed Aug 27 14:02:31 2008 +0200 @@ -32,7 +32,7 @@ static final String RTF = "RTF "; //$NON-NLS-1$ static final int RTFID = registerType(RTF); -RTFTransfer() {} +this() {} /** * Returns the singleton instance of the RTFTransfer class. diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/dnd/TableDragSourceEffect.d --- a/dwt/dnd/TableDragSourceEffect.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/dnd/TableDragSourceEffect.d Wed Aug 27 14:02:31 2008 +0200 @@ -36,7 +36,7 @@ * * @param table the 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 @@ *
  • ERROR_NO_HANDLES - if a handle could not be obtained for cursor creation
  • * */ -public Cursor(Device device, ImageData source, ImageData mask, int hotspotX, int hotspotY) { +public this(Device device, ImageData source, ImageData mask, int hotspotX, int hotspotY) { super(device); if (source is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (mask is null) { @@ -269,7 +269,7 @@ * * @since 3.0 */ -public Cursor(Device device, ImageData source, int hotspotX, int hotspotY) { +public this(Device device, ImageData source, int hotspotX, int hotspotY) { super(device); if (source is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (hotspotX >= source.width || hotspotX < 0 || diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Device.d --- a/dwt/graphics/Device.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/Device.d Wed Aug 27 14:02:31 2008 +0200 @@ -94,7 +94,7 @@ * * @since 3.1 */ -public Device() { +public this() { this(null); } @@ -110,7 +110,7 @@ * @see #init * @see DeviceData */ -public Device(DeviceData data) { +public this(DeviceData data) { synchronized (Device.class) { if (data !is null) { debug = data.debug; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Font.d --- a/dwt/graphics/Font.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/Font.d Wed Aug 27 14:02:31 2008 +0200 @@ -46,7 +46,7 @@ */ public NSFont handle; -Font(Device device) { +this(Device device) { super(device); } @@ -68,7 +68,7 @@ *
  • ERROR_NO_HANDLES - if a font could not be created from the given font data
  • * */ -public Font(Device device, FontData fd) { +public this(Device device, FontData fd) { super(device); if (fd is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.nsName); @@ -98,7 +98,7 @@ * * @since 2.1 */ -public Font(Device device, FontData[] fds) { +public this(Device device, FontData[] fds) { super(device); if (fds is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (fds.length is 0) DWT.error(DWT.ERROR_INVALID_ARGUMENT); @@ -132,7 +132,7 @@ *
  • ERROR_NO_HANDLES - if a font could not be created from the given arguments
  • * */ -public Font(Device device, String name, int height, int style) { +public this(Device device, String name, int height, int style) { super(device); init(name, height, style, null); init(); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/FontData.d --- a/dwt/graphics/FontData.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/FontData.d Wed Aug 27 14:02:31 2008 +0200 @@ -96,7 +96,7 @@ /** * Constructs a new uninitialized font data. */ -public FontData () { +public this () { this("", 12, DWT.NORMAL); } @@ -119,7 +119,7 @@ * * @see #toString */ -public FontData(String string) { +public this(String string) { if (string is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); int start = 0; int end = string.indexOf('|'); @@ -190,7 +190,7 @@ *
  • ERROR_INVALID_ARGUMENT - if the height is negative
  • * */ -public FontData(String name, int height, int style) { +public this(String name, int height, int style) { setName(name); setHeight(height); setStyle(style); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/FontMetrics.d --- a/dwt/graphics/FontMetrics.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/FontMetrics.d Wed Aug 27 14:02:31 2008 +0200 @@ -25,7 +25,7 @@ public final class FontMetrics { int ascent, descent, averageCharWidth, leading, height; -FontMetrics() { +this() { } public static FontMetrics cocoa_new(int ascent, int descent, int averageCharWidth, int leading, int height) { diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/GC.d --- a/dwt/graphics/GC.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/GC.d Wed Aug 27 14:02:31 2008 +0200 @@ -102,7 +102,7 @@ static final float[] LINE_DASHDOT_ZERO = new float[]{9, 6, 3, 6}; static final float[] LINE_DASHDOTDOT_ZERO = new float[]{9, 3, 3, 3, 3, 3}; -GC() { +this() { } /** @@ -127,7 +127,7 @@ *
  • ERROR_THREAD_INVALID_ACCESS if not called from the thread that created the drawable
  • * */ -public GC(Drawable drawable) { +public this(Drawable drawable) { this(drawable, 0); } @@ -158,7 +158,7 @@ * * @since 2.1.2 */ -public GC(Drawable drawable, int style) { +public this(Drawable drawable, int style) { if (drawable is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); GCData data = new GCData(); data.style = checkStyle(style); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/GlyphMetrics.d --- a/dwt/graphics/GlyphMetrics.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/GlyphMetrics.d Wed Aug 27 14:02:31 2008 +0200 @@ -58,7 +58,7 @@ *
  • ERROR_INVALID_ARGUMENT - if the ascent, descent or width argument is negative
  • * */ -public GlyphMetrics(int ascent, int descent, int width) { +public this(int ascent, int descent, int width) { if (ascent < 0 || descent < 0 || width < 0) { DWT.error(DWT.ERROR_INVALID_ARGUMENT); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Image.d --- a/dwt/graphics/Image.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/Image.d Wed Aug 27 14:02:31 2008 +0200 @@ -136,7 +136,7 @@ */ static final int DEFAULT_SCANLINE_PAD = 4; -Image(Device device) { +this(Device device) { super(device); } @@ -170,7 +170,7 @@ *
  • ERROR_NO_HANDLES if a handle could not be obtained for image creation
  • * */ -public Image(Device device, int width, int height) { +public this(Device device, int width, int height) { super(device); init(width, height); init(); @@ -207,7 +207,7 @@ *
  • ERROR_NO_HANDLES if a handle could not be obtained for image creation
  • * */ -public Image(Device device, Image srcImage, int flag) { +public this(Device device, Image srcImage, int flag) { super(device); if (srcImage is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (srcImage.isDisposed()) DWT.error(DWT.ERROR_INVALID_ARGUMENT); @@ -337,7 +337,7 @@ *
  • ERROR_NO_HANDLES if a handle could not be obtained for image creation
  • * */ -public Image(Device device, Rectangle bounds) { +public this(Device device, Rectangle bounds) { super(device); if (bounds is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); init(bounds.width, bounds.height); @@ -362,7 +362,7 @@ *
  • ERROR_NO_HANDLES if a handle could not be obtained for image creation
  • * */ -public Image(Device device, ImageData data) { +public this(Device device, ImageData data) { super(device); init(data); init(); @@ -393,7 +393,7 @@ *
  • ERROR_NO_HANDLES if a handle could not be obtained for image creation
  • * */ -public Image(Device device, ImageData source, ImageData mask) { +public this(Device device, ImageData source, ImageData mask) { super(device); if (source is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (mask is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); @@ -455,7 +455,7 @@ *
  • ERROR_NO_HANDLES if a handle could not be obtained for image creation
  • * */ -public Image(Device device, InputStream stream) { +public this(Device device, InputStream stream) { super(device); init(new ImageData(stream)); init(); @@ -488,7 +488,7 @@ *
  • ERROR_NO_HANDLES if a handle could not be obtained for image creation
  • * */ -public Image(Device device, String filename) { +public this(Device device, String filename) { super(device); init(new ImageData(filename)); init(); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/ImageData.d --- a/dwt/graphics/ImageData.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/ImageData.d Wed Aug 27 14:02:31 2008 +0200 @@ -253,7 +253,7 @@ *
  • ERROR_NULL_ARGUMENT - if the palette is null
  • * */ -public ImageData(int width, int height, int depth, PaletteData palette) { +public this(int width, int height, int depth, PaletteData palette) { this(width, height, depth, palette, 4, null, 0, null, null, -1, -1, DWT.IMAGE_UNDEFINED, @@ -278,7 +278,7 @@ *
  • ERROR_CANNOT_BE_ZERO - if the scanlinePad is zero
  • * */ -public ImageData(int width, int height, int depth, PaletteData palette, int scanlinePad, byte[] data) { +public this(int width, int height, int depth, PaletteData palette, int scanlinePad, byte[] data) { this(width, height, depth, palette, scanlinePad, checkData(data), 0, null, null, -1, -1, DWT.IMAGE_UNDEFINED, @@ -328,7 +328,7 @@ * * @see ImageLoader#load(InputStream) */ -public ImageData(InputStream stream) { +public this(InputStream stream) { ImageData[] data = ImageDataLoader.load(stream); if (data.length < 1) DWT.error(DWT.ERROR_INVALID_IMAGE); ImageData i = data[0]; @@ -374,7 +374,7 @@ *
  • ERROR_UNSUPPORTED_FORMAT - if the image file contains an unrecognized format
  • * */ -public ImageData(String filename) { +public this(String filename) { ImageData[] data = ImageDataLoader.load(filename); if (data.length < 1) DWT.error(DWT.ERROR_INVALID_IMAGE); ImageData i = data[0]; @@ -401,7 +401,7 @@ /** * Prevents uninitialized instances from being created outside the package. */ -ImageData() { +this() { } /** @@ -410,7 +410,7 @@ * This method is for internal use, and is not described further. *

    */ -ImageData( +this( int width, int height, int depth, PaletteData palette, int scanlinePad, byte[] data, int maskPad, byte[] maskData, byte[] alphaData, int alpha, int transparentPixel, int type, diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/ImageLoader.d --- a/dwt/graphics/ImageLoader.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/ImageLoader.d Wed Aug 27 14:02:31 2008 +0200 @@ -93,7 +93,7 @@ /** * Construct a new empty ImageLoader. */ -public ImageLoader() { +public this() { reset(); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/ImageLoaderEvent.d --- a/dwt/graphics/ImageLoaderEvent.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/ImageLoaderEvent.d Wed Aug 27 14:02:31 2008 +0200 @@ -67,7 +67,7 @@ * @param incrementCount the image data increment for the event * @param endOfImage the end of image flag for the event */ -public ImageLoaderEvent(ImageLoader source, ImageData imageData, int incrementCount, bool endOfImage) { +public this(ImageLoader source, ImageData imageData, int incrementCount, bool endOfImage) { super(source); this.imageData = imageData; this.incrementCount = incrementCount; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/LineAttributes.d --- a/dwt/graphics/LineAttributes.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/LineAttributes.d Wed Aug 27 14:02:31 2008 +0200 @@ -85,7 +85,7 @@ * * @param width the line width */ -public LineAttributes(float width) { +public this(float width) { this(width, DWT.CAP_FLAT, DWT.JOIN_MITER, DWT.LINE_SOLID, null, 0, 10); } @@ -96,7 +96,7 @@ * @param cap the line cap style * @param join the line join style */ -public LineAttributes(float width, int cap, int join) { +public this(float width, int cap, int join) { this(width, cap, join, DWT.LINE_SOLID, null, 0, 10); } @@ -111,7 +111,7 @@ * @param dashOffset the line dash style offset * @param miterLimit the line miter limit */ -public LineAttributes(float width, int cap, int join, int style, float[] dash, float dashOffset, float miterLimit) { +public this(float width, int cap, int join, int style, float[] dash, float dashOffset, float miterLimit) { this.width = width; this.cap = cap; this.join = join; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/PaletteData.d --- a/dwt/graphics/PaletteData.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/PaletteData.d Wed Aug 27 14:02:31 2008 +0200 @@ -107,7 +107,7 @@ *
  • ERROR_NULL_ARGUMENT - if the argument is null
  • * */ -public PaletteData(RGB[] colors) { +public this(RGB[] colors) { if (colors is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); this.colors = colors; this.isDirect = false; @@ -120,7 +120,7 @@ * @param greenMask the green mask * @param blueMask the blue mask */ -public PaletteData(int redMask, int greenMask, int blueMask) { +public this(int redMask, int greenMask, int blueMask) { this.redMask = redMask; this.greenMask = greenMask; this.blueMask = blueMask; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Path.d --- a/dwt/graphics/Path.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/Path.d Wed Aug 27 14:02:31 2008 +0200 @@ -80,7 +80,7 @@ * * @see #dispose() */ -public Path (Device device) { +public this (Device device) { super(device); handle = NSBezierPath.bezierPath(); if (handle is null) DWT.error(DWT.ERROR_NO_HANDLES); @@ -89,7 +89,7 @@ init(); } -public Path (Device device, Path path, float flatness) { +public this (Device device, Path path, float flatness) { super(device); if (path is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (path.isDisposed()) DWT.error(DWT.ERROR_INVALID_ARGUMENT); @@ -106,7 +106,7 @@ init(); } -public Path (Device device, PathData data) { +public this (Device device, PathData data) { this(device); if (data is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); init(data); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Pattern.d --- a/dwt/graphics/Pattern.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/Pattern.d Wed Aug 27 14:02:31 2008 +0200 @@ -67,7 +67,7 @@ * * @see #dispose() */ -public Pattern(Device device, Image image) { +public this(Device device, Image image) { super(device); if (image is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (image.isDisposed()) DWT.error(DWT.ERROR_INVALID_ARGUMENT); @@ -109,7 +109,7 @@ * * @see #dispose() */ -public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, Color color2) { +public this(Device device, float x1, float y1, float x2, float y2, Color color1, Color color2) { this(device, x1, y1, x2, y2, color1, 0xFF, color2, 0xFF); } /** @@ -148,7 +148,7 @@ * * @since 3.2 */ -public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) { +public this(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) { super(device); if (color1 is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (color1.isDisposed()) DWT.error(DWT.ERROR_INVALID_ARGUMENT); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Point.d --- a/dwt/graphics/Point.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/Point.d Wed Aug 27 14:02:31 2008 +0200 @@ -58,7 +58,7 @@ * @param x the x coordinate of the new point * @param y the y coordinate of the new point */ -public Point (int x, int y) { +public this (int x, int y) { this.x = x; this.y = y; } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/RGB.d --- a/dwt/graphics/RGB.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/RGB.d Wed Aug 27 14:02:31 2008 +0200 @@ -69,7 +69,7 @@ *
  • ERROR_INVALID_ARGUMENT - if the red, green or blue argument is not between 0 and 255
  • * */ -public RGB(int red, int green, int blue) { +public this(int red, int green, int blue) { if ((red > 255) || (red < 0) || (green > 255) || (green < 0) || (blue > 255) || (blue < 0)) @@ -94,7 +94,7 @@ * * @since 3.2 */ -public RGB(float hue, float saturation, float brightness) { +public this(float hue, float saturation, float brightness) { if (hue < 0 || hue > 360 || saturation < 0 || saturation > 1 || brightness < 0 || brightness > 1) { DWT.error(DWT.ERROR_INVALID_ARGUMENT); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Rectangle.d --- a/dwt/graphics/Rectangle.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/Rectangle.d Wed Aug 27 14:02:31 2008 +0200 @@ -74,7 +74,7 @@ * @param width the width of the rectangle * @param height the height of the rectangle */ -public Rectangle (int x, int y, int width, int height) { +public this (int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Region.d --- a/dwt/graphics/Region.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/Region.d Wed Aug 27 14:02:31 2008 +0200 @@ -53,7 +53,7 @@ *
  • ERROR_NO_HANDLES if a handle could not be obtained for region creation
  • * */ -public Region() { +public this() { this(null); } @@ -76,14 +76,14 @@ * * @since 3.0 */ -public Region(Device device) { +public this(Device device) { super(device); handle = OS.NewRgn(); if (handle is 0) DWT.error(DWT.ERROR_NO_HANDLES); init(); } -Region(Device device, int handle) { +this(Device device, int handle) { super(device); this.handle = handle; } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/Resource.d --- a/dwt/graphics/Resource.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/Resource.d Wed Aug 27 14:02:31 2008 +0200 @@ -43,10 +43,10 @@ */ Device device; -Resource() { +this() { } -Resource(Device device) { +this(Device device) { if (device is null) device = Device.getDevice(); if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); this.device = device; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/TextLayout.d --- a/dwt/graphics/TextLayout.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/TextLayout.d Wed Aug 27 14:02:31 2008 +0200 @@ -92,7 +92,7 @@ * * @see #dispose() */ -public TextLayout (Device device) { +public this (Device device) { super(device); wrapWidth = ascent = descent = -1; alignment = DWT.LEFT; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/graphics/TextStyle.d --- a/dwt/graphics/TextStyle.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/TextStyle.d Wed Aug 27 14:02:31 2008 +0200 @@ -143,7 +143,7 @@ * * @since 3.4 */ -public TextStyle () { +public this () { } /** @@ -154,7 +154,7 @@ * @param foreground the foreground color of the style, 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 @@ *
  • ERROR_UNSUPPORTED_DEPTH when the requested attributes cannot be provided * */ -public GLCanvas (Composite parent, int style, GLData data) { +public this (Composite parent, int style, GLData data) { super (parent, style); if (data is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); int attrib [] = new int [MAX_ATTRIBUTES]; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/printing/PrintDialog.d --- a/dwt/printing/PrintDialog.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/printing/PrintDialog.d Wed Aug 27 14:02:31 2008 +0200 @@ -52,7 +52,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public PrintDialog (Shell parent) { +public this (Shell parent) { this (parent, DWT.PRIMARY_MODAL); } @@ -84,7 +84,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public PrintDialog (Shell parent, int style) { +public this (Shell parent, int style) { super (parent, style); checkSubclass (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/printing/Printer.d --- a/dwt/printing/Printer.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/printing/Printer.d Wed Aug 27 14:02:31 2008 +0200 @@ -134,7 +134,7 @@ * * @see Device#dispose */ -public Printer() { +public this() { this(null); } @@ -156,7 +156,7 @@ * * @see Device#dispose */ -public Printer(PrinterData data) { +public this(PrinterData data) { super (checkNull(data)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/printing/PrinterData.d --- a/dwt/printing/PrinterData.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/printing/PrinterData.d Wed Aug 27 14:02:31 2008 +0200 @@ -141,7 +141,7 @@ * * @see Printer#getDefaultPrinterData */ - public PrinterData() { + public this() { } /** @@ -154,7 +154,7 @@ * @see #driver * @see #name */ - public PrinterData(String driver, String name) { + public this(String driver, String name) { this.driver = driver; this.name = name; } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/program/Program.d --- a/dwt/program/Program.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/program/Program.d Wed Aug 27 14:02:31 2008 +0200 @@ -31,7 +31,7 @@ /** * Prevents uninitialized instances from being created outside the package. */ -Program () { +this () { } /** diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Button.d --- a/dwt/widgets/Button.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Button.d Wed Aug 27 14:02:31 2008 +0200 @@ -94,7 +94,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Button (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Canvas.d --- a/dwt/widgets/Canvas.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Canvas.d Wed Aug 27 14:02:31 2008 +0200 @@ -50,7 +50,7 @@ Caret caret; IME ime; -Canvas () { +this () { /* Do nothing */ } @@ -92,7 +92,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Canvas (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, style); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Caret.d --- a/dwt/widgets/Caret.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Caret.d Wed Aug 27 14:02:31 2008 +0200 @@ -74,7 +74,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Caret (Canvas parent, int style) { +public this (Canvas parent, int style) { super (parent, style); this.parent = parent; createWidget (); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/ColorDialog.d --- a/dwt/widgets/ColorDialog.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/ColorDialog.d Wed Aug 27 14:02:31 2008 +0200 @@ -58,7 +58,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public ColorDialog(Shell parent) { +public this(Shell parent) { this(parent, DWT.APPLICATION_MODAL); } @@ -90,7 +90,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public ColorDialog(Shell parent, int style) { +public this(Shell parent, int style) { super(parent, style); checkSubclass (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Combo.d --- a/dwt/widgets/Combo.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Combo.d Wed Aug 27 14:02:31 2008 +0200 @@ -119,7 +119,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Combo (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Composite.d --- a/dwt/widgets/Composite.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Composite.d Wed Aug 27 14:02:31 2008 +0200 @@ -60,7 +60,7 @@ int scrolledVisibleRgn, siblingsVisibleRgn; int layoutCount, backgroundMode; -Composite () { +this () { /* Do nothing */ } @@ -94,7 +94,7 @@ * @see DWT#NO_RADIO_GROUP * @see Widget#getStyle */ -public Composite (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, style); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Control.d --- a/dwt/widgets/Control.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Control.d Wed Aug 27 14:02:31 2008 +0200 @@ -97,7 +97,7 @@ // static final String RESET_VISIBLE_REGION = "dwt.internal.resetVisibleRegion"; -Control () { +this () { /* Do nothing */ } @@ -129,7 +129,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Control (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, style); this.parent = parent; createWidget (); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/CoolBar.d --- a/dwt/widgets/CoolBar.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/CoolBar.d Wed Aug 27 14:02:31 2008 +0200 @@ -85,7 +85,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public CoolBar (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle(style)); if ((style & DWT.VERTICAL) !is 0) { this.style |= DWT.VERTICAL; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/CoolItem.d --- a/dwt/widgets/CoolItem.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/CoolItem.d Wed Aug 27 14:02:31 2008 +0200 @@ -90,7 +90,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public CoolItem (CoolBar parent, int style) { +public this (CoolBar parent, int style) { super(parent, style); this.parent = parent; parent.createItem (this, parent.getItemCount()); @@ -128,7 +128,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public CoolItem (CoolBar parent, int style, int index) { +public this (CoolBar parent, int style, int index) { super(parent, style); this.parent = parent; parent.createItem (this, index); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/DateTime.d --- a/dwt/widgets/DateTime.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/DateTime.d Wed Aug 27 14:02:31 2008 +0200 @@ -81,7 +81,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public DateTime (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Decorations.d --- a/dwt/widgets/Decorations.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Decorations.d Wed Aug 27 14:02:31 2008 +0200 @@ -104,7 +104,7 @@ Control savedFocus; Button defaultButton; -Decorations () { +this () { /* Do nothing */ } @@ -146,7 +146,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Decorations (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Dialog.d --- a/dwt/widgets/Dialog.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Dialog.d Wed Aug 27 14:02:31 2008 +0200 @@ -94,7 +94,7 @@ *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
  • * */ -public Dialog (Shell parent) { +public this (Shell parent) { this (parent, DWT.PRIMARY_MODAL); } @@ -124,7 +124,7 @@ * @see DWT#APPLICATION_MODAL * @see DWT#SYSTEM_MODAL */ -public Dialog (Shell parent, int style) { +public this (Shell parent, int style) { checkParent (parent); this.parent = parent; this.style = style; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/DirectoryDialog.d --- a/dwt/widgets/DirectoryDialog.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/DirectoryDialog.d Wed Aug 27 14:02:31 2008 +0200 @@ -50,7 +50,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public DirectoryDialog (Shell parent) { +public this (Shell parent) { this (parent, DWT.APPLICATION_MODAL); } @@ -78,7 +78,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public DirectoryDialog (Shell parent, int style) { +public this (Shell parent, int style) { super (parent, style); checkSubclass (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Display.d --- a/dwt/widgets/Display.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Display.d Wed Aug 27 14:02:31 2008 +0200 @@ -516,7 +516,7 @@ * @see Widget#checkSubclass * @see Shell */ -public Display () { +public this () { this (null); } @@ -525,7 +525,7 @@ * * @param data the device data */ -public Display (DeviceData data) { +public this (DeviceData data) { super (data); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/ExpandBar.d --- a/dwt/widgets/ExpandBar.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/ExpandBar.d Wed Aug 27 14:02:31 2008 +0200 @@ -86,7 +86,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public ExpandBar (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); items = new ExpandItem [4]; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/ExpandItem.d --- a/dwt/widgets/ExpandItem.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/ExpandItem.d Wed Aug 27 14:02:31 2008 +0200 @@ -74,7 +74,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public ExpandItem (ExpandBar parent, int style) { +public this (ExpandBar parent, int style) { this (parent, style, checkNull (parent).getItemCount ()); } @@ -108,7 +108,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public ExpandItem (ExpandBar parent, int style, int index) { +public this (ExpandBar parent, int style, int index) { super (parent, style); this.parent = parent; parent.createItem (this, style, index); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/FileDialog.d --- a/dwt/widgets/FileDialog.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/FileDialog.d Wed Aug 27 14:02:31 2008 +0200 @@ -59,7 +59,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public FileDialog (Shell parent) { +public this (Shell parent) { this (parent, DWT.APPLICATION_MODAL); } @@ -87,7 +87,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public FileDialog (Shell parent, int style) { +public this (Shell parent, int style) { super (parent, style); checkSubclass (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/FontDialog.d --- a/dwt/widgets/FontDialog.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/FontDialog.d Wed Aug 27 14:02:31 2008 +0200 @@ -60,7 +60,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public FontDialog (Shell parent) { +public this (Shell parent) { this (parent, DWT.APPLICATION_MODAL); } @@ -88,7 +88,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public FontDialog (Shell parent, int style) { +public this (Shell parent, int style) { super (parent, style); checkSubclass (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Group.d --- a/dwt/widgets/Group.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Group.d Wed Aug 27 14:02:31 2008 +0200 @@ -80,7 +80,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Group (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/IME.d --- a/dwt/widgets/IME.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/IME.d Wed Aug 27 14:02:31 2008 +0200 @@ -28,14 +28,14 @@ /** * Prevents uninitialized instances from being created outside the package. */ -IME () { +this () { } /** * * @see DWT */ -public IME (Canvas parent, int style) { +public this (Canvas parent, int style) { super (parent, style); this.parent = parent; createWidget (); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Item.d --- a/dwt/widgets/Item.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Item.d Wed Aug 27 14:02:31 2008 +0200 @@ -60,7 +60,7 @@ * @see DWT * @see Widget#getStyle */ -public Item (Widget parent, int style) { +public this (Widget parent, int style) { super (parent, style); text = ""; } @@ -95,7 +95,7 @@ * @see DWT * @see Widget#getStyle */ -public Item (Widget parent, int style, int index) { +public this (Widget parent, int style, int index) { this (parent, style); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Label.d --- a/dwt/widgets/Label.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Label.d Wed Aug 27 14:02:31 2008 +0200 @@ -99,7 +99,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Label (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Link.d --- a/dwt/widgets/Link.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Link.d Wed Aug 27 14:02:31 2008 +0200 @@ -81,7 +81,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Link (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, style); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/List.d --- a/dwt/widgets/List.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/List.d Wed Aug 27 14:02:31 2008 +0200 @@ -88,7 +88,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public List (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Menu.d --- a/dwt/widgets/Menu.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Menu.d Wed Aug 27 14:02:31 2008 +0200 @@ -85,7 +85,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Menu (Control parent) { +public this (Control parent) { this (checkNull (parent).menuShell (), DWT.POP_UP); } @@ -120,7 +120,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Menu (Decorations parent, int style) { +public this (Decorations parent, int style) { super (parent, checkStyle (style)); this.parent = parent; createWidget (); @@ -146,7 +146,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Menu (Menu parentMenu) { +public this (Menu parentMenu) { this (checkNull (parentMenu).parent, DWT.DROP_DOWN); } @@ -170,7 +170,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Menu (MenuItem parentItem) { +public this (MenuItem parentItem) { this (checkNull (parentItem).parent); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/MenuItem.d --- a/dwt/widgets/MenuItem.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/MenuItem.d Wed Aug 27 14:02:31 2008 +0200 @@ -82,7 +82,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public MenuItem (Menu parent, int style) { +public this (Menu parent, int style) { super (parent, checkStyle (style)); this.parent = parent; parent.createItem (this, parent.getItemCount ()); @@ -124,7 +124,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public MenuItem (Menu parent, int style, int index) { +public this (Menu parent, int style, int index) { super (parent, checkStyle (style)); this.parent = parent; parent.createItem (this, index); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/MessageBox.d --- a/dwt/widgets/MessageBox.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/MessageBox.d Wed Aug 27 14:02:31 2008 +0200 @@ -56,7 +56,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public MessageBox (Shell parent) { +public this (Shell parent) { this (parent, DWT.OK | DWT.ICON_INFORMATION | DWT.APPLICATION_MODAL); } @@ -83,7 +83,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public MessageBox (Shell parent, int style) { +public this (Shell parent, int style) { super (parent, checkStyle (style)); checkSubclass (); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Monitor.d --- a/dwt/widgets/Monitor.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Monitor.d Wed Aug 27 14:02:31 2008 +0200 @@ -29,7 +29,7 @@ /** * Prevents uninitialized instances from being created outside the package. */ -Monitor () { +this () { } /** diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/ProgressBar.d --- a/dwt/widgets/ProgressBar.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/ProgressBar.d Wed Aug 27 14:02:31 2008 +0200 @@ -69,7 +69,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public ProgressBar (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/RunnableLock.d --- a/dwt/widgets/RunnableLock.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/RunnableLock.d Wed Aug 27 14:02:31 2008 +0200 @@ -25,7 +25,7 @@ Thread thread; Throwable throwable; -RunnableLock (Runnable runnable) { +this (Runnable runnable) { this.runnable = runnable; } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Sash.d --- a/dwt/widgets/Sash.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Sash.d Wed Aug 27 14:02:31 2008 +0200 @@ -78,7 +78,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Sash (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); int cursorStyle = (style & DWT.VERTICAL) !is 0 ? DWT.CURSOR_SIZEWE : DWT.CURSOR_SIZENS; sizeCursor = new Cursor (display, cursorStyle); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Scale.d --- a/dwt/widgets/Scale.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Scale.d Wed Aug 27 14:02:31 2008 +0200 @@ -72,7 +72,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Scale (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/ScrollBar.d --- a/dwt/widgets/ScrollBar.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/ScrollBar.d Wed Aug 27 14:02:31 2008 +0200 @@ -94,7 +94,7 @@ id target; int actionSelector;; -ScrollBar () { +this () { /* Do nothing */ } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Scrollable.d --- a/dwt/widgets/Scrollable.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Scrollable.d Wed Aug 27 14:02:31 2008 +0200 @@ -42,7 +42,7 @@ SWTScrollView scrollView; ScrollBar horizontalBar, verticalBar; -Scrollable () { +this () { /* Do nothing */ } @@ -75,7 +75,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Scrollable (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, style); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Shell.d --- a/dwt/widgets/Shell.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Shell.d Wed Aug 27 14:02:31 2008 +0200 @@ -149,7 +149,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public Shell () { +public this () { this ((Display) null); } @@ -188,7 +188,7 @@ * @see DWT#APPLICATION_MODAL * @see DWT#SYSTEM_MODAL */ -public Shell (int style) { +public this (int style) { this ((Display) null, style); } @@ -211,7 +211,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public Shell (Display display) { +public this (Display display) { this (display, DWT.SHELL_TRIM); } @@ -258,11 +258,11 @@ * @see DWT#APPLICATION_MODAL * @see DWT#SYSTEM_MODAL */ -public Shell (Display display, int style) { +public this (Display display, int style) { this (display, null, style, 0, false); } -Shell (Display display, Shell parent, int style, int handle, bool embedded) { +this (Display display, Shell parent, int style, int handle, bool embedded) { super (); checkSubclass (); if (display is null) display = Display.getCurrent (); @@ -309,7 +309,7 @@ *
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  • * */ -public Shell (Shell parent) { +public this (Shell parent) { this (parent, DWT.DIALOG_TRIM); } @@ -360,7 +360,7 @@ * @see DWT#APPLICATION_MODAL * @see DWT#SYSTEM_MODAL */ -public Shell (Shell parent, int style) { +public this (Shell parent, int style) { this (parent !is null ? parent.display : null, parent, style, 0, false); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Slider.d --- a/dwt/widgets/Slider.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Slider.d Wed Aug 27 14:02:31 2008 +0200 @@ -106,7 +106,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Slider (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Spinner.d --- a/dwt/widgets/Spinner.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Spinner.d Wed Aug 27 14:02:31 2008 +0200 @@ -90,7 +90,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Spinner (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Synchronizer.d --- a/dwt/widgets/Synchronizer.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Synchronizer.d Wed Aug 27 14:02:31 2008 +0200 @@ -52,7 +52,7 @@ * * @param display the display to create the synchronizer on */ -public Synchronizer (Display display) { +public this (Display display) { this.display = display; } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/TabFolder.d --- a/dwt/widgets/TabFolder.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/TabFolder.d Wed Aug 27 14:02:31 2008 +0200 @@ -85,7 +85,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TabFolder (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/TabItem.d --- a/dwt/widgets/TabItem.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/TabItem.d Wed Aug 27 14:02:31 2008 +0200 @@ -74,7 +74,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TabItem (TabFolder parent, int style) { +public this (TabFolder parent, int style) { super (parent, style); this.parent = parent; parent.createItem (this, parent.getItemCount ()); @@ -112,7 +112,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TabItem (TabFolder parent, int style, int index) { +public this (TabFolder parent, int style, int index) { super (parent, style); this.parent = parent; parent.createItem (this, index); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Table.d --- a/dwt/widgets/Table.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Table.d Wed Aug 27 14:02:31 2008 +0200 @@ -127,7 +127,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Table (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/TableColumn.d --- a/dwt/widgets/TableColumn.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/TableColumn.d Wed Aug 27 14:02:31 2008 +0200 @@ -75,7 +75,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TableColumn (Table parent, int style) { +public this (Table parent, int style) { super (parent, checkStyle (style)); this.parent = parent; parent.createItem (this, parent.getColumnCount ()); @@ -115,7 +115,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TableColumn (Table parent, int style, int index) { +public this (Table parent, int style, int index) { super (parent, checkStyle (style)); this.parent = parent; parent.createItem (this, index); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/TableItem.d --- a/dwt/widgets/TableItem.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/TableItem.d Wed Aug 27 14:02:31 2008 +0200 @@ -82,7 +82,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TableItem (Table parent, int style) { +public this (Table parent, int style) { this (parent, style, checkNull (parent).getItemCount (), true); } @@ -118,11 +118,11 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TableItem (Table parent, int style, int index) { +public this (Table parent, int style, int index) { this (parent, style, index, true); } -TableItem (Table parent, int style, int index, bool create) { +this (Table parent, int style, int index, bool create) { super (parent, style); this.parent = parent; if (create) parent.createItem (this, index); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Text.d --- a/dwt/widgets/Text.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Text.d Wed Aug 27 14:02:31 2008 +0200 @@ -122,7 +122,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Text (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); if ((style & DWT.SEARCH) !is 0) { // int inAttributesToSet = (style & DWT.CANCEL) !is 0 ? OS.kHISearchFieldAttributesCancel : 0; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/ToolBar.d --- a/dwt/widgets/ToolBar.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/ToolBar.d Wed Aug 27 14:02:31 2008 +0200 @@ -81,7 +81,7 @@ * @see Widget#checkSubclass() * @see Widget#getStyle() */ -public ToolBar (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); /* diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/ToolItem.d --- a/dwt/widgets/ToolItem.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/ToolItem.d Wed Aug 27 14:02:31 2008 +0200 @@ -100,7 +100,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public ToolItem (ToolBar parent, int style) { +public this (ToolBar parent, int style) { super (parent, checkStyle (style)); this.parent = parent; parent.createItem (this, parent.getItemCount ()); @@ -142,7 +142,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public ToolItem (ToolBar parent, int style, int index) { +public this (ToolBar parent, int style, int index) { super (parent, checkStyle (style)); this.parent = parent; parent.createItem (this, index); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/ToolTip.d --- a/dwt/widgets/ToolTip.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/ToolTip.d Wed Aug 27 14:02:31 2008 +0200 @@ -97,7 +97,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public ToolTip (Shell parent, int style) { +public this (Shell parent, int style) { super (parent, checkStyle (style)); this.parent = parent; this.autohide = true; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Tracker.d --- a/dwt/widgets/Tracker.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Tracker.d Wed Aug 27 14:02:31 2008 +0200 @@ -101,7 +101,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Tracker (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); this.parent = parent; } @@ -140,7 +140,7 @@ * @see DWT#UP * @see DWT#DOWN */ -public Tracker (Display display, int style) { +public this (Display display, int style) { if (display is null) display = Display.getCurrent (); if (display is null) display = Display.getDefault (); if (!display.isValidThread ()) { diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Tray.d --- a/dwt/widgets/Tray.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Tray.d Wed Aug 27 14:02:31 2008 +0200 @@ -38,7 +38,7 @@ int itemCount; TrayItem [] items = new TrayItem [4]; -Tray (Display display, int style) { +this (Display display, int style) { if (display is null) display = Display.getCurrent (); if (display is null) display = Display.getDefault (); if (!display.isValidThread ()) { diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/TrayItem.d --- a/dwt/widgets/TrayItem.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/TrayItem.d Wed Aug 27 14:02:31 2008 +0200 @@ -86,7 +86,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TrayItem (Tray parent, int style) { +public this (Tray parent, int style) { super (parent, style); this.parent = parent; parent.createItem (this, parent.getItemCount ()); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Tree.d --- a/dwt/widgets/Tree.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Tree.d Wed Aug 27 14:02:31 2008 +0200 @@ -131,7 +131,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public Tree (Composite parent, int style) { +public this (Composite parent, int style) { super (parent, checkStyle (style)); } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/TreeColumn.d --- a/dwt/widgets/TreeColumn.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/TreeColumn.d Wed Aug 27 14:02:31 2008 +0200 @@ -76,7 +76,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TreeColumn (Tree parent, int style) { +public this (Tree parent, int style) { super (parent, checkStyle (style)); this.parent = parent; parent.createItem (this, parent.getColumnCount ()); @@ -116,7 +116,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TreeColumn (Tree parent, int style, int index) { +public this (Tree parent, int style, int index) { super (parent, checkStyle (style)); this.parent = parent; parent.createItem (this, index); diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/TreeItem.d --- a/dwt/widgets/TreeItem.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/TreeItem.d Wed Aug 27 14:02:31 2008 +0200 @@ -89,7 +89,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TreeItem (Tree parent, int style) { +public this (Tree parent, int style) { this (checkNull (parent), null, style, -1, true); } @@ -125,7 +125,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TreeItem (Tree parent, int style, int index) { +public this (Tree parent, int style, int index) { this (checkNull (parent), null, style, checkIndex (index), true); } @@ -159,7 +159,7 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TreeItem (TreeItem parentItem, int style) { +public this (TreeItem parentItem, int style) { this (checkNull (parentItem).parent, parentItem, style, -1, true); } @@ -195,11 +195,11 @@ * @see Widget#checkSubclass * @see Widget#getStyle */ -public TreeItem (TreeItem parentItem, int style, int index) { +public this (TreeItem parentItem, int style, int index) { this (checkNull (parentItem).parent, parentItem, style, checkIndex (index), true); } -TreeItem (Tree parent, TreeItem parentItem, int style, int index, bool create) { +this (Tree parent, TreeItem parentItem, int style, int index, bool create) { super (parent, style); this.parent = parent; this.parentItem = parentItem; diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/TypedListener.d --- a/dwt/widgets/TypedListener.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/TypedListener.d Wed Aug 27 14:02:31 2008 +0200 @@ -86,7 +86,7 @@ * * @param listener the event listener to store in the receiver */ -public TypedListener (DWTEventListener listener) { +public this (DWTEventListener listener) { eventListener = listener; } diff -r ab8b5765e3d1 -r 1a8b3cb347e0 dwt/widgets/Widget.d --- a/dwt/widgets/Widget.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/widgets/Widget.d Wed Aug 27 14:02:31 2008 +0200 @@ -94,7 +94,7 @@ static final int DEFAULT_WIDTH = 64; static final int DEFAULT_HEIGHT = 64; -Widget () { +this () { /* Do nothing */ } @@ -127,7 +127,7 @@ * @see #checkSubclass * @see #getStyle */ -public Widget (Widget parent, int style) { +public this (Widget parent, int style) { checkSubclass (); checkParent (parent); this.style = style;