Diff for /libwww/Library/src/Attic/HTDirBrw.html between versions 2.4 and 2.5

version 2.4, 1994/04/27 11:35:17 version 2.5, 1994/04/28 18:53:23
Line 67  typedef enum _HTDirShow { Line 67  typedef enum _HTDirShow {
 } HTDirShow;  } HTDirShow;
 </PRE>  </PRE>
   
 The icon filenames are defined in the module.  
   
 <H3>How long can filenames be</H3>  <H3>How long can filenames be</H3>
 The filename column varies within the boundaries specified as global  The filename column varies within the boundaries specified as global
 variables in HTDirBrw.c; filenames greated than  variables in HTDirBrw.c; filenames greated than
Line 78  extern int HTDirMaxFileLength; Line 76  extern int HTDirMaxFileLength;
 extern int HTDirMinFileLength;  extern int HTDirMinFileLength;
 </PRE>  </PRE>
   
   
 <H3>Show byte count for small files</H3>  <H3>Show byte count for small files</H3>
 By default the size for files smaller than 1K will be shown as 1K.  By default the size for files smaller than 1K will be shown as 1K.
 If the global variable <CODE>HTDirShowBytes</CODE> is set to true,  If the global variable <CODE>HTDirShowBytes</CODE> is set to true,
Line 87  they will be shown as bytes. Line 84  they will be shown as bytes.
 extern BOOL HTDirShowBytes;  extern BOOL HTDirShowBytes;
 </PRE>  </PRE>
   
   
 <H3>Show brackets around alternative text</H3>  
 By default alternative text is bracketed by square brackets (the  
 <CODE>ALT</CODE> tag to <CODE>IMG</CODE> element).  Setting the global  
 <CODE>HTDirShowBrackets</CODE> to false will turn this feature off.  
 <PRE>  
 extern BOOL HTDirShowBrackets;  
 </PRE>  
   
   
 <H3>Descriptions</H3>  <H3>Descriptions</H3>
   
 The <CODE>HTDirDescriptions</CODE> flag, if true, causes  The <CODE>HTDirDescriptions</CODE> flag, if true, causes
Line 169  extern int HTFTPBrowseDirectory PARAMS(( Line 156  extern int HTFTPBrowseDirectory PARAMS((
                 HTDirLineInput  input));                  HTDirLineInput  input));
 </PRE>  </PRE>
   
 <H2>Icons</H2>  
   
 Icons are bound to MIME content-types and encoding.  These functions  
 bind icon URLs to given content-type or encoding templates.  Templates  
 containing a slash are taken to be content-type templates, other are  
 encoding templates. <P>  
   
 All of these functions take an absolute URL and alternate text to use. <P>  
   
 <PRE>  
 /*  
  * General icon binding.  Use this icon if content-type or encoding  
  * matches template.  
  */  
 PUBLIC void HTAddIcon PARAMS((char *    url,  
                               char *    alt,  
                               char *    type_templ));  
   
 /*  
  * Icon for which no other icon can be used.  
  */  
 PUBLIC void HTAddUnknownIcon PARAMS((char * url,  
                                      char * alt));  
   
 /*  
  * Invisible icon for the listing header field to make it aligned  
  * with the rest of the listing (this doesn't have to be blank).  
  */  
 PUBLIC void HTAddBlankIcon PARAMS((char * url,  
                                    char * alt));  
   
 /*  
  * Icon to use for parent directory.  
  */  
 PUBLIC void HTAddParentIcon PARAMS((char * url,  
                                     char * alt));  
   
 /*  
  * Icon to use for a directory.  
  */  
 PUBLIC void HTAddDirIcon PARAMS((char * url,  
                                  char * alt));  
 </PRE>  
   
   
 <H4>A Predifined Set of Icons</H4>  
 The function <CODE>HTStdIconInit(url_prefix)</CODE> can be used to  
 initialize a standard icon set:  
 <UL>  
 <LI> <CODE>blank.xbm</CODE> for the blank icon  
 <LI> <CODE>directory.xbm</CODE> for directory icon  
 <LI> <CODE>back.xbm</CODE> for parent directory  
 <LI> <CODE>unknown.xbm</CODE> for unknown icon  
 <LI> <CODE>binary.xbm</CODE> for binary files  
 <LI> <CODE>text.xbm</CODE> for ascii files  
 <LI> <CODE>image.xbm</CODE> for image files  
 <LI> <CODE>movie.xbm</CODE> for video files  
 <LI> <CODE>sound.xbm</CODE> for audio files  
 <LI> <CODE>tar.xbm</CODE> for tar and gtar files  
 <LI> <CODE>compressed.xbm</CODE> for compressed and gzipped files  
 </UL>  
 <PRE>  
 PUBLIC void HTStdIconInit PARAMS((char * url_prefix));  
 </PRE>  
   
 <PRE>  <PRE>
 #endif /* HTDIRBRW */  #endif /* HTDIRBRW */
 </PRE>  </PRE>
   end
 </BODY>  </BODY>
 </HTML>  </HTML>

Removed from v.2.4  
changed lines
  Added in v.2.5


Webmaster