Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/layout/RowLayout.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 |
---|---|
17 import org.eclipse.swt.graphics.Rectangle; | 17 import org.eclipse.swt.graphics.Rectangle; |
18 import org.eclipse.swt.widgets.Control; | 18 import org.eclipse.swt.widgets.Control; |
19 import org.eclipse.swt.widgets.Layout; | 19 import org.eclipse.swt.widgets.Layout; |
20 import org.eclipse.swt.widgets.Composite; | 20 import org.eclipse.swt.widgets.Composite; |
21 import org.eclipse.swt.layout.RowData; | 21 import org.eclipse.swt.layout.RowData; |
22 import tango.util.Convert; | |
23 import java.lang.all; | 22 import java.lang.all; |
24 | 23 |
25 | 24 |
26 /** | 25 /** |
27 * Instances of this class determine the size and position of the | 26 * Instances of this class determine the size and position of the |
495 * @return a string representation of the layout | 494 * @return a string representation of the layout |
496 */ | 495 */ |
497 override public String toString () { | 496 override public String toString () { |
498 String string = getName ()~" {"; | 497 String string = getName ()~" {"; |
499 string ~= "type="~((type !is SWT.HORIZONTAL) ? "SWT.VERTICAL" : "SWT.HORIZONTAL")~" "; | 498 string ~= "type="~((type !is SWT.HORIZONTAL) ? "SWT.VERTICAL" : "SWT.HORIZONTAL")~" "; |
500 if (marginWidth !is 0) string ~= "marginWidth="~to!(String)(marginWidth)~" "; | 499 if (marginWidth !is 0) string ~= "marginWidth="~String_valueOf(marginWidth)~" "; |
501 if (marginHeight !is 0) string ~= "marginHeight="~to!(String)(marginHeight)~" "; | 500 if (marginHeight !is 0) string ~= "marginHeight="~String_valueOf(marginHeight)~" "; |
502 if (marginLeft !is 0) string ~= "marginLeft="~to!(String)(marginLeft)~" "; | 501 if (marginLeft !is 0) string ~= "marginLeft="~String_valueOf(marginLeft)~" "; |
503 if (marginTop !is 0) string ~= "marginTop="~to!(String)(marginTop)~" "; | 502 if (marginTop !is 0) string ~= "marginTop="~String_valueOf(marginTop)~" "; |
504 if (marginRight !is 0) string ~= "marginRight="~to!(String)(marginRight)~" "; | 503 if (marginRight !is 0) string ~= "marginRight="~String_valueOf(marginRight)~" "; |
505 if (marginBottom !is 0) string ~= "marginBottom="~to!(String)(marginBottom)~" "; | 504 if (marginBottom !is 0) string ~= "marginBottom="~String_valueOf(marginBottom)~" "; |
506 if (spacing !is 0) string ~= "spacing="~to!(String)(spacing)~" "; | 505 if (spacing !is 0) string ~= "spacing="~String_valueOf(spacing)~" "; |
507 string ~= "wrap="~to!(String)(wrap)~" "; | 506 string ~= "wrap="~String_valueOf(wrap)~" "; |
508 string ~= "pack="~to!(String)(pack)~" "; | 507 string ~= "pack="~String_valueOf(pack)~" "; |
509 string ~= "fill="~to!(String)(fill)~" "; | 508 string ~= "fill="~String_valueOf(fill)~" "; |
510 string ~= "justify="~to!(String)(justify)~" "; | 509 string ~= "justify="~String_valueOf(justify)~" "; |
511 string = string.trim(); | 510 string = string.trim(); |
512 string ~= "}"; | 511 string ~= "}"; |
513 return string; | 512 return string; |
514 } | 513 } |
515 } | 514 } |