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.180.94.8 with SMTP id cy8mr9254772wib.1.1356717434336; Fri, 28 Dec 2012 09:57:14 -0800 (PST) Path: l12ni254252wiv.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!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 18:57:03 +0100 Organization: cbb software GmbH Message-ID: <1wfzxwagl94s7$.qrv4b94ezjqf.dlg@40tude.net> References: <1gda5kzj50h3l.jzmq13s0hw74.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: cDN0fd8KlIeJLyErIrSf0A.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-28T18:57:03+01:00 List-Id: On Fri, 28 Dec 2012 09:30:04 -0800 (PST), alb348@gmail.com wrote: >>> 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. > > Could you please elaborate a little as to why, in your opinion, GUI > builders are a waste of time? Is it because the quality of the generated > code is unsatisfactory? Or because they are too complex to use? Because it is impossible to separate GUI from functional code, especially when the GUI uses low-level libraries not written in Ada. Even if the library were written in Ada, I doubt that a decent GUI builder would be possible to make. You should ask Randy, who is an author of Claw. The only purpose a builder might have (apart from casual applications) is for creating a prototype for the customer, and for later, as a kind of specification for the production GUI. > Also, in case I decide to write all the GUI code manually, which path do > you advise me to take: Gtk or Qt? (I only need basic edit windows, dialogs > and forms). And are there good tutorials that explain how to do it in an > easy way? AFIAK, both frameworks are more or less equivalent in their capacities [and ugliness]. You should probably toss a coin. I don't advocate for Gtk, I took Gtk simply because AdaCore did and because there always has been some shadow of suspicion regarding Qt licensing. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de