|
From: Ben H. <bh...@al...> - 2001-04-22 05:25:10
|
Ok, have not checked in these changes yet, wanted to run these by yall.. 1. I did the enum thing I mentioned earlier. Seems to work great. No longer passing string labels between objects, just the label indexes, and everyone reads the same labels. Less memory. More efficient. 2. I replaced the debug pane table-based code with a simple ostringstream that inserts the text into a textview. To do this i needed to use WText (thirdparty powerplant WASTE text view) and WTextView. WText Requires about 10 support files. However, the file size savings of making all the keys enums, and cutting down over 50k of code in the debug pane routine alone puts us about even on file size. ... And the debug pane now takes about 2 seconds to draw on my slow mac. No more progress bar needed. I think its actually faster than all the other views now. Unless there are any objections i'll check that in. Its about 10 files from the WText distro, and you will need the WASTE headers to build Scribia. (They come with CW6) We already have the WASTE library in the project. (its within sioux-waste lib.) (speaking of which, i tried just using sioux for the debug output, but it was not pretty. This is far nicer) -Ben -- NOTE: Please change my address in your address book from bh...@sa... to bh...@al... as my UCSD address will be permanent. <http://freepages.sf.rootsweb.com/~bhines/> - My Genealogy Pages |