Mercurial > projects > dwt-win
comparison dwt/custom/StackLayout.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | a5afe31f5cdd |
children | fd9c62a2998e |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
127 children[i].setVisible(children[i] is topControl); | 127 children[i].setVisible(children[i] is topControl); |
128 | 128 |
129 } | 129 } |
130 } | 130 } |
131 | 131 |
132 char[] getName () { | 132 String getName () { |
133 char[] string = this.classinfo.name; | 133 String string = this.classinfo.name; |
134 int index = tango.text.Util.locatePrior( string ,'.'); | 134 int index = tango.text.Util.locatePrior( string ,'.'); |
135 if (index is string.length ) return string; | 135 if (index is string.length ) return string; |
136 return string[ index + 1 .. $ ]; | 136 return string[ index + 1 .. $ ]; |
137 } | 137 } |
138 | 138 |
140 * Returns a string containing a concise, human-readable | 140 * Returns a string containing a concise, human-readable |
141 * description of the receiver. | 141 * description of the receiver. |
142 * | 142 * |
143 * @return a string representation of the layout | 143 * @return a string representation of the layout |
144 */ | 144 */ |
145 public override char[] toString () { | 145 public override String toString () { |
146 char[] string = getName ()~" {"; | 146 String string = getName ()~" {"; |
147 if (marginWidth !is 0) string ~= "marginWidth="~to!(char[])(marginWidth)~" "; | 147 if (marginWidth !is 0) string ~= "marginWidth="~to!(String)(marginWidth)~" "; |
148 if (marginHeight !is 0) string ~= "marginHeight="~to!(char[])(marginHeight)~" "; | 148 if (marginHeight !is 0) string ~= "marginHeight="~to!(String)(marginHeight)~" "; |
149 if (topControl !is null) string ~= "topControl="~to!(char[])(topControl)~" "; | 149 if (topControl !is null) string ~= "topControl="~to!(String)(topControl)~" "; |
150 string = tango.text.Util.trim(string); | 150 string = tango.text.Util.trim(string); |
151 string ~= "}"; | 151 string ~= "}"; |
152 return string; | 152 return string; |
153 } | 153 } |
154 } | 154 } |