home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / b150_1 / !VarEdit_!Help < prev    next >
Encoding:
Text File  |  1994-01-08  |  11.6 KB  |  213 lines

  1. *******************************************************************
  2.         Variable editor
  3. *******************************************************************
  4. Version 0.10, © Sam Kington 9th January 1994
  5. WimpKey © Jason Williams 13th September 1993
  6.  
  7. Note: this is a pre-release version (this is the last time I have access to
  8. an Archimedes until March), so:
  9.         * All the features I would like to add to it are not implemented
  10.         * Although I think it’s pretty stable, there are probably a few bugs
  11. around.
  12.  
  13.         You can read this file from within the program by pressing Shift-F1 in a
  14. variable viewer, or choosing “Help” from the icon bar menu.
  15.  
  16.         This program requires RISC OS 3 or later - preferably RISC OS 3.10
  17. or later, as that was the version it was developed on. It has not been
  18. tested on any other platforms, but it *should* work on RISC OS 3.11 and
  19. 3.00. If you haven’t upgraded yet to RISC OS 3, you should: there is a lot
  20. of very nice software (not just this ;-) ) coming out that requires RISC OS
  21. 3. Anyway, I wouldn’t want to adapt it to work on RISC OS 2 because it would
  22. look ugly without all the 3D stuff (and 3D is good - it’s official, Acorn
  23. says so).
  24.  
  25. Boring legal notice
  26. ----------------------
  27.  
  28.         This program is freeware (*NOT* public domain - I retain full
  29. copyright on code and documentation). It can be freely distributed provided
  30. the following conditions are met:
  31.         * Only reasonable charges are made for media and distribution - so
  32. PD libraries can distribute it, but contact me for an up to date version.
  33.         * You distribute all the files without modification, including the
  34. Choices file. If you want to modify the files, include the original files in
  35. a ”Unused“ directory or something.
  36.         You can use bits of it in free or commercial projects, but contact
  37. me first and credit me in any documentation.
  38.  
  39.         The WimpKeys module is © Jason Williams (with slight
  40. style modifications by myself). See Docs.WKeyDocs for more information.
  41.  
  42. Other documentation and files
  43. ------------------------------
  44.  
  45.         Docs.Vars is a list of various "special" system variables as defined
  46. in the RISC OS 3 PRMs. Docs.O!WimpKey and Docs.O!WKeyDocs are the old (as in
  47. unmodified) versions of the WimpKey module and the documentation
  48. respectively. Docs.Misc contains thanks, acknowledgements, a wish
  49. list, contact addresses and other miscellaneous stuff.
  50.         The TaskObey directory contains several files which show various
  51. types or styles of variables in a task window. For people with very little
  52. memory, it's still a great deal better than shelling out to the CLI all the
  53. time.
  54.         The !Vsn010 file serves no other purpose than to tell you this is
  55. version 0.10.
  56.  
  57.  
  58.  
  59. So what does it do?
  60. --------------------
  61.  
  62.         Very simply, VarEdit is a variable editor. That is, system variables
  63. like Obey$Dir, Alarm$Options, Alias$@RunType_FFF, Edit$Detokenise and the
  64. like (see "What are system variables” for more information). VarEdit can do
  65. the following with variables:
  66.         * Show lists of variables in a scrolling window on the desktop. As
  67. well as showing all variables, it will show variables by type (String,
  68. Number or Macro), or by style. The styles, currently hard-wired into the
  69. program, are at the moment:
  70.                 - ...$Dir : all App$Dir variables
  71.                 - ...$Path : all App$Path variables
  72.                 - File$Type_... : all file types
  73.                 - Alias$@Load..., Alias@$Run..., Alias@$Print... : load, run
  74. and print operations
  75.         * Change the contents of variables.
  76.         * Rename, copy and delete variables.
  77.         * Save a list of current variables and their settings to a file or
  78. an application, either a straight list or by styles.
  79.         * Find and replace text within variables
  80.         * Find specific variables by name
  81.         * Show graphical statistics on the number of variables in each type
  82. and style.
  83.         * Provide complete customisation of all the keyboard short-cuts used
  84. by the program. You can optionally see a list of shortcuts used by the
  85. program, or a graphical representation of the keys used.
  86.         * Comprehensive help is available with Acorn’s !Help, available at
  87. any time by clicking on the small Help icons, or by pressing F1.
  88.  
  89.  
  90. What are system variables?
  91. --------------------------
  92.  
  93.         Some of them are set up by the system, most of them are defined by
  94. applications; sooner or later, you will want to view or change some of them.
  95. RISC OS uses system variables to decide what to do when you click on or
  96. print a file, to remember where applications are, where !System and !Scrap
  97. are, where fonts are held, where to find all its Template and Message files
  98. (amongst other things). The application suite uses variables (Draw$Options
  99. et al) for user customisation, as do other applications during the Desktop
  100. Save protocol. To see how important variables are, *AFTER SAVING ALL YOUR
  101. WORK*, enter the command “*Unset *” from the CLI, and see how long the
  102. machine survives. (You will probably have to reset after this, as RISC OS
  103. has effectively forgotten everything it has learned since booting up).
  104.  
  105. Using this program
  106. ------------------
  107.  
  108.         Things should be self-explanatory - if in doubt, click on the Help
  109. icons, move the pointer over a few icons and read the (hopefully) helpful
  110. messages. Almost every icon and all menu options are documented, so you
  111. should be able to find your way around.
  112.         Here are a few general comments about using this program; use !Help
  113. for more information about menus, icons etc.
  114.  
  115.         To change a variable’s definition, just type in the new value and
  116. either press Return or move the caret in some way (the up- or down-arrows,
  117. or click in another part of the window). The ”Show variable“ window shows
  118. you what variable you are currently editing, and more importantly its
  119. current value (*not* necessarily the text visible in the window). Pressing
  120. Escape will cancel any changes you have made.
  121.  
  122.         Those icons in a variable viewer (usually “ABC” but occasionally
  123. “<>“ or even ”123“) represent the type of the variable - respectively,
  124. String, Macro and Number. Clicking on them doesn’t do anything. However,
  125. when the type icon is selected, that means that the appropriate variable is
  126. the current one - either the one with the caret, or the one found by ”Find“
  127. or ”Go to variable“.
  128.  
  129.         To go straight to a variable, the best way is usually to use the
  130. Goto dialogue box (F5) - type in the first few letters of the variable you
  131. are looking for and select Find (or press Return). If you select ”Search as
  132. you type“, VarEdit will automatically find variables as you type, so you can
  133. browse the list by changing the text in the dialogue box, on the fly.
  134.         There is another way: pressing Ctrl-Shift-(A to Z) will go to the
  135. first variable starting with that letter, or the nearest one if there isn’t
  136. one. Be warned however: Ctrl-U clears the current line, and cannot easily be
  137. trapped as it’s a WIMP shortcut. So if you type Ctrl-Shift-U, you will go to
  138. the nearest variable starting with ”U“, but you will also wipe the variable
  139. you were at previously, and you won’t be able to undo the changes as you’ve
  140. moved, so the variable will have been definately written. So don’t press
  141. Ctrl-Shift-U!
  142.         Other key shortcuts: Ctrl-Up and Down take the caret to the top or
  143. the bottom of the viewer respectively, Shift-Up and Shift-Down (or PageUp
  144. and PageDown) scroll the window up or down by one page *without* moving the
  145. caret, and finally Ctrl-Shift Up and Down scroll the window up and down by
  146. one line at a time. As soon as the caret moves, the window will scroll up or
  147. down so it is always visible.
  148.  
  149.         You will find that some menu options (the second half of the Edit
  150. and Utilities menus), and the Edit and Delete icons in the “variable styles”
  151. window stay shaded whatever you do. This is because this is pre-release (see
  152. above), so I haven’t put everything in yet. Those blank icons in the
  153. “Variable styles“ and ”Statistics“ windows are spaces left for defining new
  154. styles (...$Options springs to mind) - a nice thing to have, but not
  155. essential. See Docs.Wishlist for other things I would like to add to the
  156. program.
  157.  
  158.         VarEdit needs to spend some time loading the variables and creating
  159. viewers for them; on an ARM3 it isn’t too much of a problem, and on an ARM2
  160. it’s not *that* slow. Remember, typing *Show at the CLI takes time too.
  161.         VarEdit can either hog the whole machine when it’s processing, or it
  162. can process in the background. By default it will allow other tasks to have
  163. a go at running the machine every 10 variables, but you can modify this in
  164. the Choices dialogue box. In general, multi-tasking every 10 variables or
  165. not multitasking take about the same time, and multi-tasking every 1
  166. variable really slows the machine down - don’t try this on an ARM2!
  167. Non-multitasking gives you more information about the process, as it knows
  168. it can write directly to the screen as it’s not letting you back to the
  169. machine to move its window around. The rule is, experiment and use the
  170. system you prefer.
  171.  
  172.         Key shortcuts (thanks to WimpKey - see Docs.WKeyDocs) are available
  173. for every menu option, and some other functions such as closing windows or
  174. iconising them. To set keys, click on the ”Keys...“ icon in the Choices
  175. dialogue box. Choose a menu and an option, and then press the key you want
  176. to associate with the option; VarEdit will not allow you to use the same
  177. shortcut for two functions, nor will it allow you to use F12, so you don’t
  178. have to worry. This will only work if the ”Keyboard shortcuts“ window has
  179. the input focus (if the title is cream rather than grey). If for some reason
  180. it loses the input focus, you can get it back by clicking Select or Adjust
  181. on the window background. Clicking Menu will bring up a sample menu showing
  182. what all the menus would look like with the current key shortcuts - purely
  183. for show, so don’t click on it because nothing will happen.
  184.         You can see a list of current shortcuts by clicking on See List.
  185. VarEdit simply saves a text file with the key shortcuts, menu by menu,
  186. called <VarEdit$KeyListFile>. The variable VarEdit$KeyListFile is a macro,
  187. and by default points to a file called ”KeyList“ in the !Scrap directory,
  188. but you can change this by editing the !Run file, or for that matter editing
  189. the variable in VarEdit ;-). It will then Filer_Run it, so if a text editor
  190. is running it will load the file, otherwise the default owner of Text files
  191. will be run to edit it - usually Edit, unless you have changed
  192. Alias$@RunType_FFF somewhere (check it - it should be a Macro with
  193. <Edit$BootDir> somewhere).
  194.  
  195.         Finally, although theoretically variable names and values can be up
  196. to 255 characters long or even longer, VarEdit only allows variable names of
  197. up to 40 characters and values of up to 80 characters. If you have variables
  198. longer than that:
  199.         * You shouldn’t have. Even Font$Path shouldn’t be that long. Long
  200. variables are difficult to read. If a variable is long, it’s probably
  201. because it contains either a very long path name (which is probably
  202. something to be avoided as well), or several longish path names. Why not
  203. replace the individual path names by variables, and make the long variable a
  204. variable? (Font$Path already is, so there’s no excuse). In general, you
  205. should use variables rather than absolute path names: they’re easier to
  206. read, and you don’t have to change things all the time if you move things
  207. around.
  208.         * You can modify the variables VarEdit$NameLen and VarEdit$ValLen in
  209. the !Run file or wherever they are defined. Make sure they are numbers, and
  210. less than 255.
  211.         VarEdit will warn you if it has to truncate variable names or
  212. values. If it has truncated anything, *QUIT THE PROGRAM!*. You run the risk
  213. of corrupting the system variables.