- Timestamp:
- 08/04/08 13:41:37 (5 months ago)
- Files:
-
- trunk/win32/dfl/application.d (modified) (1 diff)
- trunk/win32/dfl/base.d (modified) (4 diffs)
- trunk/win32/dfl/combobox.d (modified) (1 diff)
- trunk/win32/dfl/control.d (modified) (3 diffs)
- trunk/win32/dfl/drawing.d (modified) (5 diffs)
- trunk/win32/dfl/internal/dlib.d (modified) (10 diffs)
- trunk/win32/dfl/listview.d (modified) (6 diffs)
- trunk/win32/dfl/menu.d (modified) (2 diffs)
- trunk/win32/dfl/registry.d (modified) (2 diffs)
- trunk/win32/dfl/statusbar.d (modified) (1 diff)
- trunk/win32/dfl/tabcontrol.d (modified) (2 diffs)
- trunk/win32/dfl/toolbar.d (modified) (2 diffs)
- trunk/win32/dfl/treeview.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/win32/dfl/application.d
r64 r72 139 139 // Compatibility with previous DFL versions. 140 140 // Set version=DFL_NO_COMPAT to disable. 141 deprecatedenum DflCompat141 enum DflCompat 142 142 { 143 143 NONE = 0, trunk/win32/dfl/base.d
r54 r72 55 55 56 56 57 override intopEquals(Object o)57 override Dequ opEquals(Object o) 58 58 { 59 59 return value == getObjectString(o); // ? … … 61 61 62 62 63 intopEquals(StringObject s)63 Dequ opEquals(StringObject s) 64 64 { 65 65 return value == s.value; … … 1318 1318 1319 1319 1320 override intopEquals(Object o)1320 override Dequ opEquals(Object o) 1321 1321 { 1322 1322 Cursor cur = cast(Cursor)o; … … 1327 1327 1328 1328 1329 intopEquals(Cursor cur)1329 Dequ opEquals(Cursor cur) 1330 1330 { 1331 1331 return hcur == cur.hcur; trunk/win32/dfl/combobox.d
r54 r72 951 951 case CB_DELETESTRING: 952 952 icollection.removeAt(msg.wParam); 953 msg.result = icollection. count;953 msg.result = icollection.length; 954 954 return; 955 955 trunk/win32/dfl/control.d
r69 r72 3296 3296 3297 3297 3298 override intopEquals(Object o)3298 override Dequ opEquals(Object o) 3299 3299 { 3300 3300 Control ctrl = cast(Control)o; … … 3305 3305 3306 3306 3307 intopEquals(Control ctrl)3307 Dequ opEquals(Control ctrl) 3308 3308 { 3309 3309 if(!isHandleCreated) … … 5794 5794 5795 5795 5796 package final void _ControlWndProc(inout Message msg)5797 {5798 typeof(Control).wndProc(msg);5799 }5800 5801 5802 package final void _Control_wndProc(inout Message msg)5803 {5804 Control.wndProc(msg);5805 }5806 5807 5808 5796 package final void doShow() 5809 5797 { trunk/win32/dfl/drawing.d
r67 r72 44 44 45 45 /// 46 intopEquals(Point pt)46 Dequ opEquals(Point pt) 47 47 { 48 48 return x == pt.x && y == pt.y; … … 126 126 127 127 /// 128 intopEquals(Size sz)128 Dequ opEquals(Size sz) 129 129 { 130 130 return width == sz.width && height == sz.height; … … 281 281 282 282 /// 283 intopEquals(Rect r)283 Dequ opEquals(Rect r) 284 284 { 285 285 return x == r.x && y == r.y && … … 3569 3569 3570 3570 3571 override intopEquals(Object o)3571 override Dequ opEquals(Object o) 3572 3572 { 3573 3573 Region rgn = cast(Region)o; … … 3578 3578 3579 3579 3580 intopEquals(Region rgn)3580 Dequ opEquals(Region rgn) 3581 3581 { 3582 3582 return hrgn == rgn.hrgn; trunk/win32/dfl/internal/dlib.d
r54 r72 1 1 /* 2 Copyright (C) 2007 Christopher E. Miller2 Copyright (C) 2007-2008 Christopher E. Miller 3 3 4 4 This software is provided 'as-is', without any express or implied … … 41 41 version = DFL_TANGObefore0994; 42 42 version = DFL_TANGObefore0995; 43 version = DFL_TANGObefore0996; 44 version = DFL_TANGObefore0997; 43 45 } 44 46 else version(DFL_TANGO098rc2) … … 47 49 version = DFL_TANGObefore0994; 48 50 version = DFL_TANGObefore0995; 51 version = DFL_TANGObefore0996; 52 version = DFL_TANGObefore0997; 49 53 } 50 54 else version(DFL_TANGObefore099rc3) … … 52 56 version = DFL_TANGObefore0994; 53 57 version = DFL_TANGObefore0995; 58 version = DFL_TANGObefore0996; 59 version = DFL_TANGObefore0997; 54 60 } 55 61 else version(DFL_TANGO0992) … … 57 63 version = DFL_TANGObefore0994; 58 64 version = DFL_TANGObefore0995; 65 version = DFL_TANGObefore0996; 66 version = DFL_TANGObefore0997; 59 67 } 60 68 else version(DFL_TANGO0993) … … 62 70 version = DFL_TANGObefore0994; 63 71 version = DFL_TANGObefore0995; 72 version = DFL_TANGObefore0996; 73 version = DFL_TANGObefore0997; 64 74 } 65 75 else version(DFL_TANGO_0994) 66 76 { 67 77 version = DFL_TANGObefore0995; 78 version = DFL_TANGObefore0996; 79 version = DFL_TANGObefore0997; 68 80 } 69 81 else version(DFL_TANGO_0995) 70 82 { 71 } 83 version = DFL_TANGObefore0996; 84 version = DFL_TANGObefore0997; 85 } 86 else version(DFL_TANGO_0996) 87 { 88 version = DFL_TANGObefore0997; 89 } 90 else version(DFL_TANGO_0997) 91 { 92 } 93 94 95 alias int Dequ; 72 96 73 97 … … 273 297 274 298 275 private import tango.io.FileConst; 276 277 alias tango.io.FileConst.FileConst.NewlineString nativeLineSeparatorString; 278 279 alias tango.io.FileConst.FileConst.PathSeparatorString nativePathSeparatorString; 299 version(DFL_TANGObefore0997) 300 { 301 private import tango.io.FileConst; 302 303 alias tango.io.FileConst.FileConst.NewlineString nativeLineSeparatorString; 304 305 alias tango.io.FileConst.FileConst.PathSeparatorString nativePathSeparatorString; 306 } 307 else 308 { 309 private import tango.io.model.IFile; 310 311 alias tango.io.model.IFile.FileConst.NewlineString nativeLineSeparatorString; 312 313 alias tango.io.model.IFile.FileConst.PathSeparatorString nativePathSeparatorString; 314 } 280 315 281 316 … … 312 347 Dstring uintToHexString(uint num) 313 348 { 314 char[16] buf; 315 return tango.text.convert.Integer.format!(char, uint)(buf, num, 316 tango.text.convert.Integer.Style.HexUpper).dup; 349 version(DFL_TANGObefore0997) 350 { 351 char[16] buf; 352 return tango.text.convert.Integer.format!(char, uint)(buf, num, 353 tango.text.convert.Integer.Style.HexUpper).dup; 354 } 355 else 356 { 357 char[16] buf; 358 return tango.text.convert.Integer.format(buf, num, "X").dup; 359 } 317 360 } 318 361 319 362 Dstring intToString(int num) 320 363 { 321 char[16] buf; 322 return tango.text.convert.Integer.format!(char, uint)(buf, num).dup; 364 365 version(DFL_TANGObefore0997) 366 { 367 char[16] buf; 368 return tango.text.convert.Integer.format!(char, uint)(buf, num).dup; 369 } 370 else 371 { 372 char[16] buf; 373 return tango.text.convert.Integer.format(buf, num, "d").dup; 374 } 323 375 } 324 376 … … 367 419 { 368 420 public import std.thread, std.traits; 421 422 423 alias ReturnType!(Object.opEquals) Dequ; // Since D2 changes mid-stream. 369 424 370 425 … … 472 527 //return s.ptr; 473 528 return cast(char*)s.ptr; // Needed in D2. 474 return stringToStringz(s); 529 //return stringToStringz(s); 530 return cast(char*)stringToStringz(s); // Needed in D2. 475 531 } 476 532 trunk/win32/dfl/listview.d
r71 r72 128 128 129 129 130 override intopEquals(Object o)130 override Dequ opEquals(Object o) 131 131 { 132 132 return text == getObjectString(o); … … 134 134 135 135 136 intopEquals(Dstring val)136 Dequ opEquals(Dstring val) 137 137 { 138 138 return text == val; … … 287 287 288 288 289 override intopEquals(Object o)289 override Dequ opEquals(Object o) 290 290 { 291 291 return text == getObjectString(o); … … 293 293 294 294 295 intopEquals(Dstring val)295 Dequ opEquals(Dstring val) 296 296 { 297 297 return text == val; … … 504 504 505 505 506 override intopEquals(Object o)506 override Dequ opEquals(Object o) 507 507 { 508 508 return text == getObjectString(o); … … 510 510 511 511 512 intopEquals(Dstring val)512 Dequ opEquals(Dstring val) 513 513 { 514 514 return text == val; trunk/win32/dfl/menu.d
r70 r72 525 525 526 526 527 override intopEquals(Object o)527 override Dequ opEquals(Object o) 528 528 { 529 529 return text == getObjectString(o); … … 531 531 532 532 533 intopEquals(Dstring val)533 Dequ opEquals(Dstring val) 534 534 { 535 535 return text == val; trunk/win32/dfl/registry.d
r54 r72 870 870 871 871 872 override intopEquals(Object o)872 override Dequ opEquals(Object o) 873 873 { 874 874 RegistryKey rk; … … 881 881 882 882 883 intopEquals(RegistryKey rk)883 Dequ opEquals(RegistryKey rk) 884 884 { 885 885 return hkey == rk.hkey; trunk/win32/dfl/statusbar.d
r68 r72 63 63 64 64 65 override intopEquals(Object o)65 override Dequ opEquals(Object o) 66 66 { 67 67 return _txt == getObjectString(o); // ? 68 68 } 69 69 70 intopEquals(StatusBarPanel pnl)70 Dequ opEquals(StatusBarPanel pnl) 71 71 { 72 72 return _txt == pnl._txt; 73 73 } 74 74 75 intopEquals(Dstring val)75 Dequ opEquals(Dstring val) 76 76 { 77 77 return _txt == val; trunk/win32/dfl/tabcontrol.d
r54 r72 52 52 53 53 54 override intopEquals(Object o)54 override Dequ opEquals(Object o) 55 55 { 56 56 return text == getObjectString(o); … … 58 58 59 59 60 intopEquals(Dstring val)60 Dequ opEquals(Dstring val) 61 61 { 62 62 return text == val; trunk/win32/dfl/toolbar.d
r64 r72 115 115 116 116 117 override intopEquals(Object o)117 override Dequ opEquals(Object o) 118 118 { 119 119 return text == getObjectString(o); … … 121 121 122 122 123 intopEquals(Dstring val)123 Dequ opEquals(Dstring val) 124 124 { 125 125 return text == val; trunk/win32/dfl/treeview.d
r65 r72 603 603 604 604 605 override intopEquals(Object o)605 override Dequ opEquals(Object o) 606 606 { 607 607 return 0 == stringICmp(ttext, getObjectString(o)); // ? 608 608 } 609 609 610 intopEquals(TreeNode node)610 Dequ opEquals(TreeNode node) 611 611 { 612 612 return 0 == stringICmp(ttext, node.ttext); 613 613 } 614 614 615 intopEquals(Dstring val)615 Dequ opEquals(Dstring val) 616 616 { 617 617 return 0 == stringICmp(ttext, val);
