www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Release dwtlib v1.01

reply JamesD <apple mail.com> writes:
dwtlib - DUB package for the D Widget Toolkit

https://code.dlang.org/packages/dwtlib

DWT is a library for creating cross-platform GUI applications.
It's a port of the SWT Java library from Eclipse.

*Status*

WORKING Tested on:

- Windows 10 Home
- Ubuntu 16.04 LTS 32-bit
- DMD32 v2.073.0
- DUB v1.2.010

TODO:

- Test current versions of DMD/DUB (had probs with DMD v2.074)
- Test 64-bit
Apr 23
parent reply Jacob Carlborg <doob me.com> writes:
On 2017-04-24 04:06, JamesD wrote:
 dwtlib - DUB package for the D Widget Toolkit

 https://code.dlang.org/packages/dwtlib

 DWT is a library for creating cross-platform GUI applications.
 It's a port of the SWT Java library from Eclipse.

 *Status*

 WORKING Tested on:

 - Windows 10 Home
 - Ubuntu 16.04 LTS 32-bit
 - DMD32 v2.073.0
 - DUB v1.2.010

 TODO:

 - Test current versions of DMD/DUB (had probs with DMD v2.074)
 - Test 64-bit
Is this something you plan to contribute back to the original repository? -- /Jacob Carlborg
Apr 23
parent reply JamesD <none mail.com> writes:
On Monday, 24 April 2017 at 06:44:49 UTC, Jacob Carlborg wrote:
 On 2017-04-24 04:06, JamesD wrote:
 dwtlib - DUB package for the D Widget Toolkit

 https://code.dlang.org/packages/dwtlib

 DWT is a library for creating cross-platform GUI applications.
 It's a port of the SWT Java library from Eclipse.

 *Status*

 WORKING Tested on:

 - Windows 10 Home
 - Ubuntu 16.04 LTS 32-bit
 - DMD32 v2.073.0
 - DUB v1.2.010

 TODO:

 - Test current versions of DMD/DUB (had probs with DMD v2.074)
 - Test 64-bit
Is this something you plan to contribute back to the original repository?
Hi Jacob, I'm pretty new with D, and I'm not a full-time coder. A learning goal was to see if I could figure out how to create a dub package for DWT. I feel I am well on the way to achieve this goal (32-bit works, need to test 64-bit). I respect your work, as well as the others, in porting DWT from SWT and maintaining it. I don't want to "muck" up your repository. Having said that, I would much prefer this be part of the original github repository. Then, I could retire my dwtlib dub package in favor of the updated github repository. What are your thoughts?
Apr 24
parent reply Jacob Carlborg <doob me.com> writes:
On 2017-04-25 00:07, JamesD wrote:

 I'm pretty new with D, and I'm not a full-time coder.
 A learning goal was to see if I could figure out how to create a dub
 package for DWT.
 I feel I am well on the way to achieve this goal (32-bit works, need to
 test 64-bit).
 I respect your work, as well as the others, in porting DWT from SWT and
 maintaining it.
 I don't want to "muck" up your repository.
 Having said that, I would much prefer this be part of the original
 github repository.
 Then, I could retire my dwtlib dub package in favor of the updated
 github repository.
 What are your thoughts?
I would like to have a Dub package for DWT, but I haven't created one yet because I have not been able to figure out a good way to deal with the submodules or the examples. I guess the submodules could be inlined directly in the main repository. I'm also not sure how the configurations work in Dub. Will the correct configuration be selected automatically based on platform? -- /Jacob Carlborg
Apr 24
parent reply JamesD <none mail.com> writes:
On Tuesday, 25 April 2017 at 06:49:40 UTC, Jacob Carlborg wrote:
 On 2017-04-25 00:07, JamesD wrote:

 I'm pretty new with D, and I'm not a full-time coder.
 A learning goal was to see if I could figure out how to create 
 a dub
 package for DWT.
 I feel I am well on the way to achieve this goal (32-bit 
 works, need to
 test 64-bit).
 I respect your work, as well as the others, in porting DWT 
 from SWT and
 maintaining it.
 I don't want to "muck" up your repository.
 Having said that, I would much prefer this be part of the 
 original
 github repository.
 Then, I could retire my dwtlib dub package in favor of the 
 updated
 github repository.
 What are your thoughts?
I would like to have a Dub package for DWT, but I haven't created one yet because I have not been able to figure out a good way to deal with the submodules or the examples. I guess the submodules could be inlined directly in the main repository. I'm also not sure how the configurations work in Dub. Will the correct configuration be selected automatically based on platform?
Yes, the dub.sdl in my dwtlib will auto select "linux" or "windows" and choose the dflags and lflags accordingly. https://github.com/jasc2v8/dwtlib The base/java and core/swt modules work well. What other submodules would you want included? I just released rdub which would be a great tool for the snippets. https://github.com/jasc2v8/rdub Do you want to take a look at the structure for dwtlib, or do you want me to do a pull request on dwt-tools to show you what I have in mind?
Apr 26
parent reply Jacob Carlborg <doob me.com> writes:
On 2017-04-27 04:52, JamesD wrote:

 Yes, the dub.sdl in my dwtlib will auto select "linux" or "windows" and
 choose the dflags and lflags accordingly.
 https://github.com/jasc2v8/dwtlib

 The base/java and core/swt modules work well. What other submodules
 would you want included?
I mean that Dub doesn't work that well together with submodules. I'm referring to "base", "org.eclipse.swt.gtk.linux.x86", "org.eclipse.swt.snippets" and "org.eclipse.swt.win32.win32.x86".
 I just released rdub which would be a great tool for the snippets.
 https://github.com/jasc2v8/rdub

 Do you want to take a look at the structure for dwtlib, or do you want
 me to do a pull request on dwt-tools to show you what I have in mind?
I've already looked a bit at dwtlib. I see that you inline the submodules, although the snippets are missing. I'm leaning towards inlining the submodules as well. A pull request would be nice. For this to work I think a pull request for inlining the submodules should be separate from the rest of the changes. -- /Jacob Carlborg
Apr 27
parent JamesD <none mail.com> writes:
On Thursday, 27 April 2017 at 18:53:54 UTC, Jacob Carlborg wrote:
 On 2017-04-27 04:52, JamesD wrote:

 Yes, the dub.sdl in my dwtlib will auto select "linux" or 
 "windows" and
 choose the dflags and lflags accordingly.
 https://github.com/jasc2v8/dwtlib

 The base/java and core/swt modules work well. What other 
 submodules
 would you want included?
I mean that Dub doesn't work that well together with submodules. I'm referring to "base", "org.eclipse.swt.gtk.linux.x86", "org.eclipse.swt.snippets" and "org.eclipse.swt.win32.win32.x86".
 I just released rdub which would be a great tool for the 
 snippets.
 https://github.com/jasc2v8/rdub

 Do you want to take a look at the structure for dwtlib, or do 
 you want
 me to do a pull request on dwt-tools to show you what I have 
 in mind?
I've already looked a bit at dwtlib. I see that you inline the submodules, although the snippets are missing. I'm leaning towards inlining the submodules as well. A pull request would be nice. For this to work I think a pull request for inlining the submodules should be separate from the rest of the changes.
I added the snippets to dwtlib v2.0.0 https://code.dlang.org/packages/dwtlib I have Dub working well with the submodules and snippets! The snippets will not run as-is if you clone from github. You must fetch and build the package for the snippets to work properly. The readme.md has instructions to: dub fetch dwtlib, build the libs, then test the package Using rdub to run the snippets. (32-bit tested, 64-bit todo) The "secret sauce" is in the top folder dub.sdl It provides the proper dflags and lflags for either windows or linux If you feel this folder structure works for dwt-tools, let me know. After I've tested on 64-bit, then I will feel more confident to do a pull request and you can decide if the final product works for you. Thank you for your collaboration!
Apr 27