www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Best GUI library and GUI designer?

reply "December Flower" <boladore hotmail.com> writes:
Hi there.
Sorry for my poor English first.

I just started D language and looking for GUI library and 
designer.
I found some.

GUI libraries from D wiki and
Designers are Entice or Bud.
but it seems that there's no further development.

I found few threads and they are all stories of 2 or 3 years ago.

So I'm wondering if you can recommend some GUI library and 
designers to start with. For the text editor, I'm currently using 
gVim.

Best regards.
Nov 27 2012
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2012-11-27 09:32, December Flower wrote:
 Hi there.
 Sorry for my poor English first.

 I just started D language and looking for GUI library and designer.
 I found some.

 GUI libraries from D wiki and
 Designers are Entice or Bud.
 but it seems that there's no further development.

 I found few threads and they are all stories of 2 or 3 years ago.

 So I'm wondering if you can recommend some GUI library and designers to
 start with. For the text editor, I'm currently using gVim.

 Best regards.

I think DWT is a good GUI library, but it doesn't have a GUI designer. Since DWT is a port of the Java library SWT you could use a GUI designer that supports SWT and then port the code to D. -- /Jacob Carlborg
Nov 27 2012
parent Jacob Carlborg <doob me.com> writes:
On 2012-11-27 23:17, JN wrote:
 On Tuesday, 27 November 2012 at 12:12:52 UTC, Jacob Carlborg wrote:
 I think DWT is a good GUI library, but it doesn't have a GUI designer.
 Since DWT is a port of the Java library SWT you could use a GUI
 designer that supports SWT and then port the code to D.

it's pretty nice, but I have a question - is file drag'n'drop supported in DWT (as in drag from windows explorer to application window)? My biggest problem was what to do with event.data for drop event - it's of type Object and needs to be somehow cast so string[], I did cast(string[])(&event.data[0..1]) but obviously it didn't work...

There should be a helper, somewhere, in DWT for handling casting between strings and objects. There's "stringcast" in "java.lang.wrappers": https://github.com/d-widget-toolkit/base/blob/master/src/java/lang/wrappers.d#L91 -- /Jacob Carlborg
Nov 27 2012
prev sibling next sibling parent "JN" <666total wp.pl> writes:
On Tuesday, 27 November 2012 at 12:12:52 UTC, Jacob Carlborg 
wrote:
 I think DWT is a good GUI library, but it doesn't have a GUI 
 designer. Since DWT is a port of the Java library SWT you could 
 use a GUI designer that supports SWT and then port the code to 
 D.

DWT and it's pretty nice, but I have a question - is file drag'n'drop supported in DWT (as in drag from windows explorer to application window)? My biggest problem was what to do with event.data for drop event - it's of type Object and needs to be somehow cast so string[], I did cast(string[])(&event.data[0..1]) but obviously it didn't work...
Nov 27 2012
prev sibling next sibling parent "December Flower" <boladore hotmail.com> writes:
On Tuesday, 27 November 2012 at 12:12:52 UTC, Jacob Carlborg 
wrote:
 On 2012-11-27 09:32, December Flower wrote:
 Hi there.
 Sorry for my poor English first.

 I just started D language and looking for GUI library and 
 designer.
 I found some.

 GUI libraries from D wiki and
 Designers are Entice or Bud.
 but it seems that there's no further development.

 I found few threads and they are all stories of 2 or 3 years 
 ago.

 So I'm wondering if you can recommend some GUI library and 
 designers to
 start with. For the text editor, I'm currently using gVim.

 Best regards.

I think DWT is a good GUI library, but it doesn't have a GUI designer. Since DWT is a port of the Java library SWT you could use a GUI designer that supports SWT and then port the code to D.

Thanks. I'll check that. Have a nice day! :)
Nov 27 2012
prev sibling next sibling parent "JN" <666total wp.pl> writes:
On Wednesday, 28 November 2012 at 07:30:54 UTC, Jacob Carlborg 
wrote:
 There should be a helper, somewhere, in DWT for handling 
 casting between strings and objects. There's "stringcast" in 
 "java.lang.wrappers":

 https://github.com/d-widget-toolkit/base/blob/master/src/java/lang/wrappers.d#L91

Thanks, works :)
Nov 28 2012
prev sibling next sibling parent "Paul Crane" <paul acheronsoft.com> writes:
On Tuesday, 27 November 2012 at 08:32:49 UTC, December Flower 
wrote:
 Hi there.
 Sorry for my poor English first.

 I just started D language and looking for GUI library and 
 designer.
 I found some.

 GUI libraries from D wiki and
 Designers are Entice or Bud.
 but it seems that there's no further development.

 I found few threads and they are all stories of 2 or 3 years 
 ago.

 So I'm wondering if you can recommend some GUI library and 
 designers to start with. For the text editor, I'm currently 
 using gVim.

 Best regards.

I've been playing around with GTKD and Glade.
Dec 16 2012
prev sibling parent "Lysander" <neontotem gmail.com> writes:
On Monday, 17 December 2012 at 04:52:37 UTC, Paul Crane wrote:
 On Tuesday, 27 November 2012 at 08:32:49 UTC, December Flower 
 wrote:
 Hi there.
 Sorry for my poor English first.

 I just started D language and looking for GUI library and 
 designer.
 I found some.

 GUI libraries from D wiki and
 Designers are Entice or Bud.
 but it seems that there's no further development.

 I found few threads and they are all stories of 2 or 3 years 
 ago.

 So I'm wondering if you can recommend some GUI library and 
 designers to start with. For the text editor, I'm currently 
 using gVim.

 Best regards.

I've been playing around with GTKD and Glade.

Dec 31 2012