April 05, 2011 Re: GUI library for D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | Nick Sabalausky wrote:
> QtD requires a patched DMD [...] And it requires running your code through a
preprocessor.
I think your info is a little out of date (much like the QtD
documentation...)
But when I tried it last month, stock DMD worked with it, and the build process was fairly straight forward once I had all the stuff setup.
It worked quite well on Linux, but Windows was a little different...
...It came *very* close to working for me, but would randomly
crash in painter code on Windows (access violation). I suspect
there was something to blame with a painter class being prematurely
destroyed, but when I looked at the code, I couldn't nail down
the cause, and ultimately gave up in favor of my D/C++ hybrid
approach.
| |||
April 05, 2011 Re: GUI library for D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | "Nick Sabalausky" <a@a.a> wrote in message news:indrtb$reg$1@digitalmars.com... > "Daniel Gibson" <metalcaedes@gmail.com> wrote in message news:inddni$kmi$3@digitalmars.com... >> >> I don't know if wee need yet another GUI library. >> Are you sure Qt and DWT aren't good enough? >> > > AIUI: > > DWT doesn't support D2 (neither does wxD). > > QtD requires a patched DMD, MinGW (which is fucking god-awful), and cmake (I have to let some variant of "make" touch my computer? Why can't we just let make die?). And it requires running your code through a preprocessor. > > And none of those have actual API documentation, they just refer to the C/C++ docs. I use D because I never want to look at another line of C++ as long as I live. > > Everything else is either non-native or non-cross-platform. > > The state of GUIs in D right now is pretty awful, unfortunately. My plate's already overpacked (think: teenager at a one-trip buffet), but maybe I'll see if I can squeeze in enough extra time (hah! there's a concept I've completely lost all memory of) to try to help out on something. After all, I *really* want to get around to making my own web browser (based off either Mozilla or Chromium) - I'm getting really fed up with the current state of available web browsers. Well, and the web as a whole (god I fucking hate the web), but one step at a time, I guess). > Disclaimer: It's not my intent to belittle the hard work the DWT/QtD/wxD/etc developers put into the projects. I certainly appreciate the work and effort that's been put into them. We'd be a lot worse off without it. | |||
April 05, 2011 Re: GUI library for D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | On 4/5/11, Nick Sabalausky <a@a.a> wrote:
> After all, I
> *really* want to get around to making my own web browser (based off either
> Mozilla or Chromium) - I'm getting really fed up with the current state of
> available web browsers. Well, and the web as a whole (god I fucking hate the
> web), but one step at a time, I guess).
I'll be the first to install it.
Btw, there's a full web browser example in the QtD sources. But it has to be ported to D2. And then you have to deal with any eventual bugs along the way. :]
| |||
April 05, 2011 Re: GUI library for D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On 4/5/11, Adam D. Ruppe <destructionator@gmail.com> wrote:
> I think your info is a little out of date (much like the QtD
> documentation...)
>
> But when I tried it last month, stock DMD worked with it, and the build process was fairly straight forward once I had all the stuff setup.
No, it still requires the patch for some code. I've had a bug report where I was told to patch DMD.
| |||
April 05, 2011 Re: GUI library for D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | "Adam D. Ruppe" <destructionator@gmail.com> wrote in message news:induia$vo2$1@digitalmars.com... > Nick Sabalausky wrote: >> QtD requires a patched DMD [...] And it requires running your code through a > preprocessor. > > I think your info is a little out of date (much like the QtD > documentation...) > > But when I tried it last month, stock DMD worked with it, and the build process was fairly straight forward once I had all the stuff setup. > Looking at the pages that are there for QtD, and the source browser, I'm honestly not sure how to even get started with it. Ie, to get from where I am right now (no Qt or QtD at all) to actually compiling any of the examples or any other program that uses QtD. Do you remember enough to point me in the right direction? > It worked quite well on Linux, but Windows was a little different... > > ...It came *very* close to working for me, but would randomly > crash in painter code on Windows (access violation). I suspect > there was something to blame with a painter class being prematurely > destroyed, but when I looked at the code, I couldn't nail down > the cause, and ultimately gave up in favor of my D/C++ hybrid > approach. | |||
April 05, 2011 Re: GUI library for D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | "Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in message news:mailman.3179.1301970476.4748.digitalmars-d@puremagic.com... > On 4/5/11, Adam D. Ruppe <destructionator@gmail.com> wrote: >> I think your info is a little out of date (much like the QtD >> documentation...) >> >> But when I tried it last month, stock DMD worked with it, and the build process was fairly straight forward once I had all the stuff setup. > > No, it still requires the patch for some code. I've had a bug report where I was told to patch DMD. Do we know what DMD tickets are needed to fix to make the patching obsolete? | |||
April 05, 2011 Re: GUI library for D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | Nick Sabalausky wrote:
> Even with SDL's D bindings?
Yea, even SDL is pretty far from as nice as DOS was. But, it isn't too bad. D's bindings are identical to C's, but with things like scope guard, it's a lot easier to use.
Long before D2 was around, I made a little game library in D1 using SDL and OpenGL. Was able to whip up a Pong in about 100 lines and a RTS in ~8000!
But, that library forced a certain style on you. Make a class with a method that's called once per frame. You simply do a scope painter class and draw your stuff.
Pretty cool. I'm hoping to clean it up and port to D2 eventually, but I haven't had time to write games for a long time now.
| |||
April 05, 2011 Re: GUI library for D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Michel Fortin | Michel Fortin: > Reminds me of David Simcha's plot2kill, which also has such a layer on top of which it implements plot drawing. Aye, he and I have shared some code in the past. > I think such a module would be a great addition to Phobos. If I can find a weekend, I'll see about quickly whipping it together for a proposal. I don't know anything about Mac OSX though, so unless the X11 will work there, I won't be able to provide any access to that. | |||
April 05, 2011 Re: GUI library for D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | Andrej Mitrovic wrote:
> No, it still requires the patch for some code. I've had a bug report where I was told to patch DMD.
:-(
Still, it's /so/ close to being usable out of the box. I think if someone could find a week or two to devote to it, we could get the GUI part pretty solid.
| |||
April 05, 2011 Re: GUI library for D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | On 4/5/11, Nick Sabalausky <a@a.a> wrote: > "Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in message news:mailman.3179.1301970476.4748.digitalmars-d@puremagic.com... >> On 4/5/11, Adam D. Ruppe <destructionator@gmail.com> wrote: >>> I think your info is a little out of date (much like the QtD >>> documentation...) >>> >>> But when I tried it last month, stock DMD worked with it, and the build process was fairly straight forward once I had all the stuff setup. >> >> No, it still requires the patch for some code. I've had a bug report where I was told to patch DMD. > > Do we know what DMD tickets are needed to fix to make the patching obsolete? > > > http://www.dsource.org/projects/qtd/wiki/DmdPatch http://www.dsource.org/projects/qtd/attachment/wiki/DmdPatch/dmd.2.046.patch Apparently this is used for some static introspection (I think so..). It's just a few lines of code. | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply