comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/layout/FormLayout.d @ 9:950d84783eac

Removing direct tango deps.
author Frank Benoit <benoit@tionex.de>
date Mon, 09 Mar 2009 14:26:40 +0100
parents 6bf2837c50fe
children
comparison
equal deleted inserted replaced
8:2847134a5fc0 9:950d84783eac
20 import org.eclipse.swt.widgets.Control; 20 import org.eclipse.swt.widgets.Control;
21 import org.eclipse.swt.widgets.Layout; 21 import org.eclipse.swt.widgets.Layout;
22 import org.eclipse.swt.widgets.Composite; 22 import org.eclipse.swt.widgets.Composite;
23 import org.eclipse.swt.widgets.Scrollable; 23 import org.eclipse.swt.widgets.Scrollable;
24 24
25 import tango.util.Convert;
26 import java.lang.all; 25 import java.lang.all;
27 26
28 /** 27 /**
29 * Instances of this class control the position and size of the 28 * Instances of this class control the position and size of the
30 * children of a composite control by using <code>FormAttachments</code> 29 * children of a composite control by using <code>FormAttachments</code>
380 * 379 *
381 * @return a string representation of the layout 380 * @return a string representation of the layout
382 */ 381 */
383 override public String toString () { 382 override public String toString () {
384 String string = getName ()~" {"; 383 String string = getName ()~" {";
385 if (marginWidth !is 0) string ~= "marginWidth="~to!(String)(marginWidth)~" "; 384 if (marginWidth !is 0) string ~= "marginWidth="~String_valueOf(marginWidth)~" ";
386 if (marginHeight !is 0) string ~= "marginHeight="~to!(String)(marginHeight)~" "; 385 if (marginHeight !is 0) string ~= "marginHeight="~String_valueOf(marginHeight)~" ";
387 if (marginLeft !is 0) string ~= "marginLeft="~to!(String)(marginLeft)~" "; 386 if (marginLeft !is 0) string ~= "marginLeft="~String_valueOf(marginLeft)~" ";
388 if (marginRight !is 0) string ~= "marginRight="~to!(String)(marginRight)~" "; 387 if (marginRight !is 0) string ~= "marginRight="~String_valueOf(marginRight)~" ";
389 if (marginTop !is 0) string ~= "marginTop="~to!(String)(marginTop)~" "; 388 if (marginTop !is 0) string ~= "marginTop="~String_valueOf(marginTop)~" ";
390 if (marginBottom !is 0) string ~= "marginBottom="~to!(String)(marginBottom)~" "; 389 if (marginBottom !is 0) string ~= "marginBottom="~String_valueOf(marginBottom)~" ";
391 if (spacing !is 0) string ~= "spacing="~to!(String)(spacing)~" "; 390 if (spacing !is 0) string ~= "spacing="~String_valueOf(spacing)~" ";
392 string = string.trim(); 391 string = string.trim();
393 string ~= "}"; 392 string ~= "}";
394 return string; 393 return string;
395 } 394 }
396 } 395 }