CobTree for Windows 95 & up Version 2.5 written with Delphi 6 copyright 2002-10 Tom McAnally _____________________________________________________________________________________________ DESCRIPTION A COBOL editor with the following features: . a navigable tree view of COBOL division, sections and '01' levels . calculates the offsets of selected record defintions . handle data file editing of selected record defintions _____________________________________________________________________________________________ LIMITATIONS . the data file editor will ignores group level & redefined areas. . the offset calculator and data file editor only support display, numeric, COMP & COMP-3. . the offset calculator and data file editor only supports Working Storage definitions in the following format: levelno fieldname [REDEFINES RedefinedFieldName] [PIC validPICclause] [OCCURS occurance] [VALUE value]. _____________________________________________________________________________________________ INSTALLATION . copy to your hard-drive in the directory of your choice . create your own shortcut on Start Menu and/or Desktop . assign *.cbl file to the program via Explorer/Folder Options/File Types _________________________________________________________________________________________________ CHANGES FOR VERSION 2.5 . remove use of clipboard on load of Offset and Data Editor tabs . fix treeview bug where "DIVISION" occurs in a paragraph or section name . fix bug with save existing file using new file line feed option _________________________________________________________________________________________________ CHANGES FOR VERSION 2.4 . added save for Offset window - will save contents as CSV file . leave final line-feed . fix split window font . handle PICTURE the same as PIC . offset and data editor now ignores columns 1-6 and beyond 72 in selected record _________________________________________________________________________________________________ CHANGES FOR VERSION 2.3 . do not indent/unindent comment lines . fix bugs with data file load and save of data file grid . fix problem saving single line file. _________________________________________________________________________________________________ CHANGES FOR VERSION 2.2 . stop indent when enter pressed in dialogs . added Comment/unComment fuctions . fix bug with edit data file - group level occurs _____________________________________________________________________________________________ CHANGES FOR VERSION 2.1 . stop adding newline on save at end of file . improved save speed . fix problem with horizontal splitter being too thin to move . fix glitch with "find all" grid section labels . add shift-enter to increase indent on new line . add ctrl-enter to decrease indent on new line . add shift-backspace to backspace one indent . add shift-delete to delete next indent . added "Keyboard hints" to help file under "Text Editing" . fix insert mode bug . stop indent on zero length lines . fix bug in data file display decimal data . fix bug in offset calculator for REDEFINES with PIC in OCCURS array _____________________________________________________________________________________________ CHANGES FOR VERSION 2.0 . fixed detection of DOS and UNIX file . squish various bugs _____________________________________________________________________________________________ CHANGES FOR VERSION 1.9 . added font dialog . squish various bugs _____________________________________________________________________________________________ CHANGES FOR VERSION 1.8 . added block caret for over type and options . squish various bugs _____________________________________________________________________________________________ CHANGES FOR VERSION 1.7 . added Track & BackTrack functions . squish various bugs _____________________________________________________________________________________________ CHANGES FOR VERSION 1.6 . added TreeView tracking of position in source . squish various bugs _____________________________________________________________________________________________ CHANGES FOR VERSION 1.5 . added "find all" function . changed Ctrl &/or Shift + Tab behavior . squish various bugs _____________________________________________________________________________________________ CHANGES FOR VERSION 1.4 . show loading messages in status bar . track cursor in source code on treeview _____________________________________________________________________________________________ CHANGES FOR VERSION 1.3 . changed data file editor to show multiple records (grid instead of list) . sort recent list . fix bugs in data file editor _____________________________________________________________________________________________ CHANGES FOR VERSION 1.2 . fix problems with recent list when files saved on exit . added "Save All" menu option . now retains original file type on save (unix or dos) . added status of "Insert" key to status bar, unless read only _____________________________________________________________________________________________ CHANGES FOR VERSION 1.1 . improved split screen to use a read-only pane in same window, allows copy text, find, treeview navigation, goto line, calc offsets & edit data file . added menu list for 10 recent files . removed windows menu . changed dialog for closing modified files to allow save . allow save button to route to SaveAs dialog for new files . added option for stripping trailing spaces on file save . added option for simpler context menus . added option for save dialog on start . change hot key for split screen . only load TreeView by default for *.cbl & *.cob files . restore *.cbl as default open . show hour-glass cursor when appropriate . check file exists on open . smooth onKeyDown events . fix bug with redefines & occurs clauses in offset calculator _____________________________________________________________________________________________ CHANGES FOR VERSION 1.0 . created Options dialog and ini file _____________________________________________________________________________________________ CHANGES FOR VERSION 0.9 . added the data file editor _____________________________________________________________________________________________ CHANGES FOR VERSION 0.8 . added the calculate offset function _____________________________________________________________________________________________ CHANGES FOR VERSION 0.7 . compile under Delphi 6 instead of version 3: as a result had to add enabling and disabling of edit shortcut keys during File Open/Save & Find/Replace dialogs so that Windows edit shortcut keys function. . fix exception if 01 level found before first division . automatically expand first level of TreeView . supports drag and drop files from explorer . added support for use as default for file types (suffix open with %1) . can open files read only _____________________________________________________________________________________________ CHANGES FOR VERSION 0.6 . "go to" line function added . increase width of splitter so it cannot get 'lost' . adjust scroll by 5 lines to show context on find/replace . stop losing characters after position 80 on save _____________________________________________________________________________________________ CHANGES FOR VERSION 0.5 . improve find/replace/tree-navigation scrolling . added simple undo function _____________________________________________________________________________________________ CHANGES FOR VERSION 0.4 . fix error with large files that open but could not edit . fix error with save filename with multiple windows . put 'readme' info in about box . allow open of all file types _____________________________________________________________________________________________ CHANGES FOR VERSION 0.3 . fixed bug for searching first page . common shortcut keys implemented . print & printer setup dialogs added . removed ghost 'new' function . can save pre-compile source files (*.cob) _____________________________________________________________________________________________ CHANGES FOR VERSION 0.2 . can open pre-compile source files (*.cob) . treeview now multi-level to support paragraphs names _____________________________________________________________________________________________ ACKNOWLEDGEMENTS Thanks to the following for their code found on Borland Developers Network and elsewhere: . Angus Johnson for the unit that strips formatting from pasted text . Corbin Dunn for the cursor position display code . Anders Molin for the Unix save logic - though I had to fix it! . Peter Below & Robert Dunn for the RichEdit scrolling logic _____________________________________________________________________________________________ ERRORS & SUGGESTIONS mailto: ynohoo@yahoo.com _____________________________________________________________________________________________ LEGAL: You are on your own. Nobody can cover your back. I'll help if I'm able. If not - tough love, buddy.