home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / pbxs_200.zip / PASTRY2.DOC < prev    next >
Text File  |  1996-10-11  |  18KB  |  409 lines

  1.         
  2. Pastry Box - version 2.00
  3.  
  4. I. Overview:
  5.  
  6. Pastry Box is a multifunction utility that contains several useful
  7. tools and is easy to use but difficult to explain.
  8.  
  9. Pastry Box has the following functions:
  10.  
  11.         Clipboard Aid:
  12.         Hex Dump Utility:
  13.         Multiple Editor (MLE) Windows: 
  14.         File List Maker:
  15.         CMD File Builder:
  16.  
  17. A description of each of the Pastry Box functions follows.
  18.  
  19. Clipboard Aid:
  20. One problem with using the OS/2 clipboard is that it will only hold
  21. one item.  If you want to copy noncontiguous lines of text from one
  22. file to another, each noncontiguous line takes one copy and paste
  23. operation. Pastry Box will let you mark multiple noncontiguous lines
  24. of text in the main window and copy them to the clipboard in one
  25. operation.  Pastry Box will load text from a file or will allow text
  26. to be pasted from the OS/2 clipboard.  Loading a file into the main
  27. Pastry Box window is done on a thread to allow larger files to be
  28. loaded without impacting the user. 
  29.  
  30. I use Pastry Box with an off-line mail reader to select lines from
  31. other sources to paste into replies.  It could also be used to select
  32. multiple names from an organization list to form a distribution list.
  33. It could be used to make a subset of a list of items and copy the
  34. subset to the clipboard.  
  35.  
  36. The main window is a listbox and the text inserted into the listbox
  37. cannot be directly edited although the user can insert, append, and
  38. delete lines of text. The lines pasted from the OS/2 clipboard can be
  39. appended or inserted into the existing lines of text.  If there is a
  40. marked line in the main window, the contents of the clipboard is
  41. inserted above the marked line, if not it is appended at the end of
  42. the text in the main window.
  43.  
  44. There is a search search function that will search for text in the
  45. main window. If a match is found, the display text will move so that
  46. the line that contains the matched text is at the top of the listbox,
  47. unless the last line of text in the main windows is already on screen. 
  48. The lines that contain the search string are marked to make it easy
  49. to find information to copy to the clipboard.
  50.  
  51. The user may save lines of text from the main window, either the
  52. marked text may be saved to a file or the contents of the main window
  53. may be saved.  When text from the main window is saved or copied to the
  54. OS/2 clipboard, the trailing spaces are removed.  This was added
  55. because some usenet messages I copied were padded to a fixed length
  56. and importing them to another utility often reformatted the text due
  57. the trailing spaces.  Removing the trailing spaces prevented the
  58. reformatting.
  59.  
  60. A time stamp option is available to insert or append a time stamp to
  61. the text in the main window.  
  62.  
  63. Hex Dump Utility:
  64. The user is given the option to load a file into the main Pastry Box 
  65. window in the form of a hex dump.  Once loaded into the listbox, the
  66. hex dump is treated as a normal text file. 
  67.  
  68. Multiple MLE Windows: 
  69. Pastry Box allows multiple MLE (Multi Line Editor) windows which can be
  70. used for temporary storage for text pasted from the clipboard.  This
  71. gives the effect of having multiple OS/2 clipboards without making
  72. any changes in the way OS/2 functions.  The editor windows were added
  73. as part of the CMD file builder, but they make a convenient place for
  74. temporary storage of clipped text.  There are two different editors.
  75. One that uses CR-LF pairs to terminate a line and one that uses a LF
  76. to terminate a line.  The editor described as a UNIX mode editor uses
  77. a single LF character to terminate text lines.  Text loaded into the
  78. regular editor that uses CR-LF pairs will be converted to CR-LF format.
  79. The UNIX style editor only modifies edited lines.  Neither editor
  80. removes trailing spaces like the main Pastry Box window.
  81.         
  82. File List Maker:
  83. Pastry Box offers a way to create list of files via a File Dialog Box
  84. that allows the selection of multiple files. The names of the files
  85. selected are inserted into the main Pastry Box window. The file list
  86. may be appended or inserted into the existing text.  If a template
  87. file has been loaded, the user must clear the template via the
  88. 'Clear Template' selection.
  89.  
  90. CMD File Builder:
  91. As an extension of the file list making function, Pastry Box has the
  92. ability to apply a template to each of the file names selected. This
  93. allows the user to generate a set of commands that performs an
  94. operation or set of operations on the files selected.  The result is
  95. inserted in the main Pastry Box window.  The template consists of the
  96. OS/2 commands that the user wants to apply to the files and a %s is
  97. used to represent the file name.  Up to 12 instances of %s can be used
  98. in the template. The template can be created using the CMD template
  99. editor or it can be loaded into the editor.  File selection can be
  100. made multiple times, so the user can select files from multiple
  101. directories or drives.  If a '%' character needs to be in the
  102. resulting CMD file, enter two of them - '%%' - in the template file.
  103.  
  104. The substitution is done using the printf conversions, and any of
  105. the conversions could be used but most of them would not produce
  106. anything useful.
  107.  
  108.  
  109. General Information:
  110.  
  111. The font, text color, background color used in the listbox may be
  112. configured via the drag & drop method.  Configuration changes may be
  113. saved by using the save settings option which is under Exit. The
  114. physical information about Pastry Box such as the size and position
  115. of the window, the background and text color, and the active font are
  116. saved in the PASTRY.INI file which is read when Pastry Box is loaded.
  117. The font and colors may be changed by using the drag & drop capability
  118. of the WPS. Some of the other information that is saved is the name of
  119. the file loaded, the state of the case sensitivity toggle, and the search
  120. text.  The file name is used to load a file into the listbox when
  121. Pastry Box is loaded. The PASTRY.INI file is loaded from the working
  122. directory if it exists or created if it does not exist. Multiple
  123. configurations can be saved by using different working directories.
  124.  
  125. The utility is WPS aware, so you may also select a file by dragging a
  126. copy of it onto the icon object.  The utility does not support drag &
  127. drop onto the opened application.
  128.  
  129. The main Pastry Box window is a listbox and will accept a large text
  130. file, but the editor windows should be limited to text files less
  131. than 32 Kb.  
  132.  
  133. Pastry Box does not add anything to the OS/2 INI files or add any WPS
  134. classes.
  135.  
  136. Pastry Box is a shareware program and if you continue to use the
  137. program you should register it.  Pastry Box does not have any
  138. code to check on how long the program has been in use, so it is
  139. up to the user to determine a reasonable trial period.
  140.  
  141. The shareware version of Pastry Box is fully functional, but has
  142. extra prompts that remind the user that he or she is using the
  143. shareware version. These prompts appear when the user selects any
  144. of the file save selections and when the user exits Pastry Box.
  145.  
  146.  
  147. II.  Installing Pastry Box:
  148.  
  149. Run the INSTALL.CMD script from an OS/2 command prompt, or by double
  150. clicking on the install file's icon.  You will be prompted for a 
  151. destination drive and directory.  If the directory does not exist,
  152. the script will create the directory and then transfer the files.
  153. The script will also create a Pastry Box program object on the desktop.
  154.  
  155. If the install program cannot create the desired directory, just move
  156. all unzipped files to the working directory before running the
  157. install program.
  158.  
  159.  
  160. III.  Files
  161.  
  162. Pastry Box is distributed in the compressed archive pbxr_xxx.zip,
  163. where xxx is the version number.  The archive contains these files:
  164.  
  165.  
  166. NAME          SIZE       DESCRIPTION
  167.  
  168. FILE_ID.DIZ        195    File description for BBS use.
  169. INSTALL.CMD       2396    Install script.
  170. LICENSE.TXT       4661    License.
  171. ORDER.BMT         6745    BMT Micro order form
  172. PASTRY.EXE      408465    Program executable.
  173. PASTRY.ICO         874    Program icon.
  174. PASTRY2.DOC      18065    This file.
  175. READ.ME            492    Getting started information
  176.  
  177. IV.  Uninstalling Pastry Box:
  178.  
  179.  
  180. If you find it necessary to remove Pastry Box, simply delete the
  181. program object and the Pastry Box files. Pastry Box makes no entries
  182. in the config.sys or OS/2 INI files.
  183.  
  184.  
  185. V. Using Pastry Box
  186.  
  187.  
  188. The Pastry Box Menu Bar:
  189.  
  190. File:
  191. The 'File' selection has five sub-menu items:  'Open File',
  192. 'Hex Dump', 'Save Listbox Contents as File',
  193. 'Save Marked Listbox Text as File' and 'Exit'. All of the selections
  194. except 'Exit' bring up the standard file dialog box.  The name of the
  195. file loaded into the listbox is one of the settings that may be saved.
  196.  
  197. Search:
  198. This selection has four sub-menu items:  'From Top', 'Find Next' ,
  199. 'Case Sensitive' and 'Enter Search Text'.  'From Top' starts the search
  200. from the beginning of the text in in the listbox.  'Find Next'
  201. continues the search from the last match.  The search direction is
  202. always forward. The 'Case Sensitive' selection is a toggle and a
  203. check is put at the head of the selection when it is active. The
  204. 'Enter Search Text 'selection brings up a simple dialog box that allows
  205. the user to enter or modify the text used for the search.  When the user
  206. closes the dialog via a carriage return or clicking on the 'OK'
  207. button, the search starts from the top of the text in the listbox.
  208. The search text and the state of the case sensitive toggle are saved
  209. when the settings are saved.
  210.  
  211. Global:
  212. This selection has four sub-menu items: 'Select All', 'Deselect All',
  213. 'Clear All', and 'Delete Marked Lines'.  The actions of each is
  214. described by the selection name.
  215.  
  216. Clipboard:
  217. This selection has three sub-menu items: 'Copy to Clipboard',
  218. 'Paste From Clipboard', and 'Time Stamp'.  The 'Copy to Clipboard'
  219. selection copies the marked lines to the OS/2 clipboard.  The 
  220. 'Paste From Clipboard' selection copies text from the OS/2 clipboard.
  221. The text can be appended to or inserted in the existing lines of text.
  222. If there is a marked line in the main window, the contents of the
  223. clipboard are inserted above the marked line, if not it they are
  224. appended at the end of the text in the listbox.  The 'Time Stamp'
  225. selection inserts or appends the current time into the listbox.
  226.  
  227. Editor:
  228. This selection has two sub-menu items and both open a Multi Line Editor
  229. (MLE) window.  You may have more than one of these windows open, and
  230. each window will be given a number that reflects how many MLE windows 
  231. have been opened since the main window was opened. The user will be
  232. warned if there is a MLE window open when the main Pastry Box window
  233. is closed. This is the same editor window that is used for creating or
  234. loading the CMD template.  The first selection 'Open Editor' opens a
  235. normal OS/2 style editor that inserts CR-LF pairs at the end of
  236. lines.  Any text imported into this editor will have CR-LF pairs when
  237. it is save or exported.  The 'Open UNIX Text Editor' opens a MLE
  238. window that is configured for text that terminates a line with only a
  239. LF character.  The window title will reflect which type of editor
  240. window has been opened.
  241.  
  242. File List:
  243. This selection has six sub-menu items.  All of the sub-menu selections
  244. relate to the CMD builder, but the the first three can be used when
  245. there is no template loaded.  The 'List' selection brings up a file
  246. dialog box that allows the user to select multiple files. When the
  247. file dialog box is closed, the files selected are applied to the CMD
  248. template. Each file names is applied to the template where the %s
  249. is replaced by the file name. The result is inserted or appended to
  250. the listbox, and this is repeated for each file selected.  The 'List'
  251. selection may be repeated until all of the desired files have been
  252. selected. The files may be from different directories or drives. 
  253. Each time the 'List' selection is repeated, the result is appended to
  254. the listbox or if there is a marked line the result is inserted above
  255. the marked line.  The 'Clear & List' selection clears the listbox
  256. each time it is selected, but other than that it works the same as 
  257. the 'List' command.  The 'Load File List' allows the user to select
  258. a file that contains a list of files, and then applies that list of
  259. files as if they had been selected by the file dialog box.  The
  260. 'Open Template Editor' opens a MLE edit window that can be used to
  261. load or create a template file and then load the template for use.
  262. The 'Show Template' selection opens a editor window and loads a
  263. copy of the current CMD template for examination or modification.
  264. The 'Clear Template' selection clears the loaded template.  When a
  265. template has never been loaded or has been cleared, the default
  266. action is to insert or append the files to the listbox.
  267.  
  268.  
  269. Exit:
  270. This menu selection has two sub-menu items. The 'Save Settings'
  271. selection saves the current state of the main Pastry Box window
  272. and some of the options.  The physical information about Pastry
  273. Box such as the size and position of the window, the background
  274. and text color, and the active font are saved in the PASTRY.INI
  275. file which is read when Pastry Box is loaded.  The font and colors
  276. may be changed by using the drag & drop capability of the WPS.
  277. Some of the other information that is saved is the name of the file
  278. loaded, the state of the case sensitivity toggle, and the search
  279. text.  The saved file name is used to load a file into the listbox
  280. when Pastry Box is loaded. The PASTRY.INI file is loaded from the
  281. working directory if it exists or created if it does not exist.
  282. Multiple configurations can be saved by using different working
  283. directories.
  284.  
  285. About:
  286. This selection has no sub-menu and displays a message that has
  287. the version number and in the shareware version it includes the
  288. registration information.
  289.  
  290. Keyboard Accelerators
  291. There is a different set of keyboard accelerators active in the
  292. main window and the editor windows. In all cases, the keyboard
  293. accelerators are not case sensitive.
  294.  
  295.  
  296. The active keyboard accelerators in the main window are:
  297.   
  298. Exit                    Alt+X , Alt+F4
  299. Copy                    Ctrl+Insert
  300. Delete Marked Lines     Shift+Delete
  301. Paste                   Shift+Insert
  302. Select All              Ctrl+/
  303. Deselect All            Ctrl+\
  304. Open File               Alt+F
  305. Reload File             Alt+R
  306. Save Marked             Alt+M
  307. Save File               Alt+S
  308. Open Editor             Alt+E
  309. Insert Date             F2
  310. Search from Top         Ctrl+F , F6
  311. Search Next             Ctrl+N , F8
  312. Enter Search Text       Ctrl+E , F9
  313. Delete Marked Lines     Del
  314. List                    Alt+L
  315. Clear and List          Alt+C
  316.  
  317.  
  318. The active keyboard accelerators in the editor windows are:
  319.  
  320. Exit                    Alt+X , Alt+F4
  321. Copy                    Ctrl+Insert
  322. Cut                     Shift+Delete
  323. Paste                   Shift+Insert
  324. Select All              Ctrl+/
  325. Open File               Alt+F
  326. Save File               Alt+S
  327. Save Marked             Alt+M
  328. Save Marked             Alt+M
  329. Use As Template         Alt+T
  330.  
  331.  
  332. The Pastry Box Editor Menu Bar:
  333.  
  334. File:
  335. The 'File' selection has four sub-menu items:  'Open File', 'Save As',
  336. 'Save Marked Text As' and 'Exit This Editor'. All of the selections
  337. except 'Exit This Editor' bring up the standard file dialog box. 
  338.  
  339. Edit:
  340. The 'Edit' selection has four sub-menu items: 'Cut', 'Copy', 'Paste'
  341. and 'Select All'.  All of the selections are standard functions and
  342. do not require any special knowledge.
  343.  
  344. Options:
  345. The 'Options' selection as two sub-menu items: 'Font' and 'Word
  346. Wrap'.  The 'Font' selection brings up the standard font dialog box
  347. and allows you to select a display font. The 'Word Wrap' selection is
  348. a toggle that turns word wrap on and off.  Word wrap only effects the
  349. displayed text, the wrapped text is not saved.  Neither option settings
  350. are permanent or effect other Pastry Box Editor windows.
  351.  
  352. Template:
  353. This selection is only present on the CMD Template editor and only has
  354. one selection and it is used to load the editor window contents into
  355. the template buffer.  
  356.  
  357.  
  358. VIII.  Why & How to Register:
  359.  
  360. Pastry Box is a shareware program and if you continue to use the
  361. program you should register it.  Pastry Box does not have any
  362. code to check on how long the program has been in use, so it is
  363. up to the user to determine a reasonable trial period.
  364.  
  365. Registered users feel good about supporting OS/2 developers and enjoy
  366. these additional benefits:
  367.  
  368. The extra prompts present in the shareware version of Pastry Box are
  369. not present in the registered version.
  370.  
  371. Registered users are supported via e-mail.  Send help requests and
  372. good ideas to me at dwhawk@southwind.net.
  373.  
  374.  
  375. There are two places to register Pastry Box.  Through BMT Micro and
  376. directly with the author.
  377.  
  378. Registration through BMT Micro:
  379.  
  380. BMT Micro will accept credit cards and will be more convenient for
  381. OS/2 users outside the United States.  BMT Micro's price to register
  382. Pastry Box is $25.00 (US Dollars).  BMT Micro also has an FTP area
  383. where the registered version can be obtained after registration.
  384.  
  385.  
  386. Direct registration:
  387.  
  388. Stuff small bills, gold coins, diamonds or even checks (US banks
  389. only, please) valued at $24.00 (US dollars) into an envelope and mail
  390. to:
  391.  
  392. Don Hawkinson
  393. 4555 N Hillcrest
  394. Wichita KS, 67220-3832
  395. USA
  396.  
  397. Please don't send $100 bills (or larger) in the mail without
  398. purchasing full postal insurance.  Also, no change will be
  399. returned because it is absolutely unsafe, and unwise, to send cash
  400. through the mail.
  401.  
  402. The registered version of Pastry Box will be made available from
  403. my web page as a password protected download , so make certain that
  404. your e-mail address is included with your registration fee.
  405.  
  406. Registered users will be notified of updates via e-mail.
  407.  
  408. Registration covers all 2.xx versions of Pastry Box.
  409.