1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844
|
##########################################################################
## 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 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+)
##
##########################################################################
**** 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 <Return> 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 <Control-(Left|Right)>. (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 <pawel.gorazda@solidex.com.pl>:
* 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 <Escape> (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 <pjsmith@netins.net>.
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<extrajunk>" 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 <index>
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 <index> => .table index <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 <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 <peter@peter.bj-ig.de>
- 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.
|