home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / acorn / tech / 1096 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  5.3 KB

  1. Path: sparky!uunet!comp.vuw.ac.nz!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!jwil1
  2. Newsgroups: comp.sys.acorn.tech
  3. Subject: New template format? ...
  4. Message-ID: <1992Dec19.032529.28699@cs.aukuni.ac.nz>
  5. From: jwil1@cs.aukuni.ac.nz (TMOTA)
  6. Date: Sat, 19 Dec 1992 03:25:29 GMT
  7. Sender: jwil1@cs.aukuni.ac.nz (TMOTA)
  8. Organization: Computer Science Dept. University of Auckland
  9. Lines: 104
  10.  
  11. [A discussion of improved template editing, with quite a bit deleted...]
  12.  
  13. >1.  The template editor saves its templates in it's own format, which
  14.  
  15. >2.  When the template editor loads the template file, it also loads and
  16. >    interprets the .h file.
  17.  
  18. >3.  Use the validation string to hold the icon name.
  19.  
  20. Validation strings already hold a damn sight more than they should do...
  21. They have become the prescribed method of extending an icon definition
  22. to do the thigs it should have done in the first place. By the time you have
  23. a reasonable set of validation strings in place, the overhead of parsing
  24. them all is going to take a serious toll...
  25.  
  26. "R" numbers should have 4 bits set aside for the border type, as well
  27. as 4 bits for the slabbing colourm rather than being set as a validation
  28. string.
  29.  
  30. Antialiased font colours ("F") are there because some smart person decided
  31. to overwrite the icon colours with a font handle... a result of icon
  32. definitions being about 32 bytes too small... And the sad thing about this
  33. is that the perfect opportunity to introduce a new format 64-byte icon block
  34. (RISC OS 3.10) has been wasted.
  35.  
  36. etc.
  37.  
  38. >4.  Tack some extra data on the end of the template file and hope...
  39.  
  40. >The whole point of this idea is that, at the end of the day, your program
  41. >doesn't need any non-standard template files
  42.  
  43. Well, three of your suggestions *do* need non-standard template files (you
  44. have to put the new information *soewhere*), and the other involves cramming
  45. more data into validation strings.
  46.  
  47. The other SERIOUS drawback is that you seem to like the idea of the template
  48. editor outputting C code to be included directly into the target application,
  49. which is fine for the AUTHOR, but makes it IMPOSSIBLE for users to edit
  50. the templates to their own liking, one of the touted advantages of templates.
  51. Would you prefer a program which you could easily personalise the
  52. key-bindings, menu layout, and window layout for, or one which is
  53. hard-wired by the programmer to do everything exactly as he/she liked it?
  54.  
  55. Why not just make a clean sweep and go for a new, well designed template
  56. file format, rather than makeshift hacks to the existing system?
  57.  
  58. In any case, you need a new template editor, and some better support for
  59. the new functions offered by the new templates in the target application, so
  60. why stop at a single little thing like tagged icons: Why not come up with
  61. a new template format that fixes almost everything in one go?
  62. (I refer you back to my recent post suggesting a new template format which
  63. supplies tagged icons, new improved icon types/classes such as sliders and
  64. icons that know that they can be dragged, etc. as well as menu templates and
  65. full application key-binding definitions, ALL stored in the new template
  66. format.
  67.  
  68. >or new libraries, and users can still use !FormEd to tweak the templates
  69. >if they feel inclined.
  70.  
  71. Well, no. They can tweak the basic windows behind the templates, but they
  72. are denied the ability to tweak any of the extended functions that the new
  73. template editor provides. (Unless programmers are suddenly going to release
  74. their source code with the distribution... ;-)
  75.  
  76. >The problem with using a new template file standard is (a) I don't think
  77. >you could ever get it to work with RISC-OS lib without horrendous kludges.
  78.  
  79. Who bloody cares about RISC OS Lib? It is widely acknowledged that RISC OS
  80. Lib is a load of crap!
  81.  
  82. Wouldn't you rather have something BETTER than RISC OS Lib which supported
  83. the NEW template system? Because this is what we are suggesting: A new
  84. template format, a new template editor, and new support code to make
  85. life really easy for both the programmer and the end-user.
  86.  
  87. >(Yes, RISC-OS Lib is c**p, but I wrote a few programs before I realised
  88. >that and I don't fancy re-writing them!) and 
  89.  
  90. So? Why not adopt the normal backward-compatability stance and simply
  91. phase out old programs that can't keep up with the new system?
  92. The old programs will still work, they just won't be able to take advantage
  93. of the new features. However, most of the new features you can write into
  94. your programs despite RISC OS Lib (DSEdit II is living breating proof of
  95. this), only they are less easily configured by the end-user.
  96.  
  97. >(b) If those lads and lasses
  98. >at Acorn & Norcroft sort us out with a nice C++ compiler and class
  99. >library, you'd be back to square one.
  100.  
  101. ...or maybe, if we're really QUICK about it, they will support the new
  102. format (when they realise how much better it is), and all C++ programs
  103. will be able to benefit from the system too.
  104.  
  105. Even if this is not the case, I would think that if we are willing to write
  106. the C support code for this in the first place, that we would not find it
  107. too difficult to find enough people to write an equivalent set of libraries
  108. for C++.
  109.  
  110. Lets have some optimism, please!
  111. -- 
  112. _________________  "I'd like to answer this question in two ways:
  113.   /____ _ _/_ __       First in my normal voice, and then
  114.  // / //_//_ /_/       in a silly, high-pitched whine." (Monty Python)
  115.