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: a07f3367d7,3ad7a8611c2e60ae X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.freenet.de!news.teledata-fn.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: GUI with Ada? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <2RRWm.115219$gg6.92260@newsfe25.iad> Date: Fri, 18 Dec 2009 22:09:39 +0100 Message-ID: <1qd0ymi7sx7vq$.1excedm0dm8c6.dlg@40tude.net> NNTP-Posting-Date: 18 Dec 2009 22:09:46 CET NNTP-Posting-Host: fff280bc.newsspool4.arcor-online.net X-Trace: DXC=j3[Z=WdSJhPPU8j_I0DN6_4IUK2jId:n\ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:8429 Date: 2009-12-18T22:09:46+01:00 List-Id: On Fri, 18 Dec 2009 14:44:54 -0600, Nasser M. Abbasi wrote: > I have not kept up with Ada for sometime. I was wondering, if someone wants > to develop a simple GUI (plots, menus, buttons, graphs, etc..) using Ada, > and have the code compile to a .exe on windows and linux, which is the > current most popular software pieces needed for the GUI? I guess that among portable frameworks the most popular ones with Ada bindings are Gtk, Qt. > Assuming I will be using GNAT. Which gcc version should I be using these > days which has the latest Ada support in it? Should I be using gcc directly > for Ada programming these days, or use GNAT GPL 2009 version from Libre web > site http://libre.adacore.com/libre/ ? AFAIK, for GtkAda either would go. > I know there are few choices for the GUI, and just wanted to check what is > the "best" choice do you think for that. One with a GUI builder would be > nice (i.e. where one can pick the components and lay them out to design the > interface). This will be an school program, nothing commercial. I wanted to > try to write some basic finite element code in Ada, but need a GUI part for > the simulation part. As for Gtk, it has such a tool GLADE. I am using Gtk for a long time, but I never felt any desire or necessity to use GLADE. I prefer to go rather OO, designing custom widgets derived from Gtk containers, which is fairly simple in Gtk (while many other things, trivial in other GUI frameworks are unnecessary difficult in Gtk). Gtk has a widget sizing model somewhat similar to TeX, this is an approach in its core opposite to the GUI design tool. Imagine a text editor, in which you would move each word of the text around paper in a way the sorts were used in typesetting? Admittedly a design tool gives you some approximate result quicker. But it is never good and never scalable. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de