home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / boopsi / dragclass / readme < prev    next >
Text File  |  1977-12-31  |  3KB  |  71 lines

  1.  
  2.         Drag Example
  3.  
  4. This archive contains the source of a simple BOOPSI drag Gadget.
  5. It is not functional since there are no drop-objects defined.
  6. I planned to create a generic class for drop objects, but
  7. when I heard mui would get full D&D I lost my interest; up
  8. to now there is still no reusable Drag class available,
  9. so perhaps somebody might have an interest for this example.
  10.  
  11. The source code is presented in the file "drag.class" in a very
  12. unusal form; to build normal C-code U first have to invoke
  13. a sort of preparser that genaertes the Code from the class file
  14. and another Template file, that contains the skeleton of a class ...
  15.  
  16. The "drag.class" format itself is used since I hate boring
  17. stdt typing of thing that could eaily be done by the Computer
  18. especially for testing and Prototypes, where I wanna be able
  19. to concentrate to the problem.
  20.  
  21. Its major advantage is: it is short, and IMHO better readable
  22. than plain C-Source (e.g. Attributes are packed - You can
  23. immediately see, if a certain Attribute is e.g. settable)
  24. OIn the other side are two Disadvantages: there is one more
  25. generation step that increases compile times and the resulting
  26. code is very slow since some hand optimisations cannot be
  27. performed ... (especially the second one is a very heavy minus
  28. since BOOPSI classes are partly run on intuition's context;
  29. so I think that pre-code solution can not be used for bigger
  30. projects - I don't wanna see my Amiga being as slow as a "Dose")
  31.  
  32. the archive contains two other simple examples for the preparser:
  33. icon.class   uses a workbench icon as a gadget image
  34. rkmbut.class is the extraction of the RKMButtonClass example
  35.          from the RKRM Libraries
  36.  
  37. All Examples can be compiled w/ DICE v2.07r (there might be
  38. some warnings left however); I dunno, if there are any problems
  39. with SAS/C; but they can surely not be compiled with GCC or
  40. another compiler since we have to use non-std Qualifiers, that
  41. make code non-portable ...
  42.  
  43. Please note, that for compilation/linking of drag_test
  44. U would need the "animtools" package of CBM RKRM Libraries;
  45. as I do not know if everybody has access to it, I have
  46. included a stripped version of its includes and an objectfile,
  47. so at least linking should be no problem. (Hope that is no
  48. copyright volation ...)
  49.  
  50.  
  51. If there are any questions flames etc., I can be reached via
  52. EMail:
  53.     noll@student.uni-kl.de    or
  54.     b_noll@informatik.uni-kl.de
  55.  
  56. (I would be very interested, if s.o was able use it)
  57.  
  58.  
  59. greetings, Bernd "0" Noll
  60.  
  61.  
  62.  
  63. Oh - I forgot:
  64.     This archive is released as is and I can not be made
  65.     responsible for any damage that is caused by it...
  66.     (etc. etc.)
  67.  
  68. PS - please excuse that chaos - this is my 1st release
  69.      of anything ...
  70.  
  71.