www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - favorite GUI lib for D

reply Bedros Hanounik <2bedros NOSPAMgmail.com> writes:
what's the favorite GUI lib for D? I mean something that's still actively
developed. I found few messages in the archive about D GUI libs, but it seems
that those lib are obsolete.

another question, how much work needed to create D bindings for QT 4.2. (
assuming 32bit)

Thanks
Sep 15 2007
next sibling parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Bedros Hanounik wrote:
 what's the favorite GUI lib for D? I mean something that's still actively
developed. I found few messages in the archive about D GUI libs, but it seems
that those lib are obsolete.

OpenGL. :-) But wxD is coming along. and DFL seems to have a following. I don't know of any others that are actively being worked on.
 another question, how much work needed to create D bindings for QT 4.2. (
assuming 32bit)

Truckloads. The best bet would probably be to look at what other bindings are out there and see if anyone is doing it in a way that would work for D too. For instance SWIG wrappers won't help D. But an approach that involves creating an actual C API to wrap the library will. For instance with wxD, the C-bindings to wxWidgets are shared by D and the C# bindings. Maybe the Qt bindings for C# are using the same wrap-with-C approach? Found this: http://cougarpc.net/qyoto/ but I couldn't find any info about how they gen the bindings just that "it's automatic". --bb
Sep 15 2007
parent Thomas Brix Larsen <brix brix-verden.dk> writes:
Bill Baxter wrote:

 Bedros Hanounik wrote:
 another question, how much work needed to create D bindings for QT 4.2. (
 assuming 32bit)

Truckloads. The best bet would probably be to look at what other bindings are out there and see if anyone is doing it in a way that would work for D too. For instance SWIG wrappers won't help D. But an approach that involves creating an actual C API to wrap the library will. For instance with wxD, the C-bindings to wxWidgets are shared by D and the C# bindings. Maybe the Qt bindings for C# are using the same wrap-with-C approach? Found this: http://cougarpc.net/qyoto/ but I couldn't find any info about how they gen the bindings just that "it's automatic".

They seem to be using SMOKE: http://techbase.kde.org/Development/Languages/QtSharp An easier approach could be wrapping pyqt using pyd, but I'm not sure of how or whether this would work. - Brix
Sep 16 2007
prev sibling next sibling parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Bedros Hanounik wrote:
 what's the favorite GUI lib for D? I mean something that's still actively
developed.

What are your requirements ? Platforms ? Cost ? Source ? The list at http://www.dprogramming.com/dlists/gui.php says: 1. DFL 2. DWT 3. wxD
 I found few messages in the archive about D GUI libs, but it seems that those
lib are obsolete.

There's a list at http://www.prowiki.org/wiki4d/wiki.cgi?GuiLibraries
 another question, how much work needed to create D bindings for QT 4.2. (
assuming 32bit)

Probably: "lots" :-) There's a slight licensing problem, as well ? But I don't think it works with the auto-generators, so one would have to wrap Qt with some C++ probably. (i.e. like Qt# or wxC did) Should be some updated bindings now, like Qyoto/Kimono or Qt/Jambi ? --anders
Sep 16 2007
next sibling parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Anders F Björklund wrote:
 Bedros Hanounik wrote:
 what's the favorite GUI lib for D? I mean something that's still 
 actively developed.

What are your requirements ? Platforms ? Cost ? Source ? The list at http://www.dprogramming.com/dlists/gui.php says: 1. DFL 2. DWT 3. wxD

I've yet to see any GUI app written in D that was more than a toy. Has anyone written a serious GUI app in D? --bb
Sep 16 2007
next sibling parent reply Lutger <lutger.blijdestijn gmail.com> writes:
Bill Baxter wrote:
 I've yet to see any GUI app written in D that was more than a toy.

Entice designer? http://www.dprogramming.com/entice.php
Sep 16 2007
parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Lutger wrote:
 Bill Baxter wrote:
 I've yet to see any GUI app written in D that was more than a toy.

Entice designer? http://www.dprogramming.com/entice.php

Is that actually written in D? The gap between the DFL examples and Entice is so huge that it always made me think Entice must have been written using something else. --bb
Sep 16 2007
parent Lutger <lutger.blijdestijn gmail.com> writes:
Bill Baxter wrote:
 Lutger wrote:
 Bill Baxter wrote:
 I've yet to see any GUI app written in D that was more than a toy.

Entice designer? http://www.dprogramming.com/entice.php

Is that actually written in D? The gap between the DFL examples and Entice is so huge that it always made me think Entice must have been written using something else. --bb

Yes: http://www.dsource.org/forums/viewtopic.php?t=3131
Sep 16 2007
prev sibling next sibling parent Downs <default_357-line yahoo.de> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bill Baxter wrote:
 Anders F Björklund wrote:
 Bedros Hanounik wrote:
 what's the favorite GUI lib for D? I mean something that's still
 actively developed.

What are your requirements ? Platforms ? Cost ? Source ? The list at http://www.dprogramming.com/dlists/gui.php says: 1. DFL 2. DWT 3. wxD

I've yet to see any GUI app written in D that was more than a toy. Has anyone written a serious GUI app in D? --bb

Would you count YAWR (http://yawr.sf.net/ ) as a toy? Screen: http://sourceforge.net/dbimage.php?id=140687 I'm not sure how to categorize it. --downs (who wrote it) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG7TpspEPJRr05fBERAtzgAJ9a1CdUmAE01l63kEbX2mK0m1Wg/ACfdAoQ VPEI6+IKLpbE9kQWbePHdAM= =R8OW -----END PGP SIGNATURE-----
Sep 16 2007
prev sibling parent reply "Stewart Gordon" <smjg_1998 yahoo.com> writes:
"Bill Baxter" <dnewsgroup billbaxter.com> wrote in message 
news:fcj1vi$17pt$1 digitalmars.com...
<snip>
 I've yet to see any GUI app written in D that was more than a toy.
 Has anyone written a serious GUI app in D?

If you're distinguishing between small, experimental programs and fully-fledged apps worthy of being released to the masses, then yes. Empire, for instance, although this wasn't written with a GUI library. If you're distinguishing between games/other 'fun' apps and programs with a real practical purpose, then yes again. MDI Edit, one of the example apps bundled with SDWF, is a simple text editor application. If you want something that fits both definitions of a serious application, then Entice Designer may be the best example so far. But that's still of interest primarily to D programmers, and especially users of one GUI library. So I suppose the next stage is to bring out something that meets the criteria for "serious" and will have more widespread appeal. Stewart.
Sep 18 2007
parent Bill Baxter <dnewsgroup billbaxter.com> writes:
Stewart Gordon wrote:
 "Bill Baxter" <dnewsgroup billbaxter.com> wrote in message 
 news:fcj1vi$17pt$1 digitalmars.com...
 <snip>
 I've yet to see any GUI app written in D that was more than a toy.
 Has anyone written a serious GUI app in D?

If you're distinguishing between small, experimental programs and fully-fledged apps worthy of being released to the masses, then yes. Empire, for instance, although this wasn't written with a GUI library. If you're distinguishing between games/other 'fun' apps and programs with a real practical purpose, then yes again. MDI Edit, one of the example apps bundled with SDWF, is a simple text editor application. If you want something that fits both definitions of a serious application, then Entice Designer may be the best example so far. But that's still of interest primarily to D programmers, and especially users of one GUI library. So I suppose the next stage is to bring out something that meets the criteria for "serious" and will have more widespread appeal.

Entice fits the bill. The MDI Edit example from SDWF may too. I haven't seen it. By 'toy' I just meant more than a page or two of code. Now that I think about it wxWidgets has some fairly complex demos too. If Anders has ported those then they'd fit the bill too. It would be nice if there were some high-visibilty open source end-user app written in D. Like maybe a bittorrent client or something. --bb
Sep 18 2007
prev sibling parent reply "Stewart Gordon" <smjg_1998 yahoo.com> writes:
"Anders F Björklund" <afb algonet.se> wrote in message 
news:fcj15t$16sf$1 digitalmars.com...
<snip>
 The list at http://www.dprogramming.com/dlists/gui.php says:
 1. DFL
 2. DWT
 3. wxD

"Lists sorted by search engine hits, or popularity." What is this meant to mean? Stewart.
Sep 18 2007
parent "Chris Miller" <chris dprogramming.com> writes:
On Tue, 18 Sep 2007 14:01:13 -0400, Stewart Gordon <smjg_1998 yahoo.com>  
wrote:

 "Anders F Björklund" <afb algonet.se> wrote in message  
 news:fcj15t$16sf$1 digitalmars.com...
 <snip>
 The list at http://www.dprogramming.com/dlists/gui.php says:
 1. DFL
 2. DWT
 3. wxD

"Lists sorted by search engine hits, or popularity." What is this meant to mean? Stewart.

http://www.dprogramming.com/dlists/ says "lists are sorted by counting hits on Google and are ranked based on usage in the D programming language community. The lists are not 100% accurate, but hopefully they can be reasonably accurate." - similar to the TIOBE language index.
Sep 22 2007
prev sibling next sibling parent Bedros Hanounik <2bedros NOSPAMgmail.com> writes:
Thanks for your all help.

I don't think DFL works for me, since it does not support Linux (for now); but
it looks promising.

I've used wxpython before, so if wxD is stable enough, it could be my best
choice.

I'm liking QT4 library, but I never used it heavily, I just played with it. 
it looks like it's possible to take hints from pyd and pyqt and create DQT
library (as Thomas Brix Larsen mentioned in his reply).

thanks for your all help, I'll start playing with wxD since it seems to be the
easiest path

Bedros Hanounik Wrote:

 what's the favorite GUI lib for D? I mean something that's still actively
developed. I found few messages in the archive about D GUI libs, but it seems
that those lib are obsolete.
 
 another question, how much work needed to create D bindings for QT 4.2. (
assuming 32bit)
 
 Thanks

Sep 19 2007
prev sibling parent Kevin Watters <kevinwatters gmail.com> writes:
Bedros Hanounik wrote:
 what's the favorite GUI lib for D? I mean something that's still actively
developed. I found few messages in the archive about D GUI libs, but it seems
that those lib are obsolete.

When it comes to GUI toolkits I never understand why you would ever paint your own controls. Even toolkits like QT which the style APIs of the OS suffer because of it--on Vista, for example, you don't get the glowing effect buttons have on a mouseover. I know that sounds trivial, but the point goes further when you consider all the intricacies of event handling that users are used to on their own platform. For these reasons, MinWin was by far my favorite: http://www.dsource.org/projects/minwin It seemed to use the most D-like approach, with templates and compile time logic to make the smallest and most native code possible. The idea was great, but I remember trying it when it was pretty early and it was definitely still very rough around the edges and missing big features you'd probably want.
Sep 26 2007