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!x69g2000hsx.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: New Ada portable GUI Library? Date: Sat, 12 Jan 2008 15:01:43 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <6d63c543-0a35-4c39-a330-98c63a24f64d@i3g2000hsf.googlegroups.com> <1365533.nRhg4MZKNK@linux1.krischik.com> <4e5ffa74-e1d6-4e80-9dd9-824df475a60c@e10g2000prf.googlegroups.com> <970df333-8c12-4f5d-b32b-ded6a84a0195@v4g2000hsf.googlegroups.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 1200178904 26687 127.0.0.1 (12 Jan 2008 23:01:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 12 Jan 2008 23:01:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x69g2000hsx.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:19368 Date: 2008-01-12T15:01:43-08:00 List-Id: On Jan 12, 8:40 pm, Tomek Walkuski wrote: > I think, there is no sense to do binding to wxWidgets. There should be > "clean" implementation of something like wxWidgets. Well, this is the conclusion I have come to. wxAda is a dead project (well to me anyway), but anyone wanted to restart to look into it again, the source is there. > wxWidgets (and Java's SWT) use native GUIs, like GTK on Linux (I do > not have any experience with Win32 API) which is already in C. > > I think that is necessary to prepare own (Ada) abstraction to various > native toolkits. Like I said, a thin C layer abstraction which is then imported into an Ada library and turned into a proper Ada GUI with native controls, this is the best way. For example: Ada GUI Thick bindings ------------------------ Ada GUI Thin bindings ------------------------ C abstraction layer <- Can be provided via C or Ada depending on lowest layer ------------------------ X11 | GtkAda | QT I know three is an X11 binding to Ada but it is old and uses preprocessing and if you want this library to be portable, you've no hope where that's concerned. Hence the use of a set of C calls whether these are written in C or Ada (with export(C, ...) pragmas). Hope that clarifies my point some more. Luke.