########################################################################## ## TkTable CHANGES ## ## Newest changes at the top of the file. ## Release dates between "****"s. ## ## changes by Hobbs COPYRIGHT 1996-1997 Jeffrey Hobbs, CADIX International ## changes by Hobbs COPYRIGHT 1998-1999 Jeffrey Hobbs ## jeff.hobbs@acm.org ## # * tkTable v0.55-1.x includes additions contributed by: # * tmoore@spatial.ca (Tom Moore) # * sebastian.wangnick@eurocontrol.de (Sebastian Wangnick) # * paulf@lamont.ldgo.columbia.edu # * peter@bj-ig.de (Peter Brueckner) # * jeff.hobbs@acm.org (Jeffrey Hobbs) # * ellson@lucent.com (John Ellson) ## ## Mac support provided by Chuck Houpt (choupt@als.com). (v2.3+) ## ########################################################################## Fixed row/col insertion/deletion to move embedded windows, added -holdwindows option and Table_Win(Delete|Move). Removed -rows/-cols switch to insert/delete row/col, as it could cause very odd behavioral problems. Removed ckfree/ckalloc's between a quick delete/init of a hash table. Upgraded ExpandPercents for UTF awareness. Changed "tag cell|row|col" to complain when the tag is unknown. Fixed bug in UTF char length handling (actually due to change in the Tk API from 8.1beta to final) for active cell. fixed bug where scanMark* weren't properly initialized. Changed icursor method to always return an int, being -1 if there really isn't a valid cursor in the active cell (ie - it's disabled). Converted table widget to mostly Tcl_Obj in/output. Reorganized a lot of code in the process. **** v2.4 10 December 1998 **** Changed exit handler to not be used (unless -DUSE_EXIT_HANDLER is specified). Changed distribution directory name to go with new 'make distrib'. Changed TableUndisplay to properly handle unmapping embedded windows in title areas. Added TableTrueCell for this. Changed EmbWinUnmapNow to always call Tk_UnmapWindow. Changed cell border drawing so that any 1-pixel border would use the fast drawing mode (except for when single drawmode is set). Changed borderWidth to be a tag-definable value. Removed used of borderWidth in border resize cmd calculations. Modified various C and Tcl procs to support spanning cells. Changed ckfree(value) to Tcl_Free(value) in TableFetchSelection. Streamlined use of NO_XSETCLIP, improved boundary checking for determining whether the cell needs clipping at all. Fixed bug in drawing with NO_XSETCLIP to copy the area from the source window to the clip window, draw on it, then copy it back. Before the clip window was drawn on clean, losing what might be important stuff in the source (like an image). Added row/col spanning. This involved a lot of code changes, mostly in tkTableCell.c, mostly #ifndef'ed with NO_SPANS. See docs for behavior. Added 'spans' and 'hidden' command. Fixed bug in TableAtBorder that was messing up certain border cases. Added delta error of 1 pixel to the B1-Motion routine, so that the mouse must move more than a pixel for the tkTableMotion routine to kick in. Fixed tkTableBeginToggle to handle Control-B1 properly. (rickm@vsl.com) Fixed seg fault in Table_BorderCmd when called with too few args (reported by rbansal@ltcm.com). Added TableGeometryRequest to TableModifyRC to update a table's geometry according to the new row/col size. Fixed EmbWinDelete to clean up properly (it wouldn't clean up if there wasn't a window associated with the tag). Removed unused type arg from TableModifyRCaux. Fixed EmbWinRemove to actually remove all info about the window from the table (as advertised). *** BEHAVIORAL CHANGE *** Fixed "window delete ..." to actually delete the window entry. Fixed flashing so that it will flash if any valid data source is being used (before only the Tcl array source caused flashes). Removed deprecated 'flush' command. [.t flush ...] is equivalent to [.t clear cache ...]. Improved TableUndisplay to really work within the proper seen constraints. (rickm@vsl.com) Removed dependency on source for Windows (only for the XSync call). Should now be able to compile against a binary installed version of wish. Use of EXTERN and EXPORT reworked to follow 8.0.3 guidelines. EXPORT was dropped, meaning that compiling for older versions of the Borland compiler is not possible. Changed use of "$*.h" in Makefile.in to "$@" - some makes seemed to choke on the proper interpretation of $* (notably HP-UX). Added "-fg SELECT_FG" to the default sel tag definition. Swapped proto define of Tcl_DStringAppendAll with actual header. Fixed #endif SPANS syntax error in Makefile. Changed #define CELL from (ROW|COL) to it's own significant bit (this is used by TableRefresh). Added -sparsearray option to allow the user to choose whether the table treats associated arrays as "sparse", deleting the empty elements (default), or whether every element set is kept. Fixed demos/spreadsheet.tcl to start column labeling with "A". Changed Tcl_StaticPackage call in tkAppInit.c to include SafeInit function. Added "empty" bindings to tkTable.tcl to prevent the magic Alt-"menu" bindings from inserting chars into the table as well. **** v2.3 23 July 1998 **** Moved the 'set' command into tkTableCell.c and extended it to understand full row/col setting with Tcl lists. Created tkTableInitScript.h to mirror the spirit of tclInitScript.h. The user can now define a tkTableInit to be eval'ed at load time that finds the appropriate tkTable.tcl file. Also added env support for these locations. Changed version.in to version.h, a file that is both readable in C (for the Mac build) and by make (for Unix/Windows). Changed TableDisplay #ifdef's to be more specific (NO_XSETCLIP). Expecting XSetClipRectangles to be available in Tk8.0.3 for Win, and maybe also in the future for Mac. Attempted row/col spanning with limited success. Half functional code left in for reference, delimited by #ifdef SPANS/#endif. Changed TableCellCoords to no longer do bounds checking on row/col. Changed several more instances of TableCellCoords/TableInvalidate to TableRefresh. Fixed bug in table insertion/deletion concerning the calculation of the minkey (minimum valid row/col to insert/delete) when titles were allowed to be moved. Mac support courtesy Chuck Houpt (choupt@als.com). **** v2.2 10 July 1998 **** Undid caching of activeLayout in favor of activeTagPtr because I was abusing the nature of the token returned by Tk_ComputeTextLayout, causing amazingly odd cores. Changed TableGetLastCell definition to fix scrollbar bug. (Brutti) Changed "#if (TK_MINOR_VERSION > 0)" to "#ifdef TCL_UTF_MAX" to remove the ambiguity of purpose (for UTF code). Fixed bug in TableInsertChars that mangled the purpose of -autoclear, as well as confusing icursor index when using it. **** v2.1 2 July 1998 **** Updated man pages, generated new HTML file. Reworked directory structure, updated makefiles. Removed -batchmode. It was pretty useless, and potentially confusing. **** POTENTIAL INCOMPATIBILITY **** Fixed bug for Tk8.1a2 Unicode display in TableDisplay where the length of the display string was not calculated correctly. Fixed background area redraw bug in Windows. Reworked to take out the #ifdef WIN32 code without too much compromise. Added TableRefresh command that subsumes many CellVCoords/Invalidate call combos. Adjusted TableWhatCell to what it was in v1.82, and made fix in TableDisplay for bounds to prevent <=0 invalidWidth|Height. Added clear command, subsumes flush command, plus adds features. Made some cleanup from DestroyNotify repetitive in TableDestroy. Added MapNotify event handler to ensure that changes to the table made when iconified will still cause an update. Changed "single" and "fast" drawmodes to not set -bd 1 as a side effect, but instead to force 0..1 to allow for fast drawing without any borders. Skipped border drawing case statement when -bd is 0. Changed "tag cell ..." to only invalidate for redraw when the affected cell is visible. Added check for NULL tablePtr->tkwin in TableCellVCoords. Could cause problems where it was used to replace TableCellCoords. Fixed bug in TableFetchSelection that truncated the string returned by -selectioncommand to the length of the original string. Also fixed mem leak (didn't free all DStrings in an error), and changed it so that a background error is triggered if there is a problem with the -selectioncommand. Fixed bug in TableDisplay where last row, if one pixel hi, wouldn't get redrawn properly. Changed default fonts to those used for entry widgets. **** POTENTIAL INCOMPATIBILITY **** Added UTF char (Unicode) support, based on 8.1a2 tkEntry.c. Had to be conditionalized because it doesn't exist in 8.0. Added -multiline option for tags to allow old one-line text only, Reworked tag options so that tag values that aren't ever set won't affect other tags. Fixed seg fault bug in CMD_ACTIVATE when Tk_PointToChar could be called on double-click, but TableDisplay hadn't yet been called (because it is waiting for idle) which is required to set tablePtr->activeLayout properly. Also fixed mem leak with old activeLayout not being freed when it changed. Speed improvement - changed from using Tk_GetGC/Tk_FreeGC to XCreateGc/ XChangeGC/XFreeGC. Since it was highly unlikely that the caching provided in the Tk routines would ever benefit us, moving to direct X calls and manipulating just one GC should be faster. **** v2.00 24 April 1998 **** Update man pages, generated new HTML version. Added "single" drawing mode, and made "single" and "fast" both set -borderwidth to 1 as a side effect. Fixed seg fault on Windows involving large numbers of rows. Unsure exactly what fixed it, but the problem disappeared amidst all the changes since v1.82... Updated tkAppInit.c to Tk8.1 version. Added ifdef for Win32 default colors. Since we can now have multi-line cells, changed -rowheight and height to work the same as -colwidth and width did (+ nums for size in line, - for sizes in pixels). **** POTENTIAL INCOMPATIBILITY **** Added new "make static" option for making a static library. Reworked scrollbar calcs again based on pixels. Fixes all funny off by half a cell problems. Also prevents scrolling when only title areas are visible (those are, by design, not scrollable). Changed stretching to stretch the last row/col for any stretchmode but "none", to prevent empty space from appearing. Fixed interpretation of CellVCoords to return 1 on slightly visible cells (now only a 1 pixel square size is required to be considered visible - used to be 1/4 the desired cell size). Added support to allow the second click into the active cell to select the nearest character. Changed binding to work with multi-line cells. **** POTENTIAL INCOMPATIBILITY **** *** Undid 60.06.98 - bad fix Fixed bug in TableWhatCell that caused the returned cell to be one more than expected when the edge was passed in. *** Made TableVarProc not cause an Invalidate call if it was triggered by SetActiveIndex. Changed around some function names for sense of modularity (preparing better C API). Commented all procedures in tkTable.c. Broke up tkTable.c into constituent files. Added support for embedded windows via "window" submethod. Fixed quirk in xscrollbar that would make it appear as it all was in view when the last column was only partially visible. (Brutti) Changed several CellCoord calls to CellVCoord calls to only invalidate if necessary. Reworked merging of tags and determination of active cell. State disabled cells no longer receive the "active" look, although they are still indexed as active. New -selecttitles option, removed prohibition of selecting title areas. **** POTENTIAL INCOMPATIBILITY **** Removed all KANJI, IMP and TK4 #ifdef code. tkTable development now focused 100% on Tk8+. Also removed Itcl stuff since itcl for Tcl8 should be different. **** INCOMPATIBILITY FOR TK4/KANJI/ITCL USERS **** **** v1.82 3 April 1998 **** Update man pages, generated new HTML version. Fixed bug in row start location calculation, reorg'ed some code for row stretch fill mode. Simplified caching of col tags for display. Changed code that referenced interp->result to use accessor functions. Fixed problem where flat reliefs would be eliminated because they were assumed to be undefined (TK_RELIEF_FLAT changed in Tk8.1). Added -bordercursor and -resizeborders option, added PointerMotionMask to event handler, moving the tkTableCheckBorder event into C. Should be much more efficient. **** POTENTIAL INCOMPATIBILITY **** Changed "$(COMPILE.c)" to "$(CC) $(CFLAGS) $(CPPFLAGS) -c" in Makefile.in. Should be equivalent, but some make's don't understand. Change border dragging routines for column to support pixel movement. Fixed problem with column widths and row heights being shifted improperly during row/col deletion (didn't account for - row/col offset). Updated tkTable.itcl to same versions as tkTable.tcl (ignored over several revisions). Fixed binding bug in tkTable.tcl for . (Becker) changed TableModifyRC to be more selective about what is invalidated for redraw. (Brutti) made 'title' tag have -state disabled by default (an oversight from the addition of -state tag option in 1.80). **** v1.81 March 20 1998 **** added support for exact pixel dimensions for column width by using negative numbers, also supported in -colwidth. Changed width|height to support 'default' key instead of assuming negative number means default. **** POTENTIAL INCOMPATIBILITY **** added -state tag option (cheap hack, must be improved). changed handling of -state table option. (Ellson) added -invertselected option. (Brutti) added FocusOut binding to commit cell on FocusOut events. made the cell commit changes anytime "activate" is called, regardless of whether the active cell was moved or not. "tag cell|col|row|includes tagName" no longer return an error if the tag name is unknown (just returns empty string, or 0 for "includes"). Only "tag cget" complains about unknown tag names. **** POTENTIAL INCOMPATIBILITY **** Improved makefiles. (patches courtesy Dukhovni) Fixed bug in tkTable.itcl (improperly handled backslash). Fix for 8.0 w/ plus/dash patch (Ellson). Fixed minor -Wall complaints. Changed the way row/col tags were determined to be on a cell. (JMH) Made title tag have lower priority than a cell tag. Fixed bug where the last table row/col would be deleted when table -state was disabled (should be a no op). **** v1.8 May 28 1997 **** (changes hobbs) Moved the instantiation of the tk*Uid variables from the DLLEntryPoint into the *Init functions for those not compiling this as a DLL. Fixed bug where "active" index for an array might not update properly after the table changes arrays if the previous array's cell had the same value for the active cell. Updated Windows makefile.vc (still far from perfect). Fixed calculation error where WhatCell would look for the bottomright cell a few pixels off (didn't account for highlightWidth). Fixed numerous places where cells weren't being invalidated (to be redrawn) but should have been. Fixed bug in curvalue that didn't mark the active text as changed which would cause editions to be lost when the active cell changed. Changed default font for Tk8 from "Helvetica 12" to just "Helvetica" because the 12 was a tweaking large font on my Sol2.5 machine. Renamed -width to -colwidth and -height to -rowheight, replaced with different interpretation such that -width, -height set the viewable # of cols, rows (a la listbox or text widget). **** POTENTIAL INCOMPATIBILITY **** Made default title foreground white for better readability. Fixed INF/divide by zero possible error for scrollbars when no editable cells are in view. Possible funky behavior still exists when no editable cells are available (for selection). Fixed possible access violation where TableInvalidate would be called after the tkwin had been destroyed. Enhancement ideas from Pawel Gorazda : * Added TCL_DEFS to TCL_CFLAGS in Makefile.in * Make "tag cell tagName" list cells for the special tags * new "tag includes" method for finding if a cell has a specific tag * changed selection to not change selection (do nothing) when the user clicks on a title cell **** BEHAVIORAL CHANGE **** Fixed missing 'q' in tkTable.itcl Fixed interaction with -command to only blow up when an error occurs, not for return/break/ok. Changed tkTableCheckBorder to use crosshair instead of fleur because of complaint of lack of fleur cursor on WinNT. Added internal caching with -cache option and flush method for speed improvements. Changed "sel clear all" to use old iterated method of clearing selection for people who use "sel clear all" in Motion events and such. **** v1.7 Apr 11 1997 **** (changes hobbs) Changed instances of clearing selection to delete and reinit the sel hash table instead of going through each entry. Updated docs and added demo and basic spreadsheet class for [incr Tcl]. Changed default selectmode to browse, same as listbox. **** POTENTIAL INCOMPATIBLITY **** Added forceUpdate arg to TableConfigure to make sure that necessary parameters will be adjusted at instantiation. Changed TableSetCellValue to *unset* empty valued indices instead of setting them to "". Introduced support for row/col insertion/deletion with numerous options. Fixed geometry bug that didn't account for highlightWidth in GeometryRequest. Added selecttype option to alter the way selection is handled. Added padx and pady configuration options. Some changes to Makefile.in to get better behavior out of it. Changed "see" to ensure cell is fully visible by adding param to TableCellVCoords. Added support for [incr Tcl] (tested against v2.2). Fixed TableGetIndex to properly account for row/colOffset > 0. Also adjusted constraining of user index in TableGetIndex. **** v1.6 Feb 7 1997 **** (changes hobbs) Fixed x && y offset bug for SLOW drawmode (reported by Michael Johnson). Now whenever you move from a cell where an edit has occured, it will save that edition. You can always use (reread) to get the old value back before you move the cell. **** BEHAVIORAL CHANGE **** Fixed the bug where inserting characters with autoclear off didn't set TEXT_CHANGED properly, so you could move without a cell registering the change (reported by Eric Dolce). **** v1.5 Feb 6 1997 **** (changes hobbs) Fixed xview/yview scroll page/units problems. Fixed TableConfigure error return problems. Fixed font display problem for Tk8 (stupid reference error). Fixed "set" && "curselection" to understand need for command OR array existence. Fixed conceptual bug in -command %-substitution - there was no way to get the write value! Redefined %s/S value for -command. **** POTENTIAL INCOMPATIBLITY **** Fixed bug in "see" method reported by PHIL SMITH . It did the opposite of what it should, caused by the change from TableCellHidden to TableCellVCoords. Optimized TableDisplay. offsetX, offsetY were useless because they were always subtracted from x && y (so why not do it once... doh!). Removed CheckTagCmd and inlined some code. This optimizes certain things (there was no reason to cache row tags, just move the lookup code!). changed TableSetCellValue to not use GetVar, thus a write always occurs, even if the value is the same. This prevents a read trace from triggering, but now a write trace will always trigger. **** v1.4 Feb 2 1997 **** (changes hobbs) Changed default unix font to medium weight (from bold). Updated "bbox" method to allow range. Added auto-resizable border code with new "border" method, TableAtBorder function and new Table bindings. Changed TableCellHidden to TableCellVCoords & extended it. Now understands highlightWidth variation and clips area to actual visible coords. Added code in TableConfigure to prevent spurious redisplays of the entire table for any config request. fixed index bug where "ROW,COL" translated to "ROW,COL" and a couple other similar interpretive bugs. fixed potential segfault in unsetting "active" element of attached array. changed min()/max() to MIN()/MAX() - avoids Windoze warning. changed textCurPosn to icursor. greatly simplified KANJI interoperability by making activeBuf a regular char *, changing a few interfaces, and some other stuff. This reduced the number of KANJI #ifdef's significantly. added -command and -usecommand options. **** v1.3 Jan 28 1997 **** (changes hobbs) Included precompiled Win95/Tk8.0a2 DLL. Fixed several compiler warning problems. Moved header code to its own header file. Fixed some potential mem leaks. Added Windows support. HACK ALERT! Without an XSetClipRectangles, an extra Drawable is used for WIN32. There may be a better way to do this. If so, make me a patch. Data struct / Cmd name changes to avoid any conflict when compiling older version of Table with newer version in same executable. Added -image option to tags. Removed NO_TOP_LEFT ifdef'ed code. Topleft should be showing. **** v1.2 Jan 18 1997 **** (changes hobbs) Updated man page and HTML help page. Added TableCellSort to sort a row,col properly. Added arg for curvalue method to set the current active buffer. Added validation mechanism, validate method and -validate, -validatecommand options. See docs for details. Added "active" key element to traced Tcl array for table. This holds the activeBuf value of the table. Change arrayVar configuration in TableConfigure to only trigger if the arrayVar actually changed. Moved inserting/deleting in active cell to separate functions and bullet-proofed the code. Removed TableFlashConfigure. Not used since "flash" became permanent tag. Changed TableSetCellValue to only set the variable if the value has changed. This will prevent spurious flashing. Removed Roland King's COPYRIGHT, replaced with acknowledgements. This code represents a 90% rewrite of his original code. Added -O as default CFLAGS in Makefile.in, along with HP cc note. Fixed bug with cursor at position 0 for KANJI (appears to be a bug in TkWSTextExtents). Get/Set variable overhaul to ensure that everything works correctly for KANJI support (without compile warnings). Changed TableBufLengthen to a #define which uses ckrealloc. Removed -rowfirstmode and its use in code. It actually didn't work for many functions and indices would be incorrectly returned. **** POTENTIAL INCOMPATIBLITY **** Fixed handling of arrayVar to accept vars with funny chars (including spaces). Added "see active" to tkTableMoveCell. Changed calculation of hidden cell to require at least 3/4 of the cell to be off the screen. Cleaned up, optimized lots of code. Cleaned up some memory leaks. Removed undocumented "setlist" functionality - it was never used and I deemed it extraneous. Numerous name changes in tkTable.tcl (conforming to standards). Also added full row/col selection capability && cut/copy/paste functionality. **** POTENTIAL INCOMPATIBLITY **** Changed ".table get ..." to return items in the same way as that of listbox (only affects handling of spaced values being returned). **** POTENTIAL INCOMPATIBLITY **** Changed Table_GetIndex to TableGetIndex (it was the only _ func). Optimized calling of TableAdjustParams in [xy]view and scan dragto as well as TAP code. Removed useless selectionOn C var and "select" index. **** POTENTIAL INCOMPATIBLITY **** Changed the [xy]scrollcmd to receive Tk4+ style args (2 doubles instead of 4 ints). Fixed problems with [xy]view and scan. Might not be perfect yet. Removed boundary command as it reiterates [yx]view and index, added "bottomright" special index. Change of code example: .table bound bottom => .table index bottomright row|col **** POTENTIAL INCOMPATIBLITY **** Fixed problem with cursor not disappearing on focus out. Added -browsecommand option for monitoring active cell movement. Added selection handler and -rowseparator, -colseparator, -selectioncommand, -exportselection options. Fixed problem with changing var to a simple variable. Fixed problems with compiling for KANJI, now seems to work again. Fixed highlight border bug. (bruecker) Fixed typo that prevented IMP from working. **** v1.1 Dec 30 1996 **** (changes hobbs) Updated code to handle Tk8 font mechanism. Now works with Tk8. Added Tktable_SafeInit procedure so it could be loaded into a safe interpreter. Integrated Bruecker's (peter@bj-ig.de) changes to 0.63: - Moved IMP-Code to one place, needs testing. - Some changes to TableCreate and TableDestroy: Hashtables ever needed are created in Create so no tests in configure and later needed. - Removed GcCache (will be placed in TableDisplay) - Repaired Focus-Code little bug remains in the right and bottom of HL-Frame. Updated README to reflect file name changes. Changed tkAppInit.c to reflect tk4.2 appinit. Changed Makefile.in to support get X_INCLUDES right. **** v1.0 Dec 19 1996 **** (changes hobbs) BUMPED VERSION TO 1.0 for initial (re)release. Updated man pages, in particular documenting bindings. Updated tkTable.tcl to use origin where appropriate. Added origin index. Added extra arg to insert/delete to specify what is really being inserted/deleted to/from. Corrected insert/delete/icursor to not do edit the active cell if it has not been set yet. Fixed TableScanTo. Enabled the display of the topleft title cells. Fixed cursor constraint for oversized fonts in a row. **** v0.63 Dec 18 96 **** (changes hobbs) Removed TableSetCell from tkTable.tcl, rearranged bindings as well. Rewrote checkTagCmd, fixed spurious return values. Reordered trigger path for Table_GetIndex. Fixed see to not be forceful, but to only move if necessary, and to use the +1,+1 offset from topleft (more like centering). Added topleft index. ellson patch: Fixed package require in Makefile.in and demo files Moved Table_GetIndex to avoid implicit declaration warning. Changed how "anchor" was indexed internally. Fixed cursor showing in an active cell of width 0. Removed check for bounds in SEL_CLEAR (SEL_SET did it for us). **** v0.62 Dec 18 96 **** (changes hobbs) Updated man pages. Removed "#ifdef KANJI0" code (it was useless). Added in use of the active tag (it was previously ignored). Removed restriction on see method that kept the active cell in the view. Changed xview/yview/scan methods to not adjust selRow/Col. Changed code to use active cell as active, rather then sel cell. Made "flash" tag have higher display priority than "sel". Added pattern match support for "tag names". Added "tag exists" and "tag cget" submethods. Changed "tag celltag" to use Table_GetIndex instead of sscanf **** v0.61 patch Dec 14 96 **** (ellson@lucent.com) Change "tag celltag" to use index form of cell address,"x,y" instead of list form "{x y}" Add back support for zero width columns and zero height rows. Added installation of tkTable.tcl in [lindex $tcl_pkgPath 0]/Tktable/tkTable.tcl (0.61 was using the built-in copy of tkTable.tcl so the lack of installation wasn't noticed. Perhaps we don't need the built-in version???) I put the runtime script in this directory to make it trivial to generate binary distributions of the widget consisting of a single Tktable directory that is just dropped into lib/. Added a make target for tablewish (not normally needed with dynamic loading but sometimes handy for debugging) Corrected package name (Wasn't loading from tkcon Interp->Packages menu. Package name should start with capital letter to match Init entry point.) Added configure code to automatically discover --prefix from existing tclsh installation. Installation is now simply: ./configure make install **** v0.61 Dec 13 96 **** (all changes jhobbs except noted) Updated, corrected, expanded man pages. Updated internal code comments, fixed result strings. Fixed see problem (reported by Jean-Paul). Removed getwidth && getheight and rewrote width && height to be more flexible and subsume the previous methods. Changed flashtime to really be a number representing 1/4 sec and changed the default to 3 (750ms). Added "flash" as a permanent tag (like "title", "active", and "sel"). Added options: -flashmode -flashtime Changed "Title" tag to "title". Why cap it? Reformatted most code to fit in 80 cols. Fixed activate index offset bug. Changed -*title options to -title*. The original version was too misleading as to its purpose. Added fixes from ellson@lucent.com. test.tcl updates SIGSEV bug from improper argc count Added some changes from peter@bj-ig.de. New stretch modes LAST && FILL Highlight/Focus fixes More options instead of methods Improved curselection code. added the following options: -autoclear replaces editmode method -state replaces editmode method -insert* from Tk entry, manipulate cursor style -batchmode replaces batch method Changed the dynamic load path for tkTable.tcl from "$tk_library/tkTable/tkTable.tcl" to "$tk_library/tkTable.tcl". **** v0.60 Dec 10 96 **** (all changes jhobbs) OPTIONS: Altered man pages to properly reflect what options are handled (there were numerous extra, plus many missing). changed -procrowtag => -rowtagcommand changed -proccoltag => -coltagcommand Added -bd synonym Fixed all internal coding for readability, concise representation changed -cursorbg => -insertbackground METHODS: Fixed lack of break in CMD_*STRETCH removed whatcell: code change: .table whatcell x y => .table index @x,y removed whereis, changed to bbox: code change: .table whereis row col => .table bbox This needs to be improved to take multiple indices. removed toprow && leftcol, added boundary: code change: .table leftcol|toprow|bottomrow|rightcol ?rowOrCol? => .table boundary left|right|top|bottom ?rowOrCol? rowOrCol can only be specified for top|left, as appropriate (though a bug in the code didn't check properly). removed [rc]index: code change: .table [rc]index => .table index row|col changed get so (1) it works and (2) it returns values more like the listbox command removed setcell. This has been subsumed by the improved selection method. code likeness: .table setcell => .table index select OR => .table curselection .table setcell 4 2 => .table selection set 4,2 The "index select" is there for 100% compatibility, but curselection is what should be used to properly represent all selected cells. MISC: fixed parse_command to handle full non-ambiguous method names updated man pages to include all methods/options in Tk4 style. reordered a lot of code to be in "alphabetical" order. **** v0.56 Nov 96 **** - merged changes from tkSpread from Jeffrey Hobbs - added support for Japanization patch - added multi-node select support - removed -underline option for tags - included default bindings in loadable library **** v0.5 Oct 96 **** - merged changes from Peter Brueckner - takefocus - highlight border - "gcc -Wall -pedantic" cleanup - updated for tcl7.6/tk4.2 - autoconf - only one c-file **** v0.4p8 **** - added patch from wangnick@orthogon.de to make tkTable accept -rows 0 - added patch from tmoore@pnfi.forestry.ca for handling of bad array indexes - added patch from tmoore@pnfi.forestry.ca to add rowTagProc and colTagProc - added patch from ellson@lucent.com to support cget so that tkTable can be used with the dragdrop extension by fellowsd@cs.man.ac.uk (Donal K. Fellows). version 0.3 --> version 0.4 --------------------------- tk4.1 and tk4.0 compatability (ellson@lucent.com) - dynamically loadable library (SunOS 4.1.3 only so far) - changed BISQUE to GRAY - statically included TableInit.tcl into dynamic library - fixed various compiler warnings (now none with tk4.1, but still one with tk4.0) - upgraded tkAppInit.c - changed a few names: library: libtktable.so.0.4 entry point: Tktable_Init extended wish: tablewish version 0.2 --> version 0.3 --------------------------- Upgraded to tk4.0 (Paul Friberg) version 0.1 --> version 0.2 --------------------------- Changed the tag code to apply the effects of multiple tags to a cell. Fixed a bug with the flash code which forgot to delete the flash when a table was deleted Fixed a bug which meant that row, column and cell tag changes didn't update to the screen immediately when there was a row or column offset. Fixed the anchor code which was adding/subtracting a pixel from the string in certain circumstances Fixed a cursor movement bug which caused the same cell to appear twice when the cursor was moved Thanks particularly to Lou Salkind for pointing out some of the above and suggesting fixes.