From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 4468FBDCB for ; Wed, 31 Aug 2005 10:19:44 +0200 (CEST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.196]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j7V8Jh60018266 for ; Wed, 31 Aug 2005 10:19:44 +0200 Received: by nproxy.gmail.com with SMTP id x4so14324nfb for ; Wed, 31 Aug 2005 01:19:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oT+18m04cI+iGOOR5fWD/7Kb5nbnXGez7xFZAzGNso2Oyg8HvPDpJ5f6URcqpxMMj4c2m80IPQAw6TE/stueZ45kCpltJhvovxPkXVCtJui/dxCWrU/wsWWjMFyVfe/i9tpcipQ2Jp3qFLy4bXj9rEJWLD0qIxmqdrNeJ2KdW1E= Received: by 10.49.2.10 with SMTP id e10mr27499nfi; Wed, 31 Aug 2005 01:19:43 -0700 (PDT) Received: by 10.48.42.9 with HTTP; Wed, 31 Aug 2005 01:19:43 -0700 (PDT) Message-ID: <3d13dcfc05083101196865c964@mail.gmail.com> Date: Wed, 31 Aug 2005 10:19:43 +0200 From: David MENTRE Reply-To: To: yoann padioleau Subject: About Lablgtk2 (was: e: GUI for OCaml) Cc: Jon Harrop , caml-list@yquem.inria.fr In-Reply-To: <3F903DC1-3DE6-4D58-8032-CD1C19074E2F@wanadoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4311DA63.4010104@havenrock.com> <200508292333.59714.jon@ffconsultancy.com> <3d13dcfc050830001671d0974f@mail.gmail.com> <3F903DC1-3DE6-4D58-8032-CD1C19074E2F@wanadoo.fr> X-Miltered: at nez-perce with ID 4315681F.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; lablgtk:01 ocaml:01 gtk:01 ocaml:01 gtk:01 ocamldoc:01 lablgtk:01 widget:01 callbacks:01 ...:98 panes:98 positioning:98 modules:01 hierarchy:01 hierarchy:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=RCVD_BY_IP,REPLY_TO_EMPTY autolearn=disabled version=3.0.3 Hello Yoann, 2005/8/31, yoann padioleau : > > [me:] > > well documented (with reference manual and tutorial) and with > > > You have that for gtk, ok it is not in ocaml but you can make the > translation quite easily from langage X to ocaml. Ok, let's me try to reword my criticism: I find the use of Labgtk2 objects not easy at all. I find the use of objects and the class hierarchy very confusing. Maybe this is just an issue of documenting the general mapping of Gtk2 signals, objects, ... to OCaml modules and objects. Maybe ocamldoc should be improved to allow unfolding a method accessible through the class hierarchy in one class. Or maybe I'm too stupid to understand the toolkit. Or maybe I'm unable to grasp OCaml objects. The net result is that using Lablgtk2 is really a pain. However, I do use Labgtk2 for the graphical interface of my application so I at least consider that I have written enough code to make my own point of view. With all the examples, I'm able to write basic interface (i.e. buttons, menus, etc.) through copy/paste. But I'm still not able to write code that would match GUI design I would like to have. > > necessary tools (GUI design application) would be very very helpful. >=20 > Do you really find useful such RAD tools ? Yes. Yes and yes. Have you ever programmed a GTk2 application? Have you ever see the number of options available for each widget? I'm using Glade to produce the XML interface for Labgtk2 (of course, callbacks are written in regular OCaml code). It saved me hours of interface layout design. I'm not speaking of two buttons into a window. I'm speaking of sliding panes, with several buttons, text boxes and TreeView in each, playing with options to make relative positioning suits your needs. Yours, d.