home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d7xx / d724 / xsearch.lha / XSearch / English / XSearch.doc < prev    next >
Text File  |  1992-09-04  |  24KB  |  555 lines

  1.  
  2.  
  3.  
  4.         X   S E R I E S / P E E K E R B I T S
  5.         -------------------------------------
  6.         XSearch 1.0
  7.  
  8.         ©/Programme 1992 SP/PeekerBits
  9.  
  10.         Author:
  11.         Stefan Plöchinger
  12.         Kleiststraße 27
  13.     DW- 8012 Ottobrunn
  14.  
  15.         programmed in KICKPascal (MAXON GmbH)
  16.         requiring AMIGA OS2.0
  17.  
  18.       ···········
  19.  
  20.         XSearch 1.0 is FreeWare. All rights prohibited. The program
  21.         may only be distributed for non-commercial purposes.
  22.  
  23.       ···········
  24.  
  25.  
  26.  
  27.  
  28.   1 .   T H E   P U R P O S E   O F   X S E A R C H
  29.  
  30.         Well, everyone knows the problem: Where is this sh... file on the
  31.         HardDisk. I know the name, but not the place. XSearch ought
  32.         to help you in such a situation. It searches files on a
  33.         device.
  34.  
  35.      ¡! I'll always talk of files to search. But of course you can
  36.         also search directories. Maybe some things can only refer to
  37.         files, in this case, I'll write it down in this .doc, and in
  38.         this case, too, you can tell the program what to do with direc-
  39.         tories (in the Preferences Requester). You'll read more about
  40.         this later.
  41.  
  42.  
  43.   2 .   T H E   C O N C E P T I O N   O F   X S E A R C H
  44.  
  45.         XSearch has been divided in three seperate modules (of course
  46.         included in one executeable file). These modules are:
  47.  
  48.         · Options module: In this module, you tell XSearch what to
  49.           search and how to do this.
  50.  
  51.         · Places module: In this module, you can select the directories
  52.           and files XSearch searches in.
  53.  
  54.         · Searching module: Here, XSearch searches.
  55.  
  56.         When in the Options module, you can go to the Places and to the
  57.         Searching module, when in the Places Module, to the Options and
  58.         the Searching module. In the Searching module, you can go to
  59.         the module in which you went to the Searching module.
  60.  
  61.  
  62.   3 .   H A N D L I N G ,   G E N E R A L L Y
  63.  
  64.         XSearch is as easy to handle as every OS2.0-supporting AMIGA
  65.         programme. Perhaps you'll know about Application windows
  66.         and the User Interface Style Guide (Gadgets are selectable
  67.         by keys, menus are built as Commodore's standards want it and
  68.         so on). Well, you'll find it in XSearch.
  69.  
  70.         Well, and finally a warning concerning the handling: always
  71.         press Enter or Tab after having edited a text in a text gadget.
  72.  
  73.  
  74.   4 .   P R O J E C T S
  75.  
  76.         Important: XSearch owns the possibility to generate projects.
  77.         This means, all the things you did in the Options or the
  78.         Places module can be stored on a device like the text in a
  79.         word processor. For this purpose, you'll find these menus
  80.         in each module window of XSearch.
  81.  
  82.           Project                » Title of the menu :-)
  83.  
  84.            New              A N  » Opens a new project with the standard
  85.                                    options
  86.            Open...          A O  » Loads a saved project
  87.            --------------------
  88.            Save             A S  » Stores the current project using the
  89.                                    current name
  90.            Save as...       A A  » Stores the current project using a name
  91.                                    specified in an appearing file requester
  92.            --------------------
  93.            Preferences           » Brings up the Prefs window
  94.            About                 » Shows some Informations about me :-)
  95.            Quit             A Q  » Well, I think, it quits XSearch
  96.  
  97.         In the Searching module, simply the first two menu items aren't
  98.         shown.
  99.  
  100.         The current project name is shown in the window title:
  101.  
  102.         +---+----------------------------------------------+---+---+
  103.         | · | XSearch 1.0 - {project name}                 | · | · |
  104.         |---+----------------------------------------------+---+---|
  105.         :                                                          :
  106.  
  107.  
  108.   5 .   T H E   O P T I O N S   M O D U L E
  109.  
  110.     5.1 WINDOW
  111.  
  112.         +---+----------------------------------------------+---+---+
  113.         | · | XSearch 1.0 - {project name}                 | · | · |
  114.         |---+----------------------------------------------+---+---|
  115.         |                     +---+------------+                   |
  116.         |                     | & |   Options  |                   |
  117.         |                     +---+------------+                   |
  118.         |                                                          |
  119.         | +--+                 +-----------------------------+     |
  120.         | |  | Name:  Pattern  |                             |     |
  121.         | +--+                 +-----------------------------+     |
  122.         |                                                          |
  123.         |                            .                             |
  124.         :                            :                             :
  125.         |                                                          |
  126.         | +----------+                                  +--------+ |
  127.         | |  Search  |                                  |  Quit  | |
  128.         | +----------+                                  +--------+ |
  129.         +----------------------------------------------------------+
  130.         | {messages}                                               |
  131.         +----------------------------------------------------------+
  132.  
  133.         {messages}: Here, several messages are shown (e. g. error msgs).
  134.  
  135.         Zoom-Gadget: Selecting this, the window will be iconified.
  136.  
  137.         "Name:": The gadget left of this shows if the option "Name Pattern"
  138.             is to be used when searching.
  139.  
  140.         "Pattern:": Here, in this text gadget, you specify the name
  141.             pattern. More about these two gadgets later.
  142.  
  143.         (Below these gadgets, there are several others. Later more, too.)
  144.  
  145.         "Options": Pressing this Cycle gadget means changing to the
  146.             Places module.
  147.  
  148.         "Search": Pressing this gadget means starting the search and
  149.             going to the Searching module (what else?).
  150.  
  151.         "Quit": Hope it's clear.
  152.  
  153.     5.2 HANDLING
  154.  
  155.         As already mentioned in 5.1, all the options are specified in
  156.         text gadgets. But even when there is data specified, an option
  157.         can be turned off by pressing the gadget on left side of the
  158.         text gadget.
  159.  
  160.         These options exist: Name patterns, length control, control of
  161.         file attributes, time specifications, Comment and IFF patterns
  162.         and file-internal search.
  163.  
  164.         The options "en detail":
  165.  
  166.         · Name pattern: Here you can specify an AMIGA-typical pattern
  167.           like "#?.c". Only files on which these pattern matches
  168.           are accepted.
  169.  
  170.         · Length control: Here, you can select files which are bigger
  171.           than a certain value, and which are smaller than another one.
  172.           In a small graph, this looks like this:
  173.  
  174.           +············[--------------O--------]··········· ·  ·   ·    ·
  175.           0           /|\            /|\      /|\
  176.                 minimum of size   File size    |
  177.                                         maximum of size
  178.  
  179.           The line represents the size. You specify the maximum and the
  180.           minimum. Only the files between or on these frontiers are
  181.           accepted.
  182.  
  183.           These are the rules if the value in ">=" is bigger than the one
  184.           in "<=":
  185.  
  186.           +------------]·······················[---------- -  -   -      -
  187.           0   /|\     /|\                     /|\        /|\
  188.                | minimum of size               |      File size²
  189.           File size¹                    maximum of size
  190.  
  191.           The line represents again the size. But this time, only files
  192.           are accepted when their size is under the minimum or over
  193.           the maximum, or of course if the size is equal to one
  194.           frontier.
  195.  
  196.           The length option only affects files.
  197.  
  198.         · Control of file attributes: Here you can control the file
  199.           attributes of an AMIGA file. The string in the text gadget
  200.           can be built up by these chars:
  201.  
  202.           · -: The attribute mustn't be set.
  203.           · *: The value of the attribute is uninteresting.
  204.           · h/s/p/a/r/w/e/d: These are the eight file attributes. They
  205.             can only be used in this order. Using them means that
  206.             an attribute has to be set.
  207.  
  208.           Some examples:
  209.  
  210.           ----RWED: The HSPA-attributes mustn't be set, in contrast to the
  211.                     RWED-attributes.
  212.  
  213.           ****RWED: The HSPA-attributes don't matter, the RWED-attributes
  214.                     have to be set.
  215.  
  216.           RWED****: This isn't acceptable. RWED isn't at the right po-
  217.                     sition.
  218.  
  219.           HSPA----: The HSPA-attributes have to be set, the RWED-attributes
  220.                     mustn't.
  221.  
  222.         · Time specifications: With every file, the point of time
  223.           is stored when it has been changed last. You can select certain
  224.           files by specifying two points of time between the 12-31-77/
  225.           12-31-1977 (notification may be set in the Preferences reques-
  226.           ter) 23:59:59 and the 1-1-2000 00:00:01. If the second date
  227.           is earlier than the first, there is the same exclusion of files
  228.           as when controlling the length.
  229.  
  230.         · Comment pattern: The same as the name pattern, but with the
  231.           comment of a file.
  232.  
  233.           Instead of a checkbox on the left side of the text gadget, there
  234.           is a cycle gadget with three possible states:
  235.  
  236.           "-": The comment isn't examined.
  237.           "G=k": The comment is examined, the case (sensitive or insen-
  238.                  sitive) isn't controlled.
  239.           "G÷k": The comment is examined, the case is controlled.
  240.  
  241.         · IFF pattern: Using this option, you can select IFF-Files.
  242.           Specify an IFF filetype, and the file currently searched will
  243.           be (if the option is turned on, of course) controlled if it's
  244.           an IFF file, and if the IFF pattern matches.
  245.  
  246.           IFF files vary in their basic structure: there are IFF-FORM
  247.           files (very common), and IFF-CAT and IFF-LIST files (not
  248.           very common, not common either). If XSearch supported CAT and
  249.           LIST, the whole file had to be searched (now guess if it supports
  250.           them), and if supporting only FORM, simply the beginning of a
  251.           file has to be examined.
  252.  
  253.           In the text gadget, you may specify all IFF types. The have
  254.           to be listed in this way:
  255.  
  256.           TYPE{|TYPE{|TYPE{|...}}}
  257.  
  258.           This means for example:
  259.  
  260.           "ILBM|ANIM": All ILBM (DPaint Pictures) and ANIM (DPaint Ani-
  261.                        mations) IFFs are searched.
  262.  
  263.           "ILBM": Only ILBM IFF types are searched.
  264.  
  265.           IFF types can only contain letters from A to Z, numbers from
  266.           0 to 9 and spaces.
  267.  
  268.           The length option also only affects files. You can specify
  269.           in the Preferences requester what to do with Non-IFF files
  270.           when searching.
  271.  
  272.         · File-internal search: A file is read and it is looked if
  273.           the pattern you specified in this text gadget matches to
  274.           one line of the file. Then, the file is accepted. You may
  275.           specify again if the case is sensitive or not. Of course,
  276.           this option only affects files again.
  277.  
  278.       ¡!  Don't think that this option is very flexible. It's not
  279.           very fast and not very safe either, I must say. I'm sorry
  280.           for this, but I've been "too tired" to add a highly tuned file-
  281.           internal searching routine.
  282.  
  283.         Additionally: XSearch is very flexible in accepting data from the
  284.         text gadgets. E. g., it converts a "1-1-92" in the "Date Field"
  285.         into a "01-01-92", a space in the "Attribute Field" into a "*",
  286.         and seperators like ",", ";" or " " in the "IFF Field" into a "|".
  287.  
  288.     5.3 FINE TUNING
  289.  
  290.         You can find an own menu for the Option settings:
  291.  
  292.           Options                  » What could this be?
  293.  
  294.            Standard values         » You may save options as standard
  295.                                      values (4th menu item). You take them
  296.                                      over in the current project by
  297.                                      selecting this menu item.
  298.            out of Project...       » Takes over the options out of another
  299.                                      XSearch project.
  300.            out of File attributes...
  301.                                    » Takes over the options out of the
  302.                                      attributes of a file (only a file!).
  303.            -----------------------
  304.            Save as Standard values » Store the current options as the
  305.                                      standard values in "ENVARC:XSearch.Std"
  306.  
  307.         Additionally: The Options window is a so-named Application Window.
  308.         This means that you can drag icons of the Workbench over this
  309.         window and drop them there. XSearch will react as if you loaded
  310.         this file in the file requester of "out of file attributes..." and
  311.         will make the combination requester appear (the one which appears
  312.         when choosing "out of file attributes...", too).
  313.  
  314.  
  315.   6 .   T H E   P L A C E S   M O D U L E
  316.  
  317.     6.1 WINDOW
  318.  
  319.         +---+----------------------------------------------+---+---+
  320.         | · | XSearch 1.0 - {project name}                 | · | · |
  321.         |---+----------------------------------------------+---+---|
  322.         |                     +---+------------+                   |
  323.         |                     | & |   Places   |                   |
  324.         |                     +---+------------+                   |
  325.         |                                                          |
  326.         | +-----------------------+     +-----------------------+  |
  327.         | |                       |     |                       |  |
  328.         | |                       |     |                       |  |
  329.         | |                       +-----+                       |  |
  330.         | |                       |     |<-- makes exchange     |  |
  331.         | |                       +-----+    between the both   |  |
  332.         | |      File-/Dir-       +---+ |    lists possible     |  |
  333.         | |        list           | · | |                       |  |
  334.         | |                       +---+ |                       |  |
  335.         | |                       | # | |                       |  |
  336.         | |                       +---+ |      List of all      |  |
  337.         | |                       +---+ |     search places     |  |
  338.         | |                       | + | |                       |  |
  339.         | +-----------------------+---+ |                       |  |
  340.         |   +-------------+---+---+ +---+                       |  |
  341.         |   |   Devices   | : | / | | - |                       |  |
  342.         |   +-------------+---+---+ +---+                       |  |
  343.         |         +---------------+ | ± |                       |  |
  344.         |     Dir |               | +---+                       |  |
  345.         |         +---------------+ +---+                       |  |
  346.         |         +---------------+ | · |                       |  |
  347.         |    Ptt. |               | +---+                       |  |
  348.         |         +---------------+ | # |                       |  |
  349.         |                           +---+-----------------------+  |
  350.         |                                                          |
  351.         | +----------+                                  +--------+ |
  352.         | |  Search  |                                  |  Quit  | |
  353.         | +----------+                                  +--------+ |
  354.         +----------------------------------------------------------+
  355.         | {message}                                                |
  356.         +----------------------------------------------------------+
  357.  
  358.         "Places": Changes to the Options Module.
  359.  
  360.         the are on the left: This area wors like a file requester.
  361.  
  362.         the gadget making exchange between both lists possible:
  363.             This gadget is a checbox. If it's selected, the File-/Dirlist
  364.             on the left side of the window changes. If you select an entry
  365.             there, an "·" appears in front of it. This means the file or
  366.             dir is selected. You deselect it in the same way.
  367.  
  368.         the list of all search places: Here all files select left can be
  369.             taken over. This is also the list in which all places are
  370.             stored XSearch will search in when in the Searching Module.
  371.             All entries in this list can be selected.
  372.  
  373.         "·": Selects all entries of a list.
  374.  
  375.         "#": Reverses the selection of a list.
  376.  
  377.         "+": All selected entries left are taken over to the list of
  378.             search places right.
  379.  
  380.         "-": All selected places right are removed out of the list.
  381.  
  382.         "±": Every directory right has a certain property: you may
  383.             specify if, when XSearch searches in this dir, the sub-
  384.             dirs ought to be searched, too. If this is the case, there is
  385.             a "D" in front of the dir's name, if not, there's a "d".
  386.             With this gadget, the state of each selected dir on the right
  387.             is changed.
  388.  
  389.         "Search"/Quit: Guess what.
  390.  
  391.     6.2 FINE TUNING
  392.  
  393.         You may use "Drag and Drop" again. If you drag an icon over
  394.         the file/dir list on the left, the icon's dir will be loaded
  395.         there. If you drag it anywhere else, the icon's name will appear
  396.         in the list of search places.
  397.  
  398.         Double-clicking on an entry right loads the dir of the entry
  399.         double-clicked on in the file list on the left.
  400.  
  401.  
  402.   7 .   S E A R C H I N G   M O D U L E
  403.  
  404.         +---+----------------------------------------------+---+---+
  405.         | · | XSearch 1.0 - {project name}                 | · | · |
  406.         |---+----------------------------------------------+---+---|
  407.         | +-----------------------+     +-----------------------+  |
  408.         | |                       |     |                       |  |
  409.         | |                       |     |                       |  |
  410.         | |                       |     |                       |  |
  411.         | |                       |     |                       |  |
  412.         | |    list of results    |     |       path list       |  |
  413.         | |                       +---+ |                       |  |
  414.         | |                       | · | |                       |  |
  415.         | |                       +---+ |                       |  |
  416.         | |                       | # | |                       |  |
  417.         | +-----------------------+---+ +-----------------------+  |
  418.         |         +---------------+  +-----+ +------+ +---+        |
  419.         |      in | & | Clipboard |  | New | | Stop | |   | Pause  |
  420.         |         +---------------+  +-----+ +------+ +---+        |
  421.         |              +----------+       -----------------------  |
  422.         |              |   copy   |       +----------+ +--------+  |
  423.         |              +----------+       |  Cancel  | |  Quit  |  |
  424.         |                                 +----------+ +--------+  |
  425.         +----------------------------------------------------------+
  426.  
  427.         list of results: Here, the results of the searching process are
  428.             displayed. The entries may be selected.
  429.  
  430.         path list: If XSearch is still searching, the current searching
  431.             path is displayed here.
  432.  
  433.             If not, you may select a file or dir in the list of results,
  434.             and then, its path will be displayed here.
  435.  
  436.             If the dir to display was "DH0:System/Icons", the list would
  437.             look like this:
  438.  
  439.                 DH0:
  440.                 System
  441.                 Icons
  442.                 {file, if necessary and not searching}
  443.  
  444.         "in Clipboard"/"copy": The cycle gadget "in" has two states:
  445.             "Clipboard" or "File". If you press "copy", the paths of
  446.             all selected entries in the list of results are copied to
  447.             the thing that is selcted in the "in"-gadget. In the case
  448.             of "File", a file requester appears.
  449.  
  450.         "New": Restarts the searching process.
  451.  
  452.         "Stop": Stops the searching process.
  453.  
  454.         "Pause" (Shortcut: Space): If this checkbox is turned on, the
  455.             search process is paused, and vice versa.
  456.  
  457.         "Cancel": XSearch returns to the modul out of which you went
  458.             to the Searching module.
  459.  
  460.         "Quit": Guess what (again).
  461.  
  462.  
  463.   8 .   P R E F E R E N C E S
  464.  
  465.         You enter the Preferences by selceting the Menu item "Preferences"
  466.         in the Project menu.
  467.  
  468.         You can set the following things:
  469.  
  470.         "Start with": Here, you select in which module to start
  471.  
  472.         "in dir.:" Here, specify the dir in which the Places Module ought
  473.             to start. Specifying nothing means starting in the devices
  474.             list. This will also be caused if the directory specified
  475.             here couldn't be accessed when starting XSearch.
  476.             Selecting "Get..." brings up a directory requester in which
  477.             you can specify the dir comfortably.
  478.  
  479.         "Projects in": Here, specify the standard project directory.
  480.  
  481.         "Dir. with Subdirs": In the Places Module, a directory can
  482.             be specified as a directory in which the subdirs are also
  483.             searched or not. Here specify what the standard is when
  484.             taking over a dir from the filerequester list to the list
  485.             of search places.
  486.  
  487.         "Case sens.": Taking over values out of an another project or
  488.             out of certain file attributes gives the possibility to
  489.             active automatically the options taken over. When taking
  490.             over the comment or file-internals, XSearch doesn't know,
  491.             if instructed to set the options automatically, if it ought
  492.             to set the options to case senstive or insensitive. Specify
  493.             here.
  494.  
  495.         "Textgadg. coloured": XSearch can colour the background of a
  496.             text gadget. Specify here if it should or not.
  497.  
  498.         "Date": Here, specify the date format. DD means days in two
  499.             numbers, MM the months and YY the years. "." and "-" are the
  500.             seperators.
  501.  
  502.         "current Date when new values": Specify if, when having selected
  503.             "New" or "Standard values", the current date ought to be
  504.             entered in the "Time" fields.
  505.  
  506.         "Dir. at length control": The probolem mentioned above: What
  507.             should be done with a directory if checking for the length?
  508.             A dir has no length, so you can tell XSearch here what to
  509.             do: you may say that it ought to pass the dir (takes the
  510.             dir over in the list of found files and dirs if the other
  511.             options are true) or that it ought to exclude it (not take
  512.             it over in any case).
  513.  
  514.         "IFF control": The same as "length control", but when XSearch
  515.             controls IFF files and not the length.
  516.  
  517.         "file-internal search": The same as "length" or "IFF", but with
  518.             the file-internal search.
  519.  
  520.         "other files at IFF": You may specify what should be done with
  521.             non-IFF-files when controlling the IFF type (pass or exclude).
  522.  
  523.         "Save": Stores the settings in "ENVARC:XSearch.Config" and leaves
  524.             the requester.
  525.  
  526.         "Use": Leaves the requester and uses the settings now specified.
  527.  
  528.         "Cancel": Leaves the requester and uses the settings that were
  529.             used before going into the Preferences requester.
  530.  
  531.  
  532.       ···········
  533.  
  534.  
  535.         Finally, I'd like to do two things:
  536.  
  537.         · Say sorry for my bad English and thanks to my teachers
  538.           trying again and again to improve it.
  539.  
  540.         · Say thanks to some certain persons:
  541.  
  542.         Felix Hermann for the beta-testing,
  543.  
  544.         the new "Bayern 3" (A radio station. What, you didn't know?)
  545.             for music supportment,
  546.  
  547.         Commodore for OS2.0 and AMIGA Corp. for the AMIGA and
  548.  
  549.         Jens Gelhar for KICKPascal
  550.  
  551.  
  552.         PS: Who wants to support a poor 16-year-old pupil to help to
  553.         get his 68030-processor-card? My adress is a the beginning of
  554.         this doc (any currency accepted).
  555.