summaryrefslogtreecommitdiffstats
path: root/tktable/ChangeLog
blob: 3b95bec61938e66c11d3a8651b69615adbb4653a (plain)
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
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
2016-01-12 waj

	* upgraded TEA to 3.9
	* numerous compiler fixes for 64bit

2008-11-14  Jeff Hobbs  <jeffh@ActiveState.com>

	**** 2.10 TAGGED FOR RELEASE ****

	* generic/tkTable.c: Set NO_XSETCLIP universally as Tk 8.5/Xft
	seems to ignore XSetClipRectangles.  This may slow things down a
	little, but draws correctly. [Bug 1805350]

	* UPGRADING.txt (removed): no longer need this old v1 upgrade doc.

	* README.txt: remove refs to mac classic stuff, update notes

	* configure, configure.in, tclconfig/tcl.m4: Update to TEA 3.7
	* tests/tkTable.test, unix/tktable.spec, generic/version.h:
	* demos/loadtable.tcl: Update version to 2.10
	* Makefile.in: update dist target, include library/tktable.py

	* demos/tktable.py: note that this version is outdated
	* library/tktable.py (NEW): Added new version of tktable wrapper
	for Python/Tkinter from GPolo.  Not 100% compatible with previous
	version. [Patch 2244167]

	* generic/tkTableTag.c (Table_TagCmd): remove interp->result set
	work-around for old bug as i->result is no longer exposed in 8.6.

	* generic/tkTable.c:     Use safe Tcl_SetObjResult instead of trying
	* generic/tkTableCell.c: to set existing objResult value.
	* generic/tkTableCmds.c: 

2006-07-10  Jeff Hobbs  <jeffh@ActiveState.com>

	* license.txt (bourbon_ware): Be less restrictive in the
	bourbon_ware clause.

2006-01-25  Jeff Hobbs  <jeffh@ActiveState.com>

	* configure.in, configure, tclconfig/tcl.m4: update to TEA 3.5

2006-01-22  Jeff Hobbs  <jeffh@ActiveState.com>

	* tclconfig/tcl.m4, configure: update to TEA 3.4 interim

2005-12-13  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTableCmds.c (Table_ActivateCmd): remove potential
	undefined behavior warning.

2005-12-02  Jeff Hobbs  <jeffh@ActiveState.com>

	* tclconfig/tcl.m4, configure.in, configure: update to TEA 3.4

2005-05-11  Jeff Hobbs  <jeffh@ActiveState.com>

	* Makefile.in (html): switch to groff to fix botched html output.
	* doc/tkTable.html: regen [Bug 1198478]
	* doc/tkTable.n: use '' around \\ items.

2005-03-18  Jeff Hobbs  <jeffh@ActiveState.com>

	* Makefile.in (AR): use @AR@, improve html doc target
	* configure, configure.in, tclconfig/tcl.m4: TEA 3.2 patch update

	* doc/tkTable.n, doc/kTable.html: doc cleanup

2005-02-01  Jeff Hobbs  <jeffh@ActiveState.com>

	* configure, configure.in, tclconfig/tcl.m4: update to TEA 3.2

2004-11-18  Jeff Hobbs  <jeffh@ActiveState.com>

	* library/tkTable.tcl (::tk::table::SelectAll): remove invalid ref
	to HandleType proc. [Bug 1068874] (ade)

2004-07-22  Jeff Hobbs  <jeffh@ActiveState.com>

	**** 2.9 TAGGED FOR RELEASE ****

	* configure, tclconfig/tcl.m4: update tcl.m4 TEA_PATH_X that adds
	Aqua build recognition and TEA_WINDOWINGSYSTEM variable.

2004-07-20  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/version.h, unix/tktable.spec:    updated for v2.9
	* demos/loadtable.tcl, tests/tkTable.test:

	* Makefile.in, configure.in, configure, tclconfig/tcl.m4: update
	to TEA 3.1, use CFLAGS instead of EXTRA_CFLAGS and bump the
	version number of Tktable to 2.9.

	* generic/tkTable.h: add #include <ctype.h>

	* generic/tkTableCell.c (TableGetCellValue, TableSetCellValue): 
	Do faster cache checks when DATA_CACHE is the only data source.
	In fallback from command that errors to array var, retrieve array
	value immediately on current get|set request.
	When setting the value with cache and array sources, don't do the
	caching branch as the array trace will do that already.
	(TableMoveCellValue): Do the efficient cache value management when
	cache is the only data source, otherwise the regular fallback has
	all the necessary checks. [Bug #919872]

	* generic/tkTable.c (TableVarProc): allow setting NULL value in
	cache hash from array trace.

2004-06-10  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTableWin.c (EmbWinDisplay): make min window displayed
	have width/height 1 pixel min (was 3px)

	* generic/tkTable.c (TableDisplay): Don't draw when we don't have
	the space for it. [Bug 747038]

	* doc/tkTable.html, doc/tkTable.n: improve docs to note
	requirement of specifying a data source. [Bug 963204]

2004-02-17  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTableCmds.c (Table_ActivateCmd): test implementation
	of an "unactivate" ($table activate "") command to remove the
	active cell. (becroft)

2004-02-13  Jeff Hobbs  <jeffh@ActiveState.com>

	* library/tkTable.tcl (::tk::table::Button1): account for what
	resizeborders are set when selecting cell [Bug 876320] (ferenc) 
	(<Prior> <Next>): activate topleft, not @0,0 (accounts for title
	rows) [Bug 879347] (ferenc)

2003-12-10  Jeff Hobbs  <jeffh@ActiveState.com>

	* Makefile.in: updated to TEA3 spec
	* configure:
	* configure.in:
	* generic/tkTable.c:
	* generic/tkTableInitScript.h:
	* generic/version.h:
	* mac/mac_tkTable.r:
	* tclconfig/tcl.m4:

	* win/makefile.vc: minor updates, probably still out of date

	* tclconfig/ChangeLog (removed): not necessary

	* generic/tkTable.c: added Tk_ClassProcs and TableWorldChanged
	proc if built against 8.4

	* generic/tkTable.h: add 8.4 ifdef, remove ANSI_ARGS usage

2003-07-16  Jeff Hobbs  <jeffh@ActiveState.com>

	* doc/tkTable.n: add note about -window "" behavior

2003-04-10  Jeff Hobbs  <jeffh@ActiveState.com>

	* configure: regen
	* tclconfig/tcl.m4: updated

	* library/tkTable.tcl (BeginExtend): avoid error in tables that
	have no anchor index yet. (renshaw)

2003-04-09  Jeff Hobbs  <jeffh@ActiveState.com>

	* configure: regen
	* tclconfig/tcl.m4: Updated to newest tcl.m4, (WinCE support)

	* demos/loadtable.tcl: redefine 'puts' on Windows CE

	* generic/tkTable.c (TableDisplay): correctly copy clipwindow area
	for NO_XSETCLIP case and use that when UNDER_CE as well.  Also add
	support for drawing ellipsis in NO_XSETCLIP case.
	Comment out OffsetClipRgn call - it was a noop.

2003-04-04  Andreas Kupries  <andreask@activestate.com>

	* configure.in:
	* tclconfig/tcl.m4: Updated to newest tcl.m4, regenerated
	  configure's.

2003-02-24  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTable.c (TableDisplay): do not use buffer pixmap for
	slow -drawmode on Win32 because we aren't clipping it correctly.

2003-01-30  Jeff Hobbs  <jeffh@ActiveState.com>

	* Makefile.in: remove use of nested $(PACKAGE) to enable building
	on older, cruftier make versions

	* doc/tkTable.n:        add -ellipsis tag /global option which
	* tests/tkTable.test:   takes a char string (ie: "...") to display
	* generic/tkTableTag.c: as an ellipsis.  These will only be shown
	* generic/tkTable.h:    on non-wrapping, non-multiline cells.
	* generic/tkTable.c: 

2002-12-10  Jeff Hobbs  <jeffh@ActiveState.com>

	* tests/tkTable.test:
	* generic/tkTableCell.c (TableGetCellValue): make caching allows
	NULLs throughout to save mem.
	Do not call Tcl_FreeResult as it will be freed before the next
	result is set, and causes us to lose large results. [Bug #651685]

2002-10-16  Jeff Hobbs  <jeffh@ActiveState.com>

	**** 2.8 TAGGED FOR RELEASE ****

	* Makefile.in: updated dist target to get changed fileset.

	* generic/tkTableEdit.c (Table_EditCmd): Ensure that embedded
	widgets being moved offscreen get unmapped. [Bug #551325]

	* generic/tkTableCell.c (TableAtBorder): refine border detection
	in the midst of spanned cells. [Patch #544117] (duxbury)

	* doc/tkTable.n:
	* doc/tkTable.html:
	* tests/tkTable.test:
	* generic/tkTable.c: Add global -justify option. [Bug #623557]

	* generic/tkTableTag.c: more CONST84 casting fixes.
	Allowing setting of tag relief to "". [Bug #233619]

	* generic/tkTable.h:
	* generic/tkTableUtil.c: 
	* generic/tkTableWin.c: more CONST84 casting fixes.

	* library/tkTable.tcl: Add <FocusOut> as a default auto-commit
	event. [Bug #611132]
	(::tk::table::Motion): abort "extended" arm if the anchor cell
	isn't defined. [Bug #604470]

2002-10-15  Jeff Hobbs  <jeffh@ActiveState.com>

	* tclconfig/tcl.m4:
	* configure:
	* configure.in: move the CFLAGS definition into TEA_MAKE_LIB
	and make it pick up the env CFLAGS at configure time.

2002-10-15  Andreas Kupries  <andreask@pliers.activestate.com>

	* configure.in: Changed to propagate an initial CFLAGS value to
	  the final definition. A TEA condition (SHARED_BUILD == 1)
	  squashed it, causing it the build system to loose the
	  +DAportable we specify for the AS PA-RISC2.2 build host. This is
	  a problem for _all_ TEA and TEA 2 based configure files.

2002-10-09  Jeff Hobbs  <jeffh@ActiveState.com>

	* configure:
	* configure.in: move TEA_PATH_X below TEA_CONFIG_CFLAGS as it can
	mess with the configure results.

	* unix/tktable.spec (new): RPM spec file. (fontaine)

	* demos/tktable.py: added a contributed tktable wrapper for
	Python/Tkinter from Klaus Roethemeyer.

2002-09-27  Jeff Hobbs  <jeffh@ActiveState.com>

	* Makefile.in: correct tkTable.tcl.h target to work with FreeBSD's
	default make.

2002-09-25  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTable.c: 
	* generic/tkTable.h: added support for building on OS X (steffen)

2002-06-21  Jeff Hobbs  <jeffh@ActiveState.com>

	* Makefile.in: call cygpath on INCLUDES $(srcdir)/generic.

	* tests/all.tcl: minor cleanup

	* tests/tkTable.test (table-30.1):
	* generic/tkTableEdit.c (Table_EditCmd): fixed problem where row
	insertion could segfault. [Bug #487747]

2002-04-11  Jeff Hobbs  <jeffh@ActiveState.com>

	* tclconfig/tcl.m4:
	* configure: Enabled COFF as well as CV style debug info with
	--enable-symbols to allow Dr. Watson users to see function info.
	More info on debugging levels can be obtained at:
	http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp

2002-04-03  Jeff Hobbs  <jeffh@ActiveState.com>

	* Makefile.in: improved use of DESTDIR in install targets.
	Removed need for installdirs target.
	Broke TCLSH_PROG into TCLSH_ENV and TCLSH_PROG with TCLSH var and
	added comments about TCLSH_ENV.
	Added default shell and gdb targets.

	* tclconfig/tcl.m4:
	* configure: 
	* configure.in: updated to new TEA base that: prefixes all macros
	with TEA_* instead of SC_*; adds TEA_PREFIX, which defaults the
	prefix and exec_prefix values to what Tcl used; adds
	TEA_SETUP_COMPILER, which handles basic compiler / support program
	checks and simplifies the configure.in.  Turn on --enable-threads
	by default and do sanity checking as well.

2002-04-02  Jeff Hobbs  <jeffh@ActiveState.com>

	* configure: regened
	* configure.in: added user32.lib to LIBS for Windows
	* tclconfig/tcl.m4: updated from TEA sample

2002-03-27  Jeff Hobbs  <jeffh@ActiveState.com>

	* Makefile.in (WISH_PROG): moved and updated env var definitions
	to have wish work from build dir.  Removed TCL_EXTRA_CFLAGS,
	TCL_LD_FLAGS, TCL_SHLIB_LD_LIBS, TCL_DBGX, TCL_STUB_LIB_FILE,
	TCL_STUB_LIB_SPEC as they aren't needed (configure acquires all
	that info for us).  TCL_LIBS is also not needed, but left in as a
	reference to the libs Tcl used.

	* configure: regen based on updated tclconfig/tcl.m4
	* configure.in: moved the SHLIB_LD_LIBS magic into
	tclconfig/tcl.m4 and noted where users can modify (SHLIB_LD_)LIBS.
	* tclconfig/tcl.m4: updated from sample to be more independent of
	*Config.sh.

	* unix/Makefile.in (removed):
	* unix/configure.in (removed):
	* unix/configure (removed):
	* unix/install-sh (removed): removed old makefile files to force
	use of new toplevel TEA 2002 configure/make.

2002-03-21  Jeff Hobbs  <jeffh@ActiveState.com>

	* tests/tkTable.test: more icursor tests
	* generic/tkTable.c (TableWidgetObjCmd): corrected placing the
	icursor and retaining the position.

2002-03-20  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTable.c:
	* generic/tkTable.h:
	* generic/tkTableCmds.c:
	* generic/tkTableUtil.c: cleaned up several areas where cache data
	was not getting freed. [Bug #532447] (bloisi)

2002-03-19  Jeff Hobbs  <jeffh@ActiveState.com>

	* tests/tkTable.test: added tag configure tests

	* generic/tkTableTag.c (Table_TagCmd): work-around for bug in
	Tk_ConfigureValue that sets interp->result to NULL. [Bug #522882]

	* generic/tkTable.c (TableDisplay): when building with threads on
	WIN32, use NO_XSETCLIP instead of direct DC hacks because Tk
	doesn't use CS_CLASSDC on threaded builds.
	(Tktable_Init) Corrected to use BUILD_Tktable for EXTERN changes.

	* configure:
	* configure.in: use double-eval to substitute DBGX var for
	${PACKAGE}_LIB_FILE.

	* Makefile.in: cleaned up install target

2002-03-13  Jeff Hobbs  <jeffh@ActiveState.com>

	* demos/loadtable.tcl:
	* tests/tkTable.test: adapted load to new configure style where
	unix gets the 'lib' suffix for the library.

	* tclconfig/ChangeLog:
	* tclconfig/README.txt:
	* tclconfig/install-sh:
	* tclconfig/tcl.m4:
	* README.txt:
	* Makefile.in:
	* aclocal.m4:
	* configure:
	* configure.in: introduction of next-gen TEA based config files.
	The unix/ configure files should no longer be used.

	* generic/tkTable.c:
	* generic/tkTableCell.c:
	* generic/tkTableCellSort.c:
	* generic/tkTableCmds.c:
	* generic/tkTableEdit.c:
	* generic/tkTableTag.c:
	* generic/tkTableUtil.c:
	* generic/tkTableWin.c:
	* generic/tkTable.h: introduced CONST84 define for compatibility
	with new 8.4 CONST-ed headers and older headers and fixed up
	sources where necessary.

	* generic/tkTableInitScript.h:
	* generic/tkTable.c:
	* generic/version.h:
	* mac/mac_tkTable.r:
	* win/makefile.vc: changed TBL_VERSION to VERSION, upped to 2.8.
	Added Win64 build support to makefile.vc

2002-03-07  Jeff Hobbs  <jeffh@ActiveState.com>

	* library/tkTable.tcl (tk_tablePasteHandler): "string comp" fixed
	to "string compare" [Bug #500449]

2002-01-16  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTable.c (TableWidgetObjCmd): corrected dangerous
	caching of resultPtr that could lead to segfault.

2001-08-24  Jeff Hobbs  <jeffh@ActiveState.com>

	* README.txt: corrected outdated notes. [Bug #455116] (kriehbel)

2001-08-23  Jeff Hobbs  <jeffh@ActiveState.com>

	* unix/Makefile.in (tkTable.tcl.h): corrected target to sed \'s
	properly in the .tcl file.

	* library/tkTable.tcl: added the ability to select borders with
	button 1. (backe)  The user can turn off this ability by calling
	[set ::tk::table::Priv(borderB1) 0] in their code.  button 3 is
	still active for selecting borders as well.
	fixed a couple references to work on Mac/Tk. (steffen)

	* mac/mac_tkTable_prefix.h:
	* mac/mac_tkTable.r: corrected Mac build. (steffen)

	* doc/tkTable.html: regen'd
	* doc/tkTable.n: Clarified that any <row>,<col> index
	specification will always return a valid cell.  [Bug #450397]
	Corrected what 'units' scrolls. [Bug #448837]

	* mac/mac_tkTable.mcp: removed in favor of XML project file
	* mac/mac_tkTable.mcp.xml: XML CodeWarrior project file for the
	mac. (steffen)

2001-07-18  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTable.c (TableDestroy): freed cached values in destroy.

2001-06-30  Jeff Hobbs  <jeffh@ActiveState.com>

	**** 2.7 RELEASE ****

	* generic/tkTable.h: added STREQ #def to replace strcmp(a,b) == 0
	* generic/tkTable.c:
	* generic/tkTableTag.c: made use of STREQ #define.
	Redid tag merging to make use of only one allocated tag.

	* doc/tkTable.html:
	* doc/tkTable.n: updated docs with feature change info

	* tests/tkTable.test: added more tests

	* generic/tkTableCmds.c (Table_ActivateCmd): made table refresh
	when moving the cursor in the active cell.

2001-06-24  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTableTag.c (Table_TagCmd): corrected patch for Patch
	#423332 that does prevent excess refresh in the simple case.

2001-06-23  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTable.c (TableConfigure): corrected possible crash
	during configure when switching array vars and changed name of
	'restrict' var to something that is not a reserved word. (berggren)

	* library/tkTable.tcl: support for future UTF8_STRING selection on
	unix.

	* generic/tkTable.c:
	* generic/tkTable.h:
	* generic/tkTableTag.c: added support for priorities in tags.
	There are new 'tag lower' and 'tag raise' methods.  This may lead
	to different view characteristics because the default priority
	order is creation order, starting with flash, active, sel, title,
	followed by whatever the user creates.  The old order was fixed at
	flash, active, sel, <celltag>, title, <rowtag>, <coltag>
		**** POTENTIAL INCOMPATABILITY ****

	* tests/tkTable.test: makings of an initial test suite

	* generic/tkTableCmds.c (Table_CurvalueCmd): removed extra curvalue
	in error message.

2001-06-22  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTableTag.c (Table_TagCmd): made adding tags to
	cell/row/col create the tag if it didn't exist.  This was
	previously an error.

	* generic/tkTable.c (TableDisplay): changed use of NO_XSETCLIP to
	only operate on Macintosh, added new Windows code that is the
	equivalent of XSetClipRectangles. (teske)
	Removed XFillRectangle function that was there for support with
	8.1 (nobody should use 8.1 anymore).
	(TableDisplay): Corrected clearing of the area beyond the last
	cell to not be incorrect when there is a span on the last cell.
	(TableAdjustParams): handle possible div-by-zero for scrollbar
	calculations. (christian brunner)

	* generic/tkTable.h: added TableMoveCellValue decl.
	* generic/tkTableEdit.c (TableModifyRC): made use of
	TableMoveCellValue.
	* generic/tkTableCell.c (TableSetCellValue): fixed mem leak in
	-cache option.
	(TableMoveCellValue): new function to support possible speedier
	movement of cells when caching is being used. (michael teske)

	* generic/tkTableCell.c (TableCellCoords): corrected
	rowspan/colspan dimension calculation for title cells.
	(Table_SetCmd): correct possible abuse in setting result object
	pointer.

	* README.txt: updated links

	* win/makefile.vc (pkgIndex.tcl):
	* unix/Makefile.in (pkgIndex.tcl): made 8.2 the required base for
	the stubs version

	* generic/tkTableCmds.c (Table_GetCmd): fixed potential crash from
	abusing object pointer. (jonas hodges) Bug #230701

	* generic/tkTableTag.c (Table_TagCmd): fix possible hang situation
	by preventing refresh when setting the same tag on a cell/row/col.
	(Michael Shulz)

2001-03-28  Jeff Hobbs  <jeffh@ActiveState.com>

	* generic/tkTable.h: change 'char *new' -> 'char *newVal' to not
	stump C++ compilers

2000-10-19  Jeff Hobbs  <jeff at hobbs org>

	* tests/all.tcl: new file
	* tests/tkTable.test: copied listbox.test in to serve as a base
	for tests on the table widget.  Conversion still needs to be done.

	* generic/tkTableCmds.c: #if 0'd stub function Table_Cmd

	* generic/tkTable.h:
	* generic/tkTable.c: corrected headers, made TableConfigure static

2000-08-30  Jeff Hobbs  <hobbs@scriptics.com>

	* generic/tkTable.h:
	* generic/tkTableWin.c (EmbWinConfigure):
	* generic/tkTableTag.c (Table_TagCmd):
	* generic/tkTable.c (TableConfigure): changed -borderwidth to use
	TK_CONFIG_CUSTOM functions for option parsing.

	* win/makefile.vc:
	* unix/Makefile.in: updated for added/removed source files

	* generic/cmd.c (removed):
	* generic/mm.h (removed):
	* generic/tkTableUtil.c (new): moved the few used Cmd_* functions
	into tkTableUtil.c (Cmd_Struct moved to tkTable.h), removing the
	need for the other accessory files.

	* unix/configure:
	* unix/configure.in (uname check): added support for systems where
	uname has no -p option (ie HP).

2000-08-21  Jeff Hobbs  <hobbs@scriptics.com>

	* generic/tkTable.c (TableConfigure): added check for NULL
	oldBorders during configure.

2000-08-18  Jeff Hobbs  <hobbs@scriptics.com>

	* generic/tkTable.c: changed the -ipad* defaults to 0, to go along
	with the -pad* defaults.  For users looking for backwards
	compatability with 2.5 padding, add:
	    option add *Table.ipadX 2
	    option add *Table.ipadY 1
	Users will likely find that -pad* is more intuitive though.
		**** POTENTIAL INCOMPATABILITY ****

	* doc/tkTable.html:
	* doc/tkTable.n: updated docs to reflect new -(i)pad* definitions
	and enhanced -bd behavior.

	* generic/tkTable.c (TableCursorEvent, TableConfigCursor): reduced
	unnecessary redraws when the cursor was in a non-editable cell.

2000-08-17  Jeff Hobbs  <hobbs@scriptics.com>

	* generic/tkTable.c: enhanced -borderwidth option to support
	per-edge configuration of borderwith.  -bd now takes a list of
	pixel sizes, 1, 2 or 4 in length.  1 is traditional, 2 specifies
	just the left and right border sizes (to emulate a multicolumn
	listbox), and 4 specifies {left right top bottom} for ultimate
	control.  Tags may override the default.
	Also redid the handling of -(i)pad[xy].  Swapped the basic meaning
	(-pad* from v2.5 should now be -ipad* in 2.7).  -pad* now enforces
	absolute empty padding for cells, expanding the default size.
	Embedded windows can override the -pad* value.  See docs for more.
		**** POTENTIAL INCOMPATABILITY ****

	* generic/tkTable.h: removed use of INLINE, added new border style
	support to structures.

	* generic/tkTableCell.c (TableAtBorder): made it aware of the new
	configurable border style.  It bases its calculations off the
	default border width(s).  Also did lots of comment cleanup.

	* generic/tkTableWin.c (EmbWinDisplay): changed interpretation of
	-pad* for windows to be per side (instead of overall).  This is
	more intuitive.  Added support of new border styles.

	* generic/tkTableTag.c: Added new border style control per tag.
	New TableGetTagBorders function to determine border values based
	on input.  Lots of comment/code cleanup.

	* generic/tkTableEdit.c (Table_EditCmd): corrected code to ensure
	that when rows where deleted, rows/cols would not fall below 1,
	the minimum dimension size (otherwise "bad things" happen).
	(Table_EditCmd): corrected problem when specifying a negative
	count deleting more rows than exist before the specified index.

	* unix/Makefile.in ($(DLL)): corrected ld build line to not use
	SHLIB_CFLAGS, instead adding TK_LD_SEARCH_FLAGS. (virden)

2000-08-10  Jeff Hobbs  <hobbs@scriptics.com>

	* unix/Makefile.in: cleaned up Makefile to correctly use the right
	flags for building with stubs support.

	* generic/version.h: bumped version to 2.7

	* generic/tkTable.h: added ipadX, ipadY to table struct.
	* generic/tkTable.c (TableConfigure): removed code setting
	forceUpdate to 1 for any configure options.
	(TableAdjustParams): added -ipdax/-ipday, giving them the meaning
	that -pad* was extended to use in 2.6.  -pad* are as they were in
	2.5, and -ipad* does the extended cell padding for 2.7+.  See docs
	for details.
	(TableEventProc): removed xexpose.count check that would delay
	necessary invalidate calls. (Wangnick)

	* library/tkTable.tcl: added ::tk::table::BackSpace proc instead
	of inlined event binding, taking out \ at eol that confused the
	tcl2c converter when inlining the tkTable.tcl.h runtime.

2000-08-02  Jeff Hobbs  <hobbs@scriptics.com>

	2.6 RELEASE

	* unix/Makefile.in: added bindist and cleanall targets, and
	cleared up the use of some variables to allow for correct building
	of the tktable library across platforms (including AIX).
	The distclean target no longer removes the generated html doc.
	* unix/configure:
	* unix/configure.in: added check of available compression program
	and SYSID for Unix make bindist target.  Also cleaned up the use
	of some other variables.

	* generic/tkTable.c (TableConfigCursor, TableCursorEvent)
	(TableFlashEvent, TableEventProc):
	* generic/tkTableEdit.c (TableDeleteChars, TableInsertChars):
	* generic/tkTableCmds.c (Table_CurvalueCmd): removed INV_FORCE
	from TableRefresh call.  This means more refreshes are delayed.

	* generic/tkTable.c (BUILD_tkTable): corrected EXTERN def'n of
	Init funcs.

2000-08-01  Jeff Hobbs  <hobbs@scriptics.com>

	* library/tkTable.tcl: rewritten to use ::tk::table namespace

	* generic/tkTable.h: added CONSTRAIN and BETWEEN macros to simply
	some MIN/MAX cases.
	* generic/tkTable.c:
	* generic/tkTableCell.c:
	* generic/tkTableCmds.c: updated to use CONSTRAIN/BETWEEN instead
	of MIN(MAX()).

	* generic/tkTable.c (TableRefresh): changed to not do anything
	when coords < 0 are passed in (like asking to refresh non-existent
	active cell).
	(TableEventProc): added (likely redundant) check for xexpose.count
	== 0 before redisplaying in Expose case. (Halpin)

	* generic/tkTable.c (XFillRectangle): added compat XFillRectangle
	to make up for lack of one in Tk8.1.  (Nijtmans)
	(TableAdjustParams): Made -padx and -pady actually work as
	intended for each cell.  This actually affects the default size
	for a table, as more spacing is given to each cell by default.
	Use -padx/y to control this. (Lennard, Hobbs)
	(TableDisplay): removed extra call to TableCellCoords (leftover
	from NO_SPANS).  (Deich)

	* generic/tkTableCmds.c (Table_SelSetCmd): Corrected the selection
	of title cells when only title cells are available. (Brutti)

	* library/tkTable.tcl (tkTableChangeWidth): changed -$a to
	[expr {-$a}]. (Dubiner)
	(tkTableBeginSelect): Changed behavior for extended selectmode to
	select in the topleft title area when appropriate. (Dubiner)
	(tkTableSelectAll): Changed behavior to select *all* cells
	(including title cells) when -selecttitles is 1.

	* demos/loadtable.tcl: corrected to search better in new directory
	structure.

2000-03-22  Jeff Hobbs  <hobbs@scriptics.com>

	* */*: complete restructure of tktable sources
	* CHANGES.txt: moved to ChangeLog, will now use ChangeLog format

##########################################################################
## 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-2000 Jeffrey Hobbs
## jeff at hobbs 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 at hobbs org (Jeffrey Hobbs)
# *        ellson@lucent.com (John Ellson)
##
## Mac support provided by Chuck Houpt (choupt@als.com). (v2.3+)
##
##########################################################################

**** v2.6alpha 29 February 2000 ****

Fixed row/col insertion/deletion to correctly handle embedded windows.
(fix in part by albrecht@DAnalyse.de)

Added stubs support to makefile.

Added support for safe init script (requires embedded runtime) to
be used in safe interpreters.

Fixed bug in Table_BorderCmd on passing the 6th arg (the optional
row|col).  (rickm@vsl.com)

Added -holdselection arg to row/col insert/delete. (Paolo.Brutti@tlsoft.it)

Added -DNO_SORT_CELLS ...

Created tkTableCellSort.c with cell sorting routines.  Redid ...

Fixed bug in tk_tableCut due to change in curselection syntax.

Fixed missing comma in tkTableEdit.c:32 (Brutti)

**** v2.5 31 May 1999 ****

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 <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.