www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Official Dub package for DWT

reply Jacob Carlborg <doob me.com> writes:
This has been long overdue but I would like to announce that I've just 
released an official Dub package for the DWT library [1]. For a usage 
example, please see the GitHub page [2].

For those not familiar with DWT, it's a library for creating 
cross-platform GUI applications. It's uses the native drawing operations 
of the operating system. It's originally a port of the SWT Java library, 
it's a complete port and contains no Java or JNI code.

A couple of other changes are:

* All the previous Git submodules have now been inlined in the 
main/super repository [3]
* Proper testing on both Linux and Windows has been added
* Separate tool for building all the snippets
* Bumped the minimum requirement of the compiler to DMD 2.078.1 (I'll 
probably add support for LDC soon)
* Officially removeed any support for building with D1

[1] http://code.dlang.org/packages/dwt
[2] https://github.com/d-widget-toolkit/dwt#usage
[3] https://github.com/d-widget-toolkit/dwt

-- 
/Jacob Carlborg
Feb 07
next sibling parent reply lobo <swamp.lobo gmail.com> writes:
On Wednesday, 7 February 2018 at 21:33:22 UTC, Jacob Carlborg 
wrote:
 This has been long overdue but I would like to announce that 
 I've just released an official Dub package for the DWT library 
 [1]. For a usage example, please see the GitHub page [2].

 For those not familiar with DWT, it's a library for creating 
 cross-platform GUI applications. It's uses the native drawing 
 operations of the operating system. It's originally a port of 
 the SWT Java library, it's a complete port and contains no Java 
 or JNI code.

 A couple of other changes are:

 * All the previous Git submodules have now been inlined in the 
 main/super repository [3]
 * Proper testing on both Linux and Windows has been added
 * Separate tool for building all the snippets
 * Bumped the minimum requirement of the compiler to DMD 2.078.1 
 (I'll probably add support for LDC soon)
 * Officially removeed any support for building with D1

 [1] http://code.dlang.org/packages/dwt
 [2] https://github.com/d-widget-toolkit/dwt#usage
 [3] https://github.com/d-widget-toolkit/dwt
Thanks for this effort. I looked at DWT a while back but settled on GtkD because it was easier to build. Either way, I will have to revisit this library and give it another go in my new project. Looking at the examples I imagine it wouldn't be too difficult to use WindowBuilder for SWT and port the generate Java code across to DWT. bye, lobo
Feb 07
parent Jacob Carlborg <doob me.com> writes:
On 2018-02-08 00:22, lobo wrote:

 Thanks for this effort. I looked at DWT a while back but settled on GtkD 
 because it was easier to build. Either way, I will have to revisit this 
 library and give it another go in my new project.
 
 Looking at the examples I imagine it wouldn't be too difficult to use 
 WindowBuilder for SWT and port the generate Java code across to DWT.
Yeah, I don't think that would be too difficult. -- /Jacob Carlborg
Feb 08
prev sibling next sibling parent Mike Franklin <slavo5150 yahoo.com> writes:
On Wednesday, 7 February 2018 at 21:33:22 UTC, Jacob Carlborg 
wrote:
 This has been long overdue but I would like to announce that 
 I've just released an official Dub package for the DWT library 
 http://code.dlang.org/packages/dwt
This is great! Nice work, and thank you! Mike
Feb 07
prev sibling next sibling parent "Nick Sabalausky (Abscissa)" <SeeWebsiteToContactMe semitwist.com> writes:
Very cool, will have to give it a try. I'm very interested in cross 
platform native-UI GUI libs for D.
Feb 07
prev sibling next sibling parent reply JN <666total wp.pl> writes:
On Wednesday, 7 February 2018 at 21:33:22 UTC, Jacob Carlborg 
wrote:
 This has been long overdue but I would like to announce that 
 I've just released an official Dub package for the DWT library 
 [1]. For a usage example, please see the GitHub page [2].
Great to see this project on Dub. It was always fairly easy to build, but including it in Dub will surely help its adoption. Can you explain how the EPL license works? I am not familiar with that license. Is DWT and anything using it considered a derivative work off Eclipse? Do I need to share source for my project if I use DWT in my project?
Feb 08
parent reply Bastiaan Veelo <Bastiaan Veelo.net> writes:
On Thursday, 8 February 2018 at 08:32:14 UTC, JN wrote:
 Can you explain how the EPL license works? I am not familiar 
 with that license. Is DWT and anything using it considered a 
 derivative work off Eclipse? Do I need to share source for my 
 project if I use DWT in my project?
From tldrlegal[1]: "This license, made and used by the Eclipse Foundation, is similar to GPL but allows you to link code under the license to proprietary applications. You may also license binaries under a proprietary license, as long as the source code is available under EPL." [1] https://tldrlegal.com/license/eclipse-public-license-1.0-%28epl-1.0%29
Feb 08
parent JN <666total wp.pl> writes:
On Thursday, 8 February 2018 at 09:35:38 UTC, Bastiaan Veelo 
wrote:
 On Thursday, 8 February 2018 at 08:32:14 UTC, JN wrote:
 Can you explain how the EPL license works? I am not familiar 
 with that license. Is DWT and anything using it considered a 
 derivative work off Eclipse? Do I need to share source for my 
 project if I use DWT in my project?
From tldrlegal[1]: "This license, made and used by the Eclipse Foundation, is similar to GPL but allows you to link code under the license to proprietary applications. You may also license binaries under a proprietary license, as long as the source code is available under EPL." [1] https://tldrlegal.com/license/eclipse-public-license-1.0-%28epl-1.0%29
This doesn't really explain much. It's confusing. It's similar to GPL. So if I release an app using DWT, I need to release the sourcecode for my app? Or do I only need to release the code for DWT (if I did any changes to the sourcecode).
Feb 11
prev sibling next sibling parent Andrea Fontana <nospam example.com> writes:
On Wednesday, 7 February 2018 at 21:33:22 UTC, Jacob Carlborg 
wrote:
 This has been long overdue but I would like to announce that 
 I've just released an official Dub package for the DWT library 
 [1]. For a usage example, please see the GitHub page [2].
Great news!
Feb 08
prev sibling parent reply Brian <zoujiaqing gmail.com> writes:
Thanks!

But, How to use x64?
Feb 08
parent Jacob Carlborg <doob me.com> writes:
On 2018-02-09 04:48, Brian wrote:
 Thanks!
 
 But, How to use x64?
On Linux it should just work if you have a 64bit system. On Windows I guess you would run Dub with "dub --arch=x86_64", if it doesn't already default to 64bit. -- /Jacob Carlborg
Feb 09