home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / ipl / gprogs / cw.icn < prev    next >
Text File  |  2000-07-29  |  1KB  |  49 lines

  1. ############################################################################
  2. #
  3. #    File:     cw.icn
  4. #
  5. #    Subject:  Program to manipulate color ways
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     August 19, 1996
  10. #
  11. ############################################################################
  12. #
  13. #   This file is in the public domain.
  14. #
  15. ############################################################################
  16. #
  17. #  See colorway.icn for documentation
  18. #
  19. ############################################################################
  20. #
  21. #  Requires:  Version 9 graphics
  22. #
  23. ############################################################################
  24. #
  25. #  Links:  colorway
  26. #
  27. ############################################################################
  28.  
  29. link colorway
  30.  
  31. procedure main()
  32.  
  33.    cw_init()
  34.  
  35.    cw := colorway(table())    # initial color way
  36.    cw.table["white"] := "white"
  37.    cw.table["black"] := "black"
  38.    cw_file := ""
  39.    win_cw()
  40.    expose(cw_interface)
  41.  
  42.    repeat {
  43.      if \cw_active then edit_cw()
  44.      else ProcessEvent(cw_root, , shortcuts)
  45.      }
  46.  
  47.  
  48. end
  49.