home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 565a.lha / CDCat_v1.0 / CDCat.doc.pp / CDCat.doc
Encoding:
Text File  |  1991-11-01  |  20.2 KB  |  436 lines

  1.                               CDCat Version 1.0
  2.                                 Documentation
  3.  
  4. CDCat, the compact disc database, is Copyright 1991 John M. Meyers. It is
  5. freely distributable through various telecommunication sources as long is
  6. this archive is kept intact. This means that the following files must be
  7. included, and unaltered:
  8.  
  9.              Name               Size            Description
  10.  
  11.              CDCat              26796 bytes     Program file
  12.              CDCat.info          1140 bytes     Icon for Workbench
  13.              CDCat.doc          20707 bytes     This documentation file
  14.              cddata              4697 bytes     Abridged copy of my data file
  15.                                                 to let you try CDCat without
  16.                                                 having to enter all your data.
  17.  
  18. Permission is given to services that distribute disks of public domain,
  19. shareware, and freely distributable software provided that 1) all of the four
  20. files above are included in unaltered form, and 2) those services charge only
  21. for media, duplication, and shipping costs.
  22.  
  23. This program MAY NOT be included with any commercial product without the
  24. expressed written permission of the author, John M. Meyers.
  25. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  26.                "BEFORE I BOTHER RUNNING IT, WHAT DOES IT DO?"
  27.  
  28.  CDCat is a simple database with many features including :
  29.  
  30.  * 999 entry capability.
  31.  * Eight datafields per entry
  32.      1) Artist
  33.      2) Album
  34.      3) Year
  35.      4) Tracks
  36.      5) Label
  37.      6) Catalog Number
  38.      7) Number of discs in set
  39.      8) Comment
  40.  * Search capability by field with wildcard support.
  41.  * Comprehensive sorting function sorts the list TWICE by two user-chosen
  42.    criteria.
  43.  * Built in view window allows user to see many entries at once. View
  44.    window also supports non-proportional fonts of all [reasonable] sizes.
  45.  * Output mode to dump list of entries to file (or printer)
  46.  * User-definable formatting for output and view window functions.
  47.  * Preferences feature to change settings, and save them.
  48.  * Smaller than 27K. (Can be compressed to fewer than 15 kilobytes)
  49.  * Of course, CDCat is 2.0 compatible.
  50.  
  51. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  52.                             > > DISCLAIMER < <
  53.  
  54.    I WROTE THIS PROGRAM WITH MY NEEDS IN MIND. I am releasing it because
  55. others may find it useful. If they don't, I'll shed no tears.
  56.  
  57. But, don't let this scare you. If you feel a feature is missing, feel free
  58. to suggest it. Who knows? I may like it and decide that an upgrade is
  59. worthwhile.
  60.  
  61. CDCat is NOT shareware, so if you like it, you are under no obligation
  62. to contribute anything.
  63.  
  64. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  65.                          CREDIT WHERE IT'S DUE...
  66.  
  67. Special thanks goes out to...
  68.  
  69.     Steve Hoult - for his suggestions, and exhaustive testing (including
  70.                   under AmigaDOS 2.0)
  71.  
  72.     Dave Timmer - for his suggestions and testing
  73.  
  74. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  75.                             PROGRAM DESCRIPTION
  76.  
  77.     I've been looking for a small database program that would allow me to
  78. catalog my compact disc collection for some time now. I've found plenty
  79. of fine address-book programs, but not a program that would easily (and
  80. reliably) let me keep track of my albums, so I decided I would change
  81. things.
  82.  
  83.     CDCat was written to fill this gap. Not only will it allow you to
  84. quickly enter your albums, but it has some fairly comprehensive sort and
  85. search capabilites, as well as flexible view/output modes. There is also
  86. a small preferences feature to allow you to save your options. All this, in
  87. a program under 27K.
  88.  
  89.     Don't let the name scare you into thinking this program will only be
  90. useful for compact disc collections. Cassette and LP collectors may benefit
  91. equally as well. Steve Hoult suggested that there be a method to include
  92. all media types in the same data file, with some way of differentiating them.
  93. I decided to include a general-purpose "comment" field, which may be used
  94. for this purpose. (So, the tapes in your collection could be commented as
  95. "Cassette", or whatever)
  96.  
  97. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  98.                            RUNNING THE PROGRAM
  99.  
  100.     CDCat takes no arguments, so simply entering the program name from the
  101. CLI is sufficient to start the program. Because CDCat detaches itself from
  102. the CLI, there is no need to use RUN or RUNBACK.
  103.  
  104.     Workbench users...[drum roll]... just double click the icon.
  105.  
  106. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  107.                              OVERVIEW OF GADGETS
  108.  
  109.     This overview is just to familiarize you with the gadgets. The functions
  110. activated by them are detailed later on in the document.
  111.  
  112.  o Field string gadgets - these eight gadgets are where you enter (and
  113.    view) your entries.
  114.  o "-", index, and "+" gadgets - flip through your entries with these
  115.  o ADD - toggle the ADD mode
  116.  o UPDATE - replace the current entry with the information currently
  117.    in the fields
  118.  o CLEAR - Either wipe the data from the fields, or abort certain operations
  119.  o DELETE - remove the current entry from the list
  120.  o SEARCH - enter SEARCH mode, with the fields determining the search
  121.    criteria
  122.  o SORT - SORT the list based on the criteria set in CDCat's preferences
  123.  o NEW - wipe out the whole list and start over
  124.  o VIEW - open the VIEW window
  125.  o PREFS - open CDCat's preferences window
  126.  o filename string gadgets - holds filenames used in I/O operations
  127.  o LOAD - load data file from file specified in Load/Save gadget
  128.  o SAVE - save data file to file specified in Load/Save gadget
  129.  o OUTPUT - dump data in formatted text to file specified in Output Name
  130.    gadget
  131.  
  132. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  133.                     QUICK DESCRIPTION OF ENTRY FIELDS
  134.  
  135.     The artist,album, and year fields are obvious, so I won't bother.
  136.  
  137.     Tracks  - the number of songs on the disc.
  138.  
  139.     Label   - the company the disc came from.
  140.  
  141.     Catalog - catalog number of the compact disc. (Usually on end of jewel box)
  142.               (Thanks to Steve Hoult for this suggestion)
  143.  
  144.     Discs   - number of discs in the album
  145.  
  146.     Comment - Fifty characters of anything you want.
  147.  
  148.    Dave Timmer suggested that you can use the discs field to also store
  149.  the album medium. So perhaps "D1" could mean compact disc with 1 disc, or
  150.  "C1" could mean one cassette.
  151. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  152.  
  153.                         HOW DO I ADD ENTRIES?
  154.  
  155.     To begin entering your albums, hit CLEAR to clean the fields. Then,
  156. hit ADD and start entering your albums starting with the Artist field.
  157. Note that when you press [RETURN] in one field, the cursor goes to the
  158. next. (EXCEPTION - if Artist or Album fields are empty, the cursor will
  159. stay. (Thanks to Steve Hoult for that suggestion.)) When you press
  160. [RETURN] in the Comment field, the entry will be saved in the list, the
  161. fields will be cleared, and you will start fresh in the Artist field.
  162. Please note that the only way to actually save the entry is to press
  163. [RETURN] in the Comment field. If you exit ADD MODE without saving the
  164. current field, the list will NOT be updated. In fact, you will also lose
  165. the current field, because when ADD MODE is exited, the last entry in the
  166. list is displayed.
  167.  
  168.     If you want to change the current entry, simply change the desired
  169. field(s) and hit UPDATE. This will change the current entry to reflect the
  170. information in the fields. Note that the list is not changed until you
  171. hit UPDATE. Changing fields in itself doesn't update anything.
  172.  
  173. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  174.                         HOW 'BOUT DELETING ENTRIES?
  175.  
  176.     Double-clicking DELETE will remove the current entry from the list.
  177. If you hit DELETE and have second thoughts, click CLEAR to abort. DELETE
  178. will not work in ADD or SEARCH modes.
  179.  
  180.     If you want to erase ALL entries, double-click NEW. You again have the
  181. option of aborting by clicking CLEAR. And, NEW will not work in ADD or
  182. SEARCH modes, either.
  183. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  184.                             MANEUVERING AROUND
  185.  
  186.     The "-" and "+" gadgets will move backward or forward, respectively,
  187. through the list. Entering a number in the gadget between those two will
  188. allow you to specify which entry to go to. If you enter a number that is
  189. greater than the maximum entry in your list, it will leave you at that
  190. last entry.
  191.  
  192.     In SEARCH mode, the two direction gadgets go through the list of
  193. matching fields. The center gadget is inoperative.
  194. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  195.                             FINDING STUFF
  196.  
  197.     To find entries with common fields, use the SEARCH mode. To enter
  198. it, put your search criteria in the desired fields and click SEARCH.
  199. (Blank fields will match all.) So if I wanted to find every album from
  200. 1968, I would leave every field blank except year (1968) and hit SEARCH.
  201. If there are any, they will come up. If you want a very specific search,
  202. use more than one field to specify criteria. Entries will match only if
  203. all fields match the criteria. (Again, with blank criteria fields matching
  204. anything)
  205.  
  206.      Sorry, but searching is CASE SENSITIVE. So, "Marillion" is NOT THE
  207. same as "MARILLION." But, there are wildcards. "?" will match any one
  208. character, while "?*" will match any number of characters. (These are
  209. SAS's choices, not mine.) So, 197? in the year field will match any
  210. album in the Seventies, etc.
  211.  
  212.      Grammatical articles "a", "an", and "the" are ignored. So "The Cars"
  213. will match "Cars". But because of the method I use of discarding articles,
  214. searching for an album such as "The ?*" will match every album on the list.
  215. If you really need to search for all the "The" albums, use "Th?*"
  216.  
  217. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  218.                             SEEING YOUT ENTRIES
  219.  
  220.     If you want to see more than one entry at once, try opening the view
  221. window by clicking VIEW. Use the horizontal and vertical proportional gadgets
  222. to move through the list. The format of the output depends on the settings
  223. in CDCat preferences.
  224.  
  225.     The view window will automatically open to the size of the screen.
  226. AmigaDOS 2.0 users will find this most useful (annoying?) if they have a
  227. large virtual Workbench, but interlaced (400+ line) Workbenches will work,
  228. also. The view window will also handle different size fonts. The default
  229. font (Third setting on 2.0) is used. (1.3 users can use NEWFONT) Warning
  230. to 2.0 users - If your system text font is not Topaz-sized, things will
  231. look VERY messy. The reason I didn't request TOPAZ specifically is that
  232. NEWFONT would then override them and put the new font THERE, too. Go figure.
  233.  
  234.     If you would rather save the formatted text to disk, use the OUTPUT
  235. function. The text will be formatted in the exact same way as with the
  236. view window. (To print your list on a line printer, specify "PRT:" as
  237. your Output Filename)
  238.  
  239.   * NOTE - in search mode, only the matching entries will seen!
  240. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  241.                           SORTING THE LIST
  242.  
  243.     First of all, sorting criteria are set in CDCat preferences. There are
  244. two choices you have to make about how you want the list sorted.
  245.  
  246.     The first is the type of sort for the primary (first) sort. There are
  247. four options:
  248.                     1 - Alphabetically by artist.
  249.                     2 - Alphabetically by album.
  250.                     3 - Chronological order
  251.                     4 - Reverse-chronological order
  252.  
  253.     What sets CDCat apart from other programs is that there is a SECOND
  254. sort available. So, if you have more than one album from a particular
  255. artist (and most of us do,) you can sort THOSE albums again, by different
  256. criteria. And they are:
  257.  
  258.                     0 - no secondary sort.
  259.                     1 - Chronological order
  260.                     2 - Reverse-chronological order
  261.                     3 - Alphabetically by album.
  262.  
  263.     Don't worry about memorizing them. They are listed in the preferences
  264. window. (Thanks to Dave Timmer for this suggestion)
  265.  
  266.     Grammatical arguments are ignored, so "The Cars" will sort between
  267. "Camel" and "Chicago". "A" and "An" are also ignored.
  268. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  269.                          THAT'S THE WAY I LIKE IT
  270.  
  271.     In CDCat's preferences, you can save many of the user-definable settings.
  272. It is here where you set the sort methods. There are two places where you
  273. can save the preferences. One is the current directory ("CD" gadget), which
  274. is where CDCat first looks for its preferences. You can also save them in
  275. your "S:" directory with the corresponding button. The filename is always
  276. called "CDCat.prefs". If you don't want to save your preferences but wish
  277. to keep them, click on "USE", and they will remain in memory. To forget them
  278. altogether, click CANCEL.
  279.  
  280.     The Load/Save and Output filenames are also saved with the preferences.
  281.  
  282.     The format CDCat uses for its VIEW and OUTPUT features can be set by
  283. you. This is the place to do it. There are eight string gadgets, and ten
  284. choices of output. The choices are:
  285.  
  286.                         0   -   No output
  287.                         1   -   Index number
  288.                         2   -   Artist
  289.                         3   -   Album
  290.                         4   -   Year
  291.                         5   -   Tracks
  292.                         6   -   Label
  293.                         7   -   Catalog
  294.                         8   -   Discs
  295.                         9   -   Comment
  296.  
  297. You can mix them in any order you like. If you like to stress the artist,
  298. use an order of 1,2,3,4,5,6,7,8,9. This will put the output in the order of
  299. the items listed above. But, if you have your albums sorted alphabetically
  300. by album title, you may prefer 1,3,2,4,5,6,7,8,9 which will switch the
  301. artist and album fields. If you want to drop a certain item, say, index
  302. number, fill in a 0 either there, or at the end of the list. (Which gadget
  303. a number is in isn't important - but the order of those numbers is.) If you
  304. only wanted to list artists, you could do 2,0,0,0,0,0,0,0,0,
  305. or 0,0,0,2,0,0,0,0,0 or 0,0,0,0,0,0,0,0,2. They all have the same effect.
  306.  
  307. * Special thanks to Dave Timmer for suggesting that the output choices
  308.   be listed on the preferences menu.
  309. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  310.                         ERROR AND WARNING MESSAGES
  311.  
  312. Errors are displayed in the CDCat Window title bar.
  313.  
  314.                         * Can't open data file! *
  315.  
  316.     The data file was either not found (incorrect file name perhaps) or its
  317. read permission bit is not set. Double check the name or file attributes.
  318.  
  319.                             * Not a data file! *
  320.  
  321.     The data file you specified was either not CDCat data file, or was
  322. perhaps from a more recent version of CDCat. (The first line of the file
  323. should read "CD10".) This line was added to allow for radical changes in
  324. CDCat, and yet allow it to be backwards compatible.
  325.  
  326.                          * Couldn't save file! *
  327.  
  328.     Some disk error occured on save. Some reasons could be an invalid filename,
  329. the disk was full, or perhaps the file existed and was protected from deletion.
  330. Check the destination directory.
  331.  
  332.                           * > LOW MEMORY < *
  333.  
  334.     CDCat tried to allocate some memory, and it couldn't get it. If the view
  335. window is open, it will close to try to free up some memory. CDCat will
  336. attempt to allow you to save your data, but it is strongly suggested that
  337. you try to free up some other memory before attempting this.
  338.  
  339.                         * Couldn't save output file *
  340.  
  341.     An error occured while writing your output file. There was either a
  342. disk error, or your printer isn't turned on (for "PRT:" output files)
  343.  
  344.                             (DELETE pending...)
  345.  
  346. Lets you know that you have selected DELETE once. Were you sure about this?
  347.  
  348.                      * Data has not been saved. Confirm *
  349.  
  350. This message appears when you have modified your data and have selected a
  351. function that may erase it. Click CLEAR to abort, or reselect the function
  352. to confirm your choice. (For more details, see the MISCELLANEOUS section)
  353. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  354.                            MISCELLANEOUS STUFF
  355.  
  356.  Field sizes :    Artist        35 characters
  357.                   Album         35 characters
  358.                   Tracks         2 characters
  359.                   Year           4 characters
  360.                   Label         20 characers
  361.                   Catalog       15 characters
  362.                   Discs          2 characters
  363.                   Comment       50 characters
  364.  
  365.  * Clicking VIEW or PREFS while the respective window is open will push
  366.    it to the front.
  367.  
  368.  * When the fields are cleared in ADD mode, a "1" will be put in the discs
  369.    field. This is a feature, not a bug! It saves typing when entering your
  370.    collection, since most albums will probably contain 1 disc.
  371.  
  372.  * Pressing CLEAR kind of puts you at an "undefined" index in the list.
  373.    In other words, a limbo. (Think of it as being number 0 in a list from
  374.    1 to whatever) Thus, when you have CLEARed the fields, you will not
  375.    be able to DELETE or UPDATE that entry. To get back in the list,
  376.    either enter the desired index or click "+". Originally, CLEAR just
  377.    wiped out the fields, but really left you at the entry where you were.
  378.    Then, by accidentally hitting UPDATE, you would wipe out the current
  379.    entry, and not even know it.
  380.  
  381.  * As mentioned before, there are some safeguards put in to certain
  382.    features. DELETE requires a double click before erasing the current
  383.    record. Both LOAD and the CLOSEWINDOW gadget require a double click if
  384.    the current data has been modified but not saved. (*NOTE* Because of
  385.    the cheap way I implimented this check, if you press LOAD, get the
  386.    warning message, and press the CLOSE gadget, the program will not warn
  387.    you again, but rather quit. If you press CLOSE, get the message, then
  388.    press LOAD, the program will load in the data without warning. Sorry
  389.    about this, but I put it in to catch casual mistakes.)
  390.  
  391.  * If you LOAD in a file, and that file doesn't exist, not only will you
  392.    get a message, but your current data will still be in memory. But if the
  393.    file DOES exist, but is not a CDCat data file, you will get a warning
  394.    message, but lose the current list. (If you LOAD in a corrupted CDCat
  395.    data file, watch out! I don't do error checking on that stuff.)
  396.  
  397.  * You can hold down the plus and minus gadgets.
  398.  
  399.  * The format of the data file is in a simple text format. Here it is:
  400.    NOTE - The comments here are for documentation. Comments are not
  401.    allowed in the data file!
  402.  
  403.    CD10                     /* header for CDCat 1.0 data files */
  404.    1                        /* the number of albums in the list */
  405.    Album Title              /* Then for each album, the following eight    */
  406.    Artist Name              /* lines. Be sure that the number of characters*/
  407.    Year                     /* per item is not greater than the above      */
  408.    Tracks                   /* limits! For empty entries, a period (.) is  */
  409.    Label                    /* used.                                       */
  410.    Catalog #                /* Blank lines are ignored.                    */
  411.    Discs
  412.    Comment                  /* Since only 1 album in this file, this is it!*/
  413.  
  414.    Not hard at all...
  415.  
  416. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  417. Are there any features you'd like to see in this program? Feel free to let
  418. me know - I might like them as well. I don't promise any upgrades, but that
  419. doesn't mean I won't release a new version, if there is enough demand for
  420. one. If you have any comments or questions, feel free to pass them on as
  421. well; I'd love to hear them.
  422.  
  423.     If you'd like to contact me and are lucky enough to have net access,
  424. you can reach me at:
  425.  
  426.                         jmmeyers@mtus5.cts.mtu.edu
  427.                                      or
  428.                        jmmeyers@symmetry.cs.mtu.edu
  429.  
  430. Or, I make quarterly appearences on Steve Hoult's DUNE BBS in Grand Rapids,
  431. Michigan (User name - "John M. Meyers") Its number is (616) 451-4965.
  432.  
  433.                                     Thanks for trying CDCat,
  434.  
  435.                                                 John M. Meyers
  436.