From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b6df8f8501cf7275 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.82.98 with SMTP id h2mr6004419pay.3.1356708736555; Fri, 28 Dec 2012 07:32:16 -0800 (PST) Path: 6ni69132pbd.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.bbs-scene.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Easiest way to build Qt/Gtk interfaces for Ada programs Date: Fri, 28 Dec 2012 16:32:09 +0100 Organization: cbb software GmbH Message-ID: <1gda5kzj50h3l.jzmq13s0hw74.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 6/SyjDFvQ5V7ZR2+GYgbDQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-12-28T16:32:09+01:00 List-Id: On Fri, 28 Dec 2012 06:51:01 -0800 (PST), alb348@gmail.com wrote: > I am a interested in creating GUI applications with Ada, using either Qt > or Gtk (it must be one of these two, because these are the only toolkits > that provide full BiDi support). One important thing, which implies the obvious consequences. There is no easy way of building GUI as well as no way of adding GUI to an existing application. Ignoring casual applications, it is unfortunately so, that whatever framework you use, and what the application is supposed to do functionally, you have to build it around the GUI. > I was happy to find that the Ada bindings are available for both Qt and > Gtk, but I was disheartened when I saw the code of the example programs. > Lots of code! Lines and lines of dense code, barely comprehensible. > Honestly, I don't know if I would be able to write a GUI by manually > writing so much code. It is only the tip of the iceberg. When you start writing a real-life GUI the amount of code explodes. In order to maintain the complexity you need to refactor and reuse, start building customized widgets on top of the existing ones etc. Much of software design, not easy, not very rewarding, because the code still looks ugly, but at least becomes a bit maintainable. > My question is: is there any GUI builder, either for Qt or for Qt, which > will allow me to graphically design the widgets, and which will then > generate Ada code? Wasting time, but you won't believe me anyway. So take any, it is actually no matter. Once you have it behind you, you can make a fresh start and begin working productively. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de