Article View: uk.comp.os.linux
Article #1884Gui tool similar to "Motif Tools"
From: Phil Hunt
Date: Tue, 22 Sep 1998 00:00
Date: Tue, 22 Sep 1998 00:00
54 lines
3891 bytes
3891 bytes
One thing that would be useful for Linux would be a RAD (Rapid Applications Development) tool. Many of these tools for MS Windows allow the user to graphically paint the dialog boxes on the screen, and there are tools for Unix that work the same way. But I don't think this is the best way of approaching the problem. A few years ago a book was published called "Motif Tools" (IIRC it was published by O'Reilly). This was one of the best window- creation tool I ever used. It described the "Xmt" library (and came with the software on a CDROM): The way Xmt worked was that the programmer wrote the design of the window in an Xresource file for the application, in a very high level format. A tool like that takes more time to initially learn than drawing the UI straight on the screen, but once learnt is quick to use and flexible. Perhaps something like that could be implemented for Linux. What I'm thinking of in particular would be a tool where the programmer writes a file describing the UI, and then this is compiled into C++ source containing a class which puts up that UI. The programmer would then subclass this class to create their own class which would contain the functionality of the window; in that way the UI and the functionality would be isolated from each other. Sometimes RAD tools produce code output which the programmer is then expected to edit to create the functionality of the interface, but these are often problematic in that the tool finds it hard to distinguish between the code it has written and the code the programmer has written, so if the UI is changed, the programmer's code gets overwritten. Sometimes the tool attempts to get round this problem in a clumsy way with comments, eg: //**** your code starts here **** ... //**** your code ends here **** IMO this is, at best, ugly. The idea behind putting the UI code and the functionality code in separate classes is to remove this problem. Of course, there's no reason why the tool should be restricted to only producing C++ output; different UI-compilers could be written which would produce output in different languages/libraries, eg: C++/Qt, C++/GTK--, C/Motif, Java/awt, Python/tkinter, etc. Indeed, backends could be written that target other platforms, such as Windows and Macintosh. Does anything like this currently exist for Linux? -- @@ Phil Hunt ........................ Don't fear the penguins! @@ @@ [Disclaimer: this is FREE ADVICE, and is distributed in the @@ @@ hope that it will be useful, but WITHOUT ANY WARRANTY; this @@ @@ advice is not applicable if your name is Gates or Ballmer.] @@
Technical Details
Message-ID:
<906505462snz@vision25.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5392,801ed80c634e88d,start X-Google-Attributes: gidf5392,public X-Google-Thread: 1103af,801ed80c634e88d,start X-Google-Attributes: gid1103af,public X-Google-Thread: fc89c,801ed80c634e88d,start X-Google-Attributes: gidfc89c,public X-Google-Thread: 103734,801ed80c634e88d,start X-Google-Attributes: gid103734,public X-Google-Thread: 1025b4,801ed80c634e88d,start X-Google-Attributes: gid1025b4,public X-Google-Thread: 108717,801ed80c634e88d,start X-Google-Attributes: gid108717,public X-Google-Thread: 10d8ad,801ed80c634e88d,start X-Google-Attributes: gid10d8ad,public From: philh@vision25.demon.co.uk (Phil Hunt) Subject: Gui tool similar to "Motif Tools" Date: 1998/09/22 Message-ID: <906505462snz@vision25.demon.co.uk> X-Deja-AN: 393818611 X-Mail2News-Path: news.demon.net!vision25.demon.co.uk X-Trace: mail2news.demon.co.uk 906508127 mail2news:23770 mail2news mail2news.demon.co.uk Organization: here Reply-To: philh@vision25.demon.co.uk Newsgroups: uk.comp.os.linux,comp.os.linux.misc,gnu.misc.discuss,comp.os.linux.development.system,comp.unix.programmer,comp.windows.x,comp.programming X-Complaints-To: abuse@demon.net