home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / System / DefIcons44 / DefIcons44.doc < prev    next >
Text File  |  2000-01-21  |  9KB  |  218 lines

  1.                 DefIcons v44
  2.         © 1999-2000 by Stephan Rupprecht
  3.              All rights reserved.
  4.  
  5.  
  6. COPYRIGHT AND DISCLAIMER
  7.  DefIcons v44 is copyrighted 1999-2000 by Stephan Rupprecht. 
  8.  All rights reserved. This program is freeware, so no financial
  9.  donations required. Redistribution allowed if the package is 
  10.  left unchanged. The author is not responsible for any damage 
  11.  caused by the use or misuse of this documentation and/or the 
  12.  program(s) it describes.
  13.  
  14.  Original idea and program © by Team NewIcons.
  15.  Included brainfile was created in 1997 by <R.MacLean@hw.ac.uk>
  16.  it was updated and bugfixed by Stephan Rupprecht in 1999 :)
  17.  ProcessFile.rexx was written/modified by various authors.
  18.  I hope that no one bothers that I included them into the archive
  19.  without asking for permission ;)
  20.  
  21.  
  22. REQUIREMENTS
  23.  Any Amiga® (compatible) computer with at least OS3.5,
  24.  a deficons.prefs file (included) and some def_xxxx.info files
  25.  (both can be found in the NewIcons package. There're
  26.  also some nice default icons available from other artists).
  27.  
  28.  
  29. DESCRIPTION
  30.  DefIcons turns any faked icon (displayed when you pick the menu
  31.  item Window/Show/All Files) into a more meaningful one. Depending
  32.  on its prefs file, the program can identify different filetypes
  33.  and supply an appropiate icon for each of them. For a complete
  34.  documentation, please take a look at the original DefIcons
  35.  documentation which is a part of NewIcons.
  36.  
  37.  
  38. INSTALLATION
  39.  To install the program and the preferences editor, simply start
  40.  the provided Installer script.
  41.  If you don't have any default icons installed yet, you must copy
  42.  them manually from the NewIcons package to your envarc:sys drawer.
  43.  
  44.  
  45. USAGE
  46.  The program does not take any arguments or tooltypes. It can be
  47.  started either from wb or shell. You can terminate the program
  48.  at any time by pressing/sending ctrl-c (see cli command break) to
  49.  it, or by starting it a second time.
  50.  
  51.  --- Using the preferences editor "DefIconsPrefs" ---
  52.  DefIconsPrefs allows you to change the deficons brainfile in an
  53.  easy and comfortable way. To start the program simply doubleclick
  54.  its icon (make sure you have installed the deficons.prefs brainfile
  55.  before). Now you can start editing the brainfile, to add a new filetype
  56.  to the "Filetypes" list, press the "Add" button and enter the name
  57.  of the filetype into the string gadget below the list. DefIcons/
  58.  icon.library will later use this name to find the icon which
  59.  belongs to the filetype. Choose "Information ..." from the "Icon"
  60.  menu or doubleclick the filetype to get information on the icon. 
  61.  To remove an entry press "Remove" (please note: removing a class
  62.  [=filetype] will also remove its children!). The arrow buttons can
  63.  be used to the change the position of the selected filetype(s)/
  64.  class(es) in the list. In order to identify a filetype, DefIcons
  65.  also needs to know how this can be done. Therefore the window
  66.  contains another list which shows all actions (they are the 
  67.  description of the filetype) that have been defined for the 
  68.  selected filetype. To add a new action to the filetype, press the
  69.  "Add" button, hold down the mouse button and select one of the 
  70.  following actions from the popup menu (then release the button:)
  71.  
  72.  MATCH: the file must contain the given string at the given offset
  73.   (relative to the current position). Hexvalues must be entered 
  74.   using the following style, eg. \x0a for 10 or \xff for 255 ...
  75.    
  76.  SEARCH: the file must contain the given string somewhere starting at
  77.   the current position. If you select 'Skip spaces:', only spaces and
  78.   tabs are allowed to precede the given string.
  79.   
  80.   "current position" means that each matching action (SEARCH/MATCH)
  81.   increases the current position within the file. When a description
  82.   doesn't match the next action will start at the beginning of the
  83.   file.
  84.  
  85.  PATTERN: the filename must match the given pattern.
  86.  
  87.  FILESIZE: the file must have the given size.
  88.  
  89.  PROTECTION: the file must have the given protection bits (un)set.
  90.  
  91.  ISASCII: check whether the file is a text file or not (only used by
  92.   'ascii' type).
  93.  
  94.  OR: alternative description follows.
  95.  
  96.  MACROCLASS: this filetype will never become valid. Only its icon
  97.   will be used, if one of the children, which does not have an 
  98.   icon, becomes valid.
  99.  
  100.  
  101. FREQUENTLY ASKED QUESTIONS (FAQ)
  102.  Q: I have some nice icons for my ram: and pc0: disks installed
  103.     but unlike the original DefIcons, I just get this ugly black
  104.     and white disk icon (or the def_disk.info one). Why ?
  105.  A: wb3.5 and DefIcons44 don't add a "disk" to the icon name. So,
  106.     for an example, your default icon for the Ram Disk should be
  107.     named def_RAM.info and not def_RAMdisk.info. BTW: Please 
  108.     don't ask me to change it, I just stick to the naming convention
  109.     wb uses ;)
  110.     
  111.  Q: I made the changes, you mentioned before. But I still get this
  112.     ugly b/w icon :(
  113.  A: Make sure that your default icons for disks are really disk icons.
  114.     If not, please use IconEdit to change them.
  115.  
  116.  Q: For MSD0 (crossdos) disks I always get this ugly default icon. Is
  117.     there any way to fix this problem?
  118.  A: Load l:crossdosfilesystem into a hexeditor, look for disk.info
  119.     and replace it with dusk.info.
  120.  
  121.  Q: For CDDA disks I just get this ugly default icon. Why?
  122.  A: CacheCDFS loads the default icon for CDDA disks from ENV:.
  123.     Type "makelink envarc:cdda.info envarc:sys/def_CDDA.info"
  124.     into a shell to workaround the problem.
  125.     
  126.  Q: When I double-click a "faked" icon which has as default tool
  127.     "c:version" (or any other c: command). I get an "Unexpected
  128.     dos-packet" guru (0x07000004). What's wrong?
  129.  A: The default tool is a shell command and doesn't support to be
  130.     started as a wb application. Your def_whateveritwas.info
  131.     file needs to be updated: Enter your ENVARC:Sys drawer, click
  132.     on the icon in question and select "Information ..." from the
  133.     wb menu. Now click on the "Start from:" cycle gadget 'til it
  134.     shows "Shell". Save the changes :)
  135.     
  136.  Q: My def_lharc icon has "lha x" as default tool. Now when I try
  137.     to unpack a lha file, I get an error message from wb telling
  138.     me that it couldn't find the command. Again, what's wrong?
  139.  A: Workbench treats the "Default tool" field as a path, which
  140.     means that workbench adds quotation marks to it whenever it
  141.     contains spaces (which is the case for "lha x"). This makes
  142.     DOS think that "lha x" is the name of the command to start but
  143.     since this command doesn't exist, DOS will fail to find it.
  144.     That's why you get the error message:) I suggest to use the
  145.     ProcessFile.rexx script to fix this problem: Copy the script to
  146.     your REXX: drawer, make sure it has the S(cript) protection bit
  147.     set and change the "Default tool:" field of the def_lharc 
  148.     icon to "REXX:ProcessFile.rexx". Next select "Start from: Shell"
  149.     and uncheck the "Wait for input" checkbox (also see previous and
  150.     next Q&A). That's all.
  151.   
  152.   Q: Is there any way to get rid-off this "Execute command" window
  153.      when starting a shell command or (arexx) script?
  154.   A: Yes, of course. Your default icon must have the NOPROMPT tool-
  155.      type set ("Wait for input" checkbox unchecked).
  156.      
  157.   Q: Any way to get rid-off the quotation marks wb adds to the 
  158.      "default tool" field?
  159.   A: No, there isn't. Which means that I don't want to write a patch
  160.      for it ;)
  161.      
  162.   Q: DefIcons seems not to work. I also have TweakWB installed.
  163.   A: Make sure you have the "DefIcons" function of TweakWB deactivated.
  164.      The order you start the program is also important: Please start
  165.      DefIcons AFTER TweakWB.
  166.      
  167.   Q: I copied DefIcons44 to my C: drawer and added the line C:DefIcons44
  168.      to my s:user-startup. Now when my computer boots, it suddenly stopps
  169.      booting when it reaches the mentioned line. Why?
  170.   A: Unlike the original DefIcons, this program needs to be "Run". 
  171.  
  172.  
  173. HISTORY
  174.  44.0    first public release
  175.  44.1    filetype recognition didn't always work because of two
  176.      minor bugs. misc internal changes. again updated 
  177.      deficons.prefs. added a slightly changed version of
  178.      ProcessFile.rexx which views html documents by using
  179.      OpenURL(.library).
  180.  44.2    added FAQ to the doc. included DefIconsPrefs. case insensitive
  181.      ACT_SEARCH and ACT_MATCH didn't work correctly because of a
  182.      buggy TOLOWER macro.
  183.  44.2a    updated DefIconsPrefs (44.1): added some missing error requesters,
  184.      no longer requires a deficons.prefs file in env: to start, new menu
  185.      item to load iconedit. 
  186.  44.2b    updated DefIconsPrefs (44.2): added a menu item to merge a deficons
  187.      prefs file to the current one. starts IconEdit from wb now. added
  188.      weightbar to the window.
  189.  44.3    in 44.2 I fixed the TOLOWER macro but the fix was somehow useless
  190.      as I forgot to store the return value;) Funny, that the compiler
  191.      didn't complain about the statement. Anyway, I received the original
  192.      DefIcons source today (thanks to Olaf Barthel and Eric Sauvageau)
  193.      and found out that my implementation of ACT_SEARCH and ACT_MATCH
  194.      was wrong: both actions work relative to the current position
  195.      within the file not from the beginning (each matching ACT_SEARCH,
  196.      ACT_MATCH increases the position). changed portname from "DefIcons"
  197.      to "deficons". 
  198.  44.3a    updated DefIconsPrefs (44.3): fixed cosmetical bug when using
  199.      background images <Nils Goers>.
  200.  
  201.  
  202. AUTHOR
  203.  
  204.  Please send bug reports and ideas to:
  205.  
  206.     Stephan Rupprecht
  207.     Apfeldweg 1
  208.     D44359 Dortmund
  209.     Germany
  210.  
  211.  Send emails to
  212.  
  213.     stephan.rupprecht@gmx.de
  214.     
  215.  WWW
  216.  
  217.      http://www.stephan.2xs.de
  218.