Changeset 22

Show
Ignore:
Timestamp:
12/05/06 20:44:34 (2 years ago)
Author:
lindquist
Message:

Fixed dialog.messageDialog for Motif.
Fixed new enabled (sensitive) property for Motif.
Updated GTK/Motif brf files to GDC style.
Updated docs for latest changes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/minwin/dialog.d

    r17 r22  
    504504        processSimpleDialog(dialog,&answer); 
    505505    } 
    506     void messageDialog(AbstractWindow owner, char[] text, char[] title,...) { 
    507         //        MessageBoxA(owner.peer, text, title, 
    508         //      MB_OK | MB_ICONINFORMATION); 
     506    void messageDialog(AbstractWindow owner, char[] text, char[] title) { 
     507        Arg[4] args; 
     508        int n; 
     509        char* str = toStringz(text); 
     510        setupSimpleDialog(args,n,str); 
     511        Widget dialog = XmCreateMessageDialog (owner.peer, title.ptr, args, n); 
     512        int answer; 
     513        processSimpleDialog(dialog,&answer); 
    509514    } 
    510515    extern (C) 
  • trunk/minwin/docs/minwin/button.d

    r14 r22  
    6262    AbstractToggleButton[] buttons; 
    6363    /// Adds the button to the group of buttons managed by this ToggleGroup. 
    64     void addButton(AbstractToggleButton b); 
     64    void addButton(AbstractToggleButton[] b ...); 
    6565    /// Select c and deselect the other buttons in the group. 
    6666    void select(Component c); 
  • trunk/minwin/docs/minwin/component.d

    r14 r22  
    5050    /// Read/write property for the visibility of the component and its children. 
    5151    bool visible; 
     52    /// Read/write property to enable/disable the component and its children. 
     53    bool enabled; 
    5254    /** 
    5355    Get the native object that serves as the parent to the peers of the children of this component. 
  • trunk/minwin/docs/minwin/group.d

    r16 r22  
    1010    /// Read/write property to show or hide all the components in the group. The group is visible if any of the children are visible. 
    1111    bool visible; 
     12    /// Read/write property to enable or disable all the components in the group. The group is enabled if any of the children are enabled. 
     13    bool enabled; 
    1214} 
    1315 
  • trunk/minwin/gtk.brf

    r5 r22  
    1 all.d  
    2 -allobj  
    3 -Tlibminwin_gtk  
    4 -I..  
    5 -version=GTK  
    6 -lib  
    7 -g  
     1all.d 
     2-allobj 
     3-Tlibminwin_gtk 
     4-I.. 
     5-fversion=GTK 
     6-lib 
     7-g 
  • trunk/minwin/motif.brf

    r5 r22  
    1 all.d  
    2 -allobj  
    3 -Tlibminwin_motif  
    4 -I../  
    5 -version=Motif  
    6 -lib  
    7 -g  
     1all.d 
     2-allobj 
     3-Tlibminwin_motif 
     4-I../ 
     5-fversion=Motif 
     6-lib 
     7-g 
  • trunk/minwin/motif.d

    r11 r22  
    124124void XtDestroyWidget(Widget w); 
    125125void XtSetSensitive(Widget w, Boolean b); 
     126Boolean XtIsSensitive(Widget w); 
    126127void XtSetKeyboardFocus(Widget root, Widget w); 
    127128 
  • trunk/minwin/peerimpl.d

    r21 r22  
    161161 
    162162        bool enabled() { 
    163             // TODO 
    164             return true; 
     163            return cast(bool)XtIsSensitive(peer); 
    165164        } 
    166165        void enabled(bool b) { 
    167             // TODO 
     166            XtSetSensitive(peer, cast(Boolean)b); 
    168167        } 
    169168 
  • trunk/minwin/window.d

    r21 r22  
    601601        } 
    602602 
     603        void enabled(bool b) { 
     604            XtSetSensitive(peer, cast(Boolean)b); 
     605        } 
     606 
     607        bool enabled() { 
     608            return cast(bool)XtIsSensitive(peer); 
     609        } 
     610 
    603611        void backgroundColor(Color c) { 
    604612            // TODO