Show
Ignore:
Timestamp:
05/04/08 18:12:38 (7 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted the char[] to String and use the an alias.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/custom/CTabFolder.d

    r197 r212  
    412412     * that use double buffering which is true in both of these cases. 
    413413     */ 
    414     char[] platform = DWT.getPlatform(); 
     414    String platform = DWT.getPlatform(); 
    415415    if ("carbon"==platform || "gtk"==platform) return style; //$NON-NLS-1$ //$NON-NLS-2$ 
    416416 
     
    880880        count = items.length - showCount; 
    881881    } 
    882     char[] chevronString = count > 99 ? "99+" : to!(char[])(count); //$NON-NLS-1$ 
     882    String chevronString = count > 99 ? "99+" : to!(String)(count); //$NON-NLS-1$ 
    883883    switch (chevronImageState) { 
    884884        case NORMAL: { 
     
    12971297 * characters in the given string, return '\0'. 
    12981298 */ 
    1299 dchar _findMnemonic (char[] string) { 
     1299dchar _findMnemonic (String string) { 
    13001300    if (string is null) return '\0'; 
    13011301    int index = 0; 
     
    13091309    return '\0'; 
    13101310} 
    1311 char[] stripMnemonic (char[] string) { 
     1311String stripMnemonic (String string) { 
    13121312    int index = 0; 
    13131313    int length_ = string.length; 
     
    16421642    accessible.addAccessibleListener(new class() AccessibleAdapter { 
    16431643        public void getName(AccessibleEvent e) { 
    1644             char[] name = null; 
     1644            String name = null; 
    16451645            int childID = e.childID; 
    16461646            if (childID >= 0 && childID < items.length) { 
     
    16571657 
    16581658        public void getHelp(AccessibleEvent e) { 
    1659             char[] help = null; 
     1659            String help = null; 
    16601660            int childID = e.childID; 
    16611661            if (childID is ACC.CHILDID_SELF) { 
     
    16681668 
    16691669        public void getKeyboardShortcut(AccessibleEvent e) { 
    1670             char[] shortcut = null; 
     1670            String shortcut = null; 
    16711671            int childID = e.childID; 
    16721672            if (childID >= 0 && childID < items.length) { 
    1673                 char[] text = items[childID].getText(); 
     1673                String text = items[childID].getText(); 
    16741674                if (text !is null) { 
    16751675                    dchar mnemonic = _findMnemonic(text); 
     
    17391739 
    17401740        public void getDefaultAction(AccessibleControlEvent e) { 
    1741             char[] action = null; 
     1741            String action = null; 
    17421742            int childID = e.childID; 
    17431743            if (childID >= 0 && childID < items.length) { 
     
    38693869        } 
    38703870    } 
    3871     static const char[] id = "CTabFolder_showList_Index"; //$NON-NLS-1$ 
     3871    static const String id = "CTabFolder_showList_Index"; //$NON-NLS-1$ 
    38723872    for (int i = 0; i < items.length; i++) { 
    38733873        CTabItem tab = items[i]; 
     
    39133913 
    39143914void _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); 
    39173917    if (newTip is null || newTip!=oldTip) { 
    39183918        setToolTipText(newTip); 
     
    40464046    return true; 
    40474047} 
    4048 char[] _getToolTip(int x, int y) { 
     4048String _getToolTip(int x, int y) { 
    40494049    if (showMin && minRect.contains(x, y)) return minimized ? DWT.getMessage("SWT_Restore") : DWT.getMessage("SWT_Minimize"); //$NON-NLS-1$ //$NON-NLS-2$ 
    40504050    if (showMax && maxRect.contains(x, y)) return maximized ? DWT.getMessage("SWT_Restore") : DWT.getMessage("SWT_Maximize"); //$NON-NLS-1$ //$NON-NLS-2$