Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/custom/CTabFolder.d @ 9:950d84783eac
Removing direct tango deps.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 09 Mar 2009 14:26:40 +0100 |
parents | 6dd524f61e62 |
children | 536e43f63c81 |
comparison
equal
deleted
inserted
replaced
8:2847134a5fc0 | 9:950d84783eac |
---|---|
46 import org.eclipse.swt.custom.CTabFolderListener; | 46 import org.eclipse.swt.custom.CTabFolderListener; |
47 import org.eclipse.swt.custom.CTabFolderLayout; | 47 import org.eclipse.swt.custom.CTabFolderLayout; |
48 import org.eclipse.swt.custom.CTabFolderEvent; | 48 import org.eclipse.swt.custom.CTabFolderEvent; |
49 | 49 |
50 import java.lang.all; | 50 import java.lang.all; |
51 import tango.util.Convert; | |
52 static import tango.text.convert.Utf; | |
53 | 51 |
54 /** | 52 /** |
55 * | 53 * |
56 * Instances of this class implement the notebook user interface | 54 * Instances of this class implement the notebook user interface |
57 * metaphor. It allows the user to select a notebook page from | 55 * metaphor. It allows the user to select a notebook page from |
884 while (showCount < priority.length && items[priority[showCount]].showing) { | 882 while (showCount < priority.length && items[priority[showCount]].showing) { |
885 showCount++; | 883 showCount++; |
886 } | 884 } |
887 count = items.length - showCount; | 885 count = items.length - showCount; |
888 } | 886 } |
889 String chevronString = count > 99 ? "99+" : to!(String)(count); //$NON-NLS-1$ | 887 String chevronString = count > 99 ? "99+" : String_valueOf(count); //$NON-NLS-1$ |
890 switch (chevronImageState) { | 888 switch (chevronImageState) { |
891 case NORMAL: { | 889 case NORMAL: { |
892 Color chevronBorder = single ? getSelectionForeground() : getForeground(); | 890 Color chevronBorder = single ? getSelectionForeground() : getForeground(); |
893 gc.setForeground(chevronBorder); | 891 gc.setForeground(chevronBorder); |
894 gc.setFont(f); | 892 gc.setFont(f); |
1681 if (childID >= 0 && childID < items.length) { | 1679 if (childID >= 0 && childID < items.length) { |
1682 String text = items[childID].getText(); | 1680 String text = items[childID].getText(); |
1683 if (text !is null) { | 1681 if (text !is null) { |
1684 dchar mnemonic = _findMnemonic(text); | 1682 dchar mnemonic = _findMnemonic(text); |
1685 if (mnemonic !is '\0') { | 1683 if (mnemonic !is '\0') { |
1686 shortcut = "Alt+"~tango.text.convert.Utf.toString([mnemonic]); //$NON-NLS-1$ | 1684 shortcut = "Alt+"~dcharToString(mnemonic); //$NON-NLS-1$ |
1687 } | 1685 } |
1688 } | 1686 } |
1689 } | 1687 } |
1690 e.result = shortcut; | 1688 e.result = shortcut; |
1691 } | 1689 } |