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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c32fe290813aec20 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e10g2000prf.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: New Ada portable GUI Library? Date: Sat, 12 Jan 2008 10:12:18 -0800 (PST) Organization: http://groups.google.com Message-ID: <4e5ffa74-e1d6-4e80-9dd9-824df475a60c@e10g2000prf.googlegroups.com> References: <6d63c543-0a35-4c39-a330-98c63a24f64d@i3g2000hsf.googlegroups.com> <1365533.nRhg4MZKNK@linux1.krischik.com> NNTP-Posting-Host: 90.201.91.10 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1200161539 28111 127.0.0.1 (12 Jan 2008 18:12:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 12 Jan 2008 18:12:19 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e10g2000prf.googlegroups.com; posting-host=90.201.91.10; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.10) Gecko/20061201 Firefox/2.0.0.10 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:19353 Date: 2008-01-12T10:12:18-08:00 List-Id: On Jan 12, 3:19 pm, Martin Krischik wrote: > Tomek Walkuski wrote: > > In which direction should it go? Portable means: native widgets on all > > platform (wxWidgets approach) or imitation of these (Swing approach)? > > Do you have any other ideas? Some design suggestions? > > I think the wxWidgets idea is the best. Yes it is. I originally started to write a binding library to wxWidgets (http://www.archeia.com/home.html&tags=wxwidgets) but found it incredibly hard to do. We have just had a similar conversation on #Ada (freenode) about this. I think the best way is to create a very thin C lib which exports a bunch of functions for manipulating the underlying GUI lib and then build an Ada library on top of that. These C functions could, if you wanted, for certain platforms be another Ada library which exports to C (for compatibility to the above layer). This then allows binding to a GUI which already has a decent Ada port and to those which don't. Luke.