Changeset 216:997624cece6a
- Timestamp:
- 04/06/08 16:24:08
(5 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
renames init() to init_() to avoid problems in tango collections in jface port
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r194 |
r216 |
|
| 80 | 80 | if (device is null) device = Device.getDevice(); |
|---|
| 81 | 81 | if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 82 | | init(device, red, green, blue); |
|---|
| | 82 | init_(device, red, green, blue); |
|---|
| 83 | 83 | if (device.tracking) device.new_Object(this); |
|---|
| 84 | 84 | } |
|---|
| … | … | |
| 110 | 110 | if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 111 | 111 | if (rgb is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 112 | | init(device, rgb.red, rgb.green, rgb.blue); |
|---|
| | 112 | init_(device, rgb.red, rgb.green, rgb.blue); |
|---|
| 113 | 113 | if (device.tracking) device.new_Object(this); |
|---|
| 114 | 114 | } |
|---|
| … | … | |
| 251 | 251 | } |
|---|
| 252 | 252 | |
|---|
| 253 | | void init(Device device, int red, int green, int blue) { |
|---|
| | 253 | void init_(Device device, int red, int green, int blue) { |
|---|
| 254 | 254 | this.device = device; |
|---|
| 255 | 255 | if ((red > 255) || (red < 0) || |
|---|
| r200 |
r216 |
|
| 174 | 174 | } |
|---|
| 175 | 175 | create (data); |
|---|
| 176 | | init (); |
|---|
| | 176 | init_ (); |
|---|
| 177 | 177 | register (this); |
|---|
| 178 | 178 | |
|---|
| … | … | |
| 548 | 548 | * @see #create |
|---|
| 549 | 549 | */ |
|---|
| 550 | | protected void init () { |
|---|
| | 550 | protected void init_ () { |
|---|
| 551 | 551 | if (xDisplay !is null) { |
|---|
| 552 | 552 | int event_basep, error_basep; |
|---|
| r158 |
r216 |
|
| 75 | 75 | if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 76 | 76 | if (fd is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 77 | | init(device, fd.getName(), fd.getHeightF(), fd.getStyle(), fd.str); |
|---|
| | 77 | init_(device, fd.getName(), fd.getHeightF(), fd.getStyle(), fd.str); |
|---|
| 78 | 78 | if (device.tracking) device.new_Object(this); |
|---|
| 79 | 79 | } |
|---|
| … | … | |
| 111 | 111 | } |
|---|
| 112 | 112 | FontData fd = fds[0]; |
|---|
| 113 | | init(device,fd.getName(), fd.getHeightF(), fd.getStyle(), fd.str); |
|---|
| | 113 | init_(device,fd.getName(), fd.getHeightF(), fd.getStyle(), fd.str); |
|---|
| 114 | 114 | if (device.tracking) device.new_Object(this); |
|---|
| 115 | 115 | } |
|---|
| … | … | |
| 140 | 140 | if (device is null) device = Device.getDevice(); |
|---|
| 141 | 141 | if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 142 | | init(device, name, height, style, null); |
|---|
| | 142 | init_(device, name, height, style, null); |
|---|
| 143 | 143 | if (device.tracking) device.new_Object(this); |
|---|
| 144 | 144 | } |
|---|
| … | … | |
| 147 | 147 | if (device is null) device = Device.getDevice(); |
|---|
| 148 | 148 | if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 149 | | init(device, name, height, style, null); |
|---|
| | 149 | init_(device, name, height, style, null); |
|---|
| 150 | 150 | if (device.tracking) device.new_Object(this); |
|---|
| 151 | 151 | } |
|---|
| … | … | |
| 253 | 253 | } |
|---|
| 254 | 254 | |
|---|
| 255 | | void init(Device device, char[] name, float height, int style, char[] fontString) { |
|---|
| | 255 | void init_(Device device, char[] name, float height, int style, char[] fontString) { |
|---|
| 256 | 256 | if (name is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 257 | 257 | if (height < 0) DWT.error(DWT.ERROR_INVALID_ARGUMENT); |
|---|
| r200 |
r216 |
|
| 195 | 195 | if (device is null) device = Device.getDevice(); |
|---|
| 196 | 196 | if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 197 | | init(device, width, height); |
|---|
| | 197 | init_(device, width, height); |
|---|
| 198 | 198 | if (device.tracking) device.new_Object(this); |
|---|
| 199 | 199 | } |
|---|
| … | … | |
| 397 | 397 | if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 398 | 398 | if (bounds is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 399 | | init(device, bounds.width, bounds.height); |
|---|
| | 399 | init_(device, bounds.width, bounds.height); |
|---|
| 400 | 400 | if (device.tracking) device.new_Object(this); |
|---|
| 401 | 401 | } |
|---|
| … | … | |
| 422 | 422 | if (device is null) device = Device.getDevice(); |
|---|
| 423 | 423 | if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 424 | | init(device, data); |
|---|
| | 424 | init_(device, data); |
|---|
| 425 | 425 | if (device.tracking) device.new_Object(this); |
|---|
| 426 | 426 | } |
|---|
| … | … | |
| 463 | 463 | image.maskPad = mask.scanlinePad; |
|---|
| 464 | 464 | image.maskData = mask.data; |
|---|
| 465 | | init(device, image); |
|---|
| | 465 | init_(device, image); |
|---|
| 466 | 466 | if (device.tracking) device.new_Object(this); |
|---|
| 467 | 467 | } |
|---|
| … | … | |
| 518 | 518 | if (device is null) device = Device.getDevice(); |
|---|
| 519 | 519 | if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 520 | | init(device, new ImageData(stream)); |
|---|
| | 520 | init_(device, new ImageData(stream)); |
|---|
| 521 | 521 | if (device.tracking) device.new_Object(this); |
|---|
| 522 | 522 | } |
|---|
| … | … | |
| 592 | 592 | } |
|---|
| 593 | 593 | } catch (DWTException e) {} |
|---|
| 594 | | init(device, new ImageData(filename)); |
|---|
| | 594 | init_(device, new ImageData(filename)); |
|---|
| 595 | 595 | if (device.tracking) device.new_Object(this); |
|---|
| 596 | 596 | } |
|---|
| … | … | |
| 968 | 968 | } |
|---|
| 969 | 969 | |
|---|
| 970 | | void init(Device device, int width, int height) { |
|---|
| | 970 | void init_(Device device, int width, int height) { |
|---|
| 971 | 971 | if (width <= 0 || height <= 0) { |
|---|
| 972 | 972 | DWT.error (DWT.ERROR_INVALID_ARGUMENT); |
|---|
| … | … | |
| 992 | 992 | } |
|---|
| 993 | 993 | |
|---|
| 994 | | void init(Device device, ImageData image) { |
|---|
| | 994 | void init_(Device device, ImageData image) { |
|---|
| 995 | 995 | if (image is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 996 | 996 | this.device = device; |
|---|
| r211 |
r216 |
|
| 652 | 652 | * @see #create |
|---|
| 653 | 653 | */ |
|---|
| 654 | | protected override void init() { |
|---|
| 655 | | super.init (); |
|---|
| | 654 | protected override void init_() { |
|---|
| | 655 | super.init_ (); |
|---|
| 656 | 656 | settings = OS.gtk_print_settings_new(); |
|---|
| 657 | 657 | pageSetup = OS.gtk_page_setup_new(); |
|---|