Changeset 187:bcdc37794717

Show
Ignore:
Timestamp:
03/10/08 12:08:22 (9 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Reverted changes from previous wrong reverting changes:
See: -r026ce3b05f57, -r4d06074bb1af, -rc4643827733c

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/dwthelper/utils.d

    r183 r187  
    4646alias ValueWrapperT!(bool)    ValueWrapperBool; 
    4747alias ValueWrapperT!(int)     ValueWrapperInt; 
     48alias ValueWrapperT!(long)    ValueWrapperLong; 
    4849alias ArrayWrapperT!(byte)    ArrayWrapperByte; 
    4950alias ArrayWrapperT!(int)     ArrayWrapperInt; 
     
    321322} 
    322323 
     324public char* toStringzValidPtr( char[] src ){ 
     325    if( src ){ 
     326        return src.toStringz(); 
     327    } 
     328    else{ 
     329        static const char[] nullPtr = "\0"; 
     330        return nullPtr.ptr; 
     331    } 
     332} 
     333 
    323334static char[] toHex(uint value, bool prefix = true, int radix = 8){ 
    324335    return tango.text.convert.Integer.toString( 
  • dwt/layout/FormAttachment.d

    r184 r187  
    186186 */ 
    187187public this (int numerator, int denominator, int offset) { 
    188     if (denominator == 0) DWT.error (DWT.ERROR_CANNOT_BE_ZERO); 
     188    if (denominator is 0) DWT.error (DWT.ERROR_CANNOT_BE_ZERO); 
    189189    this.numerator = numerator; 
    190190    this.denominator = denominator; 
     
    245245        n = temp; 
    246246    } 
    247     while (n != 0){ 
     247    while (n !is 0){ 
    248248        temp = m; 
    249249        m = n; 
     
    284284 
    285285int solveX (int value) { 
    286     if (denominator == 0) DWT.error (DWT.ERROR_CANNOT_BE_ZERO); 
     286    if (denominator is 0) DWT.error (DWT.ERROR_CANNOT_BE_ZERO); 
    287287    return ((numerator * value) / denominator) + offset; 
    288288} 
    289289 
    290290int solveY (int value) { 
    291     if (numerator == 0) DWT.error (DWT.ERROR_CANNOT_BE_ZERO); 
     291    if (numerator is 0) DWT.error (DWT.ERROR_CANNOT_BE_ZERO); 
    292292    return (value - offset) * denominator / numerator; 
    293293} 
     
    299299 * @return a string representation of the FormAttachment 
    300300 */ 
    301 override public char[] toString () { 
    302     char[] string = control != null ? control.toString () : Format( "{}/{}", numerator, denominator ); 
     301public override char[] toString () { 
     302    char[] string = control !is null ? control.toString () : Format( "{}/{}", numerator, denominator ); 
    303303    return Format("{{y = ({})x + {}}", string, ( offset >= 0 ? Format(")x + {}", offset ) : Format( ")x - {}", -offset))); 
    304304} 
  • dwt/widgets/Label.d

    r185 r187  
    396396    checkWidget (); 
    397397    if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
    398     if ((style & DWT.SEPARATOR) !is 0) return; 
     398    // DWT extensions allow null argument 
     399    //if ((style & DWT.SEPARATOR) !is 0) return; 
    399400    /* 
    400401    * Feature in Windows.  For some reason, SetWindowText() for