home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / object / 4583 < prev    next >
Encoding:
Text File  |  1992-12-18  |  2.6 KB  |  58 lines

  1. Newsgroups: comp.object
  2. Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!mprgate.mpr.ca!lichen!janzen
  3. From: janzen@lichen.mpr.ca (Martin Janzen)
  4. Subject: Re: C++ tools recommendations wanted
  5. Message-ID: <1992Dec17.213730.2153@mprgate.mpr.ca>
  6. Sender: janzen@lichen (Martin Janzen)
  7. Reply-To: janzen@mprgate.mpr.ca
  8. Organization: MPR Teltech Ltd.
  9. References:  <7623@fury.BOEING.COM>
  10. Date: Thu, 17 Dec 92 21:37:30 GMT
  11. Lines: 45
  12.  
  13. In article <7623@fury.BOEING.COM>, cek@sdc.boeing.com (Conrad Kimball) writes:
  14. >[wants suggestions for C++ software development tools]
  15.  
  16. >How about GUI builders, such as UIM/X?  There are quite a few competing
  17. >products for use in building C applications, but how well do they work
  18. >in a C++ environment?
  19.  
  20. I've used UIM/X, but find that I prefer X.Designer (from Imperial Software
  21. Technology, sales@ist.co.uk; or V.I. Corp., info@vicorp.com), because of
  22. its widget tree editor, layout editor, and numerous other small details
  23. not really relevant to comp.object...
  24.  
  25. X.Designer generates code that contains one global variable for each widget
  26. to which you assign a variable name.  I create one class for each interface
  27. (ie. each separate Shell widget and child widget tree).  The constructor
  28. calls the XD-generated function, then copies the global variables to
  29. private data members.  This encapsulates the interface nicely, and makes
  30. it easy to create multiple instances of the interface.  (I do have to
  31. filter the generated code through a sed script; I'd be happy to mail you
  32. the script if you end up using X.Designer.)
  33.  
  34. >What about Motif toolkits for use with C++?  C++ wrappers around the
  35. >OSF Motif toolkit?  Native C++ toolkits that deliver Motif look and
  36. >feel?
  37.  
  38. The problem with C++ wrappers like WWL is that a) they prevent you from
  39. using a UI builder, and b) you're dealing with a lot of very small classes,
  40. corresponding to individual widgets.  Some people may prefer this; I've
  41. found it easier to use something similar to Doug Young's approach (see his
  42. book "Object-Oriented Programming with C++ and OSF/Motif", Prentice-Hall,
  43. 1992, 0-13-630252-1), in which each class corresponds to a higher-level
  44. abstraction within the program (such as an entire interface), encapsul-
  45. ating a _group_ of related widgets, and all associated callbacks, actions,
  46. member functions, and so on.
  47.  
  48. I haven't tried any of the native C++ toolkits like InterViews or OI (or
  49. whatever ParcPlace calls it now).
  50.  
  51. Hope that helps...
  52.  
  53. -- 
  54. Martin Janzen                     janzen@mprgate.mpr.ca (134.87.131.13)
  55. MPR Teltech Ltd.                  Phone: (604) 293-5309
  56. 8999 Nelson Way                   Fax: (604) 293-6100
  57. Burnaby, BC, CANADA  V5A 4B5
  58.