Description: File: WordWrap.zip Author: Ed Musgrove BeDev#2076 Release: 3 December 1997 Compatibility: PR 2 Location: pub/contrib/util and/or pub/contrib/develop Description: A GUI app which requests a file in which the user wants long lines word wrapped. Notes: (0) Eventually, I hope to break this app into a number of small pieces. I will try to make this a tutorial for beginner BeOS programmers. (1) There is a "load file..." gadget as well as menu item and an "integer gadget" which accepts a value between 0 and 3,999,999 inclusive. When the file requester sends a "load file" message, the file is buffered, the lines are wordwrapped, and a save file panel opens to allow the file to be placed and named. (a) The integer gadget has been modified to use strtoul() in testing, it now returns UINT_MAX as it's largest value. (2) I have added two "font" buttons to enable play with font sensitive gui items. (3) I have added some LibPref preferences Source code is included. This is a test implimentation of my own simple word wrapping procedure. I am also employing the first implimentation of my font sensitive GUI, along with a trial run of an "integer gadget". I am really releasing this as a test of these concepts, not so much as a tool to help tweak text files. Examine the procedures for all three things (the word wrap algorythem, the font sensitive GUI, and the integer restricted gadget) and let me know of errors or needed enhancements you notice. Got a Note from Joerg to try strtoul() for my IntGadget. OK, 1 Dec 97, I converted this--still not sure if it is right. -Ed edgar@harbornet.com Mirror Download Sites:
If you have any questions about the information provided for a specific application, please e-mail the author. If you have any questions about the BeWare pages themselves, though, feel free to e-mail webmaster@be.com. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 1999 by Be, Inc. All rights reserved. Legal information (includes icon usage info). Comments, questions, or confessions about our site? Please write the Webmaster. |