Changeset 77:205350493476

Show
Ignore:
Timestamp:
02/05/08 08:31:31 (1 year ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Accessible linkable dummy.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/Common.txt

    r76 r77  
    2929    FileDialog 
    3030 
     31    Accessible 
     32 
     33    dnd/* 
     34    custom/* 
    3135 
    3236 
    33  
    34  
  • dwt/accessibility/Accessible.d

    r52 r77  
    2121import dwt.widgets.Control; 
    2222class  Accessible { 
    23     public static Accessible internal_new_Accessible(Control control) ; 
    24     int AddRef(); 
    25     int Release(); 
    26     int QueryInterface(int, int); 
    27     void checkWidget(); 
    28     void setFocus(int); 
    29     void internal_dispose_Accessible(); 
    30     int internal_WM_GETOBJECT(int, int); 
    31     bool isValidThread(); 
    32     int Next(int, int, int); 
    33     int Skip(int); 
    34     void addAccessibleListener(AccessibleListener); 
    35     void addAccessibleControlListener(AccessibleControlListener); 
    36     void addAccessibleTextListener(AccessibleTextListener); 
    37     void removeAccessibleListener(AccessibleListener); 
    38     void removeAccessibleControlListener(AccessibleControlListener); 
    39     void removeAccessibleTextListener(AccessibleTextListener); 
    40     int childIDToOs(int); 
    41     void textCaretMoved(int); 
    42     void textChanged(int, int, int); 
    43     void textSelectionChanged(); 
    44     int accDoDefaultAction(int); 
    45     int accHitTest(int, int, int); 
    46     int accLocation(int, int, int, int, int); 
    47     int osToChildID(int); 
    48     int accNavigate(int, int, int); 
    49     int accSelect(int, int); 
    50     int get_accChild(int, int); 
    51     int get_accChildCount(int); 
    52     int get_accDefaultAction(int, int); 
    53     int get_accDescription(int, int); 
    54     int get_accFocus(int); 
    55     int get_accHelp(int, int); 
    56     int get_accHelpTopic(int, int, int); 
    57     int get_accKeyboardShortcut(int, int); 
    58     int get_accName(int, int); 
    59     int get_accParent(int); 
    60     int get_accRole(int, int); 
    61     int osToRole(int); 
    62     int roleToOs(int); 
    63     int get_accSelection(int); 
    64     int get_accState(int, int); 
    65     int osToState(int); 
    66     int stateToOs(int); 
    67     int get_accValue(int, int); 
    68     int put_accName(int, int); 
    69     int put_accValue(int, int); 
    70     int Clone(int); 
    71     Control getControl(); 
    72     void selectionChanged(); 
    73     int Reset(); 
     23    public static Accessible internal_new_Accessible(Control control) { 
     24        return new Accessible; 
     25    } 
     26//     int AddRef(); 
     27//     int Release(); 
     28//     int QueryInterface(int, int); 
     29//     void checkWidget(); 
     30//     void setFocus(int); 
     31    void internal_dispose_Accessible(){ 
     32    } 
     33    int internal_WM_GETOBJECT(int, int){ 
     34        assert(false); 
     35        return 0; 
     36    } 
     37//     bool isValidThread(); 
     38//     int Next(int, int, int); 
     39//     int Skip(int); 
     40    void addAccessibleListener(AccessibleListener){ 
     41    } 
     42    void addAccessibleControlListener(AccessibleControlListener){ 
     43    } 
     44//     void addAccessibleTextListener(AccessibleTextListener); 
     45//     void removeAccessibleListener(AccessibleListener); 
     46//     void removeAccessibleControlListener(AccessibleControlListener); 
     47//     void removeAccessibleTextListener(AccessibleTextListener); 
     48//     int childIDToOs(int); 
     49//     void textCaretMoved(int); 
     50//     void textChanged(int, int, int); 
     51//     void textSelectionChanged(); 
     52//     int accDoDefaultAction(int); 
     53//     int accHitTest(int, int, int); 
     54//     int accLocation(int, int, int, int, int); 
     55//     int osToChildID(int); 
     56//     int accNavigate(int, int, int); 
     57//     int accSelect(int, int); 
     58//     int get_accChild(int, int); 
     59//     int get_accChildCount(int); 
     60//     int get_accDefaultAction(int, int); 
     61//     int get_accDescription(int, int); 
     62//     int get_accFocus(int); 
     63//     int get_accHelp(int, int); 
     64//     int get_accHelpTopic(int, int, int); 
     65//     int get_accKeyboardShortcut(int, int); 
     66//     int get_accName(int, int); 
     67//     int get_accParent(int); 
     68//     int get_accRole(int, int); 
     69//     int osToRole(int); 
     70//     int roleToOs(int); 
     71//     int get_accSelection(int); 
     72//     int get_accState(int, int); 
     73//     int osToState(int); 
     74//     int stateToOs(int); 
     75//     int get_accValue(int, int); 
     76//     int put_accName(int, int); 
     77//     int put_accValue(int, int); 
     78//     int Clone(int); 
     79//     Control getControl(); 
     80//     void selectionChanged(); 
     81//     int Reset(); 
    7482    //int refCount; 
    7583    //int enumIndex; 
  • dwt/internal/win32/OS.d

    r75 r77  
    3838 
    3939 
     40/* 
     41Compile time versions 
     42    ANSI 
     43    WinCE 
     44 
     45    OS.IsUnicode 
     46    OS.IsWinCE 
     47 
     48    OS.IsHPC 
     49 
     50    OS.IsSP 
     51    OS.IsPPC 
     52    OS.IsWin95 
     53    OS.IsWinNT 
     54 
     55*/ 
     56 
    4057 
    4158 
     
    6683    public static BOOL IsWinNT; 
    6784 
    68     version(WinCE)
     85    version(WinCE)
    6986        public const static BOOL IsWinCE = true; 
    70         public static const BOOL IsHPC = false; //todo 
    71     }else{ 
     87        public static const BOOL IsHPC   = false; //todo 
     88    } 
     89    else { 
    7290        public const static BOOL IsWinCE = false; 
    73         public static const BOOL IsHPC = false; 
    74     } 
    75  
    76     public static const BOOL IsPPC_ = false; 
     91        public static const BOOL IsHPC   = false; 
     92    } 
     93 
     94    public static const BOOL IsPPC = false; 
    7795 
    7896    // PORTING_FIXME, is it Windows WFSP? 
    79     public static const BOOL IsSP_ = false; 
     97    public static const BOOL IsSP = false; 
    8098 
    8199    public static const BOOL IsDBLocale; 
  • dwt/widgets/Control.d

    r75 r77  
    33653365            * or VK_RIGHT. 
    33663366            */ 
    3367             if (OS.IsSP_) { 
     3367            if (OS.IsSP) { 
    33683368                if (key is OS.VK_LEFT || key is OS.VK_RIGHT) return false; 
    33693369            } 
     
    36183618int widgetExtStyle () { 
    36193619    int bits = 0; 
    3620     if (!OS.IsPPC_) { 
     3620    if (!OS.IsPPC) { 
    36213621        if ((style & DWT.BORDER) !is 0) bits |= OS.WS_EX_CLIENTEDGE; 
    36223622    } 
     
    36473647//      if ((style & DWT.FLAT) !is 0) bits |= OS.WS_BORDER; 
    36483648//  } 
    3649     if (OS.IsPPC_) { 
     3649    if (OS.IsPPC) { 
    36503650        if ((style & DWT.BORDER) !is 0) bits |= OS.WS_BORDER; 
    36513651    } 
  • dwt/widgets/Decorations.d

    r54 r77  
    192192            OS.SystemParametersInfo (OS.SPI_GETWORKAREA, 0, &rect, 0); 
    193193            int width = rect.right - rect.left, height = rect.bottom - rect.top; 
    194             if (OS.IsPPC_) { 
     194            if (OS.IsPPC) { 
    195195                /* Leave space for the menu bar */ 
    196196                if (menuBar !is null) { 
     
    396396    MenuItem [] items = display.items; 
    397397    if (menuBar is null || items is null) { 
    398         if (!OS.IsPPC_) return; 
     398        if (!OS.IsPPC) return; 
    399399        maxAccel = 1; 
    400400    } else { 
    401         maxAccel = OS.IsPPC_ ? items.length + 1 : items.length; 
     401        maxAccel = OS.IsPPC ? items.length + 1 : items.length; 
    402402    } 
    403403    ACCEL accel; 
     
    424424        } 
    425425    } 
    426     if (OS.IsPPC_) { 
     426    if (OS.IsPPC) { 
    427427        /* 
    428428        * Note on WinCE PPC.  Close the shell when user taps CTRL-Q. 
     
    11731173            } 
    11741174        } else { 
    1175             if (OS.IsPPC_) { 
     1175            if (OS.IsPPC) { 
    11761176                /* 
    11771177                * Note in WinCE PPC.  The menu bar is a separate popup window. 
     
    15551555    bits &= ~OS.WS_EX_CLIENTEDGE; 
    15561556    if ((style & DWT.NO_TRIM) !is 0) return bits; 
    1557     if (OS.IsPPC_) { 
     1557    if (OS.IsPPC) { 
    15581558        if ((style & DWT.CLOSE) !is 0) bits |= OS.WS_EX_CAPTIONOKBTN; 
    15591559    } 
     
    15921592        * It does not set the WS_THICKFRAME style. 
    15931593        */ 
    1594         if (!OS.IsPPC_) bits |= OS.WS_THICKFRAME; 
     1594        if (!OS.IsPPC) bits |= OS.WS_THICKFRAME; 
    15951595    } else { 
    15961596        if ((style & DWT.BORDER) is 0) bits |= OS.WS_BORDER; 
     
    15981598 
    15991599    /* Set the system menu and close box bits */ 
    1600     if (!OS.IsPPC_ && !OS.IsSP_) { 
     1600    if (!OS.IsPPC && !OS.IsSP) { 
    16011601        if ((style & DWT.CLOSE) !is 0) bits |= OS.WS_SYSMENU; 
    16021602    } 
     
    16871687    if (result !is LRESULT.NULL) return result; 
    16881688    static if( OS.IsWinCE ){ 
    1689         if (OS.IsSP_) { 
     1689        if (OS.IsSP) { 
    16901690            /* 
    16911691            * Feature on WinCE SP.  The Back key is either used to close 
  • dwt/widgets/Menu.d

    r56 r77  
    352352        *    2 buttons 
    353353        */ 
    354         static if (OS.IsSP_) { 
     354        static if (OS.IsSP) { 
    355355            /* Determine type of menubar */ 
    356356            int nToolBarId; 
     
    446446    display.addMenuItem (item); 
    447447    bool success = false; 
    448     if ((OS.IsPPC_ || OS.IsSP_) && hwndCB !is null) { 
    449         if (OS.IsSP_) return; 
     448    if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 
     449        if (OS.IsSP) return; 
    450450        TBBUTTON lpButton; 
    451451        lpButton.idCommand = item.id; 
     
    542542void destroyItem (MenuItem item) { 
    543543    if (OS.IsWinCE) { 
    544         if ((OS.IsPPC_ || OS.IsSP_) && hwndCB !is null) { 
    545             if (OS.IsSP_) { 
     544        if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 
     545            if (OS.IsSP) { 
    546546                redraw(); 
    547547                return; 
     
    772772    checkWidget (); 
    773773    int id = 0; 
    774     if ((OS.IsPPC_ || OS.IsSP_) && hwndCB !is null) { 
    775         static if (OS.IsPPC_) { 
     774    if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 
     775        static if (OS.IsPPC) { 
    776776            TBBUTTON lpButton; 
    777777            int result = OS.SendMessage (hwndCB, OS.TB_GETBUTTON, index, &lpButton); 
     
    779779            id = lpButton.idCommand; 
    780780        } 
    781         if (OS.IsSP_) { 
     781        if (OS.IsSP) { 
    782782            if (!(0 <= index && index <= 1)) error (DWT.ERROR_CANNOT_GET_ITEM); 
    783783            id = index is 0 ? id0 : id1; 
     
    828828public MenuItem [] getItems () { 
    829829    checkWidget (); 
    830     if ((OS.IsPPC_ || OS.IsSP_) && hwndCB !is null) { 
    831         if (OS.IsSP_) { 
     830    if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 
     831        if (OS.IsSP) { 
    832832            MenuItem [] result = new MenuItem [2]; 
    833833            result[0] = display.getMenuItem (id0); 
     
    868868int GetMenuItemCount (HANDLE handle) { 
    869869    if (OS.IsWinCE) { 
    870         if ((OS.IsPPC_ || OS.IsSP_) && hwndCB !is null) { 
    871             return OS.IsSP_ ? 2 : OS.SendMessage (hwndCB, OS.TB_BUTTONCOUNT, 0, 0); 
     870        if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 
     871            return OS.IsSP ? 2 : OS.SendMessage (hwndCB, OS.TB_BUTTONCOUNT, 0, 0); 
    872872        } 
    873873        int count = 0; 
     
    10411041    if (item.isDisposed()) error(DWT.ERROR_INVALID_ARGUMENT); 
    10421042    if (item.parent !is this) return -1; 
    1043     if ((OS.IsPPC_ || OS.IsSP_) && hwndCB !is null) { 
    1044         if (OS.IsPPC_) { 
     1043    if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 
     1044        if (OS.IsPPC) { 
    10451045            return OS.SendMessage (hwndCB, OS.TB_COMMANDTOINDEX, item.id, 0); 
    10461046        } 
    1047         if (OS.IsSP_) { 
     1047        if (OS.IsSP) { 
    10481048            if (item.id is id0) return 0; 
    10491049            if (item.id is id1) return 1; 
     
    11251125        MenuItem item = items [i]; 
    11261126        if (item !is null && !item.isDisposed ()) { 
    1127             if (OS.IsPPC_ && hwndCB !is null) { 
     1127            if (OS.IsPPC && hwndCB !is null) { 
    11281128                item.dispose (); 
    11291129            } else { 
     
    11551155    if (hBrush is null) OS.DeleteObject (hBrush); 
    11561156    hBrush = null; 
    1157     if (OS.IsPPC_ && hwndCB !is null) { 
     1157    if (OS.IsPPC && hwndCB !is null) { 
    11581158        if (imageList !is null) { 
    11591159            OS.SendMessage (hwndCB, OS.TB_SETIMAGELIST, 0, 0); 
     
    14381438 
    14391439void update () { 
    1440     if (OS.IsPPC_ || OS.IsSP_) return; 
     1440    if (OS.IsPPC || OS.IsSP) return; 
    14411441    static if (OS.IsHPC) { 
    14421442        /* 
  • dwt/widgets/MenuItem.d

    r59 r77  
    399399public bool getEnabled () { 
    400400    checkWidget (); 
    401     if ((OS.IsPPC_ || OS.IsSP_) && parent.hwndCB !is null) { 
     401    if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) { 
    402402        auto hwndCB = parent.hwndCB; 
    403403        TBBUTTONINFO info; 
     
    479479    checkWidget (); 
    480480    if ((style & (DWT.CHECK | DWT.RADIO)) is 0) return false; 
    481     if ((OS.IsPPC_ || OS.IsSP_) && parent.hwndCB !is null) return false; 
     481    if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) return false; 
    482482    auto hMenu = parent.handle; 
    483483    MENUITEMINFO info; 
     
    523523 
    524524void releaseMenu () { 
    525     if (!OS.IsSP_) setMenu (null); 
     525    if (!OS.IsSP) setMenu (null); 
    526526    menu = null; 
    527527} 
     
    664664public void setEnabled (bool enabled) { 
    665665    checkWidget (); 
    666     if ((OS.IsPPC_ || OS.IsSP_) && parent.hwndCB !is null) { 
     666    if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) { 
    667667        auto hwndCB = parent.hwndCB; 
    668668        TBBUTTONINFO info; 
     
    734734    super.setImage (image); 
    735735    static if (OS.IsWinCE) { 
    736         if ((OS.IsPPC_ || OS.IsSP_) && parent.hwndCB !is null) { 
     736        if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) { 
    737737            int hwndCB = parent.hwndCB; 
    738738            TBBUTTONINFO info; 
     
    812812 
    813813    /* Assign the new menu in the OS */ 
    814     if ((OS.IsPPC_ || OS.IsSP_) && parent.hwndCB !is null) { 
    815         if (OS.IsPPC_) { 
     814    if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) { 
     815        if (OS.IsPPC) { 
    816816            HWND hwndCB = parent.hwndCB; 
    817817            HMENU hMenu = menu is null ? null : menu.handle; 
    818818            OS.SendMessage (hwndCB, OS.SHCMBM_SETSUBMENU, id, hMenu); 
    819819        } 
    820         if (OS.IsSP_) error (DWT.ERROR_CANNOT_SET_MENU); 
     820        if (OS.IsSP) error (DWT.ERROR_CANNOT_SET_MENU); 
    821821    } else { 
    822822        /* 
     
    952952    checkWidget (); 
    953953    if ((style & (DWT.CHECK | DWT.RADIO)) is 0) return; 
    954     if ((OS.IsPPC_ || OS.IsSP_) && parent.hwndCB !is null) return; 
     954    if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) return; 
    955955    auto hMenu = parent.handle; 
    956956    if (OS.IsWinCE) { 
     
    10311031    TCHAR* pszText; 
    10321032    bool success = false; 
    1033     if ((OS.IsPPC_ || OS.IsSP_) && parent.hwndCB !is null) { 
     1033    if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) { 
    10341034        /* 
    10351035        * Bug in WinCE PPC.  Tool items on the menubar don't resize 
  • dwt/widgets/ProgressBar.d

    r61 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.ProgressBar; 
  • dwt/widgets/Sash.d

    r62 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.Sash; 
  • dwt/widgets/Scale.d

    r63 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.Scale; 
  • dwt/widgets/ScrollBar.d

    r63 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.ScrollBar; 
  • dwt/widgets/Scrollable.d

    r54 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.Scrollable; 
  • dwt/widgets/Shell.d

    r67 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.Shell; 
     
    584586        SetWindowPos (handle, null, 0, 0, 0, 0, flags); 
    585587        static if (OS.IsWinCE) _setMaximized (true); 
    586         static if (OS.IsPPC_) { 
     588        static if (OS.IsPPC) { 
    587589            psai = new SHACTIVATEINFO (); 
    588590            psai.cbSize = SHACTIVATEINFO.sizeof; 
     
    17481750 
    17491751override char[] windowClass () { 
    1750     static if (OS.IsSP_) return DialogClass; 
     1752    static if (OS.IsSP) return DialogClass; 
    17511753    if ((style & DWT.TOOL) !is 0) { 
    17521754        int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX | DWT.BORDER | DWT.RESIZE; 
     
    17581760override int windowProc () { 
    17591761    if (windowProc_ !is null) return cast(int) windowProc_; 
    1760     static if (OS.IsSP_) return cast(int) DialogProc; 
     1762    static if (OS.IsSP) return cast(int) DialogProc; 
    17611763    if ((style & DWT.TOOL) !is 0) { 
    17621764        int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX | DWT.BORDER | DWT.RESIZE; 
     
    18321834 
    18331835override LRESULT WM_ACTIVATE (int wParam, int lParam) { 
    1834     static if (OS.IsPPC_) { 
     1836    static if (OS.IsPPC) { 
    18351837        /* 
    18361838        * Note: this does not work when we get WM_ACTIVATE prior 
     
    18801882 
    18811883override LRESULT WM_COMMAND (int wParam, int lParam) { 
    1882     static if (OS.IsPPC_) { 
     1884    static if (OS.IsPPC) { 
    18831885        /* 
    18841886        * Note in WinCE PPC:  Close the Shell when the "Done Button" has 
     
    19021904    * came from a real Windows menu, not a tool bar. 
    19031905    */ 
    1904     static if (OS.IsPPC_ || OS.IsSP_) { 
     1906    static if (OS.IsPPC || OS.IsSP) { 
    19051907        if (menuBar !is null) { 
    19061908            auto hwndCB = menuBar.hwndCB; 
     
    22132215    LRESULT result = super.WM_SETTINGCHANGE (wParam, lParam); 
    22142216    if (result !is LRESULT.NULL) return result; 
    2215     static if (OS.IsPPC_) { 
     2217    static if (OS.IsPPC) { 
    22162218        if (wParam is OS.SPI_SETSIPINFO) { 
    22172219            /* 
  • dwt/widgets/Slider.d

    r64 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.Slider; 
  • dwt/widgets/Spinner.d

    r66 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.Spinner; 
  • dwt/widgets/TabFolder.d

    r66 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.TabFolder; 
     
    182184    * tabs to be on the bottom for tab folders on PPC. 
    183185    */ 
    184     if (OS.IsPPC_) { 
     186    if (OS.IsPPC) { 
    185187        if ((style & DWT.TOP) is 0) style |= DWT.BOTTOM; 
    186188    } 
     
    268270 
    269271    /* Enable the flat look for tab folders on PPC */ 
    270     if (OS.IsPPC_) { 
     272    if (OS.IsPPC) { 
    271273        OS.SendMessage (handle, OS.CCM_SETVERSION, 0x020c /*COMCTL32_VERSION*/, 0); 
    272274    } 
  • dwt/widgets/TabItem.d

    r66 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.TabItem; 
  • dwt/widgets/Table.d

    r73 r77  
    61176117            * message. 
    61186118            */ 
    6119             if (OS.IsPPC_) { 
     6119            if (OS.IsPPC) { 
    61206120                bool hasMenu = menu !is null && !menu.isDisposed (); 
    61216121                if (!hasMenu && !hooks (DWT.MenuDetect)) return LRESULT.ONE; 
     
    61236123            break; 
    61246124        case OS.GN_CONTEXTMENU: 
    6125             if (OS.IsPPC_) { 
     6125            if (OS.IsPPC) { 
    61266126                bool hasMenu = menu !is null && !menu.isDisposed (); 
    61276127                if (hasMenu || hooks (DWT.MenuDetect)) { 
  • dwt/widgets/Text.d

    r73 r77  
    21182118    * returned by the text window proc on other versions of Windows. 
    21192119    */ 
    2120     if (OS.IsPPC_) { 
     2120    if (OS.IsPPC) { 
    21212121        if ((style & DWT.MULTI) !is 0 && (style & DWT.READ_ONLY) is 0 && lParam is 0) { 
    21222122            return cast(LRESULT) (OS.DLGC_HASSETSEL | OS.DLGC_WANTALLKEYS | OS.DLGC_WANTCHARS); 
     
    22152215override LRESULT WM_LBUTTONDOWN (int wParam, int lParam) { 
    22162216    static if( OS.IsWinCE ) 
    2217     if (OS.IsPPC_) { 
     2217    if (OS.IsPPC) { 
    22182218        LRESULT result = LRESULT.NULL; 
    22192219        Display display = this.display; 
  • dwt/widgets/Tree.d

    r75 r77  
    71917191            * message. 
    71927192            */ 
    7193             if (OS.IsPPC_) { 
     7193            if (OS.IsPPC) { 
    71947194                bool hasMenu = menu !is null && !menu.isDisposed (); 
    71957195                if (!hasMenu && !hooks (DWT.MenuDetect)) return LRESULT.ONE; 
     
    71987198        } 
    71997199        case OS.GN_CONTEXTMENU: { 
    7200             if (OS.IsPPC_) { 
     7200            if (OS.IsPPC) { 
    72017201                bool hasMenu = menu !is null && !menu.isDisposed (); 
    72027202                if (hasMenu || hooks (DWT.MenuDetect)) { 
  • dwt/widgets/Widget.d

    r73 r77  
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     10 * Port to the D programming language: 
     11 *     Frank Benoit <benoit@tionex.de> 
    1012 *******************************************************************************/ 
    1113module dwt.widgets.Widget; 
     
    17811783    } 
    17821784    static if( OS.IsWinCE ){ 
    1783         if (OS.IsPPC_) { 
     1785        if (OS.IsPPC) { 
    17841786            /* 
    17851787            * Note: On WinCE PPC, only attempt to recognize the gesture for