Mercurial > projects > dwt-win
diff dwt/widgets/Table.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 | 521e2e00d10f |
children | 36f5cb12e1a2 |
line wrap: on
line diff
--- a/dwt/widgets/Table.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/widgets/Table.d Mon May 05 00:12:38 2008 +0200 @@ -1337,9 +1337,9 @@ for (int i=0; i<itemCount; i++) { TableItem item = items [i]; if (item !is null) { - char[] [] strings = item.strings; + String [] strings = item.strings; if (strings !is null) { - char[] [] temp = new char[] [columnCount + 1]; + String [] temp = new String [columnCount + 1]; System.arraycopy (strings, 0, temp, 0, index); System.arraycopy (strings, index, temp, index + 1, columnCount - index); item.strings = temp; @@ -1354,7 +1354,7 @@ if (index is 0) { if (columnCount !is 0) { if (strings is null) { - item.strings = new char[] [columnCount + 1]; + item.strings = new String [columnCount + 1]; item.strings [1] = item.text; } item.text = ""; //$NON-NLS-1$ @@ -1745,11 +1745,11 @@ item.cellFont = null; } else { if (item.strings !is null) { - char[] [] strings = item.strings; + String [] strings = item.strings; if (index is 0) { item.text = strings [1] !is null ? strings [1] : ""; //$NON-NLS-1$ } - char[] [] temp = new char[] [columnCount]; + String [] temp = new String [columnCount]; System.arraycopy (strings, 0, temp, 0, index); System.arraycopy (strings, index + 1, temp, index, columnCount - index); item.strings = temp; @@ -4240,7 +4240,7 @@ int newWidth = 0, imageIndent = 0, index = 0; int itemCount = OS.SendMessage (handle, OS.LVM_GETITEMCOUNT, 0, 0); while (index < itemCount) { - char[] string = null; + String string = null; HFONT font = cast(HFONT)-1; if (item !is null) { string = item.text; @@ -4869,7 +4869,7 @@ } } -override char[] toolTipText (NMTTDISPINFO* hdr) { +override String toolTipText (NMTTDISPINFO* hdr) { auto hwndToolTip = cast(HWND) OS.SendMessage (handle, OS.LVM_GETTOOLTIPS, 0, 0); if (hwndToolTip is hdr.hdr.hwndFrom && toolTipText_ !is null) return ""; //$NON-NLS-1$ if (headerToolTipHandle is hdr.hdr.hwndFrom) { @@ -4977,7 +4977,7 @@ return bits; } -override char[] windowClass () { +override String windowClass () { return TCHARsToStr( TableClass ); } @@ -5942,11 +5942,11 @@ item.cached = true; } if ((plvfi.item.mask & OS.LVIF_TEXT) !is 0) { - char[] string = null; + String string = null; if (plvfi.item.iSubItem is 0) { string = item.text; } else { - char[] [] strings = item.strings; + String [] strings = item.strings; if (strings !is null) string = strings [plvfi.item.iSubItem]; } if (string !is null) {