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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3ed4c57426e16006 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: GtkAda using Glade Date: Thu, 19 May 2011 12:02:55 +0200 Organization: A noiseless patient Spider Message-ID: References: <15ff2ec1-5a2b-4d24-8aab-cf7985b6374f@t19g2000yql.googlegroups.com> <2e496d2c-f12f-4961-981b-2162fdf1ce1e@k3g2000prl.googlegroups.com> <1vakqa4gwjxry$.9j72428ewqp0.dlg@40tude.net> <1npn5zwqehpsz.1lqame09nycx1.dlg@40tude.net> <96992149-4b0b-4de3-b928-545baa8da5ad@y12g2000yqh.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 19 May 2011 10:02:52 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="vQOapoBCnbPqo6W3WBfabg"; logging-data="17019"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BLnb1AhhyE63FSJEfovUk" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:jnObdPTqPAnn8PVvHMrhg0m9Hp0= Xref: g2news2.google.com comp.lang.ada:20292 Date: 2011-05-19T12:02:55+02:00 List-Id: Le 19/05/2011 09:36, Dmitry A. Kazakov a �crit : > That's the point. If the GUI logic could be separated from the program > logic, which is a Holy Grail, but absolutely unrealistic, then it would be > no matter in which language the stuff was generated, Ada or C. You would > not never look at it. > > Unfortunately the reality is that the GUI and the functional part of the > program are tightly interwoven. Therefore you need to be in full control of > both and want to shape the program's structure as you want for the sake of > clear design and maintainability (Ada's strengths). Any automatically > generated code is just an obstacle here. > > Sorry for sounding daemon's voice again. (:-)) > I think you should really give Glade a try (I think you said you didn't). Creating the various widgets (with appropriate parameters!), stuffing them into containers, connecting call-backs constitute a really boring (and error-prone) part of the development. That's what Glade does for you. In the end, you get your interface built, and a bunch of empty procedures that you have to fill to do anything useful. These are nicely separated, therefore you know precisely the parts that you need to fix, and those that are generated (although looking at what is generated is quite instructive, of course). -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a d�m�nag� / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00