Changeset 212:ab60f3309436 for dwt/custom/CTabFolder.d
- Timestamp:
- 05/04/08 18:12:38 (7 months ago)
- Files:
-
- dwt/custom/CTabFolder.d (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/custom/CTabFolder.d
r197 r212 412 412 * that use double buffering which is true in both of these cases. 413 413 */ 414 char[]platform = DWT.getPlatform();414 String platform = DWT.getPlatform(); 415 415 if ("carbon"==platform || "gtk"==platform) return style; //$NON-NLS-1$ //$NON-NLS-2$ 416 416 … … 880 880 count = items.length - showCount; 881 881 } 882 char[] chevronString = count > 99 ? "99+" : to!(char[])(count); //$NON-NLS-1$882 String chevronString = count > 99 ? "99+" : to!(String)(count); //$NON-NLS-1$ 883 883 switch (chevronImageState) { 884 884 case NORMAL: { … … 1297 1297 * characters in the given string, return '\0'. 1298 1298 */ 1299 dchar _findMnemonic ( char[]string) {1299 dchar _findMnemonic (String string) { 1300 1300 if (string is null) return '\0'; 1301 1301 int index = 0; … … 1309 1309 return '\0'; 1310 1310 } 1311 char[] stripMnemonic (char[]string) {1311 String stripMnemonic (String string) { 1312 1312 int index = 0; 1313 1313 int length_ = string.length; … … 1642 1642 accessible.addAccessibleListener(new class() AccessibleAdapter { 1643 1643 public void getName(AccessibleEvent e) { 1644 char[]name = null;1644 String name = null; 1645 1645 int childID = e.childID; 1646 1646 if (childID >= 0 && childID < items.length) { … … 1657 1657 1658 1658 public void getHelp(AccessibleEvent e) { 1659 char[]help = null;1659 String help = null; 1660 1660 int childID = e.childID; 1661 1661 if (childID is ACC.CHILDID_SELF) { … … 1668 1668 1669 1669 public void getKeyboardShortcut(AccessibleEvent e) { 1670 char[]shortcut = null;1670 String shortcut = null; 1671 1671 int childID = e.childID; 1672 1672 if (childID >= 0 && childID < items.length) { 1673 char[]text = items[childID].getText();1673 String text = items[childID].getText(); 1674 1674 if (text !is null) { 1675 1675 dchar mnemonic = _findMnemonic(text); … … 1739 1739 1740 1740 public void getDefaultAction(AccessibleControlEvent e) { 1741 char[]action = null;1741 String action = null; 1742 1742 int childID = e.childID; 1743 1743 if (childID >= 0 && childID < items.length) { … … 3869 3869 } 3870 3870 } 3871 static const char[]id = "CTabFolder_showList_Index"; //$NON-NLS-1$3871 static const String id = "CTabFolder_showList_Index"; //$NON-NLS-1$ 3872 3872 for (int i = 0; i < items.length; i++) { 3873 3873 CTabItem tab = items[i]; … … 3913 3913 3914 3914 void _setToolTipText (int x, int y) { 3915 char[]oldTip = getToolTipText();3916 char[]newTip = _getToolTip(x, y);3915 String oldTip = getToolTipText(); 3916 String newTip = _getToolTip(x, y); 3917 3917 if (newTip is null || newTip!=oldTip) { 3918 3918 setToolTipText(newTip); … … 4046 4046 return true; 4047 4047 } 4048 char[]_getToolTip(int x, int y) {4048 String _getToolTip(int x, int y) { 4049 4049 if (showMin && minRect.contains(x, y)) return minimized ? DWT.getMessage("SWT_Restore") : DWT.getMessage("SWT_Minimize"); //$NON-NLS-1$ //$NON-NLS-2$ 4050 4050 if (showMax && maxRect.contains(x, y)) return maximized ? DWT.getMessage("SWT_Restore") : DWT.getMessage("SWT_Maximize"); //$NON-NLS-1$ //$NON-NLS-2$
