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
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
|
2007-11-05 Milan Crha <mcrha@redhat.com>
** Fix for bug #255051
* e-cell-combo.c: (e_cell_combo_key_press):
* e-cell-text.c: (ect_event):
Pass Escape event to parent, if there is no action to do with it.
* e-table-click-to-add.c: (etcta_event): Drop changes when pressed
Escape and go back to default line with text "Click to add...".
2007-11-02 Damien Carbery <damien.carbery@sun.com>
** Fixes bug #492058
* e-table-header-item.h:
* e-table-header-item.c: Name the anonymous unions to build
with the Sun Studio compiler.
2007-11-02 Milan Crha <mcrha@redhat.com>
** Fix for bug #463946
* e-table-header-item.c: (ethi_popup_field_chooser):
Fix of critical warning and misused variable.
2007-11-01 Matthew Barnes <mbarnes@redhat.com>
* e-table-click-to-add.c (etcta_add_message):
Fix a const warning.
2007-10-26 Kjartan Maraas <kmaraas@gnome.org>
* e-cell-text.c: (ect_event), (_blink_scroll_timeout):
* e-table-config.c: (do_sort_and_group_config_dialog),
(do_fields_config_dialog):
* e-table-group-container.c: (etgc_add_array),
(etgc_get_focus_column), (etgc_get_cell_geometry),
(etgc_set_property), (etgc_get_property), (etgc_class_init),
(etgc_reflow), (etgc_init), (e_table_group_container_print_page),
(e_table_group_container_height):
* e-table-group.c: (e_table_group_get_focus_column):
* e-table-header.c: (e_table_header_get_columns), (eth_set_size):
* e-table-item.c: (eti_tree_unfreeze), (eti_draw), (find_cell),
(_do_tooltip), (eti_event), (e_table_item_height):
* e-table-memory-store.c: (etms_initialize_value),
(etms_value_is_empty):
* e-tree-model.c: (e_tree_model_new), (e_tree_model_node_find):
Warning fixes:
- NULL vs. 0 vs. FALSE
- Mark som code static
2007-10-09 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #437579
* e-table-field-chooser-item.c:
* e-table-header-item.c:
* e-table-header-item.h:
* e-table-header-utils.c:
* e-table.c:
Fix various compiler warnings. Patch from Milan Crha.
2007-10-02 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #469657
* e-table-extras.c:
* e-table-selection-model.c:
Use destroy functions in GHashTables to simplify memory management.
2007-10-01 Milan Crha <mcrha@redhat.com>
** Fix for bug #470837
* e-table-header-item.c: (sort_by_id), (popup_custom),
(ethi_header_context_menu), (ethi_change_sort_state):
Improved "Sort by" submenu behavior.
2007-10-01 Milan Crha <mcrha@redhat.com>
** Fix for bug #474557
* e-table-group-container.c: (etgc_reflow):
Choose right widget and use PANGO_PIXELS to calculate height.
2007-09-27 Hiroyuki Ikezoe <poincare@ikezoe.net>
** Fix for bug #461195
* e-table-header-item.c:
* e-table-item.c:
* e-tree.c:
* e-table-click-to-add.c:
* e-table.c:
* e-table-group.c: Use GObject's marshalers.
2007-09-27 Milan Crha <mcrha@redhat.com>
** Fix for bug #478871
* e-table-config.c: (config_fields_info_update):
Shows proper 'Fields shown' description for all tables.
2007-09-27 Milan Crha <mcrha@redhat.com>
** Fix for bug #479716
* e-table-config.c: (setup_gui):
* Makefile.am: Get rid of e-table-config-no-group.glade and
keep consistent with behavior and appearence.
2007-09-26 Milan Crha <mcrha@redhat.com>
** Fix for bug #340748
* e-table.c: (e_table_set_state_object):
Notifies others about change.
2007-09-07 Milan Crha <mcrha@redhat.com>
** Fix for bug #473903
* e-tree.c: (et_real_construct):
Fixes serious compiler warning.
2007-08-31 Srinivasa Ragavan <sragavan@novell.com>
** Move away from g_assert to g_return* critical warnings to debug
them better.
* e-cell-text.c: (ect_edit_select_all), (_get_position):
* e-table-config.c: (configure_combo_box_add),
(configure_combo_box_set_active),
(update_sort_and_group_config_dialog):
* e-table-group.c: (e_table_group_add), (e_table_group_add_array),
(e_table_group_add_all), (e_table_group_remove),
(e_table_group_increment), (e_table_group_decrement),
(e_table_group_row_count), (e_table_group_set_focus),
(e_table_group_get_focus), (e_table_group_get_focus_column),
(e_table_group_get_printable), (e_table_group_compute_location),
(e_table_group_get_cell_geometry):
* e-table-header-utils.c: (e_table_header_compute_height),
(make_composite_pixmap), (e_table_header_draw_button):
* e-table-item.c: (eti_attach_cell_views), (eti_row_height_real),
(eti_add_table_model), (eti_add_selection_model),
(eti_header_structure_changed), (eti_add_header_model):
* e-tree-table-adapter.c: (generate_tree):
2007-08-24 Milan Crha <mcrha@redhat.com>
** Fix for bug #239441
* e-tree-table-adapter.c: (struct ETreeTableAdapterPriv),
(etta_finalize), (etta_init), (resort_model),
(etta_proxy_node_changed):
Remember resort_idle_id and remove it from g_source when
finalizing structure, so it will not be called when the
structure itself is already freed.
2007-08-23 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #303877.
* e-cell-text.c: (update_im_cursor_locations): New function.
Set the cursor location to IMContext for candidate window.
(e_cell_text_get_cursor_locations): New function.
Get the current cursor locations in root canvas.
(e_cell_text_preedit_changed_cb): set the preedit cursor position to
preedit_pos.
(layout_with_preedit): call update_im_cursor_locations in the tail.
Patch by Hiroyuki Ikezone.
2007-08-07 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #419690
* e-tree-table-adapter.c:
(e_tree_table_adapter_root_node_set_visible): Add protection around
etta.
2007-08-07 Milan Crha <mcrha@redhat.com>
** Fix for bug #463946
* e-table-header-item.c: (ethi_dispose), (ethi_popup_field_chooser):
Fixes compiler warnings and weak pointer references.
2007-07-27 Hiroyuki Ikezoe <poincare@ikezoe.net>
* e-cell-tree.c:
* e-cell-hbox.c:
* e-cell-popup.c:
* e-tree-simple.c:
* e-cell-date.c:
* e-tree-table-adapter.c:
* e-tree-scrolled.c:
* e-table-field-chooser.c:
* e-table-header-item.c:
* e-cell-pixbuf.c:
* e-table-subset-variable.c:
* e-tree-selection-model.c:
* e-tree-sorted-variable.c:
* e-tree-memory-callbacks.c:
* e-table-sorted.c:
* e-table-subset.c:
* e-table-search.c:
* e-table-extras.c:
* e-table-one.c:
* e-table-config-field.c:
* e-cell-combo.c:
* e-table-item.c:
* e-cell-toggle.c:
* e-tree.c:
* e-table-col.c:
* e-table-field-chooser-item.c:
* e-table-sort-info.c:
* e-table-simple.c:
* e-table-column.c:
* e-table-scrolled.c:
* e-tree-model.c:
* e-table-column-specification.c:
* e-table-group-container.c:
* e-cell-text.c:
* e-table-specification.c:
* e-cell-number.c:
* e-table-sorted-variable.c:
* e-table-selection-model.c:
* e-table-memory-callbacks.c:
* e-cell.c:
* e-table-click-to-add.c:
* e-cell-float.c:
* e-table-field-chooser-dialog.c:
* e-tree-memory.c:
* e-cell-progress.c:
* e-table-group-leaf.c:
* e-table.c:
* e-table-sorter.c:
* e-table-header.c:
* e-table-group.c:
* e-table-model.c:
* e-cell-size.c:
* e-table-without.c:
* e-table-config.c:
* e-cell-vbox.c:
* e-tree-sorted.c:
* e-table-state.c:
* e-table-memory-store.c:
* e-table-memory.c:
* e-cell-spin-button.c:
* e-cell-checkbox.c: Use G_DEFINE_TYPE instead of E_MAKE_TYPE.
2007-07-27 Matthew Barnes <mbarnes@redhat.com>
* Makefile.am:
Rename EXTRA_GNOME_CFLAGS to GNOME_PLATFORM_CFLAGS.
Similarly for EXTRA_GNOME_LIBS.
2007-07-27 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #323522
* e-table-item.c: (eti_unfreeze):
2007-06-15 Matthew Barnes <mbarnes@redhat.com>
* e-cell-vbox.c (ecv_finalize):
Free the model_cols array when the instance is destroyed (#447742).
2007-06-02 Gilles Dartiguelongue <dartigug@esiee.fr>
** Fixes part of bug #441014
* e-cell-text.c: (build_layout), (ect_print):
* e-cell-tree.c: (ect_realize):
* e-table-column-specification.c:
(e_table_column_specification_load_from_node),
(e_table_column_specification_save_to_node):
* e-table-field-chooser-item.c: (etfci_drag_data_get):
* e-table-group-container.c:
* e-table-header-item.c: (ethi_drag_data_received),
(ethi_drag_data_get), (ethi_popup_field_chooser),
(ethi_header_context_menu):
* e-table-sort-info.c: (e_table_sort_info_load_from_node),
(e_table_sort_info_save_to_node):
* e-table-specification.c: (e_table_specification_load_from_node),
(e_table_specification_save_to_file),
(e_table_specification_save_to_string),
(e_table_specification_save_to_node):
* e-table-state.c: (e_table_state_load_from_node),
(e_table_state_save_to_file), (e_table_state_save_to_string),
(e_table_state_save_to_node):
* e-table-subset-variable.c: (e_table_subset_variable_clear):
* e-table-subset.c: (e_table_subset_construct):
* e-tree-table-adapter.c: (save_expanded_state_func),
(e_tree_table_adapter_save_expanded_state), (open_file),
(e_tree_table_adapter_load_expanded_state): various
compilation warning cleanups
2007-05-31 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #333707 from David Moore
* e-tree.c: (et_disconnect_from_etta), (e_tree_init),
(et_table_rows_deleted), (et_connect_to_etta): Thread message
selection improvements, while deleting messages in thread.
2007-05-25 Matthew Barnes <mbarnes@redhat.com>
* e-table-config.c:
* e-table-config.h:
Replace GalComboText with a GtkComboBox/GtkListStore (#441010).
2007-05-17 Srinivasa Ragavan <sragavan@novell.com>
** Add more support for GMail like sorting.
* e-table-sorting-utils.c: (e_table_sorting_utils_tree_sort):
* e-tree-memory-callbacks.c: (etmc_sort_value_at),
(e_tree_memory_callbacks_class_init),
(e_tree_memory_callbacks_new):
* e-tree-memory-callbacks.h:
* e-tree-model.c: (e_tree_model_class_init),
(e_tree_model_sort_value_at):
* e-tree-model.h:
2007-05-16 Srinivasa Ragavan <sragavan@novell.com>
* e-tree-table-adapter.c:
(e_tree_table_adapter_load_expanded_state): Add support for retaining
default tree expand state
2007-05-14 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #378441 from Ebby Wiselyn
* e-table-header-item.c: Added mnemonics
2007-05-12 simon.zheng <simon.zheng@sun.com>
* Fix for bug #355919
* e-table-header-utils.c: (make_composite_pixmap):
gdk_rgb_get_visual()->depth always returns preferred visual
depth, which isn't always equal to the that of current
window. Whereas, using -1 will match the depth of the pixmap window
to what we have in drawable window, which is the first
argument of gdk_pixmap_new(). So use -1 instead.
2007-04-20 Matthew Barnes <mbarnes@redhat.com>
* e-cell.h:
* e-cell-pixbuf.c:
* e-cell-text.c:
* e-printable.h:
* e-table-group-container.c:
Refactor the printing infrastructure. (#426816)
2007-04-19 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #429422
* e-table-size-test.c (create_table):
* test-table.c (main):
* e-cell-combo.c (e_cell_combo_show_popup):
* e-table-example-1.c (create_table):
* e-tree.c (header_canvas_size_allocate), (e_tree_setup_header):
* e-cell-text.c (ect_show_tooltip):
* e-table-example-2.c (create_table):
* e-table.c (header_canvas_size_allocate):
Use gtk_widget_set_size_request() or g_object_set() instead of
gtk_widget_set_usize().
* e-cell-tree.c (e_cell_tree_construct):
* e-table-header-item.c (ethi_header_context_menu), (ethi_event):
* e-table-extras.c (e_table_extras_add_cell):
Use g_object_ref_sink() instead of gtk_object_sink().
* e-cell-date.c (ecd_get_text):
e_strdup_strip() is dead; just do it manually.
* e-table-header-item.c (ethi_header_context_menu):
Use gtk_radio_menu_item_get_group() instead of
gtk_radio_menu_item_group().
* e-table-search.c (e_table_search_class_init):
* e-table-sort-info.c (e_table_sort_info_class_init):
* e-tree-model.c (e_tree_model_class_init):
* e-tree-memory.c (e_tree_memory_class_init):
* e-table-header.c (e_table_header_class_init):
* e-table-model.c (e_table_model_class_init):
* e-table-config.c (config_class_init):
* e-tree-sorted.c (e_tree_sorted_class_init):
Use G_TYPE_FROM_CLASS() instead of E_OBJECT_CLASS_TYPE().
* e-table-item.c (eti_dispose), (eti_unrealize), (eti_event):
Use g_source_remove() instead of gtk_timeout_remove().
* e-table-item.c (eti_event):
Use g_timeout_add() instead of gtk_timeout_add().
* e-tree.c (et_dispose):
e_free_string_list() is dead; just do it manually.
* e-tree-memory.c (e_tree_memory_sort_node):
* e-table-sorting-utils.c (e_table_sorting_utils_sort):
Use g_qsort_with_data() instead of e_sort().
2007-03-29 Matthew Barnes <mbarnes@redhat.com>
* e-table-header-utils.c:
* e-table-item.c:
* e-tree-header-item.c:
* e-tree-table-adapter.c:
Fix "incompatible pointer type" warnings (#360619).
2007-03-20 Matthew Barnes <mbarnes@redhat.com>
* e-cell-checkbox.c:
* e-table-header-item.c:
Don't mix declarations and code (#405495).
2007-03-20 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #419524
* Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>.
2007-03-16 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #360240
* e-cell-text.c (ect_free_color):
Remove unused variable.
2007-03-01 Kjartan Maraas <kmaraas@gnome.org>
* e-cell-hbox.c: (ecv_new_view), (ecv_kill_view):
* e-cell-pixbuf.c: (pixbuf_new_view), (pixbuf_kill_view):
* e-cell-popup.c: (ecp_new_view), (ecp_kill_view):
* e-cell-progress.c: (eprog_new_view), (eprog_kill_view):
* e-cell-spin-button.c: (ecsb_new_view):
* e-cell-text.c: (ect_new_view), (ect_kill_view):
* e-cell-toggle.c: (etog_new_view), (etog_kill_view):
* e-cell-tree.c: (ect_new_view), (ect_kill_view):
* e-cell-vbox.c: (ecv_new_view), (ecv_kill_view):
* e-cell.h: Rest of the workaround patch for the crash
in bug #330728. Patch from Caolan McNamara.
2007-02-12 Srinivasa Ragavan <sragavan@novell.com>
** Print migration updates from Ebby Wiselyn
* e-cell-toggle.c:
* e-cell-text.c:
2007-02-08 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #357216
* e-table-field-chooser-item.c:
* e-table-field-chooser-item.h:
* e-table-group-container.c:
* e-table-group-container.h:
Replace deprecated GdkFont with PangoFontDescription.
* e-table-header-item.c:
* e-table-header-item.h:
Replace deprecated GdkFont with PangoFontDescription.
Rename "fontset" property to "font-desc", and change the property
type to a boxed PangoFontDescription.
2007-01-22 Srinivasa Ragavan <sragavan@novell.com>
** GtkPrint api migration from Ebby Wiselyn.
* e-cell-checkbox.c: (ecc_print), (e_cell_checkbox_class_init):
* e-cell-pixbuf.c: (gnome_print_pixbuf), (pixbuf_print),
(pixbuf_print_height):
* e-cell-popup.c: (ecp_print), (ecp_print_height):
* e-cell-text.c: (ect_print), (ect_print_height):
* e-cell-toggle.c: (etog_print), (etog_print_height):
* e-cell.c: (e_cell_print), (e_cell_print_height):
* e-cell.h:
* e-table-group-container.c: (gp_draw_rect),
(e_table_group_container_print_page),
(e_table_group_container_height),
(e_table_group_container_will_fit):
* e-table-item.c: (eti_realize_cell_views), (eti_draw),
(eti_event), (eti_printed_row_height), (gp_draw_rect),
(e_table_item_print_page), (e_table_item_height),
(e_table_item_will_fit):
2006-12-04 Matthew Barnes <mbarnes@redhat.com>
Fixes bug #357970
* e-cell-pixbuf.c:
* e-cell-progress.c:
* e-cell-text.c:
* e-cell-toggle.c:
* e-cell-tree.c:
* e-table-col.c:
* e-table-extras.c:
* e-table-header-item.c:
* e-table-header-utils.c:
* e-table-item.c:
* e-table-memory-store.c:
Don't call deprecated GLib / GDK functions.
2006-12-04 Harish Krishnaswamy <kharish@novell.com>
* e-table.c: (canvas_vbox_event), (click_to_add_event):
Fixes bug #381642.
2006-08-24 Hiroyuki Ikezoe <poincare@ikezoe.net>
** Fixes bug #337582
* e-cell-text.c: Use GtkClipboard instead of GtkInvisible.
2006-08-21 Andre Klapper <a9016009@gmx.de>
* e-table-config.glade:
changed window focus. Fixes bug #266802.
2006-08-21 Srinivasa Ragavan <sragavan@novell.com>
* e-cell-text.c: (ect_event): Add a null check and remove code for a
possible crash which is really useless.
2006-08-20 Srinivasa Ragavan <sragavan@novell.com>
** Patch from Pavel Roskin.
* e-cell-text.c: Added missing headers.
* e-table-utils.c: Added missing headers.
2006-08-19 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #350884
* e-tree-table-adapter.c: (resort_model),
(etta_proxy_node_changed): Sort the model after for gmail like
display.
2006-07-05 Rajeev ramanathan <rajeevramanathan_2004@yaoo.co.in>
* e-cell-text.c: (ect_unrealize), (build_layout), (ect_draw): Added
code to render ECell text items with antialiasing, hinting
and sub-pixel ordering with cairo.
2006-07-18 Benoît Dejean <benoit@placenet.org>
** Fixes bug #333041
* e-table-group-container.c: add gettext support to some strings.
2006-06-12 simon.zheng <simon.zheng@sun.com>
**Fixes bug #338295
* e-cell-text.c: (get_font_description_for_size), (get_font_size),
(ect_print), (ect_print_height): Use pango to handle text when
printing tasks
2006-06-12 Ed Catmur <ed@catmur.co.uk>
** Fixes bug #343764 now entirely
* e-table-header-utils.c: (e_table_header_draw_button):
Adding a weak reference to avoid crashing.
2006-06-12 Srinivasa Ragavan <sragavan@novell.com>
Committing a fix for sorting in the vertical view.
* e-table-column-specification.c:
(e_table_column_specification_load_from_node):
* e-table-column-specification.h:
* e-table-header-item.c: (ethi_popup_sort_ascending),
(ethi_popup_sort_descending), (ethi_header_context_menu),
(ethi_change_sort_state):
* e-table-utils.c: (et_col_spec_to_col):
2006-06-08 Carlos Garcia Campos <carlosgc@gnome.org>
** Fixes bug #343764
* e-table-header-utils.c: (e_table_header_draw_button):
Ensure g_label points to the right widget before accessing to its
style.
2006-06-05 Hiroyuki Ikezoe <poincare@ikezoe.net>
* Makefile.am: Remove extra tabs. Fixes #343734.
2006-05-12 Hiroyuki Ikezoe <poincare@ikezoe.net>
** Fixes bug #341530.
* e-table.h:
Removed duplicate delcaration of e_table_commi_click_to_add.
2006-04-10 Jeff Cai <jeff.cai@sun.com>
** Fixes bug #327035
* e-table-header-item.c: (ethi_event):
Grab focus only from widgets which can have focus on.
2006-03-02 Srinivasa Ragavan <sragavan@novell.com>
** Fixes bug #328283
* e-table-item.c: (eti_tree_unfreeze): Use the right widget to
unfreeze the tree.
2006-03-01 Simon Zheng <simon.zheng@sun.com>
** Fixes bug #331400
* e-cell-text.c: (ect_print_height): Table item height is decided
by the max cell height in item. And cell-text is just one of cells.
As done by ect_print(), to leave some margin for text, 2 for footer,
2 for header, actual print height should be 16 + 4.
2006-02-24 Srinivasa Ragavan <sragavan@novell.com>
** Fixes bug #332408
* e-table-config.c: (e_table_proxy_etable_shown_new),
(e_table_proxy_etable_available_new): Reverting the patch that fixes
some compiler warning. The function is referred from the glade file,
which was removed.
2006-02-14 Srinivasa Ragavan <sragavan@novell.com>
** Fixes bug #328283
* e-table-item.c: (eti_tree_unfreeze): Added the return value for
scroll-event handler which causes a crash
2006-01-27 Andre Klapper <a9016009@gmx.de>
* e-table-config-no-group.glade:
* e-table-config.glade:
removed string "dialog1" from translation. Fixes bug 306118.
2006-01-13 Srinivasa Ragavan <sragavan@novell.com>
* e-table-item.c: (adjustment_changed), (eti_tree_unfreeze),
(eti_realize): Fixes the scroll issue with e-tree.
2005-12-21 Chenthill Palanisamy <pchenthill@novell.com>
committing for Akira TAGOH <tagoh@gnome-db.org>
Fixes #303876
* table/e-cell-text.c: (ect_event): Check if its a keep press
event when the Return key is pressed.
2005-12-18 Tor Lillqvist <tml@novell.com>
* e-table-config.c (find_model_column_by_name): Use
g_ascii_strcasecmp() instead of g_strcasecmp(). This function
handles the English column names.
* e-table-specification.c (e_table_specification_load_from_file)
* e-table-state.c (e_table_state_load_from_file):
Use e_xml_parse_file().
2005-12-17 Tor Lillqvist <tml@novell.com>
* Makefile.am: Link with bootstrap libs on Win32. Use
E_WIDGETS_CFLAGS instead of GNOME_BONOBO_CFLAGS, GNOME_INCLUDEDIR,
ICONV_CFLAGS and GNOME_FULL_CFLAGS. Link with all required
libraries. Use -no-undefined on Win32.
2005-12-09 Harish Krishnaswamy <kharish@novell.com>
* e-table-example-2.c (create_table):
* e-table-extras.c (ete_init):
* e-table-size-test.c (create_table):
* test-check.c (check_test):
* test-cols.c (multi_cols_test):
* test-table.c (table_browser_test):
s/g_*_compare/e_*_compare.
2005-12-07 Boby Wang <boby.wang@sun.com>
Fixes #322740.
* e-tree.c: (item_key_press): change the condition
expression for GDK_RIGHT and GDK_LEFT.
2005-12-06 Li Yuan <li.yuan@sun.com>
* e-tree.c: (table_canvas_focus_event_cb):
Fixes bug #322776.
When focus come into e-tree, it is possible that the focused_item
is not NULL and there is no focused item in e-tree. So test
e_selection_model_cursor_row also.
2005-10-14 Kaushal Kumar <kakumar@novell.com>
* table/e-table-group-container.c
(e_table_group_container_print_page): Use gnome_font_find_closest
instead of gnome_font_find since Helvetica is not always present.
Fixes bug #246803.
Patch by: Mubeen Jukaku.
2005-10-04 Devashish Sharma <sdevashish@novell.com>
* e-table-extras.c (ete_init): Added compare type "stringcase" to
ETableExtras to comapre hash table for case insensitive strings. The
corresponding function g_str_case_compare has been added to e-util.c.
See #207110.
2005-09-29 Tor Lillqvist <tml@novell.com>
* e-table.c (e_table_load_specification)
* e-table-specification.c (e_table_specification_load_from_file)
* e-tree-table-adapter.c (open_file): Use
g_win32_locale_filename_from_utf8() from GLib 2.8 instead of
gnome_win32_locale_filename_from_utf8() which was temporarily in
libgnome.
2005-09-28 Tor Lillqvist <tml@novell.com>
* e-table-specification.c (e_table_specification_load_from_node):
Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing
to literal ASCII strings, just casefolding ASCII is enough. Also
better for portability.
2005-08-24 Li Yuan <li.yuan@sun.com>
Fixes #314352.
* e-table-item.c: (eti_event):
if accessibility is enabled, we enable horizontal cusor
movement for line selection.
2005-08-23 Not Zed <NotZed@Ximian.com>
* e-table-config.c (setup_fields): fix some missing casts.
2005-08-10 Not Zed <NotZed@Ximian.com>
** See bug #313063.
* e-tree.c (e_tree_class_init): fix the set_scroll_adjustments
signal to take object, not pointer arguments. Since glib's
anality doesn't accept an object pointer as a pointer. go figure.
2005-07-25 Srinivasa Ragavan <sragavan@novell.com>
* e-table-config.glade: Added code to use stock icons instead of
-> and <-
2005-06-23 Kaushal Kumar <kakumar@novell.com>
* Makefile.am: Set libetableincludedir to table to match
source directory name and fix evolution-exchange build
without GAL.
2005-06-01 Kaushal Kumar <kakumar@novell.com>
* e-table-item.c (eti_dispose): Don't hide the tooltip if we don't
have a canvas anymore.
Patch by: Not Zed
2005-05-20 Li Yuan <li.yuan@sun.com>
* e-table-header-item.c:
* e-table-header-item.h:
export ethi_change_sort_state, so we can call it in a11y part.
* e-tree.c: (e_tree_get_header_item):
* e-tree.h:
return the header item of e-tree.
Fix for #302154.
2005-03-14 Theppitak Karoonboonyanan <theppitak@gmail.com>
* e-cell-text.c (e_cell_text_retrieve_surrounding_cb)
(e_cell_text_delete_surrounding_cb): selecion fixes for im's.
2005-02-25 Li Yuan <li.yuan@sun.com>
Fix for #73009.
* e-table-config-no-group.glade:
* e-table-config.glade:
2005-01-27 Harry Lu <harry.lu@sun.com>
Some code clean work.
* e-table-click-to-add.c: (etcta_class_init): move a11y registry
call to a11y code.
* e-table.c: (e_table_class_init): ditto.
* e-tree.c: (e_tree_class_init): ditto.
2005-01-27 Li Yuan <li.yuan@sun.com>
* e-cell-combo.c: (e_cell_combo_init), (e_cell_combo_do_popup),
(e_cell_combo_list_button_press), (e_cell_combo_button_press),
(e_cell_combo_button_release), (e_cell_combo_key_press):
add an a11y name for the popup list.
make shortcut key ALT+Arrow work.
Fixes #70261
* e-cell-text.c: (e_cell_text_class_init), (_delete_selection),
(_insert):
add "text_inserted" and "text_deleted" signals to notify the
text has been changed.
(e_cell_text_get_text_by_view):
new helper function to get the text being editted.
* e-cell-text.h:
add signal declaration.
* e-cell-toggle.c: (etog_draw):
add range check for negative values.
* e-cell-vbox.c: (e_cell_vbox_class_init):
* e-cell-vbox.h:
make ECellVboxView public since it will be used in a11y part.
* e-table-click-to-add.c: (etcta_style_set),
(create_rect_and_text), (etcta_realize), (etcta_class_init),
(e_table_click_to_add_commit):
add "style_set" signal to click_to_add and implement
the style_set function.
(etcta_init):
add a11y name to click to add.
* e-table-click-to-add.h:
add "style_set" signal to click_to_add and implement
the style_set function.
* e-table-config.c: (config_button_up), (config_button_down):
check whether the columns are empty.
* e-table-group-container.c:
* e-table-group-container.h:
make ETableGroupContainerChildNode public since it
will be used in a11y part.
* e-table-item.c: (eti_init):
init eti->cols.
(eti_event):
at GDK_KEY_PRESS event and GDK_Down key pressed, we check
view_col value before we pass it to eti_e_cell_event.
(eti_class_init):
call the new initialize function
* e-table.c: (table_canvas_focus_event_cb):
if canvas has a focused item but the etable does not
have a cursor row, just focus the first item after check
whether the click_to_add should get the focus.
2005-01-26 JP Rosevear <jpr@novell.com>
Fixes #38195
* e-cell-combo.c (e_cell_combo_set_popdown_strings): don't convert
to the locale for gtk widgets now
2004-12-21 JP Rosevear <jpr@novell.com>
Fixes #29309
* e-table-header-item.h: add field chooser dialog data member
* e-table-header-item.c: remove weak pointer ref
(ethi_popup_field_chooser): if we already have a dialog, just
present it, otherwise create a new one and listen for its
destruction
2004-11-24 Li Yuan <li.yuan@sun.com>
* e-table.c: (e_table_get_cell_geometry):
check whether header_canvas and table_canvas is NULL.
2004-11-04 Li Yuan <li.yuan@sun.com>
* gal/e-table/e-table.c: (table_canvas_focus_event_cb):
if canvas has a focused item but the etable does not have a cursor row,
just focus the first item.
2004-10-19 JP Rosevear <jpr@novell.com>
* e-table.c (table_canvas_focus_event_cb): return FALSE so we
don't kill the focus event chain
2004-08-09 Not Zed <NotZed@Ximian.com>
* e-cell-combo.c (e_cell_combo_get_popup_pos): include scrollbar
offset in vertical calculation. don't ask me i just work here.
see #61932.
2004-08-02 Radek Doulik <rodo@ximian.com>
* e-table-config.c (e_table_config_construct): do not set
position, it's already done in .glade, call set_transient_for
always (passing NULL is valid as well)
* e-table-config.glade: * e-table-config-no-group.glade: center
window on parent, don't let it resize and most importan make it
dialog window so that set_transient_for works against define views
dialog
Fixes #61936
2004-07-07 Radek Doulik <rodo@ximian.com>
* e-table-sorted-variable.c (etsv_add): added
e_table_model_pre_change because we call
e_table_model_row_inserted later. It fixes freeze/unfreeze for
ETableItem assert warning which I run into when fixing #56271
2004-06-22 Rodney Dawes <dobey@novell.com>
* e-table-config.c (do_fields_config_dialog, e_table_config_new):
Fix some spacing and border width properties on the dialog's widgets
to make the dialog compliant with the HIG
2004-06-22 Christopher James Lahey <clahey@ximian.com>
* e-table-model.[ch]: Added e_table_model_freeze and e_table_model_thaw
* e-table-config.c (setup_fields): Use e_table_model_freeze and
e_table_model_thaw
Fixes #54785
2004-06-11 Radek Doulik <rodo@ximian.com>
* e-table-config.c (e_table_config_construct): set dialog window
position, glade doesn't do that for us anymore as the window is
first hidden, extended and later shown
* e-table-config-no-group.glade: as below
* e-table-config.glade: set visibility to false, it will keep the
dialog hidden until we call gtk_widget_show and thus no resizing
is visible while we are extending the dialog content
Fixes #57825
2004-06-10 Radek Doulik <rodo@ximian.com>
* e-cell-text.c (layout_with_preedit): removed unused variable
* e-tree.c (e_tree_get_item): added cast
added #include <atk/atkregistry.h>
* e-table-one.c (one_finalize): removed unused variable
* e-table-item.c: added #include
"gal/a11y/e-table/gal-a11y-e-table-item.h" for
gal_a11y_e_table_item_factory_get_type prototype
* e-table-header-utils.c (e_table_header_draw_button): removed
unused variable
* e-table-config.c (get_source_model_col_index): removed unused
variable
* e-table-click-to-add.c (finish_editing): added cast
(etcta_event): ditto
* e-cell-toggle.c: added #include
"gal/a11y/e-table/gal-a11y-e-cell-registry.h" to have
gal_a11y_e_cell_registry_add_cell_type prototype
* e-cell-text.c (layout_with_preedit): removed unused variable
(build_layout): ditto
(ect_event): ditto
(e_cell_text_commit_cb): ditto
* e-cell-popup.c: added #include
"gal/a11y/e-table/gal-a11y-e-cell-registry.h" to have
gal_a11y_e_cell_registry_add_cell_type prototype
2004-06-10 Not Zed <NotZed@Ximian.com>
* e-tree-selection-model.c (e_tree_selection_model_select_paths):
add new api for setting the whole selection in one go. See
#59546.
2004-06-09 Radek Doulik <rodo@ximian.com>
* e-table-field-chooser.c (ensure_nonzero_step_increments): new
helper function to set step_increments
(allocate_callback): call ensure_nonzero_step_increments
(resize): ditto
(ensure_nonzero_step_increments): set step increments always to 16
Fixes #48275
2004-05-10 Bruce Tao <bruce.tao@sun.com>
Fixes #51626
* e-table-click-to-add.c: (etcta_event):
Add an entry for focus_in event, do the same thing as button_press event.
* e-table-item.c: (eti_event):
Mask the Ctrl+Tab processing routine.
* e-table.c: (table_canvas_focus_event_cb), (canvas_vbox_event),
(click_to_add_event), (e_table_setup_table):
Enable you to navigate between click_to_add and the existing tasks by
pressing Ctrl+Tab. However, if there is no existing task, you can still jump
out of click_to_add by this way.
2004-05-04 Jeffrey Stedfast <fejj@ximian.com>
* e-tree.c (e_tree_find_next): Don't necessarily set row to 0 if
the root node has the cursor (otherwise message_list_select()
first unread will actually select the second unread if the first
unread is the first in the list). Fixes a bug that's been pissing
me off for years.
2004-05-04 Not Zed <NotZed@Ximian.com>
* e-table-item.c (eti_event): revert last patch.
(eti_attach_cell_views): add some code to reset drags and other
things as if the model changed, so we don't keep trying to run
things we shouldn't be on the view which might be changing. This
may break other things but should fix 57222 and related.
2004-05-04 Not Zed <NotZed@Ximian.com>
* e-table-item.c (eti_event): if motion column is beyond our known
columns, just ignore it and don't generate a LEAVE_NOTIFY. uh,
seems to work, and fixes #57222.
2004-04-30 Jeffrey Stedfast <fejj@ximian.com>
* e-cell-text.c (e_cell_text_class_init): Changed the int param
specs to take a min value of -1 and also defautl to -1 (-1 means
off and they should all default to the same value that they
default to in the init() function). Needed to fix bug #57304.
2004-03-10 Hao Sheng <hao.sheng@sun.com>
Fixes #55198
* e-table-config.glade : Make the access key Alt+O work
2004-02-26 Not Zed <NotZed@Ximian.com>
* e-table-item.c (eti_table_model_pre_change): reset
motion_row/motion_col if the model changes. See bug #54757.
2004-02-12 Rodney Dawes <dobey@ximian.com>
* e-cell-popup.c (ecp_draw):
* e-cell-spin-button.c (ecsb_draw):
* e-table-header-utils.c (e_table_header_draw_button): Change the
shadow type for the arrows here, so that themes that do handle the
use of shadow types with arrows, draw things correctly, instead of
following what the old default gtk+ did in 1.x
2004-01-27 Radek Doulik <rodo@ximian.com>
* e-cell-text.c (ect_print): print strikeout/underline
Fixes #32240
2003-11-19 Bolian Yin <bolian.yin@sun.com>
Fixes #51139
* e-table-item.c : change the place of emitting
"selection_model_removed" signal.
2003-11-17 Mike Kestner <mkestner@ximian.com>
* e-table-config.c : use new gal_combo_* namespace.
2003-11-11 Bolian Yin <bolian.yin@sun.com>
Fixes # 50480
* e-table-item: add two signals: "selection_model_removed" and
"selection_model_added"
2003-10-13 Charles Zhang <charles.zhang@sun.com>
* e-table-config.c (e_table_config_new): disable apply button
when initial dialog.
* e-table-header-item.c (apply_changes): disable apply button
after applying changes.
2003-10-23 Hans Petter Jansson <hpj@ximian.com>
* e-table-item.c (eti_get_cell_background_color): Allocate
colors using gdk_colormap_alloc_color().
2003-09-28 Charles Zhang <charles.zhang@sun.com>
* e-table-config.c (do_sort_and_group_config_dialog): process
GTK_RESPONSE_DELETE_EVENT signal correctly.
* e-table-config.c (do_fields_config_dialog): the same as above
[#48815]
2003-09-11 Mike Kestner <mkestner@ximian.com>
* e-table-config.c (get_source_model_col_index): new method to
get the source model column for a specified available_model idx.
(create_global_store): save the source model index in a new col.
(config_button_add): use the new index lookup function [48153].
2003-09-11 Mike Kestner <mkestner@ximian.com>
* e-table-sort-info.c (e_table_sort_info_load_from_node):
move scnt and gcnt initialization outside the for loop [43156].
2003-08-25 Harry Lu <harry.lu@sun.com>
** For bug #47874.
* e-table-specification.c (e_table_specification_load_from_file):
check whether file exists before call xmlParseFile().
* e-table-state.c (e_table_state_load_from_file): ditto.
* e-tree-table-adapter.c (open_file): ditto.
2003-08-19 Mike Kestner <mkestner@ximian.com>
* e-cell-tree.c (draw_expander): add an expander_style param
(ect_draw): pass expander_style to draw_expander
(animate_expander): new timeout handler for expander animation
(ect_event): on !retro clicks, draw a "semi" expander and start
an animation handler to finish the animation.
2003-08-15 Mike Kestner <mkestner@ximian.com>
* e-cell-tree.c (draw_retro_expander): extracted from ect_draw
(draw_expander): new gtktreeview-like expander drawing
(ect_draw): draw lines and expanders based on retro_look style prop
(adjust_event_position): extracted method from ect_event
(event_in_expander): new checks for motion/clicks in expander
(ect_event): handle prelight for new expanders
* e-table-item.c (eti_init): init new motion col/row
(eti_event): synthesize leave_notify events for cells and propogate
existing motion events to the cells.
* e-tree.c (e_tree_class_init): add retro_look and expander_size
style props.
2003-08-12 Larry Ewing <lewing@ximian.com>
* e-cell-toggle.c (check_cache): actually chose the right color to
composite over when caching the pixmap.
2003-08-08 Stanislav Brabec <sbrabec@suse.cz>
* Makefile.am: Removed trailing backslash on last line.
2003-07-28 Mike Kestner <mkestner@ximian.com>
* e-table-config (setup_fields): map model_column to available
model row by ignoring disabled columns.
2003-06-30 Dan Winship <danw@ximian.com>
* e-tree.c (e_tree_init): Initialize some missing fields. Fixes
"no handler with id" warnings at evo shutdown
(ETreePriv): remove unused table_rows_{inserted,deleted}_id
(et_disconnect_from_etta): remove refs to them
* e-table.c (e_table_drag_source_unset): free site->target_list if
it's set.
2003-06-22 Hans Petter Jansson <hpj@ximian.com>
* e-cell-text.c (get_font_for_size): Implement.
(ect_print): Use same font heuristics as evo calendar, pick a font
that fits. Correct baseline calculation.
2003-06-19 Larry Ewing <lewing@ximian.com>
* e-table-specification.c (e_table_specification_load_from_node):
remove extra ref, the count starts at one.
* e-table-utils.c (e_table_spec_to_full_header): add_column adds a
reference, so drop the intial reference.
* e-table.c (et_real_construct):remove extra ref, count starts at
one.
2003-06-13 Mike Kestner <mkestner@ximian.com>
* e-tree.c (et_search_search): don't do the CURSOR_FIRST
checks if cursor is NULL [43523]
2003-06-13 Mike Kestner <mkestner@ximian.com>
* e-table-item.c (eti_get_cell_background_color): update to
an alt row color more consistent with gtktreeview. [44610]
2003-06-12 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (generate_layout): guard against NULL strings
* e-table-config.c (create_global_store): don't add disabled
column titles to the store. [44258]
* e-tree-table-adapter.c (e_t_t_a_node_set_expanded): don't
warn if we're trying to collapse a node that's not visible.
* e-tree.c (et_connect_to_etta): don't connect to row_inserted
and row_deleted. [43893]
2003-05-28 Mike Kestner <mkestner@ximian.com>
* e-cell-date.c (ecd_get_text): use e_utf8_strftime_fix_am_pm
and remove locale to utf8 conversion at end. [43485]
2003-05-20 Ettore Perazzoli <ettore@ximian.com>
* e-tree.c (tree_canvas_size_allocate): to really fix 42952
use e_table_item_get_cell_geometry. Also a couple valgrind
and g_warning fixes related to this change from Mike.
2003-05-19 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (build_layout): don't call any line breaking
or justification code if the width <= 0 since it's pointless
and apparently pango likes to crash when you do. [43199]
2003-05-16 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (invisible_finalize): kill
(ect_stop_editing): destroy the invisible, not weak_unref
(e_cell_text_view_get_invisible): don't weak_ref the invisible
since we own its ref.
2003-05-16 Mike Kestner <mkestner@ximian.com>
* e-table-item.c (eti_event): fix a couple timer checks
* e-tree-table-adapter.c (update_node): Traverse POST order
so that the parent nodes are at the head of the prepended list.
Don't restore expanded state to nodes that aren't in the tree
any longer. Hopefully fixes #42856.
2003-05-15 Ettore Perazzoli <ettore@ximian.com>
* e-tree.c (tree_canvas_size_allocate): Call
tree_canvas_reflow_idle() before deciding whether to move the
adjustment, not afterwards. [#42952]
2003-05-14 Mike Kestner <mkestner@ximian.com>
* e-tree-c (context_connect): use weak refs not datasets.
(e_tree_dispose): weak_unref the context.
Hopefully fixes 42617.
2003-05-13 Mike Kestner <mkestner@ximian.com>
* e-table-item.c (eti_event): gross hack to work around a
post dispose event emission by gtk2.0/canvas2.0 [#42622]
2003-05-09 Mike Kestner <mkestner@ximian.com>
* e-tree.c (find_next_in_range): add null check for paths
(find_prev_in_range): add null check for paths
2003-05-09 Mike Kestner <mkestner@ximian.com>
* e-table-item.c (eti_cursor_change): don't return on col == -1.
* e-tree.c (tree_canvas_size_allocate): update the adjustment
to center the cursor.
(hover_timeout): remove unused variable to fix warning
2003-05-06 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (insert_node): add missing model_changed
(etta_proxy_node_inserted): add missing model_changed
(etta_proxy_node_removed): add missing model_changed
2003-05-05 Jeremy Katz <katzj@redhat.com>
* e-table-config.c (setup_fields): Use correct macro for int->pointer
2003-05-01 Mike Kestner <mkestner@ximian.com>
* e-cell-combo.c (e_cell_combo_selection_changed): new
(e_cell_combo_init): connect to selection_changed on popup_list
(e_cell_combo_do_popup): block selection_changed while popping up
[bug #40996]
2003-05-01 JP Rosevear <jpr@ximian.com>
* e-table.c (et_real_construct): remove gratuitous ref
2003-04-29 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (build_layout): don't use unicode ellipsis so
that we don't break on broken font setups.
2003-04-29 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (generate_layout): don't set width on the layout
during edit
2003-04-28 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (build_layout): don't do wrapping during edit
2003-04-21 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (build_layout): use unicode ellipsis char for
breaking lines. Use g_utf8_find_prev_char and check for failure
so that we don't tight loop for small cells that can't display
any chars.
2003-04-21 Mike Kestner <mkestner@ximian.com>
* e-cell-tree.c (ect_draw): use e_tree_table_adapter_node_get_next
to determine how to draw sibling lines.
(ect_print): ditto
* e-tree-table-adapter.c (e_t_t_a_node_get_next): new
2003-04-19 Chris Toshok <toshok@ximian.com>
[ fixes evolution bug #40464 ]
* e-table.c (e_table_class_init): use G_SIGNAL_TYPE_STATIC_SCOPE
for the GtkSelectionData args of table_drag_data_get and
table_drag_data_received.
2003-04-18 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (build_layout): if the layout splits into more
than one line, shorten it to a single line with elipses.
(generate_layout): don't ref NULL layouts
(ect_enter_edit): use g_new0 for the CellEdit
(get_position_from_xy): use generate_layout since edit->layout
isn't necessarily set here.
2003-04-17 JP Rosevear <jpr@ximian.com>
* e-table-subset.c : add guarding for row indexing (Bug# 41497)
2003-04-16 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (build_layout): set width and alignment of layout.
(generate_layout): set width on existing layout and pass new width
param to build_layout.
(ect_draw): pass width to generate_layout
(ect_height): pass width to generate_layout
(ect_enter_edit): pass width to generate_layout
(ect_max_width): pass width to generate_layout
(ect_max_width_by_row): pass width to generate_layout
(ect_show_tooltip): pass width to generate_layout
(e_cell_text_view_command): pass width to generate_layout (Bug #37894)
2003-04-15 Hans Petter Jansson <hpj@ximian.com>
* e-table-header-utils.c (e_table_draw_elided_string): Don't unref
the layout that was passed in.
(e_table_header_draw_button): Always unref the layout when we're
done with it.
* e-tree-table-adapter.c (e_tree_table_adapter_load_expanded_state):
Free the id when we're done with it.
2003-04-11 JP Rosevear <jpr@ximian.com>
* e-table-one.c (one_dispose): free data here since we don't have
source in finalize
2003-04-08 Mike Kestner <mkestner@ximian.com>
* e-table-config-no-group.glade : add response ids to buttons
2003-04-08 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c : break e-font dependency
2003-04-08 Mike Kestner <mkestner@ximian.com>
* e-table-config.glade : swap button order
* e-table-config-no-group.glade : swap button order
2003-04-08 Mike Kestner <mkestner@ximian.com>
* e-cell-popup.c : remove debugging g_print calls
* e-table-group-container.c : fix length_threshold prop range
* e-table-group-leaf.c : fix length_threshold prop range
* e-table-item.c : fix length_threshold prop range
2003-04-04 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (etta_sort_info_changed): guard against
root == NULL. Bug #39491.
2003-04-02 Ettore Perazzoli <ettore@ximian.com>
* e-tree.c (e_tree_class_init): Add a G_SIGNAL_TYPE_STATIC_SCOPE
for the GTK_TYPE_SELECTION_DATA arg.
2003-04-02 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (update_node): restore expanded
state of node and all children. Fixes Ximian bug #40393.
(check_expanded): new traverser function
2003-03-31 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (kill_gnode): if killing the root
node, set it to NULL in the priv data. Bug #39441.
2003-03-24 Mike Kestner <mkestner@ximian.com>
* e-table-sort-info.c (e_table_sort_info_load_from_node):
properly parse nodes that include whitespace. bug #39896
2003-03-24 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (update_node): don't call delete_node
on the root node since generate_tree already does that. Thanks
to Antonio Xu <antonio.xu@sun.com> for identifying the cause of
the bug and providing a candidate patch. Bug #38320.
2003-03-23 Chris Toshok <toshok@ximian.com>
* e-table.c (do_drag_motion): fix UMR.
2003-03-18 Chris Toshok <toshok@ximian.com>
* e-cell-text.h: add underline_column field.
* e-cell-date.c: add underline_column to the comment.
* e-cell-size.c: add underline_column to the comment.
* e-cell-text.c (build_layout): handle underline column.
(ect_show_tooltip): same.
(ect_set_property): same.
(ect_get_property): same.
(e_cell_text_class_init): same.
(e_cell_text_init): same.
(e_cell_text_new): add underline_column to the comment.
2003-03-18 Chris Toshok <toshok@ximian.com>
* e-table-item.h (ETableItem): add cursor_idle_id.
* e-table-item.c (eti_idle_maybe_show_cursor): save off the
cursor_idle_id.
(eti_idle_show_cursor_cb): reset the cursor_idle_id to 0.
(eti_dispose): remove the cursor_idle_id. Fixes a crash in the
evolution select-names dialog.
2003-03-18 Mike Kestner <mkestner@ximian.com>
* e-table-header-item.c (ethi_draw): mimic Gtk's sort arrows
(ethi_start_drag): mimic Gtk's sort arrows
2003-03-18 Mike Kestner <mkestner@ximian.com>
* e-tree-selection-model.c (select_single_path): null start_path
(etsm_invert_selection): null start_path
(etsm_toggle_single_row): null start_path
(etsm_real_move_selection_end): start at start_path, not cursor
(etsm_set_selection_end): set start_path
(e_tree_selection_model_init): null start_path
2003-03-14 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (update_node): save and restore expanded
state so parents don't collapse when children are added to them.
(e_tree_table_adapter_node_is_expanded): guard against null nodes.
2003-03-05 Mike Kestner <mkestner@ximian.com>
* e-tree-model.c : fix a couple ==TRUE uses pointed out by
Morten Welinder <terra@diku.dk>.
2003-03-04 Dmitry Mastrukov <dmitry@taurussoft.org>
* e-cell-date.c (ecd_get_text): i18n fix
* e-table.c (et_real_construct): i18n fix
* e-table-config.c (create_global_store): i18n fix
* e-table-utils.c (et_col_spec_to_col): i18n fix
2003-03-04 Mike Kestner <mkestner@ximian.com>
* e-tree-selection-model.c : some cursor fixes
2003-03-04 Mike Kestner <mkestner@ximian.com>
* e-tree-selection-model.c : rewrite to store selected paths in a
hashtable instead of a tree.
* e-tree-table-adapter.c : lose the hacky orig_position api since
etsm doesn't need it anymore.
2003-02-26 Rodney Dawes <dobey@ximian.com>
* e-tree.c (et_canvas_style_set): Add style_set to update list properly
(et_canvas_realize): Remove this as it's no longer needed with support
for the style_set implementation
2003-02-28 Mike Kestner <mkestner@ximian.com>
* e-table.c (et_drag_motion): remove alloc-based transform
(et_drag_data_received): ditto
(et_drag_drop): ditto
(do_drag_motion): ditto
2003-02-28 Mike Kestner <mkestner@ximian.com>
* e-tree.c (et_drag_motion): remove alloc-based transform
(et_drag_data_received): ditto
(et_drag_drop): ditto
(et_hover_timeout): ditto
(do_drag_motion): ditto
2003-02-20 Mike Kestner <mkestner@ximian.com>
* e-table-item.c (eti_table_model_rows_deleted): fix overzealous
g_asserts to avoid crashes when eti->rows is already updated.
2003-02-20 Mike Kestner <mkestner@ximian.com>
* e-tree-selection-model.c (etsm_orig_position): kill
(etsm_find_node_unless_equals): use new etta_orig_position
(update_parents): use new etta_orig_position
(etsm_recurse_is_path_selected): use new etta_orig_position
* e-tree-table-adapter.c (e_tree_table_adapter_orig_position): new
(resort_node): populate orig_pos, fix sorting_map bound bug
(create_gnode): initialize orig_pos
(delete_node): call resort_node so orig_pos gets updated
(insert_node): always call resort_node let it decide whether to sort
2003-02-18 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (move_map_elements): set remap_needed
2003-02-17 Chris Toshok <toshok@ximian.com>
* e-cell-text.c (build_layout): make sure the row >= 0 before
calling value_at to calc "strikeout".
2003-02-17 Chris Toshok <toshok@ximian.com>
* e-tree-table-adapter.c (etta_proxy_node_data_changed): return
after the e_table_model_no_change call.
(etta_proxy_node_col_changed): same.
2003-02-13 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (*_load_expanded_state): guard for
null paths if save_id lookup fails.
2003-02-13 Mike Kestner <mkestner@ximian.com>
* e-table-header-item.c (ethi_drag_motion): don't transform
based on allocation position. Position isn't absolute now.
2003-02-13 Mike Kestner <mkestner@ximian.com>
* e-table-header-utils.c (e_table_header_draw_button): kill
a double unref on the pango_layout.
2003-02-12 Hans Petter Jansson <hpj@ximian.com>
* e-table-click-to-add.c (etcta_realize): Request a reflow on
realization, so size and placement will be correct initially.
2003-02-12 Mike Kestner <mkestner@ximian.com>
* e-tree.c (e_tree_find_next): handle reverse searches
(find_prev_in_range): reverse search impl
(et_real_construct): kill warnings
2003-02-12 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (insert_node): work around broken models
that insert children before parents. bad models.
(e_tree_table_adapter_load_expanded_state): don't update_node
(e_tree_table_adapter_node_set_expanded): recursively expand
parent if the node is not visible yet.
(e_tree_table_adapter_set_sort_info): don't resort empty trees
2003-02-10 Mike Kestner <mkestner@ximian.com>
* e-tree.c (e_tree_find_next): rewrite to use etta
(find_next_in_range): helper func to search a range of rows
(find_next_callback): kill
2003-02-06 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (resort_node): index bound bug
(insert_children): prepend/reverse for now
(generate_tree): resize old map to zero before filling it again
(insert_node): fix assumption that root parent node has an index
2003-02-06 Not Zed <NotZed@Ximian.com>
* e-tree-table-adapter.c (delete_node): use the parent path to
find the parent node rather than the row, which is not valid for
the root node, which still needs its visible child count updated.
2003-02-05 Dan Winship <danw@ximian.com>
* e-table-config.c (config_class_init): Replace deprecated
glade_gnome_init() call with glade_init().
* e-table-field-chooser.c (e_table_field_chooser_class_init):
Likewise.
2003-02-03 Mike Kestner <mkestner@ximian.com>
* e-tree-selection-model.c : remove e-tree-sorted usage
* e-tree-table-adapter.* : rewrite to perform sorting
* e-tree.c : remove e-tree-sorted usage
2003-01-27 Jody Goldberg <jody@gnome.org>
* Release 1.99.1
2003-01-23 Larry Ewing <lewing@ximian.com>
* e-table-click-to-add.c (e_table_click_to_add_commit): destroy
canvas items to removing them, simply unrefing them is not
sufficient.
2003-01-22 Ettore Perazzoli <ettore@ximian.com>
* e-tree-table-adapter.c
(e_tree_table_adapter_load_expanded_state): Call
e_table_model_pre_changed() only once so we dont' get the table in
a frozen state after returning from here.
2003-01-15 Jeffrey Stedfast <fejj@ximian.com>
* e-tree-table-adapter.c
(e_tree_table_adapter_save_expanded_state): Same here.
* e-table-state.c (e_table_state_save_to_file): Same as below.
* e-table-specification.c (e_table_specification_save_to_file):
Back to using e_xml_save_file(). Not sure we can really trust
xmlSaveFile (sure as hell couldn't in the libxml-1.x days),
besides, e_xml_save_file protects against corruption due to not
enough disk space.
2003-01-15 Not Zed <NotZed@Ximian.com>
* e-cell-tree.c (ect_draw): If we set a clip rectangle, clear it
after we've finished.
2002-01-10 Mike Kestner <mkestner@ximian.com>
* e-table-item.c (eti_table_model_rows_deleted): revert broken fix
2002-12-18 Chris Toshok <toshok@ximian.com>
* e-table-group-container.c (etgc_dispose): free the children
before we free and dispose of our ecol, since
e_table_group_container_child_node_free depends on it. Fixes a
crash.
2002-12-18 Chris Toshok <toshok@ximian.com>
* e-table-header-item.c (ethi_popup_customize_view): pass NULL for
parent_window for e_table_config_new.
* e-table-config.glade, e-table-config-no-group.glade: switch from
GnomePropertyBox to GtkDialog, remove the extra notebook widget
from the heirarchy, and set all the subdialogs modal.
* e-table-config.h: add parent_window arg to
e_table_config_{new,construct}.
* e-table-config.c (config_dialog_changed): new function, not
really needed yet since the apply/ok buttons are never
insensitive.
(config_get_property): handle the "state" read-only property.
(config_class_init): put back in the "state" property that was
deleted during the merge from the gal-2 branch (it looks like).
(do_sort_and_group_config_dialog): set the sort/group dialog
transient for the e-table-config dialog, and
gnome_property_box_changed -> config_dialog_changed.
(do_fields_config_dialog): same, but with the fields dialog.
(dialog_response): response handler for the e-table-config dialog.
(setup_gui): remote the hide button/notebook code, since neither
of those widgets exist anymore in this dialog, and remove the
"apply" signal and connect to "response", since we're a GtkDialog
dialog instead of a GnomePropertyBox.
(e_table_config_construct): take a parent_window arg, and
set_transient_for if it's non-NULL.
(e_table_config_new): take parent_window arg and pass to
construct.
2002-12-16 Chris Toshok <toshok@ximian.com>
* e-cell-text.c (_get_tep): edit->tep isn't a GtkObject anymore.
2002-12-16 Chris Toshok <toshok@ximian.com>
* e-table-header-utils.c (e_table_draw_elided_string): pass in the
pango layout so we don't have to create another one here. Also,
elide the string properly (same method that e-clipped-label uses)
and simplify the extent operations.
(e_table_header_compute_height): just use
pango_layout_get_pixel_size here.
(e_table_header_draw_button): make sure the clip rectangle is
NULL'ed on our gc, since random gtk calls seem to install one,
which sucks. Also, simplify the pango layout stuff a little.
2002-12-16 Chris Toshok <toshok@ximian.com>
* e-table.c (et_real_construct): remove obvious double g_strdup.
* e-table-header-item.c (ethi_header_context_menu): ref/sink the
popup.
* e-table-field-chooser.c (e_table_field_chooser_init): use
gtk_widget_show_all so our custom widget gets displayed.
2002-12-13 Mike Kestner <mkestner@ximian.com>
* e-table-item.c (eti_table_model_rows_deleted): valgrindage
2002-12-05 Jeffrey Stedfast <fejj@ximian.com>
* e-table-extras.c (ete_init): Add a "collate" sort callback that
uses the new g_collate_compare().
2002-12-03 Hans Petter Jansson <hpj@ximian.com>
* e-table.c (e_table_get_state_object): Don't leak old sort info.
2002-12-03 Not Zed <NotZed@Ximian.com>
* e-tree-memory.c (etmm_dispose): make this a dispose rather than
finalise. Crashes on finalise otherwise.
2002-11-26 Ettore Perazzoli <ettore@ximian.com>
* e-table-memory-store.c (etms_finalize): Call
e_table_memory_store_clear().
(e_table_memory_store_clear): Free the values.
(e_table_memory_store_remove): Likewise.
2002-11-18 Chris Toshok <toshok@ximian.com>
* e-table-config.c (connect_button): take GCallback, not
GtkSignalFunc.
(configure_sort_dialog): show the custom widget.
(configure_group_dialog): same.
(configure_fields_dialog): same, also pass G_CALLBACK (func),
instead of GTK_SIGNAL_FUNC (func), to connect_button.
(setup_gui): pass G_CALLBACK (func), instead of GTK_SIGNAL_FUNC
(func), to connect_button.
* Makefile.am (glade_DATA): remove e-table-group.glade, since we
don't use it anyplace.
2002-11-16 Chris Toshok <toshok@ximian.com>
* e-table.c (set_scroll_adjustments): check for
table->table_canvas == NULL.
* e-table-item.c (eti_dispose): guard eti->tooltip.
2002-11-16 Chris Toshok <toshok@ximian.com>
* e-cell-checkbox.[ch]: GObject port work.
* e-cell-combo.[ch]: same.
* e-cell-date.[ch]: same.
* e-cell-float.[ch]: same.
* e-cell-number.[ch]: same.
* e-cell-pixbuf.[ch]: same.
* e-cell-popup.[ch]: same.
* e-cell-progress.[ch]: same.
* e-cell-size.[ch]: same.
* e-cell-spin-button.[ch]: same.
* e-cell-text.[ch]: same.
* e-cell-toggle.[ch]: same.
* e-cell-tree.[ch]: same.
* e-cell-vbox.[ch]: same.
* e-cell.[ch]: same.
* e-table-col.c: same.
* e-table-column.c: same.
* e-table-config-field.[ch]: same.
* e-table-config.c: same.
* e-table-config.glade: same.
* e-table-field-chooser-dialog.[ch]: same.
* e-table-field-chooser-item.[ch]: same.
* e-table-field-chooser.[ch]: same.
* e-table-group-container.[ch]: same.
* e-table-group-leaf.[ch]: same.
* e-table-group.[ch]: same.
* e-table-header-item.[ch]: same.
* e-table-header-utils.[ch]: same.
* e-table-header.c: same.
* e-table-item.[ch]: same.
* e-table-scrolled.[ch]: same.
* e-table-utils.c: same.
* e-table.[ch]: same.
* e-tree-memory-callbacks.h: same.
* e-tree-scrolled.[ch]: same.
* e-tree-sorted-variable.c: same.
* e-tree.[ch]: same.
* test-check.c: same.
* test-cols.c: same.
* test-table.c: same.
2002-11-14 Chris Toshok <toshok@ximian.com>
* e-table-header-item.c (ethi_popup_customize_view): fix typo.
2002-11-14 Chris Toshok <toshok@ximian.com>
* e-table-header-item.c (ethi_popup_customize_view): ETableConfig
derives from GObject (fix warnings).
* e-table.c: deal with ESorter deriving from GObject.
* e-table-sorter.[ch]: this derives from GObject now.
2002-11-14 Chris Toshok <toshok@ximian.com>
* e-table-item.c: deal with ESelectionModel no longer deriving
from GtkObject.
* e-table.c: same.
* e-tree.c: same.
* e-table-config.c (do_fields_config_dialog): use GtkDialog's
reponse instead of GnomeDialog's button.
* e-table-click-to-add.[ch]: GObjectify this.
* e-table-selection-model.[ch]: this derives from GObject now.
* e-tree-selection-model.[ch]: same.
2002-11-14 Chris Toshok <toshok@ximian.com>
* e-table-without.[ch]: this subclasses from GObject now, not
GtkObject. don't use GtkObject (especially casts to it) inside
the code.
* e-table-config-no-group.glade: libglade-convert.
* e-table-config.glade: same.
* e-table-field-chooser.glade: same.
* e-table-group.glade: same.
2002-11-13 Chris Toshok <toshok@ximian.com>
* e-table.c (e_table_class_init): register the signals with
g_signal_new.
2002-11-08 Chris Toshok <toshok@ximian.com>
* e-table-memory-store.h: correct the GET_CLASS macro.
* e-table-one.h: same.
* e-table-sorted.h: same.
* e-table-subset.h: same.
* e-tree-sorted-variable.h: same.
* e-tree-table-adapter.h: same.
2002-11-05 Mike Kestner <mkestner@ximian.com>
* e-table-sorted-variable.[ch] : GObjectify
* e-tree-sorted-variable.[ch] : GObjectify
2002-11-05 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c : remove ref/unref G_OBJECT masks
* e-table-extras.c : ditto
* e-table-header-item.c : ditto
* e-table-item.c : ditto
* e-table-memory-store.c : ditto
* e-table-one.c : ditto
* e-tree-sorted.c : ditto
* e-tree-table-adapter.c : ditto
* e-tree.c : ditto
2002-11-05 Mike Kestner <mkestner@ximian.com>
* e-table-col.[ch] : GObjectify
* e-table-column-specification.[ch] : GObjectify
* e-table-config.[ch] : GObjectify
* e-table-group-leaf.c : use GObject api for models
* e-table-group.c : use GObject api for models
* e-table-header-item.c : use GObject api for models
* e-table-header.c : use GObject api for models
* e-table-selection-model.c : use GObject api for models
* e-table-sort-info.[ch] : GObjectify
* e-table-sorted.[ch] : GObjectify
* e-table-sorter.c : use GObject api for models
* e-table-specification.c : use GObject api for models
* e-table-state.[ch] : GObjectify
* e-table-subset-variable.[ch] : GObjectify
* e-table-subset.[ch] : GObjectify
* e-table.c : use GObject api for models
2002-11-05 Mike Kestner <mkestner@ximian.com>
* e-table-item.c : use GObject api for models
* e-table-memory-callbacks.[ch] : GObjectify
* e-table-memory-store.[ch] : GObjectify
* e-table-memory.[ch] : GObjectify
* e-table-model.[ch] : GObjectify
* e-table-one.[ch] : GObjectify
* e-table-simple.[ch] : GObjectify
* e-tree-memory.[ch] : GObjectify
* e-tree-model.[ch] : GObjectify
* e-tree-selection-model.c : use GObject api for models
* e-tree-simple.[ch] : GObjectify
* e-tree-sorted.[ch] : GObjectify
* e-tree-table-adapter.[ch] : GObjectify
* e-tree.c : use GObject api for models
2002-11-04 Mike Kestner <mkestner@ximian.com>
* e-table-group.c : use GObject api for ETableHeader
* e-table-header-item.c : use GObject api on ETableHeader
* e-table-header.[ch] : GObjectify
* e-table-item.c : use GObject api on ETableHeader
* e-table-search.[ch] : GObjectify
* e-table-sorted.c : use GObject api for ETableHeader
* e-table-sorter.c : use GObject api for ETableHeader
* e-table-specification.[ch] : GObjectify
* e-table-utils.c : use GObject api for ETableHeader
* e-tree-sorted.c : use GObject api for ETableHeader
* e-tree.c : use GObject api on Header, Spec, and Search
2002-11-01 Mike Kestner <mkestner@ximian.com>
* e-table-extras : gobjectify
* e-tree.c (et_real_construct): ETableExtra is now a GObject
(e_tree_class_init): remove duplicated signals
2002-10-26 Jody Goldberg <jody@gnome.org>
* Release 2.0.0.7
2002-10-24 Mike Kestner <mkestner@ximian.com>
* e-tree.c (e_tree_set_state_object): call e_tree_state_change
2002-10-24 Chris Toshok <toshok@ximian.com>
* e-table-memory-store.h: add prototypes for the _change*
functions.
* e-table-memory-store.c (e_table_memory_store_change_array): new
function, mostly c&p from _insert_array.
(e_table_memory_store_change): new function, mostly c&p from
_insert.
(e_table_memory_store_change_adopt_array): new function, mostly
c&p from _insert_adopt_array.
(e_table_memory_store_change_adopt): new function, mostly c&p from
_insert_adopt.
2002-10-18 JP Rosevear <jpr@ximian.com>
* e-table-item.c (eti_cursor_activated): don't emit a signal if we
couldn't find the view row
2002-10-02 Mike Kestner <mkestner@ximian.com>
* e-table-search.c (e_table_search_destroy): call drop_timeout
2002-09-27 Mike Kestner <mkestner@ximian.com>
* e-table-item.c (eti_get_cell_foreground_color): use the fg color
array in style, not text color. Change requested by Chris Lahey.
2002-09-24 Mike Kestner <mkestner@ximian.com>
* e-tree.c (e_tree_set_search_column): New api to set the search
column on a tree without having to set a sort column.
2002-09-18 Mike Kestner <mkestner@ximian.com>
* e-tree-model.c (e_tree_model_is_expandable): guard against NULL
nodes.
2002-09-18 Dan Winship <danw@ximian.com>
* e-table.c (et_real_construct): Set the selection model's
selection_mode after setting the table model, or things will break
in the GTK_SELECTION_SINGLE case if the table doesn't start out
empty.
2002-09-17 Mike Kestner <mkestner@ximian.com>
* gal/e-table/e-table-item.c (eti_event): exit editing on dblclick.
ungrab based on grabbed_count. unset grabbed_col and grabbed_row
on ungrab.
2002-09-13 Jody Goldberg <jody@gnome.org>
* Release 2.0.0.6
2002-09-10 Mike Kestner <mkestner@ximian.com>
* gal/e-table/e-table-item.c (eti_event): allow keypress handling
for cursor_col==-1 as long as cursor_row isn't -1 also so that e-tree
searching works without click focusing an item.
2002-08-29 Morten Welinder <terra@diku.dk>
* e-table.c (et_destroy): Protect against double destroy.
* e-cell-text.c (generate_layout): Handle row==-1 brutally.
(build_layout): Handle row==-1 and constify.
* e-table-search.c (e_table_search_class_init): Use INT, not ENUM
signal argument.
2002-08-06 Jody Goldberg <jody@gnome.org>
* Release 2.0.0.5
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* e-tree-table-adapter.c
(e_tree_table_adapter_save_expanded_state): And finally here.
* e-table-state.c (e_table_state_save_to_file): Same here.
* e-table-specification.c (e_table_specification_save_to_file): No
need to save to a temp file first here either since
e_xml_save_file now does that for us.
* e-table.c (e_table_save_specification): No need to handle
writing to a temp file first anymore, since I've updated
e_xml_save_file() to handle that for us.
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* e-cell-progress.c: #include <string.h> for memset
* e-table.c (e_table_save_specification): Updated to use
e_xml_save_file() instead of xmlSaveFile(). Also fixed to save to
a tmp file first.
* e-table-specification.c (e_table_specification_save_to_file):
Same as above.
* e-table-state.c (e_table_state_save_to_file): Same here.
* e-tree-table-adapter.c
(e_tree_table_adapter_save_expanded_state): And here too.
2002-07-23 Ettore Perazzoli <ettore@ximian.com>
* e-tree.c (item_key_press): In the case of '-' and '=', check
that no non-Shift modifier is pressed.
2002-07-19 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c (find_next_node, find_first_child_node):
Made these able to find the potential row for a new node which
will be the last row.
(find_row_num): Made this handle find_next_node and
find_first_child_node returning n_map.
2002-06-18 JP Rosevear <jpr@ximian.com>
Patch by clahey.
* e-table.c (et_get_arg): get the use_click_to_add value
(et_set_arg): set the use_click_to_add_value, and either display
the item or destroy it
(e_table_class_init): add the use_click_to_add arg
2002-06-18 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c: Major change. Ported this to pango.
2002-06-14 Christopher James Lahey <clahey@ximian.com>
* e-table.c, e-table.h: Removed the drag_get_data_row and
drag_get_data_col fields since they're not used any longer.
(e_table_construct): If specification loading fails, return a NULL
ETable instead of just ignoring it.
(e_table_drag_highlight): Only destroy table->drop_highlight if it
exists.
* e-cell-popup.c (ecp_draw, ecp_event): Don't draw or interact
with the popup button if a cell isn't editable (based on a patch
by JPR.)
* e-table-col.c, e-table-col.h: Added the compare_col field to
this structure. Added a GtkArg to set it.
* e-table-column-specification.c, e-table-column-specification.h:
Added the compare_col field here. Made it load properly from xml.
* e-table-sorting-utils.c: Sort based on the compare_col in the
ETableCol instead of the col_idx.
* e-table-utils.c (et_col_spec_to_col): Set the compare_col field
in the ETableCol properly.
2002-06-05 Christopher James Lahey <clahey@ximian.com>
* e-table-field-chooser-item.c: Added debugging printfs.
* e-table-header-item.c: Added debugging printfs.
(ethi_drag_motion): Don't subtract widget->allocation.* here. It
seems that this value is affected by whether the table is using a
click to add field. Not sure why.
* e-table-item.c (eti_realize): Check for NULL selection here.
2002-06-05 Christopher James Lahey <clahey@ximian.com>
* e-tree-model.c (d): Added debugging printfs.
* e-tree-sorted.c (ets_proxy_node_changed,
ets_proxy_node_data_changed, ets_proxy_node_col_changed,
ets_proxy_node_inserted): Added a bunch of e_tree_model_no_change
signals where appropriate.
* e-tree-table-adapter.c (etta_proxy_node_changed): Added an
e_table_model_no_change signal where appropriate.
2002-06-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_realize): Made it so that on realize we grab
focus if we have the cursor, since otherwise, we'll change our
selection on focus in.
2002-06-04 Christopher James Lahey <clahey@ximian.com>
* e-table-header.c, e-table-header.h
(e_table_header_prioritized_column_selected): Added this function.
* e-table-utils.c, e-table-utils.h
(e_table_util_calculate_current_search_col): Added this function.
* e-table.c, e-table.h, e-tree.c: Added a "always_search"
argument. If this is off, then searches only occur if there's
sort. If it's on, sort takes precendence in doing searches,
followed by the highest priority column shown.
2002-06-04 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c: Use g_getenv instead of getenv.
* e-table-item.c (eti_event): Reenable tooltips if the
GAL_DO_TOOLTIPS environment variable is set.
2002-06-03 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c (ect_style_set): Get the font from the style again
when the style changes.
(init): Checks for the environment variable GAL_ELLIPSIS and uses
that instead of ... if it is set.
* e-table-click-to-add.c (finish_editing): e_table_item_leave_edit
before committing.
(etcta_event): Added a missing break; here.
* e-table-item.c (eti_style_set): On style set, free the height
cache, request a reflow and a redraw, and call
eti_idle_maybe_show_cursor.
(e_table_item_compute_location): Don't call eti_get_height here,
just use the cached value.
* e-tree.c, e-tree.h (e_tree_get_table_adapter): Added this simple
accessor function.
2002-05-29 Jody Goldberg <jody@gnome.org>
* Release 2.0.0.4
2002-05-24 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c
(e_tree_table_adapter_node_would_be_expanded,
e_tree_table_adapter_node_is_expanded): Added would_be_expanded
refactoring code out of is_expanded.
(find_first_child_node_maybe_deleted): Use the new function.
2002-05-21 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (ets_proxy_node_request_collapse): Check for
path being NULL.
* e-tree-table-adapter.c
(e_tree_table_adapter_load_expanded_state): Rebuild the tree after
loading the state.
2002-05-13 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c: Changed a lot of direct uses in this
file of node->is_expanded to call the function
e_tree_table_adapter_node_is_expanded instead.
(e_tree_table_adapter_node_is_expanded): Improved this function to
know if the root node is visible and always return it as being
expanded if it's not. It also doesn't bother creating nodes if
they don't exist yet, and instead figures out whether they would
be expanded if they were to be created and returns that value
instead.
2002-05-10 Christopher James Lahey <clahey@ximian.com>
* e-table-search.c: Include string.h here.
2002-05-09 Dan Winship <danw@ximian.com>
* e-tree-table-adapter.c
(e_tree_table_adapter_save_expanded_state): Bump file version to 2.
(This will make older versions of gal ignore the file, fixing the
problem where going from evo HEAD to evo 1.0.x makes the folder
tree disappear.) Store the default expanded state in the file now
to prevent this from happening again in the future.
(e_tree_table_adapter_load_expanded_state): Deal with version 2.
If the model's default expansion state doesn't match the saved
state, ignore the save file.
2002-05-09 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c, e-table-item.h: Switched from
gnome_canvas_item_grab to e_canvas_item_grab.
2002-05-02 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c
(etsm_selected_count_recurse): Moved the check for
any_children_selected_down so that a selected node with no
selected children will still get counted.
(etsm_select_all): When setting all_children_selected and
any_children_selected to TRUE, don't bother creating arrays for
them since that's unnecessary.
2002-05-02 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c (finish_editing): Add horizontal dividers
here too.
* e-table-config.c (create_global_store): Translate column headers
here.
* e-table-header-item.c (ethi_header_context_menu): Use
e_popup_menu_create_with_domain here.
* e-table-header-utils.c (e_table_header_draw_button): Translate
from utf8 here before drawing.
* e-table-memory-store.c, e-table-memory-store.h
(e_table_memory_store_insert_adopt_array): Changed the name of
this function from e_table_memory_store_insert_adopt.
(e_table_memory_store_insert_adopt): Added this function which
takes a ... list.
* e-table-utils.c (et_col_spec_to_col): Translate column titles to
utf8 here.
2002-05-02 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c: Added horizontal dividers to this item
when in table mode.
* e-table.c, e-tree.c: Made the background be an
e-canvas-background instead of a
* e-tree.c, e-tree.h: Added a white_space_event for feature parity
with ETable.
2002-05-01 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c, e-table-config.h, e-table-specification.c,
e-table-specification.h, e-table-utils.c, e-table-utils.h,
e-table.c, e-table.h: Made these pay attention to the
gettext-domain in the etspec.
* e-table-config.c: Set the gettext-domain in the etspec here.
2002-04-29 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_cursor_change): Redraw a row that is no
longer the cursor even if this item isn't getting the new cursor.
2002-04-29 Christopher James Lahey <clahey@ximian.com>
* e-tree.c, e-tree.h (e_tree_path_foreach): Added this function
which recurses over all nodes, regardless of selection.
2002-04-26 Christopher James Lahey <clahey@ximian.com>
* e-table-field-chooser-item.c (etfci_maybe_start_drag): Take an
int instead of a double. From a patch by jody@ximian.com.
2002-04-26 Christopher James Lahey <clahey@ximian.com>
* e-table-state.c (etst_destroy): Only unref etst->sort_info once.
2002-04-26 Christopher James Lahey <clahey@ximian.com>
* e-table-model.c (e_table_model_value_at), e-tree-model.c
(e_tree_model_value_at): Documented the life cycle requirements of
the return value of these functions.
2002-04-26 Christopher James Lahey <clahey@ximian.com>
* e-table-memory-store.c (e_table_memory_store_adopt_value_at,
etms_set_value_at): Added calls to e_table_model_pre_change here
so that the ETableItem doesn't unfreeze more times than it
freezes.
2002-04-25 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_selected_count_recurse,
etsm_foreach_recurse): Made these handle the case where
all_children_selected_array has a bit set, but the children of
that node aren't filled in.
2002-04-25 Christopher James Lahey <clahey@ximian.com>
* e-cell-checkbox.c, e-cell-combo.c, e-cell-date.c,
e-cell-float.c, e-cell-number.c, e-cell-pixbuf.c, e-cell-popup.c,
e-cell-size.c, e-cell-spin-button.c, e-cell-text.c,
e-cell-toggle.c, e-cell-tree.c, e-cell.c, e-cell.h,
e-table-click-to-add.c, e-table-col.c,
e-table-column-specification.c, e-table-config-field.c,
e-table-config.c, e-table-extras.c,
e-table-field-chooser-dialog.c, e-table-field-chooser-item.c,
e-table-field-chooser.c, e-table-group-container.c,
e-table-group-leaf.c, e-table-group.c, e-table-header-item.c,
e-table-header.c, e-table-item.c, e-table-memory-callbacks.c,
e-table-model.c, e-table-scrolled.c, e-table-selection-model.c,
e-table-sort-info.c, e-table-sorted-variable.c, e-table-sorted.c,
e-table-sorter.c, e-table-specification.c, e-table-state.c,
e-table-subset-variable.c, e-table-subset.c, e-table-without.c,
e-table.c, e-table.h, e-tree-scrolled.c, e-tree-selection-model.c,
e-tree-sorted-variable.c, e-tree-sorted.c, e-tree-table-adapter.c,
e-tree.c: Ansification patch from danw.
2002-04-24 JP Rosevear <jpr@ximian.com>
* e-cell-pixbuf.c (pixbuf_print): implement printing
(pixbuf_print_height): implement print height
(e_cell_pixbuf_class_init): set printing virtual methods
* e-cell-toggle.c (etog_print): remove clipping, default clipping
is done by the table, scale based on toggle height
* e-table-item.c (e_table_item_calculate_print_widths): make the
scale 1:1
2002-04-24 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c (create_global_store): Changed this to match
the new e_table_memory_store_insert function prototype.
2002-04-22 Christopher James Lahey <clahey@ximian.com>
* e-table-memory-store.c, e-table-memory-store.h: Renamed the
insert functions in this class to make a bit more sense.
2002-04-19 Jeffrey Stedfast <fejj@ximian.com>
* e-table-state.c (etst_destroy): Unref the sort_info.
* e-cell-toggle.c (etog_kill_view): After unreffing all the
pixmaps, free the toggle_view->pixmap_cache.
* e-table-search.c (e_table_search_destroy): Free the
priv->search_string and priv itself. More memory leak fixage.
* e-tree.c (e_tree_drag_source_unset): Unref site->taget_list so
we don't leak memory.
2002-04-19 JP Rosevear <jpr@ximian.com>
* e-cell-toggle.c (etog_print): print the cell in the allotted
area
(etog_print_height): return the print height
2002-04-17 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c: Updated this to match the new EPopupMenu.
2002-04-11 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c (ethi_header_context_menu): Fixed a memory
leak here by using the "selection-done" signal.
* e-table.c, e-table.h (white_item_event): Added the
"white_space_event" signal.
2002-03-26 Chris Toshok <toshok@ximian.com>
* Makefile.am: remove comment about adding .lo's to the parent
directory's Makefile.am.
2002-03-25 Christopher James Lahey <clahey@ximian.com>
* e-table-memory-store.c (e_table_memory_store_insert,
e_table_memory_store_insert_adopt, e_table_memory_store_remove):
Call the parent function after doing all the internal work so that
when the changed signal goes out, our work is already done.
2002-03-20 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c: Adjust this to handle the new EPopupMenu
API.
2002-03-15 Christopher James Lahey <clahey@ximian.com>
* e-cell-toggle.c: Clear the pixmap cache in e_cell_style_set.
* e-cell.c, e-cell.h (e_cell_style_set): Added this virtual
method.
* e-table-item.c, e-table-item.h: Call e_cell_style_set in out
style_set signal.
2002-03-15 Christopher James Lahey <clahey@ximian.com>
* e-cell-toggle.c: Add a GdkPixmap * cache of rendered toggle
images. This should considerably speed up over the wire
performance of ECellToggle.
2002-03-15 Christopher James Lahey <clahey@ximian.com>
* e-table-header.c, e-table-header.h (e_table_header_min_width):
New function that returns the total minimum width of all the
columns.
* e-table.c, e-table.h (set_header_width): Call
e_table_header_min_width here instead of total_width.
(et_size_request): Override the size_request method instead of
doing set_usize.
2002-03-14 Ettore Perazzoli <ettore@ximian.com>
* e-tree.c (item_key_press): Don't search if any modifier but
SHIFT or LOCK is pressed.
* e-table.c (group_key_press): Don't search if any modifier but
SHIFT or LOCK is pressed.
2002-03-14 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c: Implemented capitalization keybindings.
* e-tree.c (item_key_press): Added parentheses to the default case
here.
2002-03-14 Christopher James Lahey <clahey@ximian.com>
* e-table-search.c, e-table-search.h (e_table_search_backspace):
Made this return a boolean that returns whether the ETableSearch
used the backspace at all.
* e-table.c (group_key_press), e-tree.c (item_key_press): Used the
new return value from e_table_search_backspace.
2002-03-13 Christopher James Lahey <clahey@ximian.com>
* e-cell-pixbuf.c, e-cell-pixbuf.h (pixbuf_draw): Added
selected_column, focused_column, and unselected_column.
2002-03-13 Christopher James Lahey <clahey@ximian.com>
* e-table-search.c, e-table-search.h (e_table_search_backspace):
Added this function.
* e-table.c, e-tree.c: Call the new function on backspace.
2002-03-13 Christopher James Lahey <clahey@ximian.com>
* e-table-extras.c (e_string_search): Check for a NULL haystack
here.
* e-table-search.c, e-table-search.h: Added a parameter to the
search signal here to pass in flags. Specifically, added the
E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST flag. Improved the search
behavior here.
* e-table.c, e-tree.c: Handle the new signature for the search
signal here.
2002-03-13 Christopher James Lahey <clahey@ximian.com>
* e-tree.c: Added ETableSearch support.
2002-03-12 Christopher James Lahey <clahey@ximian.com>
* e-table-memory-store.c, e-table-memory-store.h: Added support
for E_TABLE_MEMORY_STORE_OBJECT which represents a column storing
a GtkObject.
2002-03-12 Christopher James Lahey <clahey@ximian.com>
* e-cell-vbox.c (ecv_draw): Give the correct height to the
subcells instead of overlapping them.
* e-table-header.c, e-table-header.h (e_table_header_move,
eth_calc_widths): Emit the dimension_changed signal with the width
of the header.
* e-table-memory-store.c (duplicate_value, etms_free_value):
Handle NULL pixbufs here.
* e-table.c, e-table.h: Connect to the dimension_changed signal
and call set_header_width. Did a bit of refactoring here.
2002-03-12 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (libetable_la_SOURCES): Added e-table-search.c.
(libetableinclude_HEADERS): Added e-table-search.h.
* e-cell.h: Added ETableSearchFun here.
* e-table-column-specification.c, e-table-column-specification.h:
Added search here.
* e-table-col.h: Added search here.
* e-table-extras.c, e-table-extras.h (e_table_extras_add_search):
Added ETableSearchFuncs here.
* e-table-memory-store.c (e_table_memory_store_insert,
e_table_memory_store_insert_adopt): Handle row == -1 here.
* e-table-search.c, e-table-search.h: New class to reusably handle
the semantics of searching for a string.
* e-table-simple.c, e-table-simple.h: Added a bunch of simple
functions here for if your table is all strings. Should be
reusable.
* e-table-utils.c (et_col_spec_to_col): Added support for searches
here.
* e-table.c, e-table.h: Added an ETableSearch here.
2002-03-11 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (ets_proxy_node_request_collapse): Proxy
request_collapse signals.
2002-03-11 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (libetable_la_SOURCES): Added e-cell-vbox.c.
(libetableinclude_HEADERS): Added e-cell-vbox.h.
* e-cell-vbox.c, e-cell-vbox.h: New ECell to take multiple other
ECells and use them all in a vertical series.
2002-03-11 Christopher James Lahey <clahey@ximian.com>
* e-table-memory-store.c (e_table_memory_store_insert_list): Added
this function to take a ... list of column data. The expected
number of parameters in the ... is the number of columns in the
table.
2002-03-11 Christopher James Lahey <clahey@ximian.com>
* e-table-memory-store.c, e-table-memory-store.h
(E_TABLE_MEMORY_STORE_PIXBUF): Added a pixbuf column type.
* e-table-specification.c, e-table-specification.h: Added
horizontal-resize attribute.
* e-table.c, e-table.h: Handle horizontal_resize.
2002-03-08 Christopher James Lahey <clahey@ximian.com>
* e-tree-memory.c (etmm_node_request_collapse): Handle a collapse
request by marking all descendents of that node as needing their
children recomputed.
* e-tree-model.c, e-tree-model.h
(e_tree_model_node_request_collapse): Added this signal to request
that the view of your tree collapse this node.
* e-tree-selection-model.c (etsm_selected_count): Pass the root of
the sorted model here instead of the root of the base model.
* e-tree-table-adapter.c (etta_proxy_node_request_collapse):
Handle a collapse request by collapsing the node in the tree.
2002-03-08 Christopher James Lahey <clahey@ximian.com>
* e-tree-memory.c, e-tree-memory.h (check_children): Added a
fill_in_children signal.
2002-03-05 Dan Winship <danw@ximian.com>
* e-table-item.c: Re-disable tooltips since they're (still)
fantastically obnoxious with focus-follows-mouse. (OKed by Ettore).
2002-03-04 Damon Chaplin <damon@ximian.com>
* e-cell.c (e_cell_print): only call the cell's print method if it has
one. Avoids crashing for unimplemented print methods.
2002-02-21 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (libetable_la_SOURCES): Added
e-table-memory-store.c.
(libetableinclude_HEADERS): Added e-table-memory-store.h.
* e-table-config-no-group.glade, e-table-config.glade: Updated
these.
* e-table-config.c, e-table-config.h: Updated this to have a
working field list editor.
* e-table-memory-store.c, e-table-memory-store.h: New ETableModel
that is a complete store of all the data in your table. No
callbacks at all.
* e-table-subset-variable.c, e-table-subset-variable.h
(e_table_subset_variable_clear): Added this simple function
* e-table-subset.c (etss_get_save_id): Made this return the row
number g_strdup_printfed if the source model doesn't support save
ids.
2002-02-20 Christopher James Lahey <clahey@ximian.com>
* e-table-sorter.c, e-table-sorter.h: Connect to the
model_rows_inserted, model_rows_deleted, and group_info_changed
here.
2002-02-19 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (e_tree_selection_model_init):
Initialize frozen_count to 0.
2002-02-13 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Make the defalut for tooltips be on.
2002-02-12 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_unrealize): Cancel tooltip timeouts here.
2002-02-08 Christopher James Lahey <clahey@ximian.com>
* e-table.c (et_unrealize), e-tree.c (et_unrealize): Call
scroll_off and in e-tree.c hover_off.
2002-02-07 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c: Added empty case for E_TEP_CAPS. Needs to be
filled in for M-l, M-c, and M-u to work in ETable.
* e-table-header.c, e-table-header.h (expansion_change): New
signal that gets emitted whenever the expansions change. Used in
state_changed for ETable and ETree.
* e-table.c, e-table.h, e-tree.c, e-tree.h (state_change): New
signal that gets emitted whenever the ETableState that would be
generated here changes.
2002-01-31 Christopher James Lahey <clahey@ximian.com>
* e-tree-model.c (e_tree_model_node_find): Made this function much
more readable. Got rid of all the gotos. Fixed a case where
going backwards during a root search checked the root node first.
(e_tree_model_node_real_traverse): Made backwards traversals be
postorder, as they should be, instead of preorder.
* e-tree.c (find_next_callback): Use an extra callback function
here to go from sorted path to model path.
2002-01-31 Christopher James Lahey <clahey@ximian.com>
* e-tree.c, e-tree.h (e_tree_find_next): Make this function take a
bitfield of parameters instead of two bools.
2002-01-31 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c, e-tree-selection-model.h
(e_tree_selection_model_get_cursor): Added this simple accessor
function.
* e-tree.c, e-tree.h (e_tree_find_next): Searches from the cursor
given the search parameters and moves the cursor if it ever
matches.
2002-01-31 Christopher James Lahey <clahey@ximian.com>
* e-tree-model.c, e-tree-model.h (e_tree_model_node_find): New
function to do a search through a tree in one direction or the
other.
2002-01-21 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c: Implement max_width_by_row.
* e-cell-tree.c: Use max_width_by_row in max_width function.
* e-cell.c, e-cell.h (e_cell_max_width_by_row): Added this new
method to ECell.
2002-01-16 Krisztian Pifko <monsta@users.sourceforge.net>
* e-cell-progress.c, e-cell-progress.h: new file, implements the
ECellProgress object.
* Makefile.am (libetable_la_SOURCES, libetableinclude_HEADERS):
added e-cell-progress.c and e-cell-progress.h.
2002-01-16 Christopher James Lahey <clahey@ximian.com>
* e-cell-checkbox.h, e-cell-date.h, e-cell-float.h,
e-cell-number.h, e-cell-size.h, e-cell-text.h, e-cell-toggle.h,
e-cell-tree.h, e-cell.h, e-table-click-to-add.h,
e-table-col-dnd.h, e-table-config-field.h, e-table-extras.h,
e-table-field-chooser-item.h, e-table-group-container.h,
e-table-group-leaf.h, e-table-group.h, e-table-header-item.h,
e-table-item.h, e-table-scrolled.h, e-table-sorter.h,
e-table-tooltip.h, e-table-tree.h, e-table-utils.h, e-table.h,
e-tree-scrolled.h, e-tree-sorted-variable.h, e-tree.h: Added
#include <libgnome/gnome-defs.h>.
2002-01-15 Christopher James Lahey <clahey@ximian.com>
* e-cell.c, e-cell.h (e_cell_save_state, e_cell_load_state,
e_cell_free_state): New functions for saving selection state and
such.
* e-cell-text.c (ect_save_state): Implemented the new state
functions.
* e-table-item.c, e-table-item.h: Use the new cell state functions
when focusing in or out. Fixes Ximian bug #14968.
2002-01-09 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c, e-table-header-item.h (scroll_timeout):
Made the header item here handle horizontal scrolling when adding
a column. Fixes Ximian bug #7078.
2002-01-09 Christopher James Lahey <clahey@ximian.com>
* e-table.c, e-table.h (scroll_timeout), e-tree.c
(scroll_timeout): Made these handle horizontal scrolling during
drags.
2002-01-09 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (collapse_drag): Collapse nodes that were opened during
a drag, unless the drop site is a child node. Fixes Ximian bug
#4965.
2001-12-17 Christopher James Lahey <clahey@ximian.com>
* e-cell-toggle.c (etog_set_value): Don't queue a redraw here.
the value changed signal will do that automatically.
2001-12-12 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c (ect_stop_editing): Change to not editing before
committing values. Then commit the values.
2001-12-11 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c: Turn off idle handling in the unrealize function
instead of the destroy function.
2001-12-06 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c, e-table-config.h (setup_gui): Set the title of
the window here.
* e-table-header-item.c (ethi_popup_customize_view): Use a useful
string for the header here.
2001-12-06 Christopher James Lahey <clahey@ximian.com>
* e-table-subset.c (etss_get_view_row): Removed incorrect calls to
e_table_model_row_changed here.
2001-12-05 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c (ethi_find_col_by_x,
ethi_find_col_by_x_nearest): Made these return 0 to the left of
all columns and ethi_find_col_by_x return cols - 1 if to the right
of all columns. Fixes Ximian bug #14414.
2001-12-04 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (e_tree_selection_model_change_cursor):
Unset selection->old_selection here.
2001-11-28 Christopher James Lahey <clahey@ximian.com>
* e-table.c (context_destroyed), e-tree.c (context_destroyed):
Check for et being destroyed here before doing anything. Fixes
Ximian bug #15728.
2001-11-21 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c, e-table-item.h: Handle selection_row_changed
signal. Keep track of the old cursor row so that we only redraw
two rows when the cursor changes.
* e-table.c, e-tree.c: Handle selection_row_changed signal.
* e-tree-selection-model.c: Properly send selection_row_changed
signals if changing from a single row selected to a single other
row selected or if moving the selection_end by a single row.
2001-12-04 Christopher James Lahey <clahey@ximian.com>
* e-table-group.c, e-table.c, e-tree.c: Changed some comments.
Added a bunch of documentation here.
2001-11-14 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Ungrab and set maybe_in_grab to
FALSE before sending the double click signal.
2001-11-10 Christopher James Lahey <clahey@ximian.com>
* e-table.c (group_key_press), e-tree.c (item_key_press): Handle
the case where page up or page down goes off the end of the table
or tree.
2001-11-08 Christopher James Lahey <clahey@ximian.com>
* e-table-sorter.c (ets_sort_info_changed): Make a printout here
be conditionally compiled (and compiled out by default.)
2001-11-07 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_select_all): Don't select all if
the source model doesn't have a root node (it used to crash.)
Fixes Ximian bug #14542.
2001-11-03 Christopher James Lahey <clahey@ximian.com>
* e-cell-popup.c, e-cell-popup.h (e_cell_popup_set_shown,
e_cell_popup_queue_cell_redraw): New functions here.
* e-cell-combo.c: Use e_cell_popup_set_shown to set the
popup_shown variable so that ECellPopup can properly request a
redraw.
2001-11-03 Christopher James Lahey <clahey@ximian.com>
* e-tree-memory.c (e_tree_memory_freeze): We should only
pre_change here if frozen = 0, otherwise we'll leak pre_changes.
Helps fix Ximian bug #14422.
* e-tree-sorted.c (ets_proxy_node_data_changed,
ets_proxy_node_col_changed): Send a no_change signal here if given
a NULL path. Helps fix Ximian bug #14422.
2001-11-02 Christopher James Lahey <clahey@ximian.com>
* e-cell-popup.c, e-cell-popup.h (e_cell_popup_do_popup): Make
ECellPopup not display multiple arrows while the popup is up and
the table is in grouped mode. Fixes Ximian bug #14207.
2001-10-31 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_node_deleted): Fixed the
signature of this function.
2001-10-31 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_unfreeze): Check for unfreezing past 0 here
and give a warning.
(eti_add_table_model): Call eti_freeze here since
eti_table_model_changed will call unfreeze.
* e-tree-memory.c (e_tree_memory_node_remove): Send deleted signal
after freeing the child.
* e-tree-model.c, e-tree-model.h: Added node_deleted signal.
removed/deleted signals will always come in pairs in that order
with a single pre_change for both of them.
* e-tree-selection-model.c (etsm_node_deleted): Clear the tree on
deleted here instead of on removed.
* e-tree-sorted.c (ets_proxy_node_deleted): Chain deleted here.
Chains to NULL node which is fine for now.
2001-10-31 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c, e-table-item.h: Added frozen_count variable to
know not to show the cursor while a change is going on.
* e-table-model.c, e-table-model.h, e-tree-model.c,
e-tree-model.h: Added a model_no_change signal to pair with a
pre_change if there's no change.
* e-table-selection-model.h: Removed an unused frozen field here.
* e-table-sorted.c, e-table-subset.c, e-table-subset.h,
e-table-without.c, e-tree-memory.c, e-tree-sorted.c,
e-tree-table-adapter.c: Made sure pre_changes were all matched by
some change. Proxy no_change signal where appropriate.
* e-tree-selection-model.c: Keep track of the frozen_count
variable to know whether a change is going on.
2001-10-30 Christopher James Lahey <clahey@ximian.com>
* e-table.c (e_table_commit_click_to_add): Leave edit if commit is
called.
2001-10-30 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_show_cursor, eti_check_cursor_bounds):
Request the right regions here. The range given is inclusive, not
inclusive/exclusive.
2001-10-30 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c (etcta_class_init): Remove point handler
and just let GnomeCanvasGroup handle it.
* e-table.c (e_table_commit_click_to_add): Don't commit the
click_to_add if there's no click_to_add to commit.
2001-10-30 Christopher James Lahey <clahey@ximian.com>
* e-table.c (e_table_commit_click_to_add): Added this new function
to allow the user to specify a commit.
2001-10-30 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (check_last_access): Fix this to check from
initial instead of initial + 1.
2001-10-30 Christopher James Lahey <clahey@ximian.com>
* e-cell-combo.c: Adapt to the changed popup signature.
* e-cell-popup.c, e-cell-popup.h: Changed the behavior here to
draw the button whenever we have the cursor. Changed the popup
virtual method to pass in the row and column popping up.
* e-cell.h: Added an E_CELL_CURSOR flag.
* e-table-item.c: Pass in the E_CELL_CURSOR flag to event and draw
calls as appropriate.
2001-10-29 Christopher James Lahey <clahey@ximian.com>
* e-table.c (et_canvas_root_event), e-tree.c
(et_canvas_root_event): Ignore buttons 4 and 5 here. Fixes Ximian
bug #13853.
2001-10-29 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c (setup_gui): Hide the Help button here since
there's nothing connected to it.
* e-tree-sorted.c (ets_sort_idle): Don't nest ets_sort_idle calls.
Fixes Ximian bug #13929.
2001-10-29 Christopher James Lahey <clahey@ximian.com>
* e-table-subset.c (etss_get_view_row), e-tree-sorted.c
(check_last_access), e-tree-table-adapter.c (find_row_num): Don't
go outside the table looking for matches when doing the
last_access search.
2001-10-28 Christopher James Lahey <clahey@ximian.com>
* e-table.c (table_canvas_focus_event_cb): Fix crash here.
2001-10-28 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c: Removed erroneous comment about needing to handle
selection better.
2001-10-26 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_cursor_activated): Chain the
cursor_activated signal even if the row is -1.
* e-tree.c (item_cursor_activated): Don't error out here if path
is NULL.
2001-10-26 Christopher James Lahey <clahey@ximian.com>
* e-cell-float.c, e-cell-float.h: Changed the license announcement
at the top of these files.
2001-10-26 Christopher James Lahey <clahey@ximian.com>
* e-cell-checkbox.c, e-cell-checkbox.h, e-cell-combo.c,
e-cell-combo.h, e-cell-date.c, e-cell-date.h, e-cell-number.c,
e-cell-number.h, e-cell-pixbuf.c, e-cell-pixbuf.h, e-cell-popup.c,
e-cell-popup.h, e-cell-size.c, e-cell-size.h,
e-cell-spin-button.c, e-cell-spin-button.h, e-cell-string.c,
e-cell-text.c, e-cell-text.h, e-cell-toggle.c, e-cell-toggle.h,
e-cell-tree.c, e-cell-tree.h, e-cell.c, e-cell.h,
e-table-click-to-add.c, e-table-click-to-add.h, e-table-col-dnd.h,
e-table-col.c, e-table-col.h, e-table-column-specification.c,
e-table-column-specification.h, e-table-column.c,
e-table-config-field.c, e-table-config-field.h, e-table-config.c,
e-table-config.h, e-table-defines.h, e-table-example-1.c,
e-table-example-2.c, e-table-extras.c, e-table-extras.h,
e-table-field-chooser-dialog.c, e-table-field-chooser-dialog.h,
e-table-field-chooser-item.c, e-table-field-chooser-item.h,
e-table-field-chooser.c, e-table-field-chooser.h,
e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c,
e-table-group.h, e-table-header-item.c, e-table-header-item.h,
e-table-header-utils.c, e-table-header-utils.h, e-table-header.c,
e-table-header.h, e-table-item.c, e-table-item.h,
e-table-memory-callbacks.c, e-table-memory-callbacks.h,
e-table-memory.c, e-table-memory.h, e-table-model.c,
e-table-model.h, e-table-one.c, e-table-one.h, e-table-scrolled.c,
e-table-scrolled.h, e-table-selection-model.c,
e-table-selection-model.h, e-table-simple.c, e-table-simple.h,
e-table-size-test.c, e-table-sort-info.c, e-table-sort-info.h,
e-table-sorted-variable.c, e-table-sorted-variable.h,
e-table-sorted.c, e-table-sorted.h, e-table-sorter.c,
e-table-sorter.h, e-table-sorting-utils.c,
e-table-sorting-utils.h, e-table-specification.c,
e-table-specification.h, e-table-state.c, e-table-state.h,
e-table-subset-variable.c, e-table-subset-variable.h,
e-table-subset.c, e-table-subset.h, e-table-tooltip.h,
e-table-tree.h, e-table-utils.c, e-table-utils.h,
e-table-without.c, e-table-without.h, e-table.c, e-table.h,
e-tree-memory-callbacks.c, e-tree-memory-callbacks.h,
e-tree-memory.c, e-tree-memory.h, e-tree-model.c, e-tree-model.h,
e-tree-scrolled.c, e-tree-scrolled.h, e-tree-selection-model.c,
e-tree-selection-model.h, e-tree-simple.c, e-tree-simple.h,
e-tree-sorted-variable.c, e-tree-sorted-variable.h,
e-tree-sorted.c, e-tree-sorted.h, e-tree-table-adapter.c,
e-tree-table-adapter.h, e-tree.c, e-tree.h, table-test.c,
table-test.h, test-check.c, test-cols.c, test-table.c: Changed the
license announcement at the top of these files.
* e-cell-string.c: Removed unused file.
2001-10-26 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c (config_group_info_update,
config_fields_info_update): Added some checks for NULL labels
here.
* e-table-specification.c, e-table-specification.h: Added
allow_grouping field. Fixes Ximian bug #13412.
* e-table.c, e-table.h: Added allow_grouping field. Set this
field for the sort infos from state objects.
2001-10-26 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_selected_count): If the root node
is hidden and selected, don't count it in the selected path count.
Fixes Ximian bug #13419.
* e-tree.c (et_canvas_root_event): Attach to the event handler on
the root canvas item instead of the canvas itself when making the
ETree leave editing state.
2001-10-25 Federico Mena Quintero <federico@ximian.com>
Fixes Ximian bug #6832.
* e-table.c (e_table_setup_table): Use a callback instead of
gtk_widget_queue_draw() for focus events, as the latter does not
have the correct prototype for an event handler.
(group_start_drag): Emit START_DRAG, not KEY_PRESS!
(focus_first_etable_item): Focus the first row in the first
ETableItem if there is no focused item.
* e-tree.c (e_tree_setup_table): Same change as in
e_table_setup_table().
(table_canvas_focus_event_cb): Focus the first row in the tree
item if there is no focused item.
2001-10-24 Christopher James Lahey <clahey@ximian.com>
* e-cell-combo.c: Added #include "gal/widgets/e-unicode.h".
* e-cell-text.c: Added lots of deactivated debugging printfs here.
(ect_event): Fixed the flags check here. Set edit->actions to 0
before calling e_text_event_processor_handle_event.
* e-table-item.c, e-table-item.h: Use eti_grab and eti_ungrab all
over the place. Added lots and lots of deactivated debugging
printfs here.
(eti_grab, eti_ungrab): New functions to encapsulate grabbing and
ungrabbing the cursor and to allow for recursive grabs
(refcounting style.)
* e-table.c: Added deactivated debugging printfs here.
(et_canvas_root_event): Attach to the event handler on the root
canvas item instead of the canvas itself when making the ETable
leave editing state. Fixes Ximian bug #9737.
2001-10-24 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (INCLUDES): Added $(ICONV_CFLAGS).
2001-10-23 Damon Chaplin <damon@ximian.com>
* e-cell-combo.c (e_cell_combo_set_popdown_strings): save the UTF-8
strings inside the listitem widgets, but convert to the locale to use
in the label.
(e_cell_combo_select_matching_item):
(e_cell_combo_update_cell): use the UTF-8 strings instead of the
listitem labels. Hopefully fixes bug #7037.
2001-10-23 Christopher James Lahey <clahey@ximian.com>
* e-table-field-chooser-item.c: Got rid of the gc argument to
e_table_header_draw_button.
(etfci_font_load): Just use the style font here.
* e-table-group-container.c (e_table_group_container_construct):
Changed this to just use the font from the style. Fixes Ximian
bug #11882.
* e-table-header-item.c: Got rid of the gc argument to
e_table_header_draw_button.
(ethi_font_load): Changed this to just fallback on the font from
the style if the fontname is NULL or doesn't load to a font.
Fixes Ximian bug #11882.
* e-table-header-utils.c, e-table-header-utils.h
(e_table_header_draw_button): Got rid of the gc parameter here and
changed to use the gc from the style of a button created for this
purpose, but not shown. Fixes Ximian bug #13251.
2001-10-23 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c, e-table-header-item.h: Got rid of the gc
field here and just use the fg_gc from the style for drawing the
buttons.
2001-10-22 Damon Chaplin <damon@ximian.com>
* e-cell-text.[hc]: added set_value() class method, which sets the
model value based on the text. In ECellText itself it assumes the model
value is a char* and passes the text directly. Subclasses may parse
the text into some other datatype.
Also made the calls the e_cell_text_get_text(), e_cell_text_free_text()
and e_cell_text_set_value() public, since we need them in ECellCombo.
* e-cell-combo.c (e_cell_combo_select_matching_item):
(e_cell_combo_update_cell): use e_cell_text_get_text()/free_text()/
set_value() so it can handle subclasses of ECellText as the child.
2001-10-22 Christopher James Lahey <clahey@ximian.com>
* e-table-col.c, e-table-col.h, e-table-column-specification.c,
e-table-column-specification.h: Added a disabled field here.
* e-table-config.c, e-table-field-chooser-item.c: Pay attention to
the disabled field here. Fixes Ximian bug #12416.
* e-table-utils.c: Copy the disabled field from the column
specification to the col.
2001-10-22 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_idle_maybe_show_cursor): Make this check
immediately for whether to show the cursor, instead of in the idle
handler. Fixes Ximian bug #11807.
* e-tree-table-adapter.c (e_tree_table_adapter_node_set_expanded):
Added a pre_change here since we send two changes.
2001-10-22 Christopher James Lahey <clahey@ximian.com>
* e-tree-memory.c (e_tree_memory_sort_node): Call
e_tree_model_pre_change here where appropriate.
2001-10-22 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_cancel_drag_due_to_model_change): Cancel the
drag or maybe drag if you have the mouse button down when the
pre_change signal comes in. Fixes Ximian bug #11309.
* e-table-without.c (add_row, remove_row,
e_table_without_show_all): Call e_table_model_pre_change where
appropriate here.
2001-10-20 Christopher James Lahey <clahey@ximian.com>
* e-table-group-container.c (compute_text): Don't convert to
locale here since EText takes UTF8 strings. Fixes Ximian bug
#8906.
2001-10-20 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (e_tree_sorted_node_num_children): Check for
num_children == -1 here and generate the children if they haven't
been. Fixes Ximian bug #12464.
2001-10-16 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c (find_next_node_maybe_deleted,
find_first_child_node_maybe_deleted, find_next_node,
find_first_child_node, find_row_num): Added bounds checking in a
number of places. Fixes Ximian bug #7245.
(etta_init): Initialize all the fields here.
2001-10-12 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c (set_initial_selection): Use new
e_table_header_prioritized_column field.
* e-table-header.c, e-table-header.h
(e_table_header_prioritized_column): New function. Refactors the
code from ETableClickToAdd to find the column with the highest
priority.
* e-table-selection-model.c, e-table-selection-model.h
(model_changed_idle): Changed this function to use the
e_table_header_prioritized_column function. Added an argument to
set the "header" on this selection model. Fixes Ximian bug #1301.
* e-table-utils.h: Indentation cleanup.
* e-table.c (et_real_construct): Set the "header" argument on the
selection model here.
* e-table.h: #include <gal/e-table/e-table-sorter.h>
2001-10-12 Christopher James Lahey <clahey@ximian.com>
* e-table-state.c (e_table_state_duplicate): Copy the can group
state on the sort info here. Fixes Ximian bug #8655.
2001-10-10 Christopher James Lahey <clahey@ximian.com>
* e-cell-popup.c (ecp_get_bg_color), e-cell-tree.c
(ect_get_bg_color): Implement these functions as pass through to
the child cell.
* e-cell-text.c, e-cell-text.h (ect_get_bg_color): Implemented
this using a bg_color_column which can be set through the argument
of the same string.
* e-cell.c, e-cell.h (e_cell_get_bg_color): Added this function to
allow background color to change by cell.
* e-table-item.c (eti_get_cell_background_color): Call
e_cell_get_bg_color to allow background color to change by cell.
2001-10-10 Christopher James Lahey <clahey@ximian.com>
* e-table.c, e-table.h (e_table_get_selection_model): Added this
function.
2001-10-06 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_show_cursor, eti_check_cursor_bounds): Check
that cell views are realized before doing anything here. Fixes
Ximian bug #11919.
(eti_check_cursor_on_screen): If the cursor values are all set to
-1, don't do anything.
2001-10-06 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_table_model_row_changed,
eti_table_model_cell_changed): Handle row and cell changes
properly in the uniform_row_height case. Fixes Ximian bug #11879.
2001-10-06 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (context_destroyed), e-table.c (context_destroyed): Use
g_dataset_set_data_full to find out when the context is destroyed.
Fixes Ximian bug #8502 and Ximian bug #11691.
2001-10-05 Jon Trowbridge <trow@ximian.com>
* e-table-without.c (e_table_without_show_all): We need to take
the row count from the source model, not from the ETableWithout.
This typo is why contacts kept disappearing in the SelectNames
dialog. (Bugs 9326, 10916)
2001-10-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_set_arg): Fixed the uniform_row_height +
confirm_row_hieght_cache crash.
2001-10-05 Christopher James Lahey <clahey@ximian.com>
* e-cell-text, e-cell-pixbuf: Adapted height method to deal with a
row of -1.
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c,
e-table-item.h, e-table.c, e-table.h, e-tree.c: Added
"uniform_row_height" argument.
2001-10-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Got rid of the misused button
variable here.
2001-10-04 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_idle_maybe_show_cursor): Sometimes put off
maybe showing the cursor until an idle callback.
* e-tree-selection-model.c (add_model): Use connect_after to
connect to all the signals. This means we can assume the sorted
tree and table adapters are both done. This also means that those
objects cannot assume that the selection is already changed.
Fixes Ximian bug #10667.
2001-10-03 Christopher James Lahey <clahey@ximian.com>
* e-table-selection-model.c (e_table_selection_model_init):
Initialize the hash field.
(model_changed_idle): Send cursor changed and selection changed signals.
(model_pre_change): If there's no cursor here, make sure to set
the cursor_id to NULL.
2001-10-03 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c (set_initial_selection): Pick which field
of the row to select based on priority. Fixes Ximian bug #9345.
* e-table-col.c, e-table-col.h: Added the priority field to this
class. Adapted the _new functions appropriately.
* e-table-column-specification.c, e-table-column-specification.h:
Added the priority field to this class.
* e-table-utils.c (et_col_spec_to_col): Handle the priority field here.
2001-10-02 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c, e-table-item.h: Only show the cursor during
changes if it was already shown. Fixes Ximian bug #9810 and
Ximian bug #4048.
2001-09-28 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (ets_proxy_node_changed): Stop the sort idle if
the root node gets changed.
2001-09-26 Christopher James Lahey <clahey@ximian.com>
* e-table.c, e-tree.c: Set the step_increment on the horizontal
scrollbars here to 20.
2001-09-26 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_node_changed, etsm_destroy): Set
cursor_path = NULL here.
2001-09-25 Ettore Perazzoli <ettore@ximian.com>
* e-table-item.c (eti_unrealize): Remove the grab if ->grabbed.
2001-09-25 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Instead of
e_selection_model_maybe_do_something and
e_selection_model_do_something, call e_selection_right_click_down
and e_selection_right_click_up here for right clicks.
* e-table.c, e-table.h (e_table_right_click_up), e-tree.c,
e-tree.h (e_tree_right_click_up): Added these functions for
someone who handles the right click signal by popping up a menu
call right_click_up when they're down handling the menu.
2001-09-24 Federico Mena Quintero <federico@ximian.com>
* e-table.c (et_canvas_button_press): Use the correct prototype
for the signal handler.
* e-tree.c (et_canvas_button_press): Likewise.
2001-09-24 Federico Mena Quintero <federico@ximian.com>
* e-table-group.c (e_table_group_add): Assert that the virtual
method is implemented instead of being forgiving.
(e_table_group_add_array): Likewise.
(e_table_group_add_all): Likewise.
(e_table_group_remove): Likewise.
(e_table_group_increment): Likewise.
(e_table_group_decrement): Likewise.
(e_table_group_row_count): Likewise.
(e_table_group_set_focus): Likewise.
(e_table_group_get_focus): Likewise.
(e_table_group_get_focus_column): Likewise.
(e_table_group_get_printable): Likewise.
(e_table_group_compute_location): Likewise.
(e_table_group_get_cell_geometry): Likewise.
(etg_destroy): Clear the fields after we unref them.
* e-table-group-leaf.c (etgl_destroy): Clear the fields after we
unref them.
(e_table_group_leaf_construct): Subsets should not be sunk. Do
not ref/sink the subset.
* e-table-header.c (e_table_header_add_column): Document the fact
that the header assumes ownership of the column.
2001-09-24 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_sorted_node_resorted): Attach to
the resorted signal instead of the changed signal on the sorted
model. Fixes Ximian bug #6532.
* e-tree-sorted.c, e-tree-sorted.h (e_tree_sorted_node_resorted):
Added this signal.
2001-09-22 Christopher James Lahey <clahey@ximian.com>
From a patch by Damian Ivereigh <damian@cisco.com>:
* e-cell-date.c: Made this use e_strftime_fix_am_pm instead of
strftime.
2001-09-19 Christopher James Lahey <clahey@ximian.com>
* e-table-selection-model.c (add_model): Confirm row count here.
(etsm_get_row_count): Make sure etsm->model isn't NULL here.
If it is, it's not an error. Return 0 in this case.
2001-09-16 Christopher James Lahey <clahey@ximian.com>
* e-table-model.c, e-table-model.h (e_table_model_class_init):
Rearranged order of has_save_id and get_save_id to be more
consistent with ETree.
* e-table-selection-model.c, e-table-selection-model.h: Turned on
the code to maintain selection and cursor across changes if the
model supports get_save_id.
* e-table-simple.c, e-table-simple.h: Changed this interface to
take all of the ETableModel functions in the _new function.
* e-table-subset.c (etss_has_save_id, etss_get_save_id): Added
these to properly proxy the save_id functionality.
* e-tree-memory-callbacks.c, e-tree-memory-callbacks.h,
e-tree-model.c, e-tree-model.h, e-tree-sorted.c: Made the save_id
parameter to get_node_by_id be const char * instead of char *.
* e-tree-table-adapter.c (etta_class_init): Rearranged some
assignments here to be more consistent.
2001-09-13 Christopher James Lahey <clahey@ximian.com>
* e-cell-toggle.c (etog_event): Changed this to change state on
button down, even if we aren't editing.
2001-09-10 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (e_tree_setup_table): Changed which widget to connect
signals to to watch for drag & drop. Fixes Ximian bugs #7450 &
#8732.
2001-09-07 Jon Trowbridge <trow@ximian.com>
* e-table-without.c (e_table_without_show_all): Fixed a silly
little obvious bug.
2001-09-07 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Added GDK_BUTTON_PRESS_MASK to our
button mask. Fixes Ximian bug #8241.
2001-09-07 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c, e-table-item.h (eti_event): Don't do_something
on button_release if we did something on button_press. Fixes
Ximian bug #8260.
2001-09-07 Christopher James Lahey <clahey@ximian.com>
* Makefile.am: Added e-table-config-no-group.glade.
* e-table-config-no-group.glade, e-table-config.c,
e-table-config.glade: Removed the fields bit of ETableConfig.
2001-09-07 Christopher James Lahey <clahey@ximian.com>
* e-table-without.c, e-table-without.h (e_table_without_show_all):
Added this function.
2001-09-04 Ettore Perazzoli <ettore@ximian.com>
* e-tree.c (e_tree_drag_unhighlight): Remove debugging message.
2001-09-02 Christopher James Lahey <clahey@ximian.com>
* e-cell-date.c (ecd_get_text): Strip spaces at the beginning or
end as well as changing " " to " ". Fixes Ximian bug #7683.
2001-09-01 Christopher James Lahey <clahey@ximian.com>
* e-cell-float.c (ecf_get_text, ecf_free_text): Rename these
functions from ecn_get_text and ecn_free_text.
* e-cell-tree.c (ect_height): Make sure the height is a multiple
of two here.
* e-table-header-item.c, e-table-header-item.h: Added a "tree"
argument so that the sorting can be set by right clicking on the
header item.
* e-table-item.c (eti_table_model_rows_deleted): Added some
assertions here.
* e-tree-selection-model.c (etsm_find_node_unless_equals): Fixed
indentation.
* e-tree-table-adapter.c (etta_proxy_node_changed): Rewrote this
to be more readable.
(e_tree_table_adapter_node_set_expanded): Added an assertion.
* e-tree.c, e-tree.h (e_tree_get_spec): Added this function.
(e_tree_setup_header): Set the tree argument on the
ETableHeaderItem here.
2001-08-31 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_table_model_rows_deleted): Fix this memmove.
We've already subtracted the count from eti->rows.
2001-08-27 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_table_model_rows_deleted): Fixed this
memmove to subtract the count as well as the row for the number of
rows to move.
2001-08-25 Zbigniew Chyla <cyba@gnome.pl>
* e-table-group-container.c (compute_text):
Convert UTF-8 strings to locale's encoding before putting them in
canvas item.
2001-08-25 Zbigniew Chyla <cyba@gnome.pl>
* e-table.c (e_table_init): Fixed typo.
2001-08-24 Christopher James Lahey <clahey@ximian.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group-leaf.h, e-table-group.c, e-table-group.h: Added
start_drag signals.
* e-table-item.c, e-table-item.h (eti_event): Send the start_drag
signal. Fixes Ximian bug #807.
* e-table.c, e-table.h, e-tree.c, e-tree.h: Added start_drag
signal. Made default handler start drag & drop if we're set to
automatically handle dnd. Ripped out the code to handle watching
events for dnd since start_drag does this now.
2001-08-20 Jon Trowbridge <trow@ximian.com>
* e-table-without.c (check_with_key): We need to
free_gotten_key_func key2, not key!
(e_table_without_show): Renamed, used to be
e_table_without_remove. Double-negative function names
are confusing!
(e_table_without_hide_adopt): Renamed, used to be
e_table_without_add_adopt.
(e_table_without_hide): Renamed, used to be e_table_without_add.
2001-08-20 Christopher James Lahey <clahey@ximian.com>
* e-table-subset.c, e-table-subset.h
(e_table_subset_model_to_view_row,
e_table_subset_view_to_model_row): Added these functions.
2001-08-20 Christopher James Lahey <clahey@ximian.com>
* e-table-without.c: Made this object handle NULLs for all the
handler functions.
2001-08-20 Christopher James Lahey <clahey@ximian.com>
* e-table-without.c (etw_proxy_model_rows_inserted,
etw_proxy_model_changed): Changed the used parity of the return
value of check here.
2001-08-18 Federico Mena Quintero <federico@ximian.com>
* e-table-without.c (etw_destroy): Chain to the destroy handler in
the parent class. Hey, I'm getting used to this :)
2001-08-17 Christopher James Lahey <clahey@ximian.com>
* e-table-without.c (etw_destroy): Destroy the hash table and all
objects in it, as well as the priv structure.
2001-08-16 Christopher James Lahey <clahey@ximian.com>
* Makefile.am: Added e-table-without.c and e-table-without.h.
* e-table-without.c, e-table-without.h: Got this to compile.
Finished the first version of it.
2001-08-16 Christopher James Lahey <clahey@ximian.com>
* e-table-without.c, e-table-without.h: Adding the first versions
of these files. Doesn't work yet.
2001-08-14 Peter Williams <peterw@ximian.com>
* e-tree-selection-model.c (etsm_selected_count_recurse):
Workaround for Ximian bug #6795. Will prevent a crash and
doesn't seem to cause any problems, but the underlying problem
still exists.
2001-08-14 Federico Mena Quintero <federico@ximian.com>
* e-cell-combo.c (e_cell_combo_destroy): Destroy, do not unref,
the popup_window.
2001-08-14 Christopher James Lahey <clahey@ximian.com>
* e-table.c (group_key_press), e-tree.c (item_key_press): Handle
GDK_KP_Page_Up, GDK_KP_Page_Down, GDK_KP_Right, and GDK_KP_Left
here. Fixes Ximian bug #4491.
2001-08-14 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c (etcta_event): Got rid of event
forwarding for double clicks and releases and such and for single
clicks except when first creating the row object. Fixes Ximian
bug #2661.
2001-08-10 JP Rosevear <jpr@ximian.com>
* e-table.c (et_build_groups): add the items to the start or end
based on where the click to add should be
(e_table_setup_table): ditto
(et_real_construct): read additional spec flag
* e-table.h: new flag
* e-table-specification.c (etsp_init): init new flag
(e_table_specification_load_from_node): set click to add end flag
(e_table_specification_save_to_node): write out flag
* e-table-specification.h: new flag
2001-08-10 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c (setup_gui): If the sort_info can't group, hide
the grouping button and label.
* e-table-header-item.c (ethi_header_context_menu): Removed the
Group By This Field menu item if the sort_info doesn't support
grouping.
* e-table-sort-info.c, e-table-sort-info.h
(e_table_sort_info_get_can_group,
e_table_sort_info_set_can_group): Added these functions.
* e-tree.c (e_tree_set_state_object, et_real_construct): Set
can_group to FALSE for all our sort infos.
(e_tree_get_state_object): Fixed a potential gtk_object_ref (NULL)
here.
2001-08-09 Jeffrey Stedfast <fejj@ximian.com>
* e-tree.c (et_drag_drop): Initialize ret_val.
(do_drag_motion): Same.
2001-08-09 Christopher James Lahey <clahey@ximian.com>
* e-table-field-chooser-dialog.c, e-table-field-chooser-dialog.h,
e-table-field-chooser.c, e-table-field-chooser.h: Added a "header"
argument to these structures which just gets passed downwards.
* e-table-field-chooser-item.c, e-table-field-chooser-item.h:
Added a "header" argument here. Made it so that only rows that
aren't already in the header are shown.
* e-table-header-item.c: Set the "header" argument on our
e-table-field-chooser-dialog. Fixes Ximian bug #2654.
2001-08-08 Not Zed <NotZed@Ximian.com>
* e-table-sort-info.c (etsi_destroy): Call the super-class destroy
function when done.
2001-08-08 Federico Mena Quintero <federico@ximian.com>
* e-cell-pixbuf.c (pixbuf_destroy): Chain to the destroy handler
in the parent class!
* e-table-field-chooser.c (e_table_field_chooser_destroy):
Likewise. Sigh.
* e-table-one.c (one_destroy): Likewise. Double sigh.
* e-tree-selection-model.c (etsm_destroy): Likewise. Triple sigh.
2001-08-08 Christopher James Lahey <clahey@ximian.com>
* e-table-group-leaf.c, e-table-group-leaf.h (etgl_key_press):
Check for row >= 0 here. Fixes Ximian bug #6376.
(etgl_destroy): Disconnect from all the signals we connect to on
our ETableItem here.
2001-08-07 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_selected_count): Implemented this
function. Fixes Ximian bug #5353.
2001-08-07 Christopher James Lahey <clahey@ximian.com>
* e-tree.c: Make tree nodes open if you hover over them while drag
& dropping.
2001-08-07 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (scroll_timeout): Added scrolling to access nodes that
are scrolled off screen for drops. Fixes Ximian bug #5645.
* e-table.c, e-table.h (scroll_timeout): Added scrolling to access
rows that are scrolled off screen for drops. This doesn't work
for some reason, but I'm checking the code in.
2001-08-06 Christopher James Lahey <clahey@ximian.com>
* e-table.c, e-table.h (e_table_drag_highlight,
e_table_drag_unhighlight): Implemented these functions.
* e-tree.c (e_tree_drag_highlight, e_tree_drag_unhighlight):
Implemented these functions.
2001-08-04 Christopher James Lahey <clahey@ximian.com>
* e-tree-scrolled.c (e_tree_scrolled_new): Set the hadjustment and
vadjustment here. From a patch by Kevin Vandersloot
<kfv101@psu.edu>. Fixes Ximian bug #6400.
2001-08-03 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (et_drag_motion, et_drag_drop, et_drag_data_received):
Change these to actually subtract the allocation as they should.
2001-08-03 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c (e_tree_table_adapter_node_at_row):
e_tree_table_adapter_node_at_row would have pulled data from one
past the end of its array if you asked it to and the root was
hidden. Fixed it. Fixes Ximian bug #4761.
2001-08-03 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (et_drag_motion, et_drag_drop, et_drag_data_received):
Subtracted 27.
2001-08-02 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Make the right and left key presses
be marked as handled here (i.e., return 1 always.) Fixes Ximian
bug #2090.
2001-08-02 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c: Changed all e_table_model_is_cell_editable calls
in this file to be on the model column instead of the view column.
2001-08-02 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (et_destroy): Set et->priv to NULL here just to be
sure.
2001-08-02 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c (ethi_drag_data_received): Don't do most
of the work in this function if data->data is NULL. Fixes Ximian
bug #6041.
2001-08-01 Federico Mena Quintero <federico@ximian.com>
* e-table.c (group_cursor_change): Set the et->cursor_loc *before*
committing the click-to-add to avoid reentrancy issues if the
table model changes while the click-to-add is being committed.
2001-08-01 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c (ethi_change_sort_state): Make this
function not crash if x somehow doesn't land on some column.
Fixes Ximian bug #5957.
* e-table-header-item.c: Removed a bunch of menu items whose
functionality won't be ready for 1.0. Fixes Ximian bug #154.
2001-08-01 Christopher James Lahey <clahey@ximian.com>
* e-cell-toggle.c (etog_max_width): Made this not query the 0th
row if there are 0 rows in the table. Fixes Ximian bug #5640.
2001-07-25 Jon Trowbridge <trow@ximian.com>
* e-cell-text.c (ect_unrealize): Set text_view->font to NULL
after we unref it.
2001-07-25 Jason Leach <jleach@ximian.com>
* e-table-item.c (eti_event): If the CLICK signal gets a return
value, so we're going to be return from eti_event immediately
after, set the eti->click_count to zero. Fixes bug #811.
2001-07-23 Ettore Perazzoli <ettore@ximian.com>
* e-table-item.c (eti_event): Handle GDK_KP_* cursor keys as well.
2001-07-12 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (e_tree_get_cell_at): Made these functions return -1 if
the x and y aren't over any cell at all.
2001-07-12 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c (e_tree_table_adapter_node_set_expanded):
Ignore set_expanded if the node is the root and root_visible is
FALSE.
* e-tree.c (item_key_press): Don't call set_expanded on NULL
paths.
2001-07-11 Christopher James Lahey <clahey@ximian.com>
* e-table.c (group_key_press), e-tree.c (item_key_press): Changed
these to use e_selection_model_select_as_key_press instead of
e_selection_model_do_something.
2001-07-11 Christopher James Lahey <clahey@ximian.com>
* e-table.c (group_key_press), e-tree.c (item_key_press): Made the
amount to scroll by smaller here.
2001-07-11 Christopher James Lahey <clahey@ximian.com>
* e-table.c (group_key_press), e-tree.c (item_key_press): Use
e_selection_model_do_something directly for page up and page down
instead of emulating a key press.
2001-07-08 Christopher James Lahey <clahey@ximian.com>
* e-table-field-chooser-dialog.c
(e_table_field_chooser_dialog_init): Changed the title of this
dialog. Fixes bug #2656.
2001-07-06 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c (e_tree_table_adapter_node_at_row): Added
checks for if row is outside of the appropriate range.
2001-07-06 Christopher James Lahey <clahey@ximian.com>
* e-cell-spin-button.c (e_cell_spin_button_step_float): Set
new_value = value here to fix a warning.
2001-07-06 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c (config_get_arg): Added a "state" argument to
allow you to get the state out of the config object.
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (e_tree_get_cell_geometry): Added checks that row and
col are >= 0.
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c (ect_cancel_edit): Call e_table_item_leave_edit
here.
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c (ethi_drag_motion): Made it so that the
drop marker can show up when dragging a new column to the leftmost
position of the table header item.
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-table-one.c (one_is_cell_editable): Ask for the editability of
row -1 instead of column 0 as we were before.
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c, e-table-item.h (find_cell): Changed the variable
names here to make it clear that these are view model and row.
(eti_event): Added click_count to make it so that if we get two
clicks in different rows we don't send a double click event.
(eti_event, view_to_model_row): Set row_guess in a few extra
places.
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Make a whole bunch of control keys
not start the ETableItem editing.
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (e_table_item_row_diff): Make sure start_row and
end_row are within the number of rows in the table.
2001-07-05 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (e_tree_new, e_tree_new_from_spec_file): Handle an
error in construction a little bit better here.
(e_tree_get_cursor): Check for row == -1 here.
2001-07-02 Richard Hult <rhult@codefactory.se>
* e-cell-combo.c (e_cell_combo_get_popup_pos): Calculate the popup
position using window coordinates instead of world coordinates.
This fixes bug #2613 in ximian's bugzilla, combo box pops up offset
if the table is scrolled.
2001-07-02 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (ets_destroy): Only free the root here if it's
non-NULL.
2001-07-02 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c (ethi_header_context_menu): Made the
remove this column menu item greyed out if it's the last column.
2001-07-02 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Don't send the double click signal
if there's no row selected.
2001-06-28 Chris Toshok <toshok@ximian.com>
* e-table.c (et_drag_motion): send signals even if the row/col is
-1.
(et_drag_drop): same.
* e-tree.c (et_drag_motion): same.
(et_drag_drop): same.
2001-06-27 Peter Williams <peterw@ximian.com>
* e-tree-selection-model.c (e_tree_selection_model_add_to_selection): New function,
heavily based on select_single_row.
* e-tree-selection-model.h: Added prototype;
* e-tree.c (e_tree_get_model): New accessor function.
(e_tree_get_selection_model): Same.
(e_tree_selected_count, e_tree_select_all, e_tree_invert_select): Removed. With
the accessors these become pointless.
* e-tree.h: Prototype the functions above. Remove a few functions that
don't make sense anymore.
2001-06-20 Mikael Hallendal <micke@codefactory.se>
* e-cell-spin-button.c
(e_cell_spin_button_step): send the value to
e_table_model_set_value_at as a string as in e_cell_number.
(e_cell_spin_button_step_float): send the value to
e_table_model_set_value_at as a string as in e_cell_number_float.
2001-05-25 Kjartan Maraas <kmaraas@gnome.org>
* e-table-specification.c: #include <string.h>
* e-table-state.c: Same here. Kills warnings on newer gcc.
2001-05-25 Christopher James Lahey <clahey@ximian.com>
* e-table.c (et_table_rows_deleted): Remove row row + i instead of
row i.
(et_table_rows_inserted): Insert row row + i instead of row row.
2001-05-25 Christopher James Lahey <clahey@ximian.com>
* e-table.c (et_table_rows_deleted): Remove row i instead of row
row. Destroy et->group when you get the changed or
sort_info_changed signal instead of in the idle handler.
2001-05-24 jacob berkman <jacob@ximian.com>
* e-cell-size.c (ecd_get_text): format similar to nautilus
2001-05-23 jacob berkman <jacob@ximian.com>
* e-table-group-container.c: internationalize the grouping text
string
2001-05-22 jacob berkman <jacob@ximian.com>
* e-cell-pixbuf.c: allow NULL pixbufs, and draw with crappy alpha
2001-05-22 Christopher James Lahey <clahey@ximian.com>
* e-table-sorted.c (ets_proxy_model_rows_deleted): Made this
faster in some cases.
2001-05-22 Christopher James Lahey <clahey@ximian.com>
* e-table-group-leaf.c (etgl_double_click): The double_click
signal on the table item now emits the model row instead of the
view row so don't do the view to model conversion here.
2001-05-22 jacob berkman <jacob@ximian.com>
* e-table-sorted.c (ets_proxy_model_rows_deleted): a similar
change to below, which makes it actually work for the case where
count != 1
2001-05-21 Chris Toshok <toshok@ximian.com>
* e-table-sorted.c (ets_proxy_model_rows_inserted): increment row
each time through the loop so we don't get @count copies of @row.
2001-05-14 Jon Trowbridge <trow@ximian.com>
* e-cell-text.c (_get_position_from_xy): Try to deal with bad
utf8.
(_get_position): Try to deal with bad utf8.
(number_of_lines): Try to deal with bad utf8.
(split_into_lines): Try to deal with bad utf8.
2001-05-11 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Make a key press stop the tooltip
timeout.
* e-table-state.c (e_table_state_load_from_node): Make the default
expansion be one so that if the user doesn't specify any
expansions they get a uniform expansion.
2001-05-09 Christopher James Lahey <clahey@ximian.com>
* e-cell-date.c (ecd_get_text): Show the date for dates in the
future.
* e-tree-memory.c, e-tree-memory.h
(e_tree_memory_set_node_destroy_func): New function which gets
called on the data for every node removed from the tree.
2001-04-29 Jason Leach <jasonleach@usa.net>
(Fix bug #53111: Portability fixes for HP's ANSI compiler.)
* e-table-header-item.c (ethi_popup_sort_ascending): Changes for
initializing a struct for picky compiler.
(ethi_popup_sort_descending): Ditto.
(ethi_change_sort_state): Ditto.
* e-cell.c (e_cell_realize): Fix trying to return a value for a
void function.
(e_cell_show_tooltip): Here too.
* e-table-subset.c (etss_set_value_at): Another fix for trying to
return something instead of void.
2001-04-29 Christopher James Lahey <clahey@ximian.com>
* e-table.c: Added a read only argument "model" to ETable.
2001-04-28 Jason Leach <jasonleach@usa.net>
(Make the alternating row colors a option in ETableSpecification
instead of a compiled in #define)
* e-table-specification.c (e_table_specification_load_from_node):
Read in the "alternating-row-colors=bool" option for
ETableSpecifications. Default value is true so unless it is
specified to be false, row colors will alternate.
(e_table_specification_save_to_node): Save the alternating row
color options here.
* e-table.c (et_build_groups): Pass down the alternating row
colors through to the ETableGroup.
* e-table-group-container.[ch]: Handle the new alternating row colors
option here, passing it to ETableItem.
* e-table-group-leaf.[ch]: Here too.
* e-table-item.c (eti_get_cell_background_color): Got rid of the
#define ALTERNATE_COLORS, replaced with truth check for
ETableItem::alternating_row_colors.
* e-tree.c: Make ETree recognize alternating row color options as
well.
2001-04-25 Jason Leach <jasonleach@usa.net>
* e-table-group-leaf.c (etgl_set_arg): One-line fix (missing a
'break' at the end of the ARG_SELECTION_MODEL case).
2001-04-25 Christopher James Lahey <clahey@ximian.com>
* e-table.c (e_table_get_cell_geometry): Add the header height to
the returned y location here so that things will be lined up
correctly.
2001-04-25 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c (e_tree_table_adapter_row_of_node): Made
this return -1 instead of -2 for not found if the root is not
visible.
* e-tree-selection-model.c (etsm_row_foreach_cb): Made this accept
any negative number as not found instead of just -1.
2001-04-23 Dan Winship <danw@ximian.com>
* Makefile.am (INCLUDES): remove UNICODE_CFLAGS
* e-cell-text.c: Remove <unicode.h> include, use gunicode functions
2001-04-23 Christopher James Lahey <clahey@ximian.com>
* e-table.c (e_table_get_cell_geometry): Documented this function
properly.
* e-tree.c, e-tree.h (e_tree_get_cell_geometry): Added this
function.
2001-04-23 Christopher James Lahey <clahey@ximian.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group-.h: Added get_cell_geometry method.
* e-table-item.c, e-table-item.h: Added
e_table_item_get_cell_geometry.
* e-table.c, e-table.h: Added e_table_get_cell_geometry.
2001-04-23 Christopher James Lahey <clahey@ximian.com>
* e-cell-date.c (ecd_get_text): Made it so that if a message is
from the last 8 hours, it only prints the time, not the date.
2001-04-23 Christopher James Lahey <clahey@ximian.com>
* e-table-header-utils.c (e_table_header_draw_button): Make pixbuf
columns show their title if there is space.
2001-04-19 Christopher James Lahey <clahey@ximian.com>
* e-table-header.c (eth_calc_widths): Submit a signal even if
there are no extras.
* e-table-item.c (eti_request_column_width): Don't compute widths
if our cells aren't realized yet.
* e-tree.c: Call e_table_header_update_horizontal whenever our
data changes.
2001-04-19 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c: Turned off information expanders (tooltips) in
ETable by default. Turn them back on with the environment
variable GAL_DO_TOOLTIPS.
2001-04-18 Dan Winship <danw@ximian.com>
* e-table.c (et_destroy): Free some things that weren't getting
freed.
* e-tree.c (et_destroy): Free some things that weren't getting
freed.
(e_tree_set_state_object): Don't ref the return value of
e_table_state_to_header.
2001-04-16 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c: Turned on tooltips and alternating colors.
2001-04-16 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c (tooltip_event): Propagate the event after sending
it to the table item.
2001-04-16 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (ets_sort_idle): Fix a crash here.
2001-04-15 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c (ect_show_tooltip): Set the background color to
the specified tooltip->background. Set the foreground color to
the specified tooltip->foreground.
* e-table-item.c (eti_get_cell_background_color,
eti_get_cell_foreground_color): Added these functions.
(eti_draw, _do_tooltip): Use these new functions.
* e-table-tooltip.h: Added foreground and background colors to
this structure.
* e-tree.c, e-tree.h (e_tree_get_tooltip): Added this function.
2001-04-15 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c: Added /* #defines */ at the top. Fixed
ALTERNATE_COLORS to be an #ifdef instead of an #if.
* e-cell-text.c (ect_show_tooltip): Set "strikeout" argument on
created tooltip.
2001-04-15 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c (tooltip_event): Use e_canvas_hide_tooltip and
e_canvas_popup_tooltip.
* e-table-item.c: Cleaned this up. Removed some #if 0 and
replaced others with #ifdefs.
* e-table-tooltip.h: Removed some unnecessary fields.
2001-04-15 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c (ect_show_tooltip): Set "bold" argument on created
tooltip. Adjusted position of displayed tooltip.
* e-cell-tree.c (offset_of_node): Changed it so that this function
handles knowing whether on not to indent non expandable first
level nodes. This makes things more consistent.
* e-table-item.c (eti_realize): Cleaned up the ETableItem code to
properly hide tooltips when going off the screen.
* e-table-tooltip.h: Added a visibility_count field to ETableTooltip.
2001-04-14 Christopher James Lahey <clahey@ximian.com>
* e-table-hsv-utils.c, e-table-hsv-utils.h: Moved these to
gal/widgets/e-hsv-utils.c and gal/widgets/e-hsv-utils.h.
* e-table-item.c: #if 0ed out alternating colors until we come to
a consensus.
2001-04-13 Mikael Hallendal <micke@codefactory.se>
* e-cell-float.[ch]: New cell for floats.
* e-cell-spin-button.[ch]: New cell for spin-button.
* Makefile.am:
- Added e-cell-spin-button.[ch]
- Added e-cell-float.[ch]
2001-04-13 Dan Winship <danw@ximian.com>
* e-table-header.c (eth_destroy): Fix memory leak
2001-04-12 Seth Nickell <snickell@stanford.edu>
* e-table-hsv-utils.c, e-table-hsv-utils.h: (tweak_hsv),
(hsv_to_rgb), (rgb_to_hsv): Some utility functions for dealing
with and modifying HSV values.
* Makefile.am: Add e-table-hsv-utils.[c|h] to the build.
* e-table-item.c: (eti_draw): Enable alternating colours in
e-table cells.
2001-04-12 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_cursor_change): Only move the screen to show
the cursor if there are no changes pending. Updated the commented
out code for alternating colors a bit.
* e-table-model.c, e-table-model.h: Added
e_table_model_has_change_pending.
* e-tree-memory-callbacks.c, e-tree-memory-callbacks.h: Added
has_get_node_by_id and get_node_by_id.
* e-tree-model.c, e-tree-model.h: Added
e_tree_model_has_get_node_by_id and e_tree_model_get_node_by_id.
Added e_tree_model_has_change_pending.
* e-tree-selection-model.c: Handle the selection and cursor
properly across the tree changing.
* e-tree-sorted.c: Implemented has_get_node_by_id and
get_node_by_id, and has_changes_pending.
* e-tree-table-adapter.c: Implemented has_changes_pending. Fixed
an array underflow.
2001-04-11 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (item_key_press): Return TRUE for left and right
arrows.
2001-04-10 Gediminas Paulauskas <menesis@delfi.lt>
* e-table.c (et_real_construct): convert click_to_add_message locale->utf8.
2001-04-10 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c: Put debugging stuff in d().
2001-04-10 Christopher James Lahey <clahey@ximian.com>
* e-table.c: #include "gal/widgets/e-unicode.h".
2001-04-09 Christopher James Lahey <clahey@ximian.com>
* e-table-col.c, e-table-col.h, e-table-header-item.c,
e-table-header.c, e-table-item.c: Changed resizeable to resizable
in ETableCol for consistency.
* e-tree-selection-model.c (etsm_row_of_node): Return -1 here if
the path isn't found.
(etsm_sorted_node_changed): If cursor_row is -1, make cursor_col
-1 as well.
2001-04-07 Dan Winship <danw@ximian.com>
* e-cell-tree.c (ect_event): add "break;" to otherwise-empty
"default:" cases to make them ANSI.
2001-04-04 Kjartan Maraas <kmaraas@gnome.org>
* e-cell-date.c: Fix headers.
* e-cell-number.c: Ditto.
* e-cell-pixbuf.[ch]: Ditto.
* e-cell-size.c: Ditto.
* e-cell-text.c: Ditto.
* e-cell-tree.c: Ditto.
* e-table-click-to-add.[ch]: Ditto.
* e-table-column-specification.h: Ditto.
* e-table-config-field.c: Ditto.
* e-table-config.[ch]: Ditto.
* e-table-example-2.c: Ditto.
* e-table-field-chooser-dialog.[ch]: Ditto.
* e-table-field-chooser-item.c: Ditto.
* e-table-field-chooser.h: Ditto.
* e-table-group-container.c: Ditto.
* e-table-item.c: Ditto
* e-table-memory.c: Ditto.
* e-table-selection-model.c: Ditto.
* e-table-sorter.c: Ditto.
* e-table-subset-variable.c: Ditto.
* e-table.c: Ditto.
* e-tree-memory.c: Ditto.
* e-tree-model.c: Ditto.
* e-tree-selection-model.[ch]: Ditto.
* e-tree-sorted-variable.c: Ditto.
* e-tree-sorted.c: Ditto.
* e-tree-table-adapter.c: Ditto.
* e-tree.[ch]: Same here.
2001-04-04 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (e_tree_selection_model_change_cursor):
Call cursor_activated as well.
2001-04-04 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c, e-table-item.c, e-table-memory.c,
e-table-sort-info.c, e-table-specification.c, e-tree-sorted.c:
Fixed headers.
* e-table-config.c, e-table-specification.c: Replaced strcasecmp
with g_strcasecmp.
2001-04-04 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c: Made this work properly for models
with 0 rows in the tree table adapter.
2001-04-04 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c, e-tree-selection-model.h
(e_tree_selection_model_change_cursor): Added this function.
* e-tree.c (e_tree_set_cursor): Screwed up moving the cursor a
small bit when I changed this to be faster before. Fixed it.
2001-04-04 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c: Make it so you can switch checking around the
last access on and off for tuning purposes.
* e-tree-table-adapter.c: Apparently, ETreeTableAdapter is much
faster if the value_at function doesn't change the last_access
variable.
2001-04-04 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c, e-tree-selection-model.h: Added
e_tree_selection_model_select_single_path and made selection_start
be the path as it should be instead of the row.
* e-tree-sorted.c: Added a last_access variable to speed up
access.
* e-tree-table-adapter.c: Made checking last_access look at the 10
values before and after the listed value to look for the value
requested.
* e-tree.c: Call e_tree_selection_model_select_single_path if
E_TREE_USE_TREE_SELECTION.
2001-04-04 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_row_foreach_cb): Fixed this to
not call the callback with a row of -1.
2001-04-04 Christopher James Lahey <clahey@ximian.com>
* e-tree.h (E_TREE_USE_TREE_SELECTION): Turn on
E_TREE_USE_TREE_SELECTION.
2001-04-03 Richard Hult <rhult@codefactory.se>
* e-tree-table-adapter.c (etta_proxy_node_inserted): Fixed an off
by one error.
2001-04-03 Richard Hult <rhult@codefactory.se>
* e-tree.c (et_get_arg): Add argument to get the table adapter.
(et_set_arg): Add arguments for setting drawing of the grid and
focus.
* e-tree-model.c, e-tree-model.h (e_tree_model_node_traverse):
Fill in missing implementation.
(e_tree_model_node_traverse_preorder): Likewise, but preorder
traversal.
2001-04-03 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c (ethi_draw): Don't draw the button if it's
less than 1 pixel wide.
* e-tree-table-adapter.c (etta_proxy_node_inserted): Fixed a small
array overrun (wasn't causing problems, but it's best to be
correct.)
2001-04-02 Federico Mena Quintero <federico@ximian.com>
* e-table-click-to-add.c (finish_editing): Ahem, the ETableItem
argument is now "selection_model", not "table_selection_model".
2001-04-02 Gediminas Paulauskas <menesis@delfi.lt>
* e-table-config.glade, e-table-field-chooser.glade,
e-table-group.glade: Do not generate glade.h.
* e-table-field-chooser.glade.h, e-table-group.glade.h: removed.
* Makefile.am: updated.
2001-04-02 Federico Mena Quintero <federico@ximian.com>
* e-cell-popup.c (ecp_unrealize): Typo fix; call
e_cell_unrealize(), not e_cell_realize().
* e-cell-text.c (ect_event): Removed fallback "else", from "if
(edit_display)"since our planned return value is already zero and
we do need to unbuild_current_cell() instead of returning
immediately.
* e-table-state.c (etst_destroy): Free the expansions field.
* e-table.c (e_table_set_state_object): Do not ref the header
since we just created it!
2001-04-01 Gediminas Paulauskas <menesis@delfi.lt>
* e-table-config.c, e-table-field-chooser.c: replaced
glade_xml_new with glade_xml_new_with_domain.
2001-04-01 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c: Monitor the sorted model and send
selection and cursor changed signals.
2001-04-01 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_foreach_all_recurse,
etsm_foreach_recurse, e_tree_selection_model_foreach): Made this
traverse the source model instead of the sorted model since the
selection model is in the order of the source model.
2001-04-01 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c: Fixed some bugs with the privitization
of ETreeSelectionModel.
* e-tree.c: One more required change to make it work with
E_TREE_USE_TREE_SELECTION on.
2001-04-01 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (libetable_la_SOURCES): Added
e-tree-selection-model.c.
(libetableinclude_HEADERS): Added e-tree-selection-model.h.
* e-tree.c, e-tree.h: Added code to use ETreeSelectionModel if the
string E_TREE_USE_TREE_SELECTION is defined.
2001-03-31 Tambet Ingo <tambet@ximian.com>
* e-table-scrolled.c (e_table_scrolled_new_from_spec_file): Fixed
little bug, add adjustments.
2001-03-31 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (e_tree_init): Initialize all necessary fields here.
2001-03-31 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (et_real_construct): Roll back another part of the
change.
2001-03-31 Christopher James Lahey <clahey@ximian.com>
* e-tree.c, e-tree.h: Accidently committed this with using the
tree selection model turned on. Rolled back this change.
2001-03-31 Christopher James Lahey <clahey@ximian.com>
* e-tree-scrolled.c: Include <gal/util/e-util.h> here.
* e-tree-selection-model.c, e-tree-selection-model.h: Privatized
this class. Cleaned this up a bit. Added handlers for signals
from the model.
* e-tree.c, e-tree.h: Privatized this class.
2001-03-31 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (ets_proxy_node_inserted): Set orig_position
properly on inserted nodes.
2001-03-31 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_foreach_all_recurse): Made
e_tree_selection_model_foreach work.
(etsm_select_all): Made etsm_select_all work.
(update_parents): Fixed a crash.
2001-03-31 Christopher James Lahey <clahey@ximian.com>
* Makefile.am: Removed a bunch of unused comments.
2001-03-31 Christopher James Lahey <clahey@ximian.com>
* e-table-example-1.c: Removed this since it's out of date.
Replaced by tests/test-table-1.c.
2001-03-31 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c, e-tree-selection-model.h: New
implementation based on a tree instead of a hash table.
* e-tree-sorted.c, e-tree-sorted.h: Added
e_tree_sorted_num_children.
2001-03-30 Radek Doulik <rodo@ximian.com>
* e-tree.h: removed #include
<gal/e-table/e-tree-selection-model.h>
2001-03-30 Christopher James Lahey <clahey@ximian.com>
* e-table-group.c, e-table-header-item.c, e-table-item.c,
e-table.c, e-tree.c: Made these use GTK_TYPE_GDK_EVENT whenever
sending an event through the signal system instead of
GTK_TYPE_POINTER.
* e-table.c, e-tree.c (set_header_canvas_width): Check that none
of the variables we're going to need are NULL before executing
this function.
2001-03-30 Christopher James Lahey <clahey@ximian.com>
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c,
e-table-item.h, e-table.c, e-tree.c: Changed the signal
"table_selection_model" to just be "selection_model" everywhere
and made it be ESelectionModels instead of ETableSelectionModels
for generality.
* e-table-item.c (eti_event): Make right arrow and left arrow
accessible as events that can be caught.
* e-tree-sorted.c, e-tree-sorted.h (e_tree_sorted_orig_position):
Added this function.
2001-03-30 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c (etta_proxy_node_removed): Fixed removing
the last child of a node.
2001-03-29 Christopher James Lahey <clahey@ximian.com>
* e-table.c, e-tree.c, e-tree.h: Updated to set the width of the
header canvas to be equal to the width of the table canvas to
avoid infinite loops. Added left arrow and right arrow as tree
collapse and expand bindings.
2001-03-27 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c, e-tree-selection-model.h: New class
implementing a tree model. Not finished yet or in use, but I
wanted to get it checked in.
2001-03-26 Christopher James Lahey <clahey@ximian.com>
* e-tree-memory.c, e-tree-table-adapter.c: Updated these to match
the new e_tree_model_node_removed signal.
* e-tree-model.c, e-tree-model.h: Added an old_position parameter
to the node_removed signal so that it would be completely
deterministic.
* e-tree-sorted.c: Changed this so that paths keep track of their
original position. This makes sorting much faster.
Sun Mar 25 22:31:19 2001 George Lebl <jirka@5z.com>
* e-tree.c (e_tree_class_init): Fix gtk_signal_new arguments, INT
and POINTER were switched causing my alpha to go nuts.
2001-03-25 Dan Winship <danw@ximian.com>
* e-table.c (et_real_construct): ref the sort_info taken from the
state object.
* e-tree.c (et_real_construct): Ditto. Fixes the last ETree
crash-on-exit bug for me.
2001-03-25 Christopher James Lahey <clahey@ximian.com>
* e-table-selection-model.c, e-table-selection-model.h: Made the
parent object of this be ESelectionModelArray instead of
ESelectionModel due to their refactoring. Changed the commented
out code for saving the selection a bit.
2001-03-25 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (item_key_press): Added '=' and '-' as tree node expand
and collapse.
2001-03-23 Christopher James Lahey <clahey@ximian.com>
* e-table-extras.c: Properly remove old items from the
ETableExtras if they are replaced by new objects.
2001-03-23 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (reposition_path): Made this only up the
insert_count if it actually had to do any non constant work to
reposition the path.
2001-03-23 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_cursor_change, eti_cursor_activated): Ignore
these signals if we aren't realized yet.
2001-03-23 Christopher James Lahey <clahey@ximian.com>
* e-cell-text.c: Made this not create the new font until realize
instead of at new_view time.
* e-table-item.c: Don't request heights or do other things that
you aren't allowed to do before realization unless you're
realized.
2001-03-22 Ettore Perazzoli <ettore@ximian.com>
* e-table-sort-info.c (e_table_sort_info_init): Make the object
not FLOATING.
* e-table-state.c (etst_destroy): Use _unref, not _destroy, to
release the `sort_info'.
2001-03-22 Christopher James Lahey <clahey@ximian.com>
* e-table-memory.c: Fixed the parity on all the g_return_ifs and
g_return_val_ifs.
2001-03-22 Christopher James Lahey <clahey@ximian.com>
* e-table-memory.c, e-table-memory.h (e_table_memory_insert): Made
this able to take -1 to denote appending to the table. Also,
removed the node_ from the name of this function.
(e_table_memory_remove): Removed the node_ from the name of this
function.
(e_table_memory_clear): New function which sets the table to
empty.
2001-03-22 Christopher James Lahey <clahey@ximian.com>
* e-tree-memory.c (sort_callback): Changed this to derefence the
pointers passed in from qsort as we should instead of just casting
them.
(e_tree_memory_sort_node): Set the first_child and last_child of
the node changed.
2001-03-22 Christopher James Lahey <clahey@ximian.com>
* e-tree-memory.c, e-tree-memory.h (e_tree_memory_sort_node): New
function to allow you to do non live sorts with weird rules.
2001-03-22 Christopher James Lahey <clahey@ximian.com>
* e-table-memory.c (e_table_memory_insert): Fixed the
g_return_if_fail here to allow for appending.
2001-03-21 Ettore Perazzoli <ettore@ximian.com>
* e-table-state.c (etst_init): Make the object a non-GTK_FLOATING
object.
2001-03-20 Christopher James Lahey <clahey@ximian.com>
* e-table-memory-callbacks.c, e-table-memory-callbacks.h,
e-table-memory.c, e-table-memory.h: Added these classes.
* Makefile.am: Added e-table-memory-callbacks.c,
e-table-memory-callbacks.h, e-table-memory.c, and
e-table-memory.h.
2001-03-20 Christopher James Lahey <clahey@ximian.com>
* e-table.c: Fixed a typo in the word horiztonal.
2001-03-20 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c: Turn on the vertical grid.
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c,
e-table-item.h: Replaced the "drawgrid" argument with
"horizontal_draw_grid" and "vertical_draw_grid" arguments.
* e-table-specification.c, e-table-specifcation: Replaced the
draw_grid setting with the horizontal_draw_grid and
vertical_draw_grid settings. If the draw-grid property is set in
a ETableSpecification it is still obeyed and overrides the
vertical-draw-grid and horizontal-draw-grid properties.
* e-table.c, e-table.h, e-tree.c, e-tree.h: Deal with the
horizontal_draw_grid and vertical_draw_grid changes.
* e-tree-model.h: Added a missing include.
2001-03-19 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (ets_proxy_node_changed): Deal with
proxy_node_changed being called on a different root node than the
one we have in our tree.
* e-tree-table-adapter.c: Did some general clean up here.
* Merged branch:
2001-03-19 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (find_child_path): Added this function to allow
us to find paths that have been removed from the source.
(ets_proxy_node_removed): Fixed the memmove here a bit. Call
find_child_path.
* e-tree-table-adapter.c (find_node): Check that the passed in
path isn't NULL.
2001-03-19 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_reflow): Get width from header object
instead of calculating it ourselves.
* e-table-selection-model.c: Turn off selection saving since it's
so slow.
* e-table.c (e_table_set_state_object): Set the width of the newly
created header object.
* e-tree.c (e_tree_set_state_object): Set the width of the newly
created header object.
(tree_canvas_size_allocate): Don't bother setting the dimensions
of the white background twice.
2001-03-18 Miguel de Icaza <miguel@ximian.com>
* e-table-config.c (sort_entry_changed): Use
update_sort_and_group_config dialog instead of the non-implemented
update_group_config_dialog.
(update_sort_and_group_config_dialog): Update the text correctly.
(sort_entry_changed): Handle empty string as not-in-set.
(group_entry_changed): Handle empty string as not-in-set.
(config_class_init): Fix the signal declaration for "changed",
this was sending the wrong information.
(update_sort_and_group_config_dialog): Use group_info here, not sort_info
* e-table-header-item.c (ethi_popup_customize_view): Changed to
use the "changed" signal in the ETableConfig instead of
promiscously using the "apply" from the PropertyBox
* e-table-config.glade: Set Hide On Close to yes for the Group-By
dialog.
The groups for Radio Buttons in the Glade file are global, which
caused all sorts of strange behaviour and really hard to debug
problems. This should be now fixed
2001-03-18 Christopher James Lahey <clahey@ximian.com>
* e-table-selection-model.c, e-table-selection-model.h: Made
ETableSelectionModel save the cursor properly across changed
signals if has_save_id is true.
2001-03-18 Christopher James Lahey <clahey@ximian.com>
* e-table-selection-model.c, e-table-selection-model.h: Made
ETableSelectionModel save selection properly across changed
signals if has_save_id is true.
* e-tree-memory.c: A couple of typos.
2001-03-18 Christopher James Lahey <clahey@ximian.com>
* e-tree-memory.c, e-tree-sorted.c: Send pre_changes properly.
2001-03-18 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c: Send pre_changes when performing
set_expanded or root_node_set_visible.
2001-03-18 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (ets_is_expandable): When the API requests
whether the object is expandable and it isn't, make sure to send a
signal when it becomes expandable.
* e-tree-table-adapter.c: Made it so that in a number of cases
where it doesn't need to create an empty hash table node if the
current tree node has no children, it doesn't.
2001-03-18 Christopher James Lahey <clahey@ximian.com>
* e-tree-memory-callbacks.c, e-tree-memory-callbacks.h
(etmc_has_save_id, etmc_get_save_id): Added has_save_id and
get_save_id to the list of methods supported by
e_tree_memory_callbacks.
* e-tree-table-adapter.c, e-tree-table-adapter.h: Added saving of
expanded nodes.
2001-03-18 Christopher James Lahey <clahey@ximian.com>
* e-table-model.c, e-table-model.h (e_table_model_get_save_id):
Changed row_save_id to get_save_id to be consistent with ETree.
* e-tree-model.c, e-tree-model.h: Added "pre_change" signal.
Added has_save_id and get_save_id methods.
* e-tree-sorted.c: Proxy pre_change signal. Implemented
has_save_id and get_save_id. If the base model doesn't provide
has_save_id then we g_strdup_printf the pointer of the base model
ETreePath as the save_id.
* e-tree-table-adapter.c: Proxy pre_change signal. If base model
has_save_id, then use the results of get_save_id as the key for
the hash table of node attributes. Otherwise use the pointer as
before.
2001-03-17 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (ets_sort_idle): Fixed it so that all nodes get
sorted properly instead of just the top node.
2001-03-17 Christopher James Lahey <clahey@ximian.com>
* e-table-sorting-utils.c (e_table_sorting_utils_tree_sort): Made
tree sorting faster by using a cache.
* e-tree-sorted.c: Added commented out debugging g_prints.
2001-03-17 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c: Switched to using GMemChunks.
2001-03-17 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (resort_node): Made it so that children of a
node that's being sorted don't send changed signals.
2001-03-17 Christopher James Lahey <clahey@ximian.com>
* e-table-sorting-utils.c, e-table-sorting-utils.h: Switched to
using e_sort and e_search instead of qsort and a linear search.
Added the tree functions e_table_sorting_utils_tree_sort,
e_table_sorting_utils_tree_check_position, and
e_table_sorting_utils_tree_insert.
* e-tree-sorted.c: Made this actually do sorting.
* e-tree-table-adapter.c (etta_proxy_node_changed): The old_size
needs to be the number of visible children + 1 to include the top
node.
* e-tree.c (e_tree_set_state_object): Set the sort_info on the
ETreeSorted when you get a new sort_info.
2001-03-16 Kjartan Maraas <kmaraas@gnome.org>
* e-cell-combo.c: Added #include <string.h> for strcmp().
* e-table-header-utils.c: Same for strlen().
2001-03-16 Christopher James Lahey <clahey@ximian.com>
* Makefile.am: Added e-tree-sorted.c and e-tree-sorted.h.
* e-table-item.c (eti_realize_cell_views): Only realize the cells
if they're not realized already and if the canvas is realized.
* e-table-sorted.c (ets_proxy_model_cell_changed): Matched the
change to the signature of e_table_sorting_utils_affects_sort.
* e-table-sorting-utils.c, e-table-sorting-utils.h
(e_table_sorting_utils_affects_sort): Changed the signature of
this function to not take the ETableModel source since it doesn't
use it and we need to use this function for ETreeSorted which
doesn't have an ETableModel.
* e-tree-memory.c (etmm_get_expanded_default): Actually implement
the get_expanded_default for this tree.
* e-tree-model.h: Cleaned up the indentation here.
* e-tree-sorted.c, e-tree-sorted.h: New class meant to be used for
sorting trees. It doesn't actually sort yet. It simply acts as
an ETreeProxy which is the hardest part of making ETreeSorted.
* e-tree.c, e-tree.h: Made this use an ETreeSorted.
2001-03-15 Miguel de Icaza <miguel@ximian.com>
* e-table-state.c (etst_destroy): Release ->sort_info.
2001-03-15 Dan Winship <danw@ximian.com>
* e-table-item.c (eti_event): Update arguments to
e_canvas_item_grab_focus.
(eti_cursor_change): Ditto, but pass FALSE! Fixes the problem of
the Evolution message list stealing your focus when new mail
arrives. Ha!
2001-03-14 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c, e-table-item.h, e-table-selection-model.c,
e-table-selection-model.h, e-table-sorted.c, e-table-sorted.h,
e-table-subset.c, e-table-subset.h, e-table.c, e-table.h: Switch
to handling e_table_model_rows_inserted instead of
e_table_model_row_inserted and e_table_model_rows_deleted instead
of e_table_model_row_deleted.
* e-table-model.c, e-table-model.h: Replaced the signals
"model_row_inserted" and "model_row_deleted" with
"model_rows_inserted" and "model_rows_deleted" so that when
multiple rows are inserted or deleted at the same time they can be
handled properly.
* e-tree-table-adapter.c: Call "model_rows_inserted" and
"model_rows_deleted" instead of "model_changed" when inserting or
deleting multiple rows.
2001-03-14 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (e_table_item_row_diff): Made this not count the
pixel between rows if it isn't there.
2001-03-14 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_header_structure_changed): Properly attach &
realize cell views here.
2001-03-13 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c (etta_proxy_node_removed): Check that
parent_node and parent aren't NULL before making function calls on
them.
2001-03-13 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (confirm_height_cache): Fixed a height cache
miscalculation.
* e-tree-table-adapter.c (find_first_child_node): Made the
semantics of this mean that find_first_child_node(adapter, -1)
means return the first node in the tree.
2001-03-13 Christopher James Lahey <clahey@ximian.com>
* e-table-extras.c: Added a "string-integer" comparison function
to the default %ETableExtras so you can do comparisons based on
integer value even if you using strings for the data (this lets
you do editable numbers, for instance.)
* e-table-item.c: Rearranged it a bit so that if you have
draw_grid off it doesn't add space for the horizontal lines, nor
leave them the background color.
* e-table-model.c, e-table-model.h: Added the row_save_id and
has_save_id methods to %ETableModel.
* e-tree.c, e-tree.h: Replaced e_tree_compute_location with
e_tree_get_cell_at.
2001-03-08 Christopher James Lahey <clahey@ximian.com>
* Makefile.am: Added e-table/e-table-utils.c,
e-table/e-tree-memory-callbacks.c, e-table/e-tree-memory.c,
e-table/e-tree-scrolled.c, e-table/e-tree-table-adapter.c, and
e-table/e-tree.c. Removed e-table/e-tree-simple.c. Added
e-table/e-table-utils.h, e-table/e-tree-memory-callbacks.h,
e-table/e-tree-memory.h, e-table/e-tree-scrolled.h,
e-table/e-tree-table-adapter.h, and e-table/e-tree.h. Removed
e-table/e-tree-simple.h.
* e-cell-tree.c: Updated this for the new tree.
* e-table-item.c: Added some redraw requests where appropriate.
* e-table-item.h: Fixed an incorrect class method declaration.
* e-table-model.c, e-table-model.h: Removed
e_table_model_has_sort_group and e_table_model_row_sort_group.
* e-table-scrolled.h: Removed unused headers.
* e-table-simple.c, e-table-simple.h: Rearranged this a bit.
* e-table-sorter.c, e-table-sorting-utils.c,
e-table-sorting-utils.h: Removed sort group stuff. Added the
function e_table_sorting_utils_check_position.
* e-table-utils.c, e-table-utils.h: Utility functions for ETable
and ETree.
* e-table.c: Moved some of the functionality from here to
e-table-utils.c so that it can be reused by ETree.
* e-tree-memory-callbacks.c, e-tree-memory-callbacks.h: Class to
implement an ETreeMemory as callbacks instead of overriding the
class.
* e-tree-memory.c, e-tree-memory.h: ETreeModel that stores a tree
of physical nodes.
* e-tree-model.c, e-tree-model.h: Removed most of the
functionality from here to the classes ETreeMemory and
ETreeTableAdapter. This is now just a simple virtualized tree
class.
* e-tree-scrolled.c, e-tree-scrolled.h: New class. An ETree in an
EScrollFrame.
* e-tree-simple.c: Small change. This is no longer used.
* e-tree-table-adapter.c, e-tree-table-adapter.h: ETableModel that
represents an ETreeModel as a table.
* e-tree.c, e-tree.h: New super class kind of like ETable but for
trees.
End of branch
2001-03-07 Ettore Perazzoli <ettore@ximian.com>
* e-table.c (e_table_compute_location): Removed.
(e_table_get_cell_at): New, public function exporting the same
functionality.
(et_drag_motion): Use `e_table_get_cell_at()' instead of
`e_table_compute_location()'.
(et_drag_drop): Likewise.
(et_drag_data_received): Likewise.
(e_table_drag_source_event_cb): Likewise.
2001-03-04 Damon Chaplin <damon@ximian.com>
* e-cell-text.c: added "editable" Arg, to stop the user from editing
the text. The user can still select the text, though. The "editable"
Arg is useful for ECellCombo where we want the user to select an item
in the popup but not edit the field itself.
* e-cell-combo.c: updated to select the matcing item before it pops up
the list.
2001-03-01 Vladimir Vukicevic <vladimir@ximian.com>
* e-cell-pixbuf.c, e-cell-pixbuf.h, Makefile.am,
Makefile.am, e-table-extras.c: Added new ECellPixbuf --
takes a GdkPixbuf from the model and renders it centered
in the table cell.
2001-02-27 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c, e-table-group-container.c,
e-table-group-container.h, e-table-group-leaf.c,
e-table-group-leaf.h, e-table-item.c, e-table-item.h,
e-table-specification.c, e-table-specification.h, e-table.c,
e-table.h: Changed a lot of the ETableSelectionModels to
ESelectionModels, a lot of the ETableSorters to ESorters, all the
ETableCursorModes to ECursorModes, and all of the
ETableForeachFuncs into EForeachFuncs.
* e-table-defines.h: Moved ETableForeachFunc and ETableCursorMode
to e-selection-model.h.
* e-table-selection-model.c, e-table-selection-model.h: Made this
a subclass of ESelectionModel which simple connects to an
ETableModel.
* e-table-sorter.c, e-table-sorter.h: Made this a subclass of
ESorter so that implements the same semantics it used to.
2001-03-01 Christopher James Lahey <clahey@ximian.com>
* e-cell-pixbuf.c: Fixed some warnings.
* e-table-subset.c, e-table-subset.h: Added
e_table_subset_print_debugging.
2001-02-27 Christopher James Lahey <clahey@ximian.com>
* e-table-sorted-variable.c: Moved etsv_compare to etsu_compare in
e-table-sorting-utils.c. Moved most of the contents of etsv_add
to e_table_sorting_utils_insert in e-table-sorting-utils.c and
call the function.
* e-table-sorted.c: Rewrote ets_proxy_row_changed,
ets_proxy_row_inserted, and ets_proxy_row_deleted.
* e-table-sorting-utils.c, e-table-sorting-utils.h (etsu_compare,
e_table_sorting_utils_insert): Added e_table_sorting_utils_insert.
* e-table-subset-variable.c: Changed this implementation to be
slightly more consistent with other code.
2001-02-26 Ettore Perazzoli <ettore@ximian.com>
* e-table.c (et_disconnect_model): Only disconnect if the model is
non-zero, and only if the IDs are actually non-zero.
2001-02-25 Damon Chaplin <damon@ximian.com>
* e-cell-popup.c: new abstract ECell subclass to be used as base class
for popup ECells.
* e-cell-combo.c: subclass of ECellPopup which pops up a simple list
of strings.
* e-table-item.c: Renamed eti_row_diff() to e_table_item_row_diff() and
made public, since the ECellPopup subclasses need it.
* Makefile.am: added e-cell-popup.[hc] and e-cell-combo.[hc]
2001-02-23 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (libetable_la_SOURCES): Added
e-table-sorting-utils.c.
(libetableinclude_HEADERS): Added e-table-sorting-utils.h.
* e-table-group-container.c: Implemented add_array method. Use
add_array to implement add_all instead of using add. Did some
general clean up.
* e-table-group-leaf.c, e-table-group-leaf.h: Implemented
add_array method. Changed everything to use an ETableSubset
variable instead of an ETableSortedVariable. Implemented it as
ETableSortedVariable if there's grouping involved and ETableSorted
if there isn't.
* e-table-group.c, e-table-group.h: Added add_array method. Added
unused get_position code.
* e-table-sorted-variable.c, e-table-sorted-variable.h: Moved a
lot of the actual implementation of sorting to
e-table-sorting-utils.c. Got rid of the signal handlers here
since we weren't using them and ETableSubset has the proxy virtual
methods.
* e-table-sorted.c, e-table-sorted.h: Completely replaced these
files with a variation on ETableSortedVariable that doesn't have
the add methods and such but instead just mimics the source
model's set of rows completely.
* e-table-sorter.c, e-table-sorter.h: Added functions to get at
the arrays here.
* e-table-sorting-utils.c, e-table-sorting-utils.h: Utility
functions for doing sorting.
* e-table-subset-variable.c, e-table-subset-variable.h: Added
add_array method.
* e-table-subset.c, e-table-subset.h: Made it so that the signal
hookups to the source model's signals are virtual methods.
* e-table.c, e-table.h: Don't call add_all and add and remove type
functions if not grouped. Don't rebuild for sort changes unless
it was either grouped before or will be grouped now.
2001-02-22 Christopher James Lahey <clahey@ximian.com>
* e-tree-model.c: Added a bunch of g_return_if_fails.
2001-02-20 Christopher James Lahey <clahey@ximian.com>
* e-cell.c (e_cell_draw): Added some g_return_if_fails here.
2001-02-20 Chris Toshok <toshok@ximian.com>
* e-tree-model.c: add some more (mostly empty) api docs.
(e_tree_model_node_changed): pass the node in the "node_changed"
signal.
(etree_destroy): e_tree_model_node_remove our root node here to
free up the tree's storage.
2001-02-19 Christopher James Lahey <clahey@ximian.com>
* Makefile.am: Removed e-table-text-model.c and
e-table-text-model.h.
* e-table-text-model.c, e-table-text-model.h: Moved these to
gal/e-text/.
* e-cell-text.c: Changed the include line for
e-text-event-processor.h and e-text-event-processor-emacs-like.h.
2001-02-17 Rusty Conover <rconover@zootweb.com>
* e-cell-tree.c (ect_max_width): Change the calculation of the
maximum with of tree cell, from O(n^2) to O(n), we don't need to
continually recalculate the maximum width of the subcells when
calculating the width of every row.
2001-02-17 Christopher James Lahey <clahey@ximian.com>
* e-table.c (et_real_construct): Removed setting of invalid
"horizontal_scrolling" argument.
* e-table-column-model.h: Removed this as it is not used.
2001-02-17 Christopher James Lahey <clahey@ximian.com>
From a patch submitted by Murray Cumming <Murray.Cumming@mybau.com>
* e-cell-checkbox.h, e-cell-date.h, e-cell-number.h,
e-cell-size.h, e-cell-text.h, e-cell-toggle.h, e-cell-tree.h,
e-cell.h, e-table-click-to-add.h, e-table-col-dnd.h,
e-table-col.h, e-table-column-specification.h,
e-table-config-field.h, e-table-config.h, e-table-defines.h,
e-table-extras.h, e-table-field-chooser-item.h,
e-table-group-container.h, e-table-group-leaf.h, e-table-group.h,
e-table-header-item.h, e-table-header-utils.h, e-table-header.h,
e-table-item.h, e-table-model.h, e-table-one.h,
e-table-selection-model.h, e-table-simple.h, e-table-sort-info.h,
e-table-sorted-variable.h, e-table-sorted.h, e-table-sorter.h,
e-table-specification.h, e-table-state.h,
e-table-subset-variable.h, e-table-subset.h, e-table-tooltip.h,
e-table-tree.h, e-tree-model.h, e-tree-simple.h,
e-tree-sorted-variable.h: Added GNOME_DECLS.
2001-02-15 Christopher James Lahey <clahey@ximian.com>
* e-table-selection-model.c
(e_table_selection_model_do_something): Made it so that if you set
the row or col to something not equal to -1, it makes sure that
the other one is also not equal to -1.
2001-02-13 Christopher James Lahey <clahey@ximian.com>
* e-table-header.c, e-table-header.h
(e_table_header_update_horizontal): This new function updates the
minimum width of all of the columns based on the data contained in
that column.
* e-table.c, e-table.h (changed_idle): Added a
horizontal_scrolling field. Call e_table_header_update_horizontal
if the model changes at all and horizontal_scrolling is set to TRUE.
2001-02-13 Christopher James Lahey <clahey@ximian.com>
* e-table-scrolled.c (e_table_scrolled_real_construct): Set policy
of scrolled window to be automatic/automatic.
* e-table-specification.c, e-table-specification.h (etsp_init):
Added a horizontal-scrolling attribute.
2001-02-13 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_destroy): Fix the crash when ETableItems are
destroyed.
2001-02-11 Christopher James Lahey <clahey@ximian.com>
* e-table-selection-model.c (change_one_row): Fix selection so
that changing a model row equal to 31 mod 32 works.
2001-02-11 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_cursor_change): Let
e_canvas_item_show_area_delayed deal with a delayed area show
instead of dealing with it ourselves.
2001-02-08 Dan Winship <danw@ximian.com>
* e-table-sorter.c (ets_set_arg): Add a missing gtk_object_ref.
2001-02-08 Christopher James Lahey <clahey@ximian.com>
* e-cell-number.c (ecn_get_text): Use e_format_number.
2001-02-08 Christopher James Lahey <clahey@ximian.com>
* e-table.c (e_table_setup_header): Set the dnd_code on the header
properly.
2001-02-08 Christopher James Lahey <clahey@ximian.com>
* e-tree-model.c, e-tree-model.h (e_tree_model_show_node): Added
this function. Made frozen an int so that recursive freezes and
thaws behaves properly.
2001-02-06 Christopher James Lahey <clahey@ximian.com>
* e-cell-date.c (ecd_get_text): Change encoding from locale
encoding to utf8.
2001-02-05 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Changed the text to pop up the Field
Chooser.
2001-02-05 Christopher James Lahey <clahey@helixcode.com>
* e-table-config.c, e-table-config.h (dialog_apply): Added a
"changed" signal.
* e-table-sort-info.c, e-table-sort-info.h
(e_table_sort_info_duplicate): Added this function.
* e-table.c (e_table_set_state_object): Duplicate the state's
sort_info object here.
2001-02-04 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (view_to_model_col): Make this not error out if
ecol is not found, but simply return -1.
(eti_event): Don't call view_to_model_col here as we already have
a model column.
2001-02-02 Not Zed <NotZed@Ximian.com>
* e-table-selection-model.c (model_row_deleted): Dont overwrite
the end of our bitmap array.
2001-02-03 Ettore Perazzoli <ettore@ximian.com>
* e-table-sorter.c: Make `vals_closure', `cols_closure',
`ascending_closure' and `compare_closure' static!
2001-02-02 Not Zed <NotZed@Ximian.com>
* e-cell-tree.c (ect_draw): If we are drawing a top-level tree
node, without any children then dont offset it for the expansion
image it doesn't need.
2001-01-31 Larry Ewing <lewing@ximian.com>
* e-table-item.c (view_to_model_col): make the segfault caused by
double clicking into a critical warning until it can be fixed.
2001-01-30 Christopher James Lahey <clahey@helixcode.com>
* e-table-click-to-add.c (etcta_event): Made the contained
%ETableItem have cursor_mode as %E_TABLE_CURSOR_SPREADSHEET.
* e-table-defines.h, e-table-item.c, e-table-specification.c:
Added a new cursor mode E_TABLE_CURSOR_SPREADSHEET. This is
accessed using cursor_mode="spreadsheet" in your specification
xml, as well as by the click_to_add item. It is identical to
E_TABLE_CURSOR_SIMPLE, except that tab goes to the next item in
the table instead of to the next widget.
2001-01-30 Christopher James Lahey <clahey@helixcode.com>
* e-table-click-to-add.c (etcta_event): Made carriage return
finish editing.
* e-table-item.c (eti_event): Made carriage return key press
signal go out before sending it to the selection model.
2001-01-29 Christopher James Lahey <clahey@ximian.com>
* Makefile.am: Added e-cell-number.c and e-cell-number.h.
* e-cell-number.c, e-cell-number.h: A new cell for rendering
numbers.
* e-table-extras.c (ete_init): Added a default number cell. Made
the default size cell right aligned.
2001-01-28 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c, e-table-item.h: Made the scrolling to show the
current roll happen in a time out.
2001-01-27 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_event): Make home and end keys move to the
beginning and end of the row if cursor mode is set to
E_TABLE_CURSOR_SIMPLE. Otherwise have %ETableSelectionModel
handle them.
* e-table-selection-model.c, e-table-selection-model.h: Added a
"cursor_mode" argument.
(e_table_selection_model_key_press): Made home and end keys move
the beginning and end of the table if cursor_mode is
E_TABLE_CURSOR_MODE_LINE.
* e-table.c: Set the cursor-mode argument of our
%ETableSelectionModel.
2001-01-27 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_event): Make ETable stop editing when it
looses focus.
* e-table.c (et_canvas_button_press): Make ETable stop editing if
you click on an unhandled area of the table canvas (The white area
at the bottom for instance.)
2001-01-25 Federico Mena Quintero <federico@ximian.com>
* e-table.c (e_table_init): Set the GTK_CAN_FOCUS flag on the
widget, since an ETable ought to be focusable.
(e_table_class_init): Override ::grab_focus() and ::focus().
(et_grab_focus): Since people may do gtk_widget_grab_focus() on
the ETable, we have to proxy the request to the actual focusable
canvas.
(e_table_setup_header): Unset GTK_CAN_FOCUS for the header canvas.
(et_focus): Reject focus if our child canvas already had it.
* e-table-scrolled.c (e_table_scrolled_init): Set the
GTK_FOCUS_FLAG on the widget. This is just so that people can
easily do gtk_widget_grab_focus (my_e_table_scrolled) on their own
applications.
(e_table_scrolled_class_init): Override ::grab_focus() and
::focus().
(ets_grab_focus): Proxy the grab_focus to our child ETable.
(ets_focus): Proxy the request to the child ETable.
2001-01-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c (move_selection): Made this correctly
check for going off the end of the table.
2001-01-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h:
Documented. Added a "cursor_activated" signal. Removed some
unused functions (e_table_group_get_count and
e_table_group_get_ecol).
* e-table-selection-model.c, e-table-selection-model.h: Added a
"cursor_activated" signal. Call it when the user changes the
selection to match the cursor.
* e-table.c, e-table.h: Added a "cursor_activated" signal. Fixed
the e_table_compute_location function to take into account the
scrolled position.
2001-01-21 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Made the cursor move when rows are
inserted or deleted. If in single mode and the selected row gets
removed, move it up.
2001-01-21 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c (ethi_header_context_menu): Made this
conform to the new prototype for e_popup_menu_run.
* e-table-item.c, e-table-item.h: Documented.
(e_table_item_is_row_selected): Removed this function.
(eti_draw): Changed this so that if the ETableItem is in
cursor-mode="row", the cursor is draw all the way across the row.
(eti_cursor_move_up, eti_cursor_move_down): Commented these out
since they're no longer used.
(_do_tooltip, eti_event): Commented out tooltips.
(eti_event): Made it so that we call the key_press function in the
%ETableSelectionModel on each key press.
* e-table-selection-model.c, e-table-selection-model.h:
Documented. Added a function e_table_selection_model_key_press
that does whatever behavior is correct for the user having pressed
the given key. Changed the behavior of this to better match
windows (use selection-mode="browse").
* e-table-specification.c, e-table-specification.h: Added a
draw_focus variable.
* e-table.c: Decide whether to draw the focus based on the
ETableSpecification. Removed the argument for setting whether to
draw the focus.
2001-01-20 Iain Holmes <iain@ximian.com>
* e-cell-text.c (ect_show_tooltip): Unref some stuff if we're not
showing the tip. Fix a bigish memory leak.
2001-01-19 Miguel de Icaza <miguel@gnu.org>
* e-table-config.c (group_entry_changed, group_ascending_toggled):
New methods.
(configure_group_dialog): New function, sets up the group GUI.
(e_table_config_construct): Populate column names here and use in
configure_group_dialog and configure_sort_dialog
(sort_entry_changed, sort_ascending_toggled): renamed from
entry_changed, ascending_toggled.
2001-01-18 Miguel de Icaza <miguel@gnu.org>
* e-table-config.c (configure_sort_dialog): Keep track of the
valid column names (not used right now).
(config_destroy): release column names
(entry_changed): Handle invalid input to mean "Next entry is
grayed out".
* e-table-header-item.c (ethi_popup_customize_view): Hook up to
the "apply" signal on the dialog box to apply the changes.
(apply_changes): New function to apply the changes from the
ETableConfig object.
* e-table-sort-info.c (e_table_sort_info_load_from_node): Notify
of sort info changes.
* e-table-header-item.c: Swapped the way arrows were done, so that
they actually match the sorting that its expected.
* e-table.c: Added inline documentation for a few methods.
* e-table-config.h: Dropped ::spec, and temp_spec, we always use
::source_spec, as we never modify this variable.
2001-01-18 Federico Mena Quintero <federico@ximian.com>
* e-table-subset.c (etss_destroy): Disconnect from the
etss->source's signals *before* we unref it.
* e-table-group-container.c (e_table_group_apply_to_leafs): Ref()
and unref() around the callback to protect ourselves from being
unrefed in the middle of iterating through the nodes.
2001-01-18 Miguel de Icaza <miguel@gnu.org>
* e-table-config.c (find_model_column_by_name): New function.
(update_sort_config_dialog): Massive update to this function, it
is almost complete now, it just needs a few cosmetic touchups.
(config_sort_config_show): Get the main interaction working as
well.
(config_group_info_update): Beautify.
(entry_changed): Do all the magic for the GUI for entries.
(ascending_toggled): Implement callback.
(configure_sort_dialog): Do also descending.
(configure_sort_dialog): Hook up changed/toggled.
* e-table-config.h: Put all the configuration stuff for sorting
into its own structure to pass around funny functions.
2001-01-17 Miguel de Icaza <miguel@gnu.org>
* e-table-specification.c (e_table_specification_duplicate):
Remove annoying printf. A clean output is a good output.
2001-01-17 Dave Camp <dave@ximian.com>
* e-table-config.c: Removed #inclusion of e-table-config-field.h.
2001-01-17 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c: Use e-i18n.h here.
* e-table.c (et_col_spec_to_col): Use gettext here.
(et_real_construct): Use gettext too.
(et_col_spec_to_col): Use gettext here.
* e-cell-date.c: Use e-i18n.h here.
* e-table-config.c (config_sort_info_update): Simplify column
grabbing code and drop item layout code.
(config_group_info_update): ditto.
* e-table-config.c: Get correct translation setup working.
2001-01-16 Miguel de Icaza <miguel@gnu.org>
* e-table-config.c (configure_sort_dialog): Load frames.
* Kill e-table-config-field.c
* e-table-specification.c (e_table_specification_save_to_file):
Specify version to xmlNewDoc.
* e-table-state.c (e_table_state_save_to_string): Specify version
to xmlNewDoc.
* e-table-config.c (config_destroy): Destroy the copies. Unref
the originals.
(e_table_config_construct): Duplicate values of configuration
here.
(configure_sort_dialog): New function that populates the sort gtk
combo boxes.
* e-table.c (et_col_spec_to_col): Fixup use of title here. Do the
actual translation here.
* e-table-column-specification.c: Remove title_, it is now called
title. Translation needs to take place elsewhere, not here
* e-table-specification.c (e_table_specification_duplicate): Add
preconditions here.
(e_table_specification_save_to_node): ditto.
(e_table_specification_save_to_string): ditto.
(e_table_specification_save_to_file): ditto.
* e-table-state.c (e_table_state_duplicate): Implement.
* e-table-config.glade (dialog_sort): Change drop down menus to
use GtkComboText widgets.
* e-table-config.c (configure_dialog): New function, used to set
up dialogs.
2001-01-16 Christopher James Lahey <clahey@helixcode.com>
* e-table-config.c: Added a bit of documentation.
(config_sort_config_show, config_group_config_show):
gnome_dialog_set_parent on the config->dialog_toplevel instead of
the config.
* e-table-specification: Pass "1.0" instead of NULL to xmlNewDoc
here.
* e-table-state.c, e-table-state.h: Pass "1.0" instead of NULL to
xmlNewDoc here. Make sure that sort_info is never NULL if this
object exists. Added ETableStateDuplicate.
2001-01-15 Miguel de Icaza <miguel@ximian.com>
* e-table-config.c (config_fields_info_update): Make output
pretier by using newlines when there is a lot of information to
display.
(config_group_info_update): ditto.
(config_sort_info_update): ditto.
(config_group_info_update): Simplify
signature.
(config_sort_info_update): Simplify signature.
(config_fields_info_update): Implement.
(e_table_config_construct): Hook up field change spec.
* e-table-header-item.c (config_destroyed): Add new utility
function.
* e-table-config.c (config_group_info_update): Simpify routine by
using g_string. Show a message if there is no grouping.
* e-table-config.c: Made e-table-config dialog be a
GnomePropertyBox.
* e-table-header-item.c (ethi_popup_customize_view): Use the new
api.
* e-table-config.c (config_sort_info_update): Simplify this
routine. Fix bug that was not showing "unsorted" state.
(setup_gui): Load XML user interface here.
(config_init): Use Glade instead of manually coded user interface.
(e_table_config_raise): New api call.
2001-01-15 Miguel de Icaza <miguel@gnu.org>
* e-table-specification.c: Document all entry points.
(e_table_specification_save_to_file): Change prototype to return
the number of bytes written.
(e_table_specification_duplicate):
Implement a function to duplicate nodes.
(e_table_specification_save_to_node): Implement missing function.
(e_table_specification_save_to_file): Enable.
(e_table_specification_save_to_string): Enable.
(e_table_specification_load_from_node): Just load the normal
version of the click-to-add-message version, let other code
translate it.
(e_table_specification_load_from_string): Alter prototype to
return success code.
* e-table-specification.h: Do not store the translated version,
store the plain version, so we can restore this later during the
saving routines.
* e-table.c (et_real_construct): Translate click to add message here.
* e-table-header-item.c: Destroy config object if we are
destroyed.
2001-01-15 Christopher James Lahey <clahey@ximian.com>
* Makefile.am: Added e-cell-date.c, e-cell-date.h, e-cell-size.c,
and e-cell-size.h.
* e-cell-date.c, e-cell-date.h: New cell to implement displaying a
date.
* e-cell-size.c, e-cell-size.h: New cell to implement displaying a
file size.
* e-cell-text.c, e-cell-text.h: Got rid of the filter arguments.
Replaced them with the ability to subclass ECellText and override
the get_text method. Added free_text to override if your get_text
implementation returns allocated memory.
* e-table-extras.c (ete_init): Added "size" and "date" cells to
the default ETableExtras.
2001-01-14 Miguel de Icaza <miguel@ximian.com>
* e-table-config.h: Change parent to be a GtkObject from
GnomeDialog.
2001-01-12 Miguel de Icaza <miguel@ximian.com>
* e-cell-text.c (key_begins_editing): New function. Tells whether
a key should begin editing.
(ect_event, GDK_KEY_PRESS/RELEASE): check whether we should start
editing.
(e_cell_text_set_filter): Implement new function
API. Remove Gtk arguments for this.
(ect_height): Pass all the extra information Dan requested.
(ect_print): Pass all the extra information Dan requested.
(build_current_cell): ditto.
* e-table-header-item.c (ethi_change_sort_state): Moved the
sort-on-click logic to its own function.
* e-table-sort-info.c (e_table_sort_info_freeze): Increment frozen
rather than setting to 1.
(e_table_sort_info_thaw): Decrement frozen instead of setting to 0
to allow recursive freezing.
(e_table_sort_info_freeze): Add inline docs.
(e_table_sort_info_thaw): Add inline docs.
2001-01-12 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.h, e-cell-text.h: Changed the filter function back
to being args to be more consistent with the rest of the object.
2001-01-11 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c, e-table-selection-model.h: Added
selection_mode argument.
* e-table-specification.c, e-table-specification.h: Added a
selection_mode field that is set based on the selection-mode
attribute in the ETableSpecification element.
* e-table.c (et_real_construct): Set the selection model's
selection mode based on the ETableSpecification.
2001-01-10 Christopher James Lahey <clahey@helixcode.com>
* e-table-click-to-add.c: Made this the same size as an ETableItem
with all text items. Made the background color white. These need
to be made themeable.
2001-01-10 Christopher James Lahey <clahey@helixcode.com>
* e-table-state.c, e-table-state.h: Added expansions field and
loading and saving of that field.
* e-table.c: Load and save expansion data.
2001-01-10 Christopher James Lahey <clahey@helixcode.com>
* e-tree-sorted-variable.c, e-tree-sorted-variable.h: Unfinished
sorted variable model for ETree.
2001-01-06 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorter.c, e-table-sorter.h (ets_sort): Fixed sorting.
needs_sorting was getting set to 0 when sorted happens, but
needs_sorting tells you whether or not the sorter is sorted or
not, not whether the sorting has happened. Documented the
needs_sorting variable.
2000-12-27 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c (ect_draw, ect_event): Removed a bunch of unused
code.
2000-12-25 Miguel de Icaza <miguel@helixcode.com>
* e-cell-text.c (ect_show_tooltip): Set draw_background to FALSE.
* e-table-group-container.c (etgc_add): ditto.
* e-table-click-to-add.c (etcta_realize): ditto.
(e_table_click_to_add_commit): ditto.
2000-12-24 Chris Toshok <toshok@helixcode.com>
* e-cell-tree.c: add api docs.
* e-tree-simple.c: add api docs.
2000-12-23 Christopher James Lahey <clahey@helixcode.com>
* e-table-col.c, e-table-col.h (etc_destroy): Destroy text and
pixbuf if they exist whether or not is_pixbuf is set.
(e_table_col_new_with_pixbuf): Make new_with_pixbuf take a title
argument which is for when you can't display pixmaps.
* e-table-column-specification.c
(e_table_column_specification_load_from_node): Don't translate the
pixbuf string attribute.
* e-table-sort-info.c, e-table-sort-info.h
(e_table_sort_info_load_from_node): Added a state_version
parameter to the load_from_node function. This lets the loader
specify which version of ETableState is being processed. If it's
less than .05, use the old nested version. If it's greater, use
the new flat version.
(e_table_sort_info_save_to_node): Changed this to store a list of
group and leaf nodes instead of nesting the group nodes and leaf
nodes one inside the other. This is much easier to understand and
requires less typing when creating a new ETableSpecification's
initial ETableState.
* e-table-state.c: Changed the state-version parameter to 0.1.
(e_table_state_load_from_node): Use
e_xml_get_double_prop_by_name_with_default so that we can specify
a state-version default of 0.1 for people writing ETableStates by
hand. Pass the state-version to e_table_sort_info_load_from_node.
* e-table.c (et_col_spec_to_col): Pass the title from the
ETableColumnSpecification to the ETableCol even if it's a pixbuf
column.
2000-12-19 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c (etgc_add): Set the minimum width of
newly created children.
(e_table_group_container_construct): Use function
e_table_header_get_column_by_col_idx instead of
e_table_header_get_column since we're passing in a col_idx.
* e-table-header.c, e-table-header.h: New function
e_table_header_get_column_by_col_idx which searches for a column
in the ETableHeader with a certain model column (col_idx).
* e-table-sorted-variable.c (etsv_compare),
(etsv_sort), e-table-sorter.c (ets_sort): Use function
e_table_header_get_column_by_col_idx instead of
e_table_header_get_column since we're passing in a col_idx.
2000-12-14 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h: Removed the set cursor and get
cursor methods from ETableGroup.
* e-table.c (e_table_get_cursor_row, e_table_set_cursor_row):
Changed this to use the ETableSelection directly instead of going
through the grouping structure. This seems to fix a bug in
evolution's folder list for some people.
2000-12-14 Chris Toshok <toshok@helixcode.com>
* e-cell-text.c (ect_show_tooltip): call set_style and use the
appropriate style for the text to determine if the tooltip should
be shown.
2000-12-14 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_realize): Commented out an unused variable
to fix a warning.
2000-12-13 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_realize): Added eti_visibility_notify.
Didn't get it to work properly, so it's #if 0ed out.
2000-12-13 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c (ect_show_tooltip): Changed the background color
of the tooltips to light gray.
* e-table-item.c (eti_event): Changed the tooltip timeout to 100
milliseconds.
2000-12-13 Chris Toshok <toshok@helixcode.com>
* e-cell-tree.c (ect_show_tooltip): remove the silly logic - we
pop up a tooltip regardless of where the mouse cursor hovers.
just make sure it appears in the right place.
(ect_event): reverse the change we make to the event after passing
it to our subcell. this fixes the problem of the tree reacting
twice to events (once with flags == 0, and once with flags ==
E_CELL_EDITING).
* e-table-item.c (eti_event): destroy the tooltip window on a
motion event. this can (and does) happen when we get a tooltip on
a tree cell and the cursor isn't over the area where the tooltip
pops up.
2000-12-13 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-utils.c, e-table-header-utils.h
(e_table_header_width_extras): New function to calculate the extra
pixels per column header.
* e-table-header.c, e-table-header.h: Added a "width_extras"
argument which is used to calculate the correct minimum widths for
each column header after adding padding.
* e-table-item.c (_do_tooltip): Destroy the old tooltip window
when creating the new one.
(eti_event): Destroy the old tooltip window if the person presses
a key. Don't handle the tab key.
* e-table.c (et_state_to_header): Set the ETableHeader's
width_extras argument.
2000-12-13 Chris Toshok <toshok@helixcode.com>
* e-cell-tree.c (ect_event): only return TRUE in the BUTTON_PRESS
case if the node was expandable.
2000-12-13 Chris Toshok <toshok@helixcode.com>
* e-table-sorter.c (qsort_callback_complex),
(ets_sort_build_subset), (ets_sort_subset),
(ets_sort_free_subset), (sort_groups_compare),
(ets_sort_by_group): cut&paste from e-table-sorted-variable.c and
massage names a bit to make sort group sorting work.
(ets_sort): if the ETableModel has sort groups, sort using the
sort group.
2000-12-11 Dan Winship <danw@helixcode.com>
* e-table-item.c (eti_event): Emit double_click signal with the
model column, not the view column.
2000-12-11 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c (ect_draw): Made selected rows ignore their color
specification.
2000-12-09 Federico Mena Quintero <federico@helixcode.com>
* e-table-sorted.c (e_table_sorted_new): Unref the object instead
of destroying it.
* e-table-sorted-variable.c (e_table_sorted_variable_new): Likewise.
* e-table-subset.c (e_table_subset_new): Likewise.
* e-table-subset-variable.c (e_table_subset_variable_new): Likewise.
2000-12-09 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c (_blink_scroll_timeout): Split the lines in this
cell before testing whether we're to the right of the right edge
of the text data (since that test uses the split lines.)
2000-12-09 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c (_blink_scroll_timeout): cell should be edit cast
to a CurrentCell, not data cast to a CurrentCell. Fixed this.
2000-12-09 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Added the actions parameter to ect_event. Added
an actions field to CellEdit. Handle CellEdit properly in the
ect_event function to do grabbing and ungrabbing when
appropriate. Set the actions field in CellEdit when appropriate
in e_cell_text_view_command.
* e-cell-toggle.c, e-cell-tree.c, e-cell.c, e-cell.h: Added a
ECellActions enum, a ECellActions actions parameter to
e_cell_event and added the actions parameter to all the handlers
of the event method including having ECellTree pass it on to its
child cell.
* e-table-header-item.c: Use the NULL cursor instead of the
E_CURSORS_ARROW cursor.
* e-table-item.c, e-table-item.h: Added grabbed_row and
grabbed_col fields to ETableItem (-1 on either means ungrabbed.)
Pay attention to them in the find_cell function. Handle the
actions parameter of e_cell_event and grab or ungrab the pointer
to a given cell if requested. This is done using the new function
eti_e_cell_event (which is internal to e-table-item.c,) instead of
the old e_cell_event function call. Fake an ungrabbed table when
calling find_cell from within the compute_location method.
2000-12-08 Miguel de Icaza <miguel@helixcode.com>
* e-table-col.h: Arranged to get it to work with gtk-doc.
* e-cell.h: Arranged to get it to work with gtk-doc.
* doc: Added gtk-doc framework
2000-12-08 JP Rosevear <jpr@helixcode.com>
* e-table-state.c (etst_destroy): If there are columns allocated,
free them upon a destroy.
2000-12-07 Federico Mena Quintero <federico@helixcode.com>
* e-table-state.c (e_table_state_save_to_string): Free the xmlDoc
when we are done with it.
(e_table_state_save_to_file): Ditto.
* e-table.c (e_table_get_state): Unref the state object; why was
it being sunk instead?
(e_table_save_state): Ditto.
(e_table_load_state): Ditto.
(e_table_set_state): Ditto.
* e-table-header-item.c (ethi_destroy): Free the ethi->dnd_code.
2000-12-07 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-item.c, e-table.c,
e-table.h: Add column and GdkEvent * parameters to the double
click signal.
* e-table-header-item: Unref the ETableFullHeader when we're done
with it.
* e-table-scrolled.c, e-table-scrolled.h: Remove all of the
proxies and add a function e_table_scrolled_get_table and a gtk
argument "table".
2000-12-07 Chris Toshok <toshok@helixcode.com>
* e-table.c (e_table_set_state_object): set "sort_info" on our
sorter when we get a new sort_info to keep things in sync.
* e-table-sorter.c (ets_set_arg): new function, allowing the
setting of "sort_info".
(ets_get_arg): new function, allowing the getting of "sort_info".
(ets_class_init): fill in GtkObject::set_arg and get_arg.
(ets_sort): set ets->needs_sorting to 0 so we don't sort
unnecessarily.
(e_table_sorter_model_to_sorted): we may have ets->backsorted (and
should use it if we do) even if we didn't need to sort.
(e_table_sorter_sorted_to_model): same, except ets->sorted.
2000-12-06 Dan Winship <danw@helixcode.com>
* e-table.c (e_table_set_state_object): disconnect the
"group_info_changed" signal on the old sort_info and connect it to
the new one. (Noticed because of a gtk warning in et_destroy, but
probably fixes some actual bug(s) too.)
2000-12-06 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-toggle.c, e-cell-tree.c: Adapted these to
accept the new flags parameter to e_cell_event.
* e-cell.c, e-cell.h: Added a flags parameter to e_cell_event.
* e-table-item.c: Send all e_cell_event calls a E_CELL_EDITABLE
flag. Add a new e_cell_event to the button press event that
happens before selecting the appropriate row and which does not
have the E_CELL_EDITABLE flag set.
2000-12-06 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-utils.c: Fixed warning in compute_elision_length.
* e-table-header.c, e-table-header.h: Removed
e_table_header_selection_ok method here.
2000-12-06 Chris Toshok <toshok@helixcode.com>
* e-table-item.c (_do_tooltip): pass along the column's width to
e_cell_show_tooltip.
* e-cell-text.c (ect_show_tooltip): add col_width argument, and
set cell.width = col_width - 8 (to mimic what happens in
build_current_cell, but with a possibly altered width).
* e-cell.c (e_cell_show_tooltip): add col_width argument, and pass
along to virtual function.
(ec_show_tooltip): add col_width argument.
* e-cell.h: change prototype of e_cell_show_tooltip to include a
width parameter.
* e-cell-tree.c (ect_show_tooltip): send the width - the subcell's
offset to e_cell_show_tooltip.
2000-12-05 JP Rosevear <jpr@helixcode.com>
* e-tree-model.c (e_tree_model_node_remove): Move the correct
offset when memmoving. Patch provided by Richard Hult
<rhult@hem.passagen.se>.
2000-12-04 Chris Toshok <toshok@helixcode.com>
* e-table-selection-model.c (e_table_selection_model_select_all):
need to zero out the bits corresponding to the rows not selected
in the last full 32 bit mask. This fixes a crash in the subscribe
UI (or potentially anywhere that uses
selection_model_select_all/selection_model_foreach.)
2000-12-01 Federico Mena Quintero <federico@helixcode.com>
Federico gets into pixel-perfect neurosis. Xmag is my best friend.
* e-table-item.c (eti_draw): Set the focus_gc stipple origin to
match the upper-left corner of the focus rectangle. This way
focusing will look consistent even among rows/columns with odd
pixel sizes. Also, make the focus rectangle span the whole cell;
there was one blank pixel column to the left of the rectangle.
* e-table-header-utils.c: New file with utilities for drawing
header buttons. This is so that ETableHeaderItem and
ETableFieldChooserItem can share the same code.
(e_table_header_compute_height): New function to compute the
height of a column button.
(make_composite_pixmap): New function to composite a pixbuf
against a solid background and make a pixmap out of the result.
This does some ultra-fancy fading-out of the original pixbuf if
the destination area is smaller than the source.
(compute_elision_length): New function to compute the elision
length in O(n log n) instead of O(n^2), for n = strlen (str).
(e_table_header_draw_button): New function to draw a header
button.
(e_table_draw_elided_string): New function to draw a string elided
to a maximum width.
* e-table-defines.h (HEADER_PADDING): Made the default padding be
1; now a header button's height is
content_height + 2 * (HEADER_PADDING + style->ythickness). This
is the correct way to measure button heights.
* e-table-field-chooser-item.c (etfci_find_button): Use
e_table_header_compute_height().
(etfci_reflow): Likewise.
(etfci_draw): Use e_table_header_draw_button().
(etfci_start_drag): Likewise.
(etfci_draw): Likewise.
(etfci_start_drag): Likewise.
(etfci_button_height): Removed function.
(draw_button): Removed function.
* e-table-header-item.c (draw_button): Removed function.
(e_table_header_item_get_height): Use e_table_header_compute_height().
(ethi_draw): e_table_header_draw_button().
(ethi_start_drag): Likewise.
(make_shaped_window_from_xpm): Fixed misspelling in function name.
(draw_button): Removed function.
* Makefile.am: Added e-table-header-utils.[ch].
2000-11-25 Miguel de Icaza <miguel@helixcode.com>
* e-cell.c: Documented.
2000-11-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-col.c: Removed e_table_col_get_arrow and
e_table_col_set_arrow.
2000-11-24 Miguel de Icaza <miguel@helixcode.com>
* e-cell-toggle.c (etog_queue_redraw): Documented.
* e-cell-text.c: Removed list of unused arguments. Add docs.
* e-cell-checkbox.c (e_cell_checkbox_new): Add docs.
* e-table-simple.c (e_table_simple_new): Add docs.
* e-table-header.c: inline documentation added.
* e-table-col.c Added inline documentation.
* e-table-model.c: Added some inline documentation.
2000-11-21 Federico Mena Quintero <federico@helixcode.com>
* e-cell.c (e_cell_event): Do not ignore the return value from
ECell::event(); return it instead.
* e-cell-tree.c (ect_event): Use the return value from e_cell_event().
* e-table-item.c (eti_event): Likewise.
2000-11-06 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Changed this to match the new EPopupMenu
structre.
2000-11-03 Not Zed <NotZed@HelixCode.com>
* e-tree-model.c (e_tree_model_node_insert): Since we insert at
the parent->child position, we need to account for expanded nodes
above this node to properly calculate the absolute row position of
the node.
(e_tree_model_node_insert): If we're inserting at the end of this
node, then we just use the position directly.
(e_tree_model_node_remove): Completely rewritten. Now we delete
all nodes at once, which should be >> faster, unfortunately still
have to signal each removal, which is >> SLOW :( Its still about
2-3x faster than it was (for 25K nodes).
(child_free): Free all data/subnodes of a given path, no
unlinking.
(e_tree_model_node_remove): If we are removing a lot of nodes
[>1000 or >1/4 total nodes], then use model_changed, rather then
removing each node. Yay. Now its about 500x faster than it was,
for 25K nodes.
(etree_pre_change): Signal handler, so we can find out when we are
in a pre-change state.
(etree_changed): Likewise to find when we have finished.
(e_tree_model_construct): Link to the model*changed signals so we
know when we are in pre/changed state.
(e_tree_model_node_insert): Only perform a row_inserted if not in
pre_change state. Another significant speed improvement (200-500%)
on big trees.
(e_tree_model_node_remove): Do not emit row_deleted (or
model_changed), if we are in the pre_change state.
(add_visible_descendents_to_array): Likewise for row_inserted.
(e_tree_model_node_sort): And here too, for consistency.
2000-11-03 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Turned on proper handling of insert
and delete.
2000-11-02 Christopher James Lahey <clahey@helixcode.com>
* e-table-config.glade, e-table-config.glade.h: Updated these
unused glade files to better match the versions in the code.
* e-table.c, e-table.h: Added e_table_selected_count and
"selection_change" signal.
* e-tree-model.c: Fixed an out of order
2000-10-27 Not Zed <NotZed@HelixCode.com>
* e-tree-model.c (e_tree_model_node_insert): If we are inserting
into the root level, we dont have to search the whole array for a
parent node we'll never find.
2000-10-25 Dan Winship <danw@helixcode.com>
* e-table-scrolled.c: Add "click" to the list of etable signals we
proxy.
2000-10-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Made the column on the right click and click
signals be the model column instead of the view column.
2000-10-25 Chris Toshok <toshok@helixcode.com>
* e-tree-model.c (e_tree_model_node_remove): remove the save_id
here, so we don't save state for nodes that no longer exist.
(etree_destroy): remove the foreach, since all the save_id's
should have been removed by now (don't destroy a tree without
destroying the root node.) also, make sure to call
g_hash_table_destroy.
2000-10-24 Chris Toshok <toshok@helixcode.com>
* e-tree-model.c: make ETreeModel opaque, and switch from using
g_new0 and g_free for ETreePath's to using g_mem_chunk routines.
(e_tree_model_node_remove): free the path's save_id. *
(e_tree_model_set_expanded_default): add method to add default
expanded status for parent nodes.
(etree_set_expanded_recurse): make this more efficient.
e-tree-model.h: make ETreeModel opaque. add prototype for
e_tree_model_set_expanded_default.
2000-10-23 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Destroy the tooltip timeout on object
destruction.
2000-10-22 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Made it so that it doesn't recalculate all the
rows if a row is changed, inserted or deleted.
* e-table-subset.c: Added debugging code (turned off).
2000-10-21 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorted-variable.c: Made it so that rows inserted with
their children nodes already in the tree get placed before their
children nodes instead of after.
2000-10-20 Christopher James Lahey <clahey@helixcode.com>
* e-table.c, e-table.h: Added e_table_set_state_object which loads
the state from the given ETableState object.
2000-10-19 Dan Winship <danw@helixcode.com>
* e-table-sorted-variable.c (etsv_destroy): Remove insert_idle
timeout.
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* e-table-state.c: Switched to saving the version as a double
instead of a string.
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* e-table-field-chooser-item.c, e-table-field-chooser-item.h:
Fixed ETableFieldChooser row heights a bit.
* e-table-header-item.c: Formatting clean up.
* e-table-state.c: Added saving of the version of the ETableState.
This way, if we change the format of an ETableState, we can detect
old version numbers.
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Make text a different color if !(flags &
E_CELL_FOCUSED).
* e-cell.h: Added E_CELL_FOCUSED to flags.
* e-table-item.c: Changed the background color of selected cells
if the widget is focused. Send E_CELL_FOCUSED to flags if the
widget is focused.
* e-table.c: Repaint the window if focus changes.
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* e-table-subset.c, e-table-subset.h: Sped up signal propogation.
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Fixed the color of the background rectangle. Made
the rectangle start at the bottom of the table so that the row
lines are still there.
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Make background color of ETable match the background
color of item rows.
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* e-table-field-chooser-dialog.h: Removed an unnecessary glade
include file.
* e-table-field-chooser.c: Make sure that glade is initialized.
* e-table.c, e-table.h: Added a white background to the ETable.
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Moved the glade file directories.
* e-table-header-item.c: Removed an unused variable.
2000-10-16 Iain Holmes <iain@helixcode.com>
* e-table-header-item.c (e_table_header_item_get_height): New function
that works out the height of the header from the max height of the
buttons.
(ethi_add_table_header): Recalc the height of the header.
(ethi_font_set): Ditto.
(draw_button): Only draw the arrow if there's enough room.
2000-10-16 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Reworked some of the height stuff?
2000-10-15 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Made it so that ETable won't use a state with 0
columns.
2000-10-15 Chris Toshok <toshok@helixcode.com>
* e-tree-model.c (e_tree_model_node_traverse): get the next child
before traversing/calling func.
2000-10-15 Chris Toshok <toshok@helixcode.com>
* e-tree-model.c: get rid of ENode type, as everything in it is
now in ETreePath, and add parent/sibling/child pointers to
ETreePath. everywhere where GNode/ENode were used, we just use
ETreePath now.
(e_tree_path_depth): new function.
(e_tree_path_insert): new function.
(e_tree_path_unlink): new function.
(e_tree_model_node_traverse): new function.
(etree_get_first_child): new virtual function impl.
(etree_get_last_child): same.
(e_tree_model_class_init): fill in function pointers for
get_first_child/get_last_child.
(e_tree_model_node_get_first_child): new function.
(e_tree_model_node_get_last_child): new function.
(e_tree_model_node_depth): g_node_depth -> e_tree_path_depth.
(e_tree_model_node_insert): modify to use ETreePath and new
e_tree_path functions. Prepends and appends are now both constant
time.
(child_remove): modify for e_tree_model_node_traverse.
(e_tree_model_node_remove): same, and use e_tree_path functions.
(e_tree_model_node_insert_before): add a loop here to figure out
the position, since it's the only place we care about the child
position.
(e_tree_model_node_sort): rework to accomodate new e_tree_path
functions, and put the e_tree_model_node_set_expanded calls in a
separate loop after all the children have been added.
* e-tree-model.h: add prototypes and virtual functions for more
tree traversal operations (get_first_child, get_last_child), as
well as a new function to traverse depth first the descendents of
a node (e_tree_model_node_traverse), much like g_node_traverse
(G_IN_ORDER). Also, ETreePath is an opaque type now, and is not a
GNode.
2000-10-13 Ettore Perazzoli <ettore@helixcode.com>
* e-table-state.c (e_table_state_save_to_file): NULL is not a
valid argument to `xmlNewDoc'. Was this code ever tested?
2000-10-13 Christopher James Lahey <clahey@helixcode.com>
* e-table-example-1.c, e-table-example-2.c, e-table-size-test.c,
test-table.c: Fixed these to use the new ascending attribute as a
boolean instead of an int.
* e-table-sort-info.c: Changed the ascending attribute to a
boolean ("true"/"false") instead of an int (1/0).
2000-10-13 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Added e-table-config-field.c and
e-table-config-field.h.
* e-table-column-specification.c: Cleaned this up a bit. Made it
leak less memory.
* e-table-config-field.c, e-table-config-field.h: New files.
This is the configuration widgets for sorting or grouping.
* e-table-config.c, e-table-config.h: Nuked these and replaced
them with a widget that handles all the ETable configuration.
* e-table-config.glade, e-table-config.glade.h: Updated this a bit
to match what's actually being used better. This isn't used in
actual code.
* e-table-header-item.c, e-table-header-item.h: Added a pointer to
the table in the header item structure so that we can launch the
configuration from the header item right click menu. Made the
header item launch the ETable configuration dialog.
* e-table.c, e-table.h: Keep the spec given to us around. Added a
get_state_object function which returns an ETableState *. Set the
"table" argument on the header item.
2000-10-12 Jeffrey Stedfast <fejj@helixcode.com>
* e-table-item.c: when there are 0 columns, don't assert.
2000-10-12 Iain Holmes <iain@helixcode.com>
* e-cell-text.c (ect_new_view): Ref the style font.
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Make saving state work properly.
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
* e-table-specification.c: Fixed the parity on the cursor-mode
check.
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-text.h, e-cell-tree.c, e-cell-tree.h: Got
rid of the model parameter to e_cell_text_new and e_cell_tree_new
as they aren't used.
* e-table-extras.c: Added default "integer" compare and default
"tree-string", "string", and "checkbox" cells.
* e-table.c: Made this use the draw-grid, cursor-mode, and
_click-to-add-message fields from the xml.
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
* spec.xml: Example spec file. Not used. Just an example of what
you can do.
* Makefile.am: Added e-table-column-specification.c,
e-table-column-specification.h, e-table-extras.c,
e-table-extras.h, e-table-specification.c,
e-table-specification.h, e-table-state.c, and e-table-state.h.
Removed some duplicated .h files.
* e-cell-tree.c: Ref, sink, and unref the subcell instead of destroying
it when done.
* e-table-column-specification.c, e-table-column-specification.h:
New class which describes a column without having a table get
instantiated.
* e-table-config.c: Changed get_specification to get_state to get
this to compile.
* e-table-defines.h, e-table-item.h: Moved the definition of
ETableCursorMode from e-table-item.h to e-table-defines.h.
* e-table-extras.c, e-table-extras.h: New class which acts as a
set of 3 hash tables. All from char * and to alternately, ECells,
GCompareFuncs, and GdkPxibufs.
* e-table-scrolled.c, e-table-scrolled.h: Changed this to match
the new ETable function declarations.
* e-table-sort-info.c, e-table-sort-info.h: Added functions for
saving to and loading from xml.
* e-table-specification.c, e-table-specification.h: New class
which describes a table without having to instantiate it.
* e-table-state.c, e-table-state.h: New class which describes the
state of a table without having to instantiate the table.
* e-table.c, e-table.h: Changed this to accept both a state and a
specification instead of just a specification. You then save only
the state. The specification stays exactly the same. Also, you
no longer need to pass in an ETableHeader. Most of the
information contained in the ETableHeader are in the
specification. However you may need to translate some of the
strings in the specification to objects. If you need anything
other than the builtin choices, you need to create an ETableExtras
and pass it in.
* e-tree-model.c: Removed an unused variable.
2000-10-10 Iain Holmes <iain@helixcode.com>
* e-table-header-item.c (draw_button): Only draw the arrow if
there is room for it and the pixbuf.
2000-10-06 Not Zed <NotZed@HelixCode.com>
* e-table-item.c (eti_header_structure_changed): Removed the
assertion that there must be at least 1 column. No way to remove
all columns otherwise (which the header allows).
* e-table.c (et_xml_config_header): Reconfigure header based on
xml nodes for header.
(et_real_set_specification): Just configure the header only, dont
try to recreate everything.
2000-10-05 Zach Frey <zfrey@lanich.com>
* Makefile.am: Fix make distcheck.
2000-10-05 Not Zed <NotZed@HelixCode.com>
* e-table-scrolled.c (e_table_scrolled_set_specification): Set the
spec on a scrolled etable.
(e_table_scrolled_load_specification): Likewise for load.
* e-table.c (et_real_set_specification): Allow you to set the
specification after the widget was created.
(et_real_construct): Changed to use et_real_set_specification to
set the spec.
(e_table_load_specification): New frunction, load the
speficication from a specific file.
(e_table_set_specification): NEw function to set the specification
from a string.
2000-10-04 Not Zed <NotZed@HelixCode.com>
* e-table-sorted-variable.c (etsv_add): Changed to take into
account the sort group, if the table has one.x
(etsv_insert_idle): Clear the insert count if we hit an idle loop.
(etsv_sort_idle): Reset the insert count if we perform a sort.
(etsv_add): If we are adding a lot (>ETSV_INSERT_MAX) items,
without hitting an idle loop, assume we're better off performing a
sort instead. Use another idle handler to reset the count.
2000-10-04 Jeffrey Stedfast <fejj@helixcode.com>
* e-table-selection-model.c
(e_table_selection_model_invert_selection): Emit the
selection/cursor "changed" signals.
(e_table_selection_model_select_all): Same.
2000-10-04 Jeffrey Stedfast <fejj@helixcode.com>
* e-table-selection-model.c (e_table_selection_model_select_all):
Select all elements of the etable.
(e_table_selection_model_invert_selection): Invert the current
selection.
* e-table.c (e_table_select_all): New convenience function to
select all elements in an e-table.
(e_table_invert_selection): New convenience function to invert the
current selection in an e-table.
2000-10-03 Not Zed <NotZed@HelixCode.com>
* e-table-sorted-variable.c (etsv_sort_by_group): Sort based on
the sort_group stuff.
* e-tree-model.c (e_tree_init): Setup the group sort info string.
(etree_destroy): And free it.
(build_sort_group): Build a string for this node.
2000-10-02 Chris Toshok <toshok@helixcode.com>
* e-tree-model.h: change/add prototypes and a typedef for
ETreePathCompareFunc.
* e-tree-model.c (e_tree_model_node_set_compare_function): new
function, used to set the comparison function for sorted nodes.
Eventually sorting entail just calling this function, with the
tree maintaining the sort.
(e_tree_model_node_sort): use a helper function
(e_tree_model_node_compare) to allow the e-tree user's comparison
function to take mode reasonable paramaters. also, fix it so the
previous expanded state is kept with the node. i can't believe i
wrote it the way it originally was. also, don't take the
comparison function here. it's set in
e_tree_model_node_set_compare_function.
2000-10-02 Chris Toshok <toshok@helixcode.com>
* e-tree-model.c (e_tree_model_node_sort): don't screw things up
if we sort a collapsed node.
2000-10-02 Chris Toshok <toshok@helixcode.com>
* tree-unexpanded.xpm: flip black and gray, the way i intended them to be.
* tree-expanded.xpm: same.
2000-10-02 Chris Toshok <toshok@helixcode.com>
* tree-expanded.xpm: reinstate file.
* tree-unexpanded.xpm: same.
* e-tree-example-1.c (main): remove calls to e_cursor_*, and don't
create pixbufs. let's the tree give us the defaults.
* e-tree-model.c (e_tree_model_node_changed): call
e_table_model_row_changed on the node's row (if it's visible).
(e_tree_model_node_inserted): call e_table_model_row_inserted on
the new node's row, if it's visible.
(e_tree_model_node_removed): call e_table_model_row_removed on the
old node's row, if it was visible.
* e-cell-tree.c (e_cell_tree_construct): allow open_pixbuf and
closed_pixbuf to be NULL, and default them to the xpm data in
rtee-{un}expanded.xpm.
(ect_destroy): call gdk_pixbuf_unref on our open/closed pixbufs.
* tree-expanded.xpm, tree-unexpanded.xpm: make the + and - a
little lighter than straight black.
Fri Sep 29 10:05:58 2000 Christopher James Lahey <clahey@helixcode.com>
* e-table.dia: Changed.
Thu Sep 28 20:01:53 2000 Christopher James Lahey <clahey@helixcode.com>
* e-table.dia: New file. Approximate UML description of ETable.
2000-09-29 Not Zed <NotZed@HelixCode.com>
* e-cell-tree.c (e_cell_tree_get_node): Changed to take the source
model, not the tree model. The source model may be a subset, and
it needs to remap the rows for us.
(ect_draw):
(ect_event):
(ect_max_width):
(ect_print): Changed callers.
* e-table-sorted-variable.c (etsv_sort_subset):
(etsv_sort_build_subset):
(etsv_sort_free_subset): Functions to perfom grouping of sorts for
sorts that have row_sort_group returning useful info.
(etsv_sort): Use the complex sort routines if we need to.
* e-table-model.c (e_table_model_row_sort_group): Return a sort-id
for a given row.
(e_table_model_has_sort_group): Return if the sort-id provides any
useful information.
Tue Oct 3 18:28:09 2000 Christopher James Lahey <clahey@helixcode.com>
* e-table-config.glade, e-table-config.glade.h: Put in 3 more
dialog boxes in these files.
2000-09-27 Iain Holmes <iain@helixcode.com>
* e-cell-text.c: Fudge the location of a click in the tooltip, so
that it selects the current cell.
Pass keyboard events to the e-table.
* e-table-item.c: Don't show the tooltip if the cell is being editted.
Also don't destroy the tooltip until the button release event (other
wise the e-table-item starts a select)
2000-09-26 Chris Toshok <toshok@helixcode.com>
* gal/e-table/e-table.c (e_table_setup_table): drag/drop signals need to be
added to the same object that is passed to gtk_drag_begin in
e_table_drag_begin. namely, the ETable.
(et_drag_data_received): fix typo - should emit
TABLE_DRAG_DATA_RECEIVED, not TABLE_DRAG_MOTION.
2000-09-25 Iain Holmes <iain@helixcode.com>
* e-table-header-item.c (draw_button): Calculate the vertical
offset correctly to centre text.
2000-09-25 Iain Holmes <iain@helixcode.com>
* e-table-header-item.c (ethi_popup_best_fit): Fill this out
to call the "request_width" signal and set the new size.
2000-09-25 Chris Toshok <toshok@helixcode.com>
* gal/e-table/e-tree-model.h: add save_state stuff to ETreeModel, and
prototypes for the public methods.
* gal/e-table/e-tree-model.c: add save_id to the ENode.
(expanded_remove_func): new function, iterator to delete the save
id's.
(etree_destroy): iterate over expanded_state.
(etree_set_expanded): if the node has a save id, make sure to
update both the collapsed and expanded counts.
(e_tree_model_node_insert_id): convenience function that inserts a
node and sets its id.
(e_tree_model_node_sort): remove extra spew.
(save_expanded_state_func): new function, iterator for saving
expanded state.
(e_tree_model_save_expanded_state): new function.
(get_string_value): helper function for loading.
(e_tree_model_load_expanded_state): new function.
(e_tree_model_node_set_save_id): sets the save id for a node,
adding it to the hashtable if it's not already there. if the id
was there previously, set the expanded flag of the node
accordingly.
2000-09-24 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am (INCLUDES): Put `$(top_srcdir)' on top so that we
include our own headers before the installed ones. Also add
`$(top_srcdir)/gal'.
2000-09-24 Chris Toshok <toshok@helixcode.com>
* gal/e-table/e-tree-model.c (e_tree_model_node_sort): fix sorting - need to
update the row_array as well as the actual structure of the
GNodes.
2000-09-24 Ariel Rios <ariel@arcavia.com>
* e-tree-model.c: Fix include typo.
2000-09-21 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Typo caused readability problems with ETable.
2000-09-18 Federico Mena Quintero <federico@helixcode.com>
* test-table.c:
* test-cols.c:
* test-check.c:
* table-test.c:
* e-tree-simple.c:
* e-tree-simple.h:
* e-tree-model.c:
* e-tree-model.h:
* e-tree-example-2.c:
* e-tree-example-1.c:
* e-table.c:
* e-table.h:
* e-table-text-model.h:
* e-table-subset.c:
* e-table-subset.h:
* e-table-subset-variable.c:
* e-table-subset-variable.h:
* e-table-sorter.h:
* e-table-sorted.c:
* e-table-sorted.h:
* e-table-sorted-variable.c:
* e-table-sorted-variable.h:
* e-table-sort-info.c:
* e-table-size-test.c:
* e-table-simple.h:
* e-table-selection-model.c:
* e-table-selection-model.h:
* e-table-scrolled.h:
* e-table-one.h:
* e-table-item.c:
* e-table-item.h:
* e-table-header.h:
* e-table-header-item.c:
* e-table-header-item.h:
* e-table-group.c:
* e-table-group.h:
* e-table-group-leaf.c:
* e-table-group-leaf.h:
* e-table-group-container.c:
* e-table-group-container.h:
* e-table-field-chooser.c:
* e-table-field-chooser.c:
* e-table-field-chooser-item.c:
* e-table-field-chooser-item.h:
* e-table-field-chooser-dialog.c:
* e-table-field-chooser-dialog.h:
* e-table-example-2.c:
* e-table-example-1.c:
* e-table-config.c:
* e-table-col.c:
* e-table-col.h:
* e-table-click-to-add.c:
* e-table-click-to-add.h:
* e-cell.c:
* e-cell.h:
* e-cell-tree.c:
* e-cell-tree.h:
* e-cell-toggle.c:
* e-cell-toggle.h:
* e-cell-text.c:
* e-cell-text.h:
* e-cell-checkbox.h: Fix includes.
* Makefile.am (INCLUDES): Fix header paths.
2000-09-17 Iain Holmes <iain@helixcode.com>
* e-table-item.c: Better calculations for tooltip
positionings.
* e-cell-text.c: Same.
* e-cell-tree.c: Same.
2000-09-16 Iain Holmes <iain@helixcode.com>
* e-cell-text.c (ect_show_tooltip): Removed g_print.
2000-09-16 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Added some missing #includes.
* e-cell-tree.c: Removed an unused variable.
* e-table-item.c: Added some missing casts.
2000-09-15 Iain Holmes <iain@helixcode.com>
* e-cell-tree.c (ect_show_tooltip): If the cursor is inside
the subcell, call the show_tooltip on it.
* e-table-header-item.c (draw_button): Draw the arrow first,
then take it's size into account when calculating how to draw
the text. Use ellipsis if the text it too long.
2000-09-15 Iain Holmes <iain@helixcode.com>
* e-table-header-item.c (draw_button): Fix a crash by passing
the canvas widget to gtk_paint_box. Reported by Radek.
2000-09-14 Peter Williams <peter@beta.newton.cx>
* e-cell-text.c (ect_draw): Typo fix.
2000-09-14 Iain Holmes <iain@helixcode.com>
* e-table-header-item.c (set_cursor): The column isn't resizable
if it is the last, or if all other columns after it are not
resizable.
* e-cell-text.c (ect_max_width): Correctly calculate the width
of the line of text. Unbuild the current cell and unref the lines
as well.
(build_current_cell): Initialize cell->style to 0;
2000-09-14 Iain Holmes <iain@helixcode.com>
* e-table-item.c: Start timers for the tooltip to appear, on motion
events.
* e-cell.[ch]: Add a new show_tooltip method.
* e-cell-text.c (ect_show_tooltip): Show the tooltip.
2000-09-11 Iain Holmes <iain@helixcode.com>
* e-table-header-item.c (ethi_maybe_start_drag): Set maybe_drag
to FALSE. Seems to fix a crash for me.
(ethi_event): Handle the double click on the dividers.
* e-table-header.c (e_table_header_class_init): Add a
"request_width" signal.
* e-table-item.c (eti_add_header_model): Connect to the
"request_width" signal.
(eti_request_column_width): Call the e_cell_max_width on the
appropriate column.
* e-cell.c (e_cell_max_width): Call the max_width method.
* e-cell-text.c (ect_max_width): Calculate the max width.
* e-cell-toggle.c (etog_max_width): Calculate the max width.
* e-cell-tree.c (ect_max_width): Same.
2000-09-11 Iain Holmes <iain@helixcode.com>
* e-table-header-item.c (ethi_drag_motion): Check if the
type of the dragged item is a etable header item.
2000-09-11 Iain Holmes <iain@helixcode.com>
* e-table-header-item.c (set_cursor): Check if the column
is resizeable before setting the cursor to E_CURSOR_SIZE_X
2000-09-11 Iain Holmes <iain@helixcode.com>
* e-table-header-item.c: Use the font and button drawing
from the theme.
* e-table.c: Use the height of the font to set the size for
the header_canvas, instead of hard coding it to 16
2000-09-11 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am (tree_example_2_LDADD): Add `$(GNOME_VFS_LIBS)' and
`$(OAF_LIBS)'.
(INCLUDES): Add `$(GNOME_VFS_CFLAGS)' and
`$(GNOME_BONOBO_CFLAGS)'.
2000-09-11 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Made bold text calculate widths properly.
2000-09-11 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Made page up and page down active in the ETable.
2000-09-09 Christopher James Lahey <clahey@helixcode.com>
* e-tree-simple.c: Fixed the ETableModel callbacks.
2000-09-08 Christopher James Lahey <clahey@helixcode.com>
* e-tree-example-1.c: Added base ETableModel functions.
* e-tree-example-2.c: Added base ETableModel functions. Made it
never return NULL as a string, instead return "".
* e-tree-simple.c, e-tree-simple.h: Require base ETableModel
functions.
2000-09-01 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c, e-table.c: Fixed a leak and a double unref.
2000-09-01 Chris Toshok <toshok@helixcode.com>
* e-tree-example-2.c: new test, a home grown 2 hour hack of a file
browser. uses node_collapsed/emitted signals to populate the left
tree.
* Makefile.am: add tree-example-2.c stuff.
* .cvsignore: add tree-example-2
2000-09-01 Chris Toshok <toshok@helixcode.com>
* e-tree-model.h: add signals/prototypes for
e_tree_model_node_collapsed and e_tree_model_node_expanded.
* e-tree-model.c (etree_set_expanded): emit
node_expanded/node_collapsed signals, with node_expanded happening
before the expansion so it can much with the children, and
collapsed being emitted after.
(e_tree_model_row_of_node): remove stupid check, and g_warning.
(e_tree_model_node_collapsed): new function.
(e_tree_model_node_expanded): new function.
2000-08-31 Richard Hult <rhult@codefactory.se>
* e-tree-example-1.c (create_tree): Don't show the root node.
Also quit when the window is closed.
(my_icon_at): Don't use icons here since the cell tree renderer takes
care of the +/- signs itself. This stops the tree example from showing
two sets of expand/unexpand icons at every node.
2000-08-31 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Made the selection work when shift
clicking on the first row of the table.
2000-08-28 Ettore Perazzoli <ettore@helixcode.com>
* e-table.c (et_destroy): Don't try to destroy the `header_canvas'
if NULL.
* e-table-group-leaf.c (etgl_set_cursor_row): If the item is NULL,
don't try to set the cursor row for it.
* e-table.c (set_scroll_adjustments): Don't set the adjustment for
the `header_canvas' unless the `header_canvas' is not NULL.
* e-tree-model.c (e_tree_model_row_of_node): If the node is the
root, just return -1 without emitting a warning.
2000-08-28 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c: Make printing of groups work better
and make them print headers.
* e-table-item.c: Turn off alternating row support.
2000-08-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-col.c, e-table-config.c, e-table-header.c,
e-table-text-model.c: Added some g_return_if_fails and
g_return_val_if_fails.
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Fix an off by one error that was causing crashes.
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Set default values for all of the signal emissions.
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Check for selection->selection being
NULL in e_table_selection_model_selected_count.
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Pay attention to the return value from the click
signal.
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h,
e-table.c, e-table.h: Added a click signal which gets sent if the
user hits the left or middle mouse button on a cell.
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-scrolled.c, e-table-scrolled.h, e-table.c: Added
g_return_if_fails.
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-toggle.c, e-cell-tree.c, e-cell.c,
e-cell.h, e-table-col.c, e-table-col.h, e-table-item.c: Added
infrastructure for setting the justification of columns. Still
need to change the cells to support it and need to add user
interface to change the justification.
2000-08-23 Christopher James Lahey <clahey@helixcode.com>
* e-table-subset-variable.c: Fixed a bug in
e_table_subset_variable_increment that causes problems with
ETree's. Specifically, when you incremented at position x, the
row x didn't get incremented as it should (s/>/>=/.)
2000-08-22 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-toggle.c, e-cell-tree.c, e-table-item.c:
Moved drawing of the cell backgrounds from ECell into ETableItem.
* e-tree-model.c: Include stdlib.c.
2000-08-21 Lauris Kaplinski <lauris@helixcode.com>
* e-cell-text.c: Changed UTF-8 syntax from char based to byte based
2000-08-22 Chris Toshok <toshok@helixcode.com>
* Makefile.am (icons): remove tree-expanded.xpm and
tree-unexpanded.xpm.
* e-tree-example-1.c: use art/tree-expanded.xpm and
art/tree-unexpanded.xpm.
(remove_node): commit the change listed below (08-21).
* tree-expanded.xpm: removed.
* tree-unexpanded.xpm: removed.
2000-08-21 Lauris Kaplinski <lauris@helixcode.com>
* e-cell-text.c (ect_event): Use e_utf8_from_gtk_event_key to translate
GDK_KEY_PRESS event to insertable UTF-8 string
2000-08-21 Chris Toshok <toshok@helixcode.com>
* e-tree-example-1.c (remove_node): we can remove nodes with
children now.
* e-tree-model.h: add prototype for e_tree_model_node_sort.
* e-tree-model.c (etree_set_expanded): if the node is invisible,
just set its expanded flag and return.
(e_tree_model_root_node_set_visible): call set_expanded before we
remove it from the row array or else the aforementioned change
will result in nothing happening.
(e_tree_model_node_insert): use a position of -1 as "append".
(e_tree_model_node_insert): if the model was marked with
root_visible == FALSE, make sure to set it's expanded flag to TRUE
when the root node is inserted.
(e_tree_model_node_sort): new function.
2000-08-21 Chris Toshok <toshok@helixcode.com>
* e-table.c (e_table_drag_source_set): pass table, not site as the
closure for these drag signals, since e_table_drag_source_event_cb
assumes it's the table.
2000-08-20 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c, e-table-selection-model.h: Added
e_table_selection_model_selected_count.
2000-08-19 Lauris Kaplinski <lauris@helixcode.com>
* e-cell-text.c: Use EFont wrapper
Use UTF-8 strings
2000-08-19 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Made background colors alternate.
* e-table-click-to-add.c: Made tabbing off the right edge of the
click to add commit the new values.
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-sorted-variable.c,
e-table-subset-variable.c, e-table-subset-variable.h: Added a
decrement method. Made the add and remove methods not
automatically increment and decrement.
* e-table-item.c: Fixed some view vs model issues for both rows
and columns.
* e-table-model.c: Added debugging code. Removed automatic
signalling of changes by the ETableModel set_value_at function
(the model should send these signals itself.)
* e-table.c: Added increment and decrement calls when a row is
removed or added from the source model.
2000-08-09 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c, e-table-selection-model.c,
e-table-selection-model.h: Make right click select if the current
row is not selected.
2000-08-08 Miguel de Icaza <miguel@helixcode.com>
* e-table-header-item.c: Tag some strings for translation.
2000-08-05 Dan Winship <danw@helixcode.com>
* e-table.c (e_table_get_{next,prev}_row_sorted): fix
2000-08-05 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Added a function to get the next row with sorting
taken into account.
2000-08-05 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorter.c: Made it so that selection ranges work even if
the table is using grouping.
2000-08-05 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am, e-table-selection-model.c,
e-table-selection-model.h, e-table.c, e-table.h: Made selection
ranges work even if the table is sorted.
* e-table-sorter.c, e-table-sorter.h: New files to help with
making selection ranges work even if sorted.
2000-08-05 Christopher James Lahey <clahey@helixcode.com>
* e-table.c, e-table.h: Added functions to convert from view row
to model row or from model row to view row. Also changed
e_table_set_cursor_row and e_table_get_cursor_row to take a model
row as this works better with the rest of the model. Changed the
name of e_table_get_next_row_sorted and
e_table_get_prev_row_sorted. (Dropped the _sorted.)
2000-08-04 Christopher James Lahey <clahey@helixcode.com>
* e-table.c, e-table.h: Built code to have autodrags only work
from within the table and to report the row dragged from
automatically.
2000-08-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h:
Made drag events calculate a row and column and signal that
information.
* e-table-selection-model.c, e-table-selection-model.h: Changed
do_something to take a GdkModifierType.
2000-08-02 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c, e-table-item.h: Add a handler for
"model_pre_change" and properly stop editing.
* e-table-model.c, e-table-model.h: Added a "model_pre_change"
signal that gets sent before any row numbers are changed.
* e-table-sorted-variable.c, e-table-subset-variable.c: Emit
"model_pre_change" signals as appropriate.
* e-table-subset.c, e-table-subset.h: Proxy "model_pre_changed"
signals.
2000-08-02 Christopher James Lahey <clahey@helixcode.com>
* e-table-model.c, e-table-model.h: Changed the API for the
append_row function. Now accepts a model to copy data from
instead of returning a row number and leaving it up to ETableOne
to copy the data in.
* e-table-one.c, e-table-one.h: Adapted to use new append_row API.
* e-table-simple.c, e-table-simple.h, e-table-subset.c: Adapted to
supply new append_row API.
2000-07-31 Christopher James Lahey <clahey@helixcode.com>
* e-table-col.c, e-table-col.h: Added an argument to set a column
so that you can't sort by that column.
* e-table-header-item.c: Obey the sortable column of ETableCol.
2000-07-29 Christopher James Lahey <clahey@helixcode.com>
* e-table-click-to-add.c: Made enter key destroy and recreate the
ETableItem.
* e-table-item.c: Grab focus when person clicks even if cursor
isn't changing.
2000-07-28 Dan Winship <danw@helixcode.com>
* e-table-header.c (eth_destroy): Remove the idle handler before
destroying the data it operates on.
2000-07-27 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Fixed up the table behavior so that it's not
always in an edit mode.
2000-07-27 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Added a comment.
2000-07-27 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Fixed shift click selections.
2000-07-27 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Allocate correctly in the insert and
delete methods.
* e-table-click-to-add.c: Removed the line that was causing this
to do bad things.
2000-07-27 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_cursor_change): Grab focus properly.
* e-table-item.c, e-table-click-to-add.c: Fixed ETableClickToAdd
to handle carriage return. This still doesn't quite work right.
2000-07-27 Christopher James Lahey <clahey@helixcode.com>
* e-table-click-to-add.c: Clear the selection model when
activating.
* e-table-item.c: Fixed a bunch of model column vs. view column
issues.
* e-table-selection-model.c: Set the cursor to -1, -1 and emi a
"cursor_changed" signal.
2000-07-26 Christopher James Lahey <clahey@helixcode.com>
* e-table-click-to-add.c: Fixed a reference.
* e-table-selection-model.c, e-table-selection-model.h: Added a
clear function.
* e-table.c, e-table.h: Made going from click to add to the main
table and back work better.
2000-07-26 Christopher James Lahey <clahey@helixcode.com>
* e-table-click-to-add.c, e-table-click-to-add.h: Added an
ETableSelectionModel so this won't crash.
2000-07-26 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Fixed the model/view row confusion.
* e-table-selection-model.c: Changed one expression to use a
#define properly.
2000-07-26 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h: Added "table_selection_model"
argument. Removed foreach function and selection notification.
* e-table-group.c, e-table-group.h: Removed foreach function and
selection notification.
* e-table-header.c: Fixed header width calculation to include the
last column.
* e-table-item.c, e-table-item.h: Fixed this to use the new
selection model.
* e-table-scrolled.c, e-table-scrolled.h: Removed selection
notification.
* e-table-selection-model.c, e-table-selection-model.h: Finished
notification signals and fixed a bunch of bit manipulations.
Implemented do_something method.
* e-table.c, e-table.h: Create an ETableSelectionModel and use it
properly.
2000-07-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Made foreach call the callback in top
to bottom order.
2000-07-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c, e-table-selection-model.h: Replaced
get_selection_list with foreach.
* e-table.h: Add a ETableSelectionModel.
2000-07-25 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Added e-table-selection-model.c and
e-table-selection-model.h.
* e-table-selection-model.c: Added the get_selection_list and
is_row_selected functions. Removed some unused code.
* e-table-selection-model.h: Removed some unused code.
2000-07-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Added comments to the bit field code.
* e-table-selection-model.h: Made the selection data guint32s.
2000-07-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: More fixes.
2000-07-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Fixed up the bit manipulation a bit
here.
2000-07-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c, e-table-selection-model.h: New files
for doing a selection model. Not finished yet and thus not in
Makefile.am.
* e-table.c, e-table.h: Renamed the new dnd signals so that they
won't conflict with the widget signals.
2000-07-25 Christopher James Lahey <clahey@helixcode.com>
* e-table.c, e-table.h: Implemented some of the drag & drop code.
Drops all report as being on row 0, col 0. Also, automatic drags
don't set the row and column being dragged from.
2000-07-23 Damon Chaplin <damon@helixcode.com>
* e-cell-text.c: added a color_column where the color can be specified
as a string, e.g. "red" or "rgb:F/0/0".
* e-cell-text.c (ect_leave_edit): don't call unbuild_current_cell()
since the CellEdit struct has been freed in ect_stop_editing() and so
has the text.
* e-cell-text.c (unbuild_current_cell): set cell->text to NULL to make
sure we don't try to free it again.
2000-07-21 Christopher James Lahey <clahey@helixcode.com>
* e-table.h: Added some unused declarations for drag and drop
work.
2000-07-18 Miguel de Icaza <miguel@helixcode.com>
* e-tree-model.c (etree_destroy): Call our parent's destroy
method.
2000-08-09 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Changed e_popup_menu_run call to match
the new arguments.
2000-07-14 Michael Meeks <michael@helixcode.com>
* e-table-subset.c (etss_destroy): g_free things we g_malloc.
2000-07-13 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Changed the background color of the
header.
2000-07-12 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Made scroll wheel work properly in
header.
2000-07-10 Ettore Perazzoli <ettore@helixcode.com>
* e-table.c (set_scroll_adjustments): Be safe if @vadjustment is
NULL.
* e-table-scrolled.c (e_table_scrolled_init): Set policy and
shadow type.
(e_table_scrolled_real_construct): Don't set the adjustments.
(e_table_scrolled_new): Create the widget with `gtk_widget_new()'
and pass hadjustment/vadjustment NULL values so that we get the
`GTK_OBJECT_CONSTRUCTED' approval.
2000-07-10 Ettore Perazzoli <ettore@helixcode.com>
* e-table-scrolled.h: s/GtkTable/EScrollFrameClass/.
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Add e-table-scrolled.c and e-table-scrolled.h.
* e-table-item.c: Make sure that find_cell returns FALSE if the
item doesn't have any cells.
* e-table-scrolled.c, e-table-scrolled.h: Added a widget to
contain an ETable and provide scrollbars (for ease of use.)
* e-table.c, e-table.h: Make this support the scrollable interface
and not contain its own scrollbars.
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_event): Put back e_cell_event sometimes when
we're not editing.
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Set the dnd_code to something non-null for the
ETableHeaderItem.
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Set header canvas scroll region correctly.
2000-07-09 Anders Carlsson <andersca@gnu.org>
* e-table-header-item.c (ethi_drag_motion): Don't draw drop
marker when the layout won't be changed by the drop.
2000-07-08 Ettore Perazzoli <ettore@helixcode.com>
* e-table-item.c (eti_table_model_changed): Removed an unused
variable.
2000-07-08 Dan Winship <danw@helixcode.com>
* e-tree-model.c (e_tree_model_node_insert): When inserting a root
node, only call e_table_model_row_inserted if root_visible.
(e_tree_model_node_remove): Call e_table_model_row_deleted before
removing the row from the row_array, because the chain of signal
handlers will sometimes need that info.
2000-07-08 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_event): Don't call e_cell_event if we're not
editing.
2000-07-08 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_table_model_changed): Commented out some
unnecessary and buggy code.
2000-07-06 Dan Winship <danw@helixcode.com>
* e-tree-model.c (e_tree_model_node_remove): Make this work
recursively.
2000-07-06 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Send GDK_BUTTON_RELEASE events to the ecell
associated with the cell (if it's the cursor.)
2000-07-06 Chris Toshok <toshok@helixcode.com>
* e-cell-tree.c (ect_draw): fix the conditions under which we draw
a horizontal line.
2000-07-03 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Added a reflow_compare callback and did removal
if you do shift-click on a selected row that's not the cursor.
2000-06-29 Christopher James Lahey <clahey@helixcode.com>
* e-table-click-to-add.c: Made this appear a bit better.
* e-table-defines.h: Cleaned this up a bit, added
ETableForeachFunc.
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h,
e-table.c, e-table.h: Changed e_table_select_row to
e_table_set_cursor_row. Changed e_table_get_selected_view_row to
e_table_get_cursor_row. Added e_table_selected_row_foreach.
* e-table-header-item.c: Fixed some warnings.
* e-table-sorted-variable.c: Removed some unneeded debugging print
statments.
* e-tree-example-1.c: Changed e_table_get_selected_view_row to
e_table_get_cursor_row.
2000-06-27 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Added an unsort command.
* e-table-item.c: leave_edit when you loose the cursor.
2000-06-26 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Added e-table-click-to-add.c,
e-table-click-to-add.h, e-table-one.c, and e-table-one.h.
* e-table-click-to-add.c, e-table-click-to-add.h: A new canvas
item that represents a single row that sometimes exists. It's for
adding new rows to your table.
* e-table-example-1.c, e-table-example-2.c, e-table-size-test.c,
test-check.c, test-cols.c, test-table.c: Added value_to_string handlers.
* e-table-group-container.c: Use value_to_string to make grouping
not crash for non string columns. Made some changes to work
properly in an ECanvasVbox.
* e-table-group-leaf.c, e-table-item.c: Made some changes to work
properly in an ECanvasVbox.
* e-table-model.c, e-table-model.h: Added append_row and
value_to_string methods.
* e-table-one.c, e-table-one.h: Given a source ETableModel, this
provides a single row model that uses the initialize_value,
duplicate_value, free_value, and value_is_empty methods of the
original source to implement set_value and value_at (and proxies
most of the other methods.) This is used for ETableClickToAdd.
* e-table-simple.c, e-table-simple.h: Added append_row and
value_to_string handlers. append_row uses a GtkArg instead of a
parameter to e_table_simple_new.
* e-table-subset.c: Added append_row and value_to_string handlers.
* e-table.c, e-table.h: Use a vbox containing an ETableClickToAdd
and an ETableItem instead of an ETableItem directly. Only show
the ETableClickToAdd if the top level of the xml SPEC has the
attribute click-to-add set to some non-zero integer.
(click-to-add="1"). Add a "click_to_add_message" argument.
* e-tree-model.c: Add a commented out value_to_string handler.
2000-06-23 Larry Ewing <lewing@helixcode.com>
* e-cell-toggle.c (etog_draw): draw pixmaps with he right
background and selection colors.
2000-06-23 Chris Toshok <toshok@helixcode.com>
* e-tree-model.h, e-tree-model.c: add icon_at virtual function -
it was stupid to make the insert call take 2 pixbufs. the model
should give this information.
* e-cell-tree.c: get rid of the opened/closed pixbuf stuff. call
e_tree_model_icon_of_node.
* e-tree-example-1.c: add my_icon_at.
* e-tree-simple.c (simple_icon_at): new function
(e_tree_simple_new): add icon_at parameter.
* e-tree-simple.h: add SimpleIconAtFn.
2000-06-23 Chris Toshok <toshok@helixcode.com>
* e-tree-example-1.c (create_tree): use the expanded/unexpanded
pixbufs as node pixbufs for the first level of children, to test
the drawing.
* e-tree-model.c (e_tree_model_node_get_closed_pixbuf): new function.
(e_tree_model_node_get_opened_pixbuf): same.
(e_tree_model_node_insert): add opened/closed pixbuf argument.
(e_tree_model_node_insert_before): same.
* e-tree-model.h: add prototypes for opened/closed pixbuf
accessors, and add them to the e_tree_model_node_insert_* calls.
* e-cell-tree.c (ect_draw): add opened/closed pixbuf drawing per node.
2000-06-22 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Make the table not move around as you resize.
2000-06-22 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Killed a warning.
2000-06-22 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c: Remove use of the "x" and "y"
arguments to EText.
* e-table-item.c: Properly ref the source_model field.
* test-check.c, test-cols.c, test-table.c: Remove use of the "x"
and "y" arguments to ETableHeaderItem.
2000-06-21 Christopher James Lahey <clahey@helixcode.com>
* e-table-field-chooser-dialog.c: Made the Close button work.
* e-table-field-chooser.glade, e-table-field-chooser.glade.h:
Added a text description of this dialog.
2000-06-21 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Changed this to move the cell to the
nearest edge instead of to the left of the column it's over.
* e-table-header.c: Made target_index equal to eti->col_count be a
valid parameter to e_table_header_move.
2000-06-21 Christopher James Lahey <clahey@helixcode.com>
* e-table-header.c: Made moving columns to the right work
properly.
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-leaf.c: Fix a minor warning.
* e-table-item.c: Add to the selection if shift is held down.
Show cursor when changing sort (or if table changes majorly.)
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-table-defines.h: Fix HEADER_PADDING.
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Fix cursor column information.
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h: Removed the unfocus method since
that's handled by the canvas itself now.
* e-table-item.c, e-table-item.h: Finished adapting ETableItem to
use the canvas selection/cursor system. Selection and cursor now
use row numbers associated with the source model instead of the
sorted model (if the model they are given is an ETableSubset.)
This has no effect on the interface, except that unfocus was
removed and e_table_item_focus was renamed to
e_table_item_set_cursor.
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c, e-table-item.h: Started adapting ETableItem to
use the canvas selection/cursor system.
2000-06-17 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Made cells with strikeout on have a line from the
left margin to the right margin, instead of just over the text.
2000-06-17 Chris Toshok <toshok@helixcode.com>
* e-tree-model.c (e_tree_model_node_insert): call
e_table_model_row_inserted instead of e_table_model_changed.
2000-06-16 Christopher James Lahey <clahey@helixcode.com>
* e-table.c, e-table.h: Moved the reflow signal handling into an
idle handler to fix a bug when resizing twice in succession.
2000-06-15 Chris Toshok <toshok@helixcode.com>
* e-cell-tree.c (ect_print): print the icon for the tree control.
2000-06-14 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Request the value of e_table_is_cell_editable of
the model_col instead of the view_col.
* e-table-item.h: Slight style fixup.
2000-06-14 Chris Toshok <toshok@helixcode.com>
* e-tree-example-1.c (print_tree): new function, to generate
postscript so i can test tree printing.
(create_tree): add print button.
* e-cell-tree.c (ect_print_height): implement function (in a
broken way for the time being, heh).
(ect_print): implement function to draw tree controls and offset
the subcell's printing. icons aren't printed yet, just lines.
(ect_draw): remove old unnecessary comments. only draw the
horizontal line in specific instances (well, add a test so a lone
root node doesn't get the horizontal line.)
(e_cell_tree_class_init): add print/print_height methods.
2000-06-13 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Clip the contained text.
* e-table-group-container.c: Did a first pass at grouped
printing. This works, but there's no fancy boxes or headers
around the groups.
* e-table-item.c: Added will_fit function and added quantize
function to _height.
2000-06-12 Federico Mena Quintero <federico@helixcode.com>
* e-table-model.[ch]: Removed the freeze/thaw stuff for the model.
As Chris wisely pointed out, having freeze/thaw on the model makes
its state inconsistent from the perspective of the views.
* e-table-sorted-variable.c: Do not check for a frozen model.
* e-table-subset.c: Likewise.
* e-table-subset-variable.c: Likewise.
* e-table-example-1.c: Removed the ETableModel thaw handler.
* e-table-example-2.c: Likewise.
* e-table-simple.c: Likewise.
* e-table-size-test.c: Likewise.
* test-check.c: Likewise.
* test-cols.c: Likewise.
* test-table.c: Likewise.
2000-06-11 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am (table_test_LDADD): Link with libemiscwidgets.a.
(table_size_test_LDADD): Likewise.
(table_example_1_LDADD): Likewise.
(table_example_2_LDADD): Likewise.
(tree_example_1_LDADD): Likewise.
2000-06-11 Christopher James Lahey <clahey@helixcode.com>
* e-table-model.c: Small syntactic changes.
* e-table.c: Moved the table header into the scrolled view.
2000-06-10 Ettore Perazzoli <ettore@helixcode.com>
* e-table.c (et_real_construct): EScrollFrame instead of
GtkScrolledWindow.
2000-06-10 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Added $(GNOME_PRINT_LIBS) to all of the LDADDs.
* e-cell-text.c: Added printing of text cells.
* e-cell.c, e-cell.h: Added print and print_height methods.
* e-table-field-chooser.glade: Added a minimum size.
* e-table-group-container.c: Fixed a rectangle sizing bug.
* e-table-group-leaf.c: Implemented get_printable.
* e-table-group.c, e-table-group.h: Added a get_printable method
to return an EPrintable.
* e-table-item.c, e-table-item.h: Added a get_printable function
to return an EPrintable.
* e-table.c, e-table.h: Added a get_printable function to return
an EPrintable.
2000-06-10 Chris Toshok <toshok@helixcode.com>
* e-tree-example-1.c (create_tree): supply the pixbufs here.
* e-cell-tree.h: change pixbuf names to open_pixbuf/closed_pixbuf.
* e-cell-tree.c (e_cell_tree_construct): take open/closed pixbuf
parameters, and don't #include the .xpm files directly here.
(e_cell_tree_new): same.
(ect_draw): use the pixbufs from the ECellTree.
2000-06-10 Chris Toshok <toshok@helixcode.com>
* e-cell-tree.c (ect_event): offset events before passing them to
our subcell view.
2000-06-10 Chris Toshok <toshok@helixcode.com>
* e-table-item.c (eti_event): change things so we focus the cell
and select the row, and also dispatch the event to that row/cell.
This fixes the problem with the tree where you had to click twice
to activate the tree controls.
* Makefile.am (libetable_a_SOURCES): remove e-tree-gnode.* and add
e-tree-simple.*
(icons): add tree-expanded.xpm and tree-unexpanded.xpm
* e-cell-tree.c (ect_enter_edit): defer to subcell's view.
(ect_leave_edit): defer to subcell's view.
(visible_depth_of_node): visual depth, taking into account that
the root node of the model might not be displayed.
(offset_of_node): return the offset used to shift the subcell
over.
(ect_draw): don't draw vertical lines if we're the leftmode node
(a visual root node). also, don't shift x2 by the subcell offset,
so we get ellipses like we're supposed to.
(ect_event): remove GDK_BUTTON_RELEASE from the list of events
that we care about.
* e-tree-example-1.c: lots of changes, a more dynamic UI so we can
test tree model api stuff.
* e-tree-gnode.c, e-tree-gnode.c: removed files, since their guts
have been rolled into e-tree-model.c
* e-tree-model.c, e-tree-model.h: substantially changed. too much
to really describe here. this should really be considered the
first revision of these files :)
* e-tree-simple.c, e-tree-simple.h: analogous to e-table-simple, a
subclass that allows the use of function pointers.
2000-06-08 Federico Mena Quintero <federico@helixcode.com>
* e-table-model.h (ETableModelClass): Added a freeze method.
* e-table-model.c (e_table_model_freeze): Call the freeze method
instead of the thaw method!
* e-table-simple.h (ETableSimple): Added the freeze function.
* e-table-simple.c (simple_thaw): Check whether the function
exists.
(simple_freeze): New handler.
(e_table_simple_new): Take in and set the freeze handler.
(e_table_simple_class_init): Set the freeze handler.
* test-check.c (check_test): Pass in the freeze handler to
e_table_simple_new().
* test-cols.c (multi_cols_test): Likewise.
* e-table-example-2.c (create_table): Likewise.
* e-table-example-1.c (create_table): Likewise.
* test-table.c (table_browser_test): Likewise.
(do_e_table_demo): Likewise.
2000-06-08 Christopher James Lahey <clahey@helixcode.com>
* The field chooser works now.
* e-table-field-chooser-dialog.c: Make the dialog resizable.
* e-table-field-chooser-item.c: Requested a reflow on
realization. Made the correct column get dragged.
* e-table-field-chooser.c: Set the height correctly.
* e-table-field-chooser.glade: Replace the GnomeCanvas with an
ECanvas.
* e-table-header-item.c: Receive drags from the new dialog.
2000-06-08 Christopher James Lahey <clahey@helixcode.com>
* e-table-field-chooser-dialog.c, e-table-field-chooser-dialog.h,
e-table-field-chooser-item.c, e-table-field-chooser.c,
e-table-field-chooser.glade, e-table-field-chooser.h,
e-table-header-item.c, e-table.c: More work on the Field Chooser.
Not quite done yet.
2000-06-08 Chris Toshok <toshok@helixcode.com>
* e-tree-gnode.c, e-tree-gnode.h: New files. A tree model using a
GNode structure to store it's info.
* e-tree-model.c, e-tree-model.h: New files. A proxy model
sitting between a table model and the real tree model (of which
ETreeGNode is an example).
* e-cell-tree.c, e-cell-tree.h: New files. A cell renderer
capable of wrapping up a subcell and drawing the tree controls for
expanding/collapsing trees.
* tree-expanded.xpm, tree-unexpanded.xpm: New files. the standard
+ and - icons.
* e-tree-example-1.c: New file, giving a (pretty poor :) example
of using ETreeGNode.
* Makefile.am: at the tree stuff to the build, and build
tree-example-1.
* .cvsignore: ignore tree-example-1.
2000-06-07 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Added e-table-field-chooser*.
* e-table-defines.h: Moved some things to here.
* e-table-field-chooser-dialog.c, e-table-field-chooser-dialog.h,
e-table-field-chooser-item.c, e-table-field-chooser-item.h,
e-table-field-chooser.c, e-table-field-chooser.glade,
e-table-field-chooser.glade.h, e-table-field-chooser.h: New dialog
to drag extra fields from. (Not yet finished.)
* e-table-header-item.c, e-table-header-item.h: Changed to
accommodate e-table-field-chooser.
2000-06-06 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h,
e-table.c, e-table.h: Added a right click signal.
* e-table-sorted-variable.c: Fixed a buffer overrun.
2000-06-02 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorted-variable.c: Fixed the multiple copies of rows in
ETable bug.
2000-06-01 Dan Winship <danw@helixcode.com>
* e-table-group.c (e_table_group_key_press):
* e-table.c (group_key_press): two more pastos
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Copy and paste error.
* e-table-item.c: Mixed up parity on eti->editing.
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h,
e-table.c, e-table.h: Added a "key_press" signal.
2000-06-01 Dan Winship <danw@helixcode.com>
* e-cell-text.h: Remove an offending *.
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorted-variable.c: Made the sort when inserting a signal
row be syncronous.
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-text.h: Added "text_filter" argument that
takes a const void * and returns an allocated char *.
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Copy and paste error.
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-item.c, e-table.c,
e-table.h: Added e_table_get_selected_view_row.
2000-05-30 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-text.h: Added bold column's to ECellText.
2000-05-30 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Make sure that the cursor is always shown when
the selection changes.
2000-05-30 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c,
e-table-group.h, e-table-item.c, e-table-item.h, e-table.c,
e-table.h, test-check.c, test-cols.c, test-table.c: Fixed a bunch
of selection bugs. Removed "spreadsheet" argument (for now.)
Added "cursor_mode" argument. Added "cursor_change" signal.
Temporarily removed "selection_mode" argument.
2000-05-28 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c: Fixed setting of arguments.
2000-05-28 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h,
e-table.c, e-table.h: Added double click handling.
2000-05-26 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-text.h: Added "strikeout_column" argument.
2000-05-26 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table.c, e-table.h:
Made "drawgrid", "drawfocus", "spreadsheet", and
"length_threshold" arguments set from the ETable effect all the
end ETableItems.
* e-table-header.c: Made column resize a bit less bumpy.
2000-05-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-header.c: Account for extra pixel at right end of
ETable.
* e-table-item.c: Make grid less intrusive.
* e-table.c: Make scrollbars disappear when appropriate.
2000-05-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Made dragging columns work.
2000-05-23 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Fixed the remove column callback.
2000-05-23 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Added right click menus to the table
header items.
* e-table-sort-info.c: Fixed a small bug.
2000-05-23 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Make scrollbar arrow buttons work.
2000-05-19 Christopher James Lahey <clahey@helixcode.com>
* e-table-example-1.c, e-table-example-2.c, e-table-simple.c,
e-table-simple.h, e-table-size-test.c, test-check.c, test-cols.c,
test-table.c: Added initialize_value and value_is_empty callbacks.
* e-table-model.c, e-table-model.h: Added initialize_value and
value_is_callback virtual functions to the ETableModel class.
* e-table-subset.c: Perpetuate the initialize_value and
value_is_empty methods.
From a patch by Iain Holmes <ih@csd.abdn.ac.uk>
* e-table-config.c, e-table.c: Fixed getting text content from a
node in the case of a non string based content field in the xml
library.
2000-05-16 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Fixed a memory leak.
2000-05-16 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorted-variable.c: Changed sorting to be at priority
level 30.
* e-table.c: Changed rebuild of the table to be at priority level
20. This gives it an advantage over pretty much everything,
including e-table-sorted-variable sorting and canvas redraw.
2000-05-16 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c: Removed a memory leak here.
* e-table-group-leaf.c: Added a ref/sink pair.
* e-table-group.c, e-table-header-item.c: Removed some unused
code.
2000-05-16 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorted-variable.c: Fixed a FIXME comment.
* e-table-header.c, e-table-header.h: Added code to put off size
calculation to the idle loop. Added code to not resize columns
with 0 expansion. Removed the set_width function; it's been
replaced with a Gtk+ arg.
* Makefile.am: Added e-table-defines.h to the Makefile.am.
* e-table-defines.h: A new file containing some #defines for use
in ETable.
2000-05-14 Christopher James Lahey <clahey@helixcode.com>
* Implemented the feature where the ETable columns automatically
fill the given space.
* e-cell-text.c, e-cell-text.h: Moved #include
e-text-event-processor.h from the .h to the .c.
* e-table-col.c, e-table-col.h: Added an expansion variable, and
made it so that width isn't set by the programmer but instead by
the e-table-header.
* e-table-example-1.c, e-table-example-2.c, e-table-size-test.c,
test-check.c, test-cols.c, test-table.c: Fixed to handle new
ETable column resizing.
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c,
e-table-group.h, e-table-item.c, e-table-item.h: Fixed these to do
a proper canvas reflow/update loop. Changed them to take a
minimum width and return a width and a height.
* e-table-header-item.c, e-table-header-item.h: Made this so that
it depends on e-table-header.c for deciding the actual size of
columns during resize (it was making incorrect decisions on its
own.)
* e-table-header.c, e-table-header.h: Changed this to make sure
that the sum of the widths of the columns was always as close as
possible to the width of the window. This is done by taking a
full width and having each of the columns have an "expansion"
field. This field is what makes each column have approximately
the same portion of its part of the screen that it used to.
* e-table.c: Changed this to set the width on the ETableHeader as
well as set the proper minimum width on the ETableGroup and get
the width and height it reports.
2000-05-11 Miguel de Icaza <miguel@gnu.org>
* e-table.c: Removed dead code.
2000-05-10 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Added e-table-col-dnd.h and table-test.h.
2000-05-09 Christopher James Lahey <clahey@helixcode.com>
* e-table-subset-variable.c: Fixed etssv_remove.
2000-05-08 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Make multi-line texts display properly. Fixed
some mem leaks.
2000-05-07 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Add a horizontal scrollbar.
2000-05-07 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c, e-table-item.h, e-table.c, e-table.h: Handle
row_inserted and row_deleted signals properly.
* e-table-model.c, e-table-model.h: Created the row_inserted and
row_deleted signals.
* e-table-sorted-variable.c, e-table-subset-variable.c: Emit the
row_inserted and row_deleted signals as appropriate.
2000-05-07 <toshok@the-dot-in.helixcode.com>
* e-cell-text.c (ect_draw): free cell.starting_text here to avoid
a memory leak.
2000-05-06 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table.c: Killed some warnings.
2000-05-06 Chris Toshok <toshok@helixcode.com>
* e-cell-text.c (ect_accept_edits): only to set_value_at if the
value is indeed different.
(ect_stop_editing): free edit->cell.starting_text
(build_current_cell): initialize edit->cell.starting_text as a
copy of the initial text.
2000-05-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h: Add an e_table_group_add_all
function and implement it in the different ETableGroup classes.
* e-table-sort-info.c: Make set_nth not call changed twice if it
needs to allocate more space.
* e-table-sorted-variable.c, e-table-subset-variable.c,
e-table-subset-variable.h: Add and implement an
e_table_subset_variable_add_all command.
* e-table.c: Use e_table_group_add_all as appropriate. Fix ETable
grouping xml to work if there is a text element at the bottom of
the grouping tree.
2000-05-04 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Sped up e_cell_text's get_height function.
2000-05-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c, e-table-item.h: Added a height_cache idle loop
so that the height_cache will be validated in the idle loop.
2000-05-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorted-variable.c: Load all the data to be sorted by
before actually doing the sort.
2000-05-04 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-text.h: Fix author information.
* e-table-group-leaf.c: Set a length threshold of 200.
* e-table-item.c: Height cache is now actually a map. Made
"length_threshold" argument work. If over the length threshold,
use the height cache to get a better estimate so that once the
height cache is full, height estimate is perfect.
2000-05-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorted-variable.c (qsort_callback): Add back in main
loop calls during sorting.
2000-05-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorted-variable.c: Replace insert sort completely with a
qsort.
2000-05-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorted-variable.c: Changed the insert sort to be binary
instead of linear.
2000-05-04 Chris Toshok <toshok@helixcode.com>
* e-table-sorted-variable.c (etsv_sort): use rows here instead of
E_TABLE_SUBSET(etsv)->n_map, since the table can be populated by
the gtk_main_iteration above. otherwise the vals_closure may not
be fully populated.
2000-05-02 Matt Loper <matt@helixcode.com>
* Makefile.am: set G_LOG_DOMAIN.
2000-04-30 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Made this more reentrant.
* e-table-sorted-variable.c, e-table-sorted-variable.h: Does a
proper resort when the sorting info changes.
* e-table.c, e-table.h: Made it so that ETable doesn't destroy and
recreate the entire table when sorting info changes.
2000-04-27 Christopher James Lahey <clahey@helixcode.com>
* arrow-down.xpm, arrow-up.xpm, e-cell-text.c, e-cell-toggle.c,
e-table-col.c, e-table-config.c, e-table-header-item.c: Fixed some
warnings.
2000-04-26 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Added a missing include.
2000-04-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-size-test.c: Fixed a warning.
* e-table-item.c: Removed the unnecessary gnome_canvas_update_bbox.
2000-04-24 Miguel de Icaza <miguel@helixcode.com>
* e-table.c (e_table_class_init): Add argument handling here.
* e-table-group-leaf.c (e_table_group_apply_to_leafs): New method.
Enables us to walk all the children of an ETableGroup.
* e-table.c (et_get_arg, et_set_arg): Implement ::get and ::set
methods.
(e_table_construct_from_spec_file): Now we return the etable.
(e_table_construct): ditto.
(et_real_construct): Now we return the ETable. Returns NULL on
construct failure.
(e_table_new): ditto.
(e_table_new_from_spec_file): ditto.
* (et_build_grouping_spec): Removed vestige code that still
contained references to the etable->specification XML code.
Dumped all the ifdefed out code.
* e-table.h: Removed ETable->specification finally.
2000-04-24 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Fixed some warnings.
2000-04-23 Iain Holmes <ih@csd.abdn.ac.uk>
* e-table-item.c (eti_bounds): Calculate the width of the table from the
width of all the columns, and update the eti->width field as appropiate.
(eti_update): Update the bbox.
2000-04-17 Chris Toshok <toshok@helixcode.com>
* Makefile.am (noinst_PROGRAMS): add table-size-test
* .cvsignore: add table-size-test.
* e-cell-text.c (ect_ecent): use e_table_model_is_cell_editable
instead of E_CELL_EDITABLE.
* e-cell-toggle.c (etog_event): same.
* e-cell.c (e_cell_init): don't call e_cell_set_editable. that
info comes from the model.
(e_cell_set_editable): removed function.
* e-cell.h: remove the E_CELL_EDITABLE flag. that should be
retrieved from the model. also, remove the prototype for
e_cell_set_editable.
* e-table-size-test.c: new file, for a stress test of sorts, of a
large, uneditable e-table.
2000-04-16 Anders Carlsson <andersca@gnu.org>
* e-table-item.c (eti_event): Propagate mouse wheel events upwards.
* e-table.c (et_real_construct): Use a GtkScrolledWindow here
instead of a GtkScrollbar, since it makes mouse wheel scrolling
much easier.
2000-04-15 Matt Loper <matt@helixcode.com>
* e-table.c (et_xml_to_header): sanity-check our parameters.
(et_grouping_xml_to_sort_info): same.
(et_real_construct): Bail if we couldn't get the children we
wanted.
2000-04-15 Ettore Perazzoli <ettore@helixcode.com>
* e-table.c (e_table_construct): Use `strlen (copy)' instead of
`strlen (copy) + 1' as the size argument for `xmlParseMemory()'.
2000-04-14 Miguel de Icaza <miguel@gnu.org>
* e-table.c, e-table.h: Switch the parent object to be a GtkTable.
(et_real_construct): apply massaging and some loving action to
make the thing behave as a GtkTable.
(e_table_init): More love.
2000-04-14 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c (ethi_class_init): New signal action.
2000-04-14 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c, e-table-item.h: Added a row height cache.
2000-04-12 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c (ethi_drag_motion): Remove test for
source. We will fix this later.
(ethi_end_resize): Reset resize_guide here.
2000-04-11 Miguel de Icaza <miguel@helixcode.com>
* e-table-header-item.c (ethi_add_destroy_marker): Add group
indent width here.
(is_pointer_on_division): Use the group indent here, so the
resize pointer is shown at the correct time.
(TOLERANCE): Bump it up to 3
(draw_button): Do not paint an arrow if there is an icon present,
and not enough space to paint.
2000-04-10 Miguel de Icaza <miguel@helixcode.com>
* e-table-header-item.c (make_shapped_window_from_xpm): New
routine, creates a shapped mask window from an xpm buffer.
(ethi_add_drop_marker): New version, uses shaped windows instead
of canvas items to signal the drop location.
(ethi_maybe_start_drag): Disable dragging if there is only one
column left.
2000-04-10 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c (ethi_drag_motion): Drop frozen count
support from here.
(ethi_start_drag): ditto.
* e-table-header.h: Kill frozen_count.
2000-04-09 Matt Loper <matt@helixcode.com>
* e-table-col.c (e_table_col_new_with_pixbuf): ref etc->ecell,
like in e_table_col_new, since that same ECell is unref'd in
etc_destroy().
2000-04-08 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Separated some functions into an xml bit and a
generic bit.
2000-04-06 Miguel de Icaza <miguel@gnu.org>
* e-cell-text.c: Killed ARG_EDITABLE.
(ect_event): Updated to new editable setup.
(e_cell_text_new): Kill editable argument.
* e-cell-toggle.c (etog_event): Handle editability here
* e-cell-text.h: Removed editable bit field from here, it is now
taken care at the e-cell level.
* e-cell.c (e_cell_set_editable): New function.
(e_cell_init): Set editable to TRUE by default.
* test-check.c (check_test): update to new api
* test-table.c (table_browser_test): ditto.
(do_e_table_demo): ditto.
* test-cols.c (multi_cols_test): ditto
2000-04-06 Christopher James Lahey <clahey@helixcode.com>
* test-cols.c, test-table.c: Got rid of some warnings.
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c,
e-table-group.h, e-table-header-item.c, e-table-header-item.h,
e-table-sort-info.c, e-table-sort-info.h,
e-table-sorted-variable.c, e-table-sorted-variable.h, e-table.c,
e-table.h: Changed ETableSortInfo to not use xml internally.
2000-04-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-text-model.c: Make this assert a bit more readable.
* e-table-item.c: Fix update loop behavior.
2000-04-02 Miguel de Icaza <miguel@gnu.org>
* e-table-sort-info.c (e_table_sort_info_class_init): Kill
argument. Do not use XML internally
(e_table_sort_info_set_sorting): New function, use this to set the
sorting.
(e_table_sort_info_set_grouping): This one to do the grouping/.
2000-04-01 Miguel de Icaza <miguel@gnu.org>
* e-table.c (e_table_build_column_spec): Drop frozen support.
(e_table_make_header): Drop frozen support.
* e-table-header.c (e_table_header_new): Drop frozen support.
* e-table-header-item.c (ethi_drag_motion): Drop frozen support.
(ethi_drag_drop): Drop frozen support.
(ethi_start_drag): Drop frozen support.
* e-table.c (e_table_construct_from_spec_file): Robustify: support
the case in which the XML could not be parsed; Propagate errors.
(e_table_new): Handle failure.
(e_table_new_from_spec_file): ditto.
Renamed multiple internal functions whose prefix was et_ to be e_table_
2000-03-31 Miguel de Icaza <miguel@gnu.org>
* e-table-simple.h: Constify this.
2000-03-30 Miguel de Icaza <miguel@gnu.org>
* Makefile.am (EXTRA_DIST): Added Glade files to the
distribution.
2000-03-28 Matt Loper <matt@helixcode.com>
* e-table-text-model.c (e_table_text_model_destroy): made
assertion more accurate.
2000-03-27 Michael Meeks <michael@helixcode.com>
* e-table-item.c (eti_update): try and fix the convoluted logic.
(eti_bounds): Implement; should fix the re-draw bugs.
* e-table-group-container.c: kill many redundant prototypes,
stylistic cleans.
2000-03-26 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c (ethi_realize): Remove warning from here.
* test-table.c (table_browser_test): Use ECanvas, not GnomeCanvas,
to support reflow.
* test-cols.c (multi_cols_test): ditto
* e-table.c (e_table_setup_header): ditto
* e-table-header-item.c (ethi_font_load): Replace font.
(ethi_realize): ditto.
2000-03-26 Matias Mutchinick <matias@seul.org>
* e-cell-toggle.c (etog_draw): Removed extra code that computed
bogus width. This was the actual source of the problem with the
miss-rendering feature.
2000-03-22 Matt Loper <matt@helixcode.com>
* e-table-text-model.c (e_table_text_model_destroy): Added some
assertions.
2000-03-21 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Make rectangles resize properly when receiving the
"model_changed" signal.
2000-03-20 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group.c, e-table-group.h: Updated
these to use the new ECanvas reflow infrastructure.
* e-table-item.c, e-table-item.h: Updated these to use the new
ECanvas reflow infrastructure. Fixed the bounding box.
* e-table.c, e-table.h: Made the header have no extra space around it.
2000-03-19 Christopher James Lahey <clahey@helixcode.com>
* e-table-header.c: Fixed a crashing bug when you close an
ETable.
2000-03-13 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Fixed a crashing bug when you cancel an edit.
2000-03-12 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Made this use an ECanvas. Fixed a bug where
e_table_new_from_spec_file was calling e_table_construct instead
of e_table_construct_from_spec_file.
* e-table-item.c, e-table-header-item.c, e-table-column-item.c:
Switched these to use GTK_TYPE_OBJECT and GTK_VALUE_OBJECT instead
of GTK_TYPE_POINTER and GTK_TYPE_OBJECT.
* e-cell-text.c: Got rid of a crashing bug.
* e-table-text-model.c, e-table-text-model.h: A new object which
is an e-text-model which uses an e-table-model for its data.
* Makefile.am: Added e-table-text-model.c and
e-table-text-model.h.
* .cvsignore: Added table-example-1 and table-example-2.
2000-03-08 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Changed the destroy function to disconnect from
signals before unrefing the objects the sinnals are on. Changed
the destroy function to match the objects and signal ids properly
in its disconnect section.
* e-table-item.c, e-table-item.h: Changed this to do follow the
canvas rules better.
* e-table-header-item.c, e-table-header-item.h: Made
ETableHeaderItem connect to the "sort_info_changed" on its
ETableSortInfo instead of just manually redrawing itself. Fixed
the update function a bit to follow the canvas rules a bit better.
2000-03-06 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Made rows get unselected when switching from one
group to the next.
2000-03-06 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c: Use the style's font if lucidasans-10
is not found.
2000-03-06 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c, e-table-header-item.h: Made it so that
columns would be properly indented.
2000-03-06 Christopher James Lahey <clahey@helixcode.com>
* e-table-sorted-variable.c: Have identical values get sorted by
their actual row.
2000-03-06 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Draw selected row.
2000-03-06 Christopher James Lahey <clahey@helixcode.com>
* e-table.c, e-table.h: Add a "row_selection" signal.
* test-table.c: Test the new "row_selection" signal.
* e-table-group-container.c, e-table-group-leaf.c: Implement the
"row_selection" property properly.
* e-table-group.c, e-table-group.h: Add a "row_selection" signal.
2000-03-05 Christopher James Lahey <clahey@helixcode.com>
* e-table.c, e-table.h: Added support for the sorting info. The
Etable creates a sort_info object, and then connects to the
signals to rearrange the rows when the sort_info changes. It also
passes the info object to the ETableHeaderItem.
* e-table-model.c: Fixed a typo where ETableModel was written as
ETableModle.
* e-table-header.c, e-table-header.h: Added some code for sorting
here, but it's not used. I don't think we want this code, but I
wanted to check it in at least once so that it's not lost.
* e-table-header-item.c, e-table-header-item.h: Added a
"sort_info" argument to ETableHeaderItem. Added display of
current sort settings. Added support for clicking to change the
sort settings.
* e-table-col.h: E_TABLE_COL_ARROW_NONE is marked as being = 0
since this is required in other places. (I think C defines this
as being the case, but it's good to have the = 0 there so that
it's obvious that it has to be first.)
* TODO: Mark sorting as done.
* e-table-sort-info.c, e-table-sort-info.h: New files for
containing the xml grouping/sorting information and for sending
signals on that information.
* Makefile.am: Added e-table-sort-info.c and e-table-sort-info.h.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Added saving of frozen_columns count. Added a
vertical scrollbar to ETable.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Push the proper visual and colormap for ETable to work.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* TODO: Touched this up a bit.
* e-table-group.c, e-table-group-leaf.c: Check for NULL before
calling gtk_object_unref or gtk_object_destroy.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Fixed a crash error.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Fixed a compile warning.
* e-table.c: Fixed a crash error.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* TODO: Added a bunch of stuff to the TODO list. Put +s before a
few of the items that are finished.
* test-table.c: Add a button to save the spec file.
* e-table.c, e-table.h: Add loading configurations from files as
well as the ability to get the current configuration out of the
widget.
2000-03-03 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Removed some unused code.
* e-table-header-item.c, e-table-header-item.h: Removed the unused
normal_cursor variable and object.
* e-table-col.c: Maintain a reference count in the contained ECell.
2000-03-01 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am: Use `libeutil.la', not `libeutil.a'.
2000-02-29 Christopher James Lahey <clahey@helixcode.com>
* test-table.c: Test frozen columns
* e-table.c: Make frozen columns available through the xml file.
* e-table-header.c, e-table-header.h, e-table-header-item.c: Added
frozen columns API to let you specify some number of leading
columns as undraggable.
* Makefile.am: Add e-table-example-1.c and e-table-example-2.c.
* e-table-example-1.c, e-table-example-2.c: New files. A couple
of examples of ETable use.
2000-02-28 NotZed <NotZed@HelixCode.com>
* Makefile.am (table_test_LDADD): Fixed references to eutil.
2000-02-28 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c, e-table-header.c: Fixed a couple of crash
bugs.
2000-02-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Made the E table item redraw properly.
* e-table-group-container.c: Added handling to distinguish between
n items and 1 item. Got rid of a crash due to an abandoned timeout
callback.
2000-02-24 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Made carriage return stop editting instead of
inserting a carriage return.
2000-02-24 Christopher James Lahey <clahey@helixcode.com>
* test-table.c: Added duplicate_value and add_value. Use the new
compare functions. Made it so we only create one model to better
test model view stuff. Changed the test to not have as many
extra, useless, columns.
* test-cols.c, test-check.c: Added duplicate_value and add_value.
Use the new compare functions.
* e-table.c, e-table.h: Use all the new features of e-table-groups
(sorting and grouping). Handle on the fly reorganization of
groups in an idle loop. Compare functions now are to return -1 if
the first item is greater, 0 if they are equal, or 1 if the second
item is greater.
* e-table-subset.c, e-table-subset.h: Made e-table-subset
disconnect properly from its signals when it dies.
* e-table-subset-variable.c, e-table-subset-variable.h:
Virtualized the add and remove commands so that
e_table_sorted_variable could override the add command to do
sorting.
* e-table-sorted.c: Fixed this to inherit properly from
ETableSubset.
* e-table-simple.h, e-table-simple.c: Added handling of
duplicate_value and free_value;
* e-table-model.c, e-table-model.h: Added duplicate_value and
free_value for memory allocation of table elements outside the
table.
* e-table-item.c: Fixed a crashing bug.
* e-table-group.c: Added sorting. Fixed destruction to delete the
right things.
* e-table-group-leaf.c, e-table-group-leaf.h: Pass column and sort
order information into the e_table_sorted_variable. Properly
destroy things when deleted.
* e-table-group-container.c, e-table-group-container.h: Properly
handle the list of subgroups. Handle proper sorting and grouping
of subgroups.
* e-table-sorted-variable.c, e-table-sorted-variable.h: Files to
do a sorted model that stays sorted as you add and remove rows.
* Makefile.am: Added e-table-sorted-variable.c and
e-table-sorted-variable.h.
2000-02-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Made keyboard focus navigation work across
groups.
* e-table-header.c: Made e_table_header_col_diff not crash if you
give it a column less than 0 (it truncates negative column values
to 0.)
* e-table-group.c, e-table-group.h: Added e_table_group_get_header
to get the ETableHeader for this ETableGroup.
* e-table-group-container.c: Made shift tab work.
2000-02-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Made changing focus work.
2000-02-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-subset-variable.c, e-table-subset-variable.h: A new
model which is a subset, but you can add and remove rows.
* test-table.c: Added a thaw method for use with the
e-table-subset (emits model_changed.) Adapted to the changes to
e_table_item. Properly parse headers. Adapted to the changes to
e_table, including creating example xml spec data.
* test-cols.c, test-check.c: Added a thaw method for use with the
e-table-subset (emits model_changed.) Adapted to the changes to
e_table_item.
* e-table.c, e-table.h: Reworked e-table to use the ETable
grouping system. The only difference for the interface is that
instead of passing in a column_spec and a grouping_spec, you pass
in a single string that is an xml format that includes both pieces
of information.
* e-table-subset.h: Added rules for emacs to do correct
indentation.
* e-table-subset.c: Implemented freezing. No signals are emitted
while frozen and "model_changed" is emitted when thawed.
* e-table-sorted.h: ETableSortedClass has ETableSubset as its
parent object instead of ETableSubsetClass. Fixed this.
* e-table-simple.c, e-table-simple.h: Implemented the thaw method.
Use of simple now requires an extra argument (the thaw method.)
* e-table-model.h, e-table-model.c: Added e_table_model_freeze and
e_table_model_thaw.
* e-table-item.h, e-table-item.c: Reworked this a bit to make it
provide some things the new group system needed and to make
inter-item keyboard focus work. Changed the external interface
only in the list of arguments it recognizes and signals it emits.
Instead of "x" and "y", you have to use
e_canvas_item_move_absolute and instead of emitting a
"height_changed" signal, it emits a "resize" signal. There's new
"has_focus", "width", and "height" arguments and a function to get
the currently focused column.
* e-table-header-item.c: Got rid of some warnings here. Changed
the
* e-table-group-leaf.h, e-table-group-leaf.c,
e-table-group-container.h, e-table-group-container.c: New types to
make e_table_group work properly.
* e-table-group.h, e-table-group.c: Completely reworked e-table
grouping. e-table-group now uses a hierarchical structure.
* e-cell.h: Added e_cell_print. This doesn't work yet.
* e-cell.c: Made e_cell_realize exist. (It was improperly named
e_cell_view_realize in the .c.)
* e-cell-text.c: Made the blinking cursor disappear properly.
* check-filled.xpm, check-empty.xpm: Made these const char *[]
instead of char *[] to avoid compiler warnings.
* Makefile.am: Added e-table-group-container.c,
e-table-group-container.h, e-table-group-leaf.c,
e-table-group-leaf.h, e-table-subset-variable.c,
e-table-subset-variable.h.
2000-02-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* e-table-header.c: Include <string.h>
* Makefile.am (INCLUDES): Add EXTRA_GNOME_CFLAGS to INCLUDES>
2000-02-12 Iain Holmes <ih@csd.abdn.ac.uk>
* e-table-header-item.c (ethi_drag_motion): Check the ethi is actually
the one being dragged. Prevents crashes when trying to drag headeritems
and there are multiple headeritems on the same canvas.
(ethi_drag_end): Same.
(ethi_drag_drop): Same.
(ethi_drag_leave): Same.
2000-02-11 Miguel de Icaza <miguel@gnu.org>
* e-table-item.c (eti_header_structure_changed): Add nice
assertion.
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* test-check.c: Added test of sort arrows.
* e-table-col.h, e-table-col.c: Added sort arrows for column
headers (It doesn't actually sort. It just displays the arrows.)
* e-table-header-item.c: Added display of arrows.
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* clip.png: Test column header image.
* test-check.c: Test pixbuf column headers.
* e-table-col.h, e-table-col.c: Added pixbufs for column headers.
* e-table-header-item.c (draw_button): Draw pixbuf column headers properly.
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.h, e-cell-text.c: Add an editable argument to
e_cell_text_new.
* test-table.c, test-cols.c, test-check.c: Set the editable
argument to e_cell_text_new.
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.h, e-table-header-item.c: Added reordering
of columns.
* e-table-header.c: Fixed a couple of bugs in the move column and
remove column functions.
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Made space around text look right. Added a
blinking cursor.
2000-02-10 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Handle button releases properly.
* e-table-header-item.c (ethi_start_drag): Added a drag icon.
2000-02-09 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Tweaked e-cell-text. Added a white background
and tweaked the borders.
2000-02-09 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Changes where e-text is included from.
2000-02-07 Miguel de Icaza <miguel@gnu.org>
* e-table.c (e_table_setup_table): Setup the scroll region of the
table canvas on size allocation.
(e_table_canvas_realize): Do not set the scrollregion here.
(e_table_canvas_init): Move root initialization here.
2000-02-07 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_event): Fixed some motion event
bugs. (incorrect x and y.)
* Makefile.am: Added includes for dependencies in
evolution/widgets/libevolutionwidgets.a
* e-cell-text.h, e-cell-text.c: Completely revamped using code
from e-text.c and e-text.h.
2000-01-30 Miguel de Icaza <miguel@gnu.org>
* e-table-simple.c (e_table_simple_new): Add data field back in.
1999-12-30 Miguel de Icaza <miguel@gnu.org>
* e-table-item.c (eti_attach_cell_views): New routine, creates the
cell views.
(eti_detach_cell_views): Detaches the cell_views from the
ETableItem.
(eti_realize_cell_views, eti_unrealize_cell_views): Simplified to
just do realize/unrealize notification.
(eti_add_table_model): Only attach the cells when we have both the
table model and the header model.
* e-cell.h (ECellClass): Added two new methods: new_view and
kill_view which drive the view process (instead of putting that on
realize/unrealize).
* e-cell.c: Adapt the code to use the new scheme for view
instantiation.
* e-cell-text.c, e-cell-toggle.c: Adapted to the new class
changes.
1999-12-22 Miguel de Icaza <miguel@helixcode.com>
* e-table-item.c (e_table_item_focus): grab focus here with the
canvas method.
1999-12-20 Miguel de Icaza <miguel@helixcode.com>
* e-table-group.c (etg_update): Change the dimensions only if the
child changes its own.
* e-table-item.c (eti_table_model_changed): Emit new signal on
table height change.
(eti_class_init): Register new "height_change" signal.
1999-12-19 Damon Chaplin <damon@karuna.freeserve.co.uk>
* Makefile.am (SUBDIRS): created SUBDIRS with meeting-time-sel.
* meeting-time-sel/Makefile.am:
* meeting-time-sel/.cvsignore:
* meeting-time-sel/e-meeting-time-sel.h:
* meeting-time-sel/e-meeting-time-sel.c:
* meeting-time-sel/e-meeting-time-sel-item.h:
* meeting-time-sel/e-meeting-time-sel-item.c:
* meeting-time-sel/e-meeting-time-sel-list-item.h:
* meeting-time-sel/e-meeting-time-sel-list-item.c:
* meeting-time-sel/e-meeting-time-sel-mail.xpm:
* meeting-time-sel/e-meeting-time-sel-no-mail.xpm:
* meeting-time-sel/test-meeting-time-sel.c: new files implementing
the meeting time selector.
1999-12-12 Miguel de Icaza <miguel@helixcode.com>
* e-table-item.c (eti_class_init): X and Y arguments are now
doubles (to make it consistent with the rest of the canvas x, y
arguments).
* e-table.c (e_table_create_leaf): Use new argument values here
* test-*.c: Update to new argument types for x and y
* e-table-group.c: New implementation as a canvas item used to
group childs.
* e-table-item.c (eti_update): Make this play nicely with groups.
(eti_draw): ditto.
(eti_request_region_redraw): ditto.
(eti_item_region_redraw): New function.
* e-table-subset.c (etss_proxy_model_row_changed): Added model
proxying.
* e-cell.h: Drop ETableModel from the ECell;
(realize): Now takes an ETableModel
* e-cell-checkbox.c: Adapted to new class
changes;
* e-cell-toggle.c: ditto
* e-table-subset.c (etss_row_count): Fix this guy.
1999-12-11 Miguel de Icaza <miguel@helixcode.com>
* e-table-item.c (eti_unrealize_cell_views): Null the cell views.
(eti_header_structure_changed): Only unrealize/realize if we were
realized before.
* e-table-header.c (e_table_header_add_column): Allow -1 as an
insert position
1999-12-11 Miguel de Icaza <miguel@helixcode.com>
* e-table.c: Massive fixage.
* test-table.c: Updates to test the mega widget.
1999-12-10 Miguel de Icaza <miguel@helixcode.com>
* e-table.c: New file, implements the mega widget.
1999-12-09 Miguel de Icaza <miguel@gnu.org>
* e-table-header.c (e_table_header_col_diff): fix this routine.
1999-12-04 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c (ethi_event): Started drag and drop
support.
* e-table-item.c (eti_table_model_changed): The columns are
controled by the Header, not by the TableModel.
* e-table-header-item.c (ethi_draw): Fixed redraw logic to support
arbitrary header positioning.
* e-cell.h: Revamped e-cell interface. We now provide the model
column and the view column to all methods (so that the methods can
talk to the view and to the model at the same time).
* e-table-item.c: Update to new API
* e-cell-test.c: Update to new API
1999-12-03 Miguel de Icaza <miguel@gnu.org>
* e-cell.c (e_cell_class_init): Provide emtpy methods for
enter_edit, and leave_edit.
* e-table-item.c: Killed draw cell.
(eti_draw): Perform column mapping here.
(e_table_item_leave_edit): ditto.
(e_table_item_enter_edit): ditto.
(eti_event): ditto.
1999-12-02 Miguel de Icaza <miguel@gnu.org>
* e-table-header.c (e_table_header_index): fixed api.
1999-12-01 Miguel de Icaza <miguel@gnu.org>
* test-cols.c (multi_cols_test): Update to simplified API.
* test-check.c (check_test): ditto
* test-table.c (table_browser_test): ditto
* e-table-simple.c (e_table_simple_class_init): Kill column_name method.
* e-table-model.h: Kill column_name method.
* e-table-col.c (e_table_col_new): Instead of using a column name,
use a column index.
* e-cell-text.c (ect_draw): Keep track of the originally allocated
piece of code.
* e-table-header-item.c (ethi_unrealize): Removed change cursor
from here.
* e-cell-text.c (ect_draw): Memory leak fix.
* table-test.c (main): Enhance the demo to load sample.table
automatically, to get memprof working.
* e-table-header.c (eth_do_remove): Take an argument: do -remove.
* e-table-header.c (e_table_header_add_column): Sink ETableCol to
own the object.
* e-table-col.h: Made ETableCol a GtkObject to make reference
counting the lifecycle method for these objects.
* e-table-col.c (e_table_col_destroy): New API call.
* e-table-subset.c (e_table_subset_get_toplevel): New API call.
1999-11-30 Miguel de Icaza <miguel@gnu.org>
* e-cell-checkbox.c (e_cell_checkbox_new): This one derives from
e-cell-toggle.
* check-emtpy.xpm, check-filled.xpm: new files.
* e-cell-toggle.c (etog_draw): Paint in white.
If we have transparency enabled, do the nice alpha computation.
* test-table.c, test-cols.c: new files; They implement the split
tests.
1999-11-29 Miguel de Icaza <miguel@gnu.org>
* e-table-col.c (e_table_col_new): Set etc->resizeable.
* e-table-header-item.c (ethi_event): Handle non-resizeables
columns; Add support for minimum width.
* e-cell-toggle.c, e-cell-toggle.h: New file. Implement a
multi-state image toggle cell object.
* e-cell-text.c (ect_leave_edit): Handle the case of us calling
leave edit manually.
(ect_stop_editing): Leave manually editing here.
(ect_draw): Add one pixel to the border for left and right;
Handle off-screen cursor (must be improved).
(ect_edit_select_all): New function.
(ect_event): Select all text on editing start
* e-table-item.c (eti_event): Map mouse events and dispatch them.
(eti_event): Add spreadsheet mode for editing; Enter editing only
with visual characters;
Leave editing mode when a different row has been selected.
(eti_get_height): Fix the computation for this; Fix logic for the
length_threshold.
(eti_draw): Add borders on all sides of the box;
Only draw focus if the cell is not being edited.
1999-11-28 Miguel de Icaza <miguel@gnu.org>
* e-table-item.c (eti_draw): Focus inside, not outside.
(eti_realize): Enhance our focus gc.
* e-cell-text.c (ect_enter_edit, ect_leave_edit): New methods;
They implement editing.
* e-cell.h: new methods: enter_edit, leave_edit
* e-table-model.h (set_value_at): make val argument const.
* e-table-simple.c (simple_set_value_at): Make value argument const;
* e-table-item.c (eti_set_arg): Add new mode: draw_focus;
1999-11-27 Miguel de Icaza <miguel@gnu.org>
* e-table-item.c (eti_event): beginning of the keyboard navigation.
* e-table-model.c (e_table_model_row_changed): new function.
(e_table_model_cell_changed): new function.
(e_table_model_class_init): New signals.
* e-table-item.c (eti_request_region_redraw): x2, y2 offsets were
wrong.
(eti_select): Repaint selected region.
(eti_request_region_redraw): Fix range.
(eti_draw): Correct offset computation here.
(e_table_item_class_init): New method: row_selection, handles the
selection.
Now it implement GTK_SELECTION_SINGLE and GTK_SELECTION_MULTIPLE.
Focusing and selection should be correct now.
1999-11-26 Miguel de Icaza <miguel@gnu.org>
* e-table-item.c (eti_realize): Compute height using the ecell
methods here.
(eti_get_height): new method to compute dimensions.
* e-cursors.c: use a different cursor.
* e-table-model.h: kill height and row_height methods.
* e-cell.c (ec_height): New method.
* e-cell-text.c (ect_realize): Load the font from the canvas.
(ect_draw): New color setup.
Center in the row.
(ect_height): Implement new method.
1999-11-26 Michael Meeks <mmeeks@gnu.org>
* ROADMAP.e-table: small spelling/typo fixes.
1999-11-25 Miguel de Icaza <miguel@gnu.org>
* e-table-item.c (eti_event): Work on mouse-button event
propagation to cells.
* e-cell-text.c (ect_draw): Use CellViews now.
* e-table-item.c (eti_realize_cell_views): New routine: Realizes
the cell views
(eti_unrealize_cell_views): New routine: unrealizes the cell views.
* e-table-item.h: Move cell_views array here.
* table-test.c (value_at): Fix return value.
(main): use new invocation method.
* e-table-header-item.c (ethi_realize): Realize cells.
* e-table-item.c (eti_header_dim_changed): redraw before and after.
* e-table-header-item.c (ethi_event): Add continuous resizing.
1999-11-24 Miguel de Icaza <miguel@gnu.org>
* e-table-subset.h, e-table-subset.c: New files, used to implement
subset tables.
* e-table-sorted.h, e-table-sorted.c: Now they derive from
e-table-subset.
* e-cell.c, e-cell.h: realize method now return per view instance
data.
1999-11-20 Miguel de Icaza <miguel@gnu.org>
* e-table-item.c (eti_draw): WOOOOHOOOOOoO! It took me quite a
while to figure this one out. Fixed.
* e-table-header-item.c (ethi_set_arg): Compute width, keep track
of it.
(ethi_add_table_header): Monitor changes to the Header model;
Queue updates.
(ethi_draw): Fix the redraw logic here.
* table-test.c (main): Change the sample code, so we can better
debug this.
* e-table-item.c (eti_header_structure_changed): Keep track of
width;
(eti_header_dim_changed): ditto.
(eti_draw): Many redraw fixes.
1999-11-19 Miguel de Icaza <miguel@gnu.org>
* e-table-item.c (eti_realize): Hook up; Load gcs.
(eti_unrealize): Hook up.
* e-table-sorted.c: Finished implementing.
1999-11-18 Miguel de Icaza <miguel@gnu.org>
* e-table-model.c (e_table_model_class_init): Add model_changed
signal here.
* e-table-item.c, e-table-item.h: New files. They implement the
view of the ETableModel as Canvas Items.
* e-table-header-item.c (ethi_set_arg): Ref header here.
(ethi_destroy): Unref it here.
1999-11-17 Ettore Perazzoli <ettore@gnu.org>
* e-msg-composer-address-dialog.c: Moved to `$(srcdir)/composer'.
* e-msg-composer-address-dialog.h: Likewise.
* e-msg-composer-address-entry.c: Likewise.
* e-msg-composer-address-entry.h: Likewise.
* e-msg-composer-attachment-bar.c: Likewise.
* e-msg-composer-attachment-bar.h: Likewise.
* e-msg-composer-attachment.c: Likewise.
* e-msg-composer-attachment.h: Likewise.
* e-msg-composer-hdrs.c: Likewise.
* e-msg-composer-hdrs.h: Likewise.
* e-msg-composer.c: Likewise.
* e-msg-composer.h: Likewise.
* e-msg-composer-address-dialog.glade: Likewise.
* e-msg-composer-attachment.glade: Likewise.
* e-msg-composer.glade: Likewise.
* Makefile.am: Updated accordingly.
Nov 14 1999 Elliot Lee
* Makefile.am: It's libevolutionwidgets.la, not .a
1999-11-14 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c (is_pointer_on_division): Add resizing
capabilities.
* e-table-sorted.c: Finish implementation.
1999-11-13 Miguel de Icaza <miguel@gnu.org>
* e-table-sorted.c: Implement e-table-sorted object.
1999-11-12 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c: Make the thing configurable.
* e-table-header-item.h: Add font field, location, height.
1999-11-12 Ettore Perazzoli <ettore@gnu.org>
* e-msg-composer-hdrs.c: New member `tooltips' in `struct
_EMsgComposerHdrsPrivate'.
(init): Initialize it.
(destroy): New function.
(class_init): Install it as the `destroy' GtkObject method.
(add_header): New parameters `tip', `tip_private'. Setup a
tooltip for the entry with them.
(setup_headers): Updated accordingly.
1999-11-11 Miguel de Icaza <miguel@gnu.org>
* e-table-header.c (e_table_header_add_column): Update offsets.
(eth_update_offsets): New routine.
* e-table-col.h, e-table-col.c: New files.
* e-table-header.h (e_table_header_get_selected_indexes):
Pretify.
* table-test.c (main): New file; used for testing ETable package.
* e-table-simple.h: Fix type.
1999-11-12 Ettore Perazzoli <ettore@gnu.org>
* e-msg-composer-address-dialog.glade: Cosmetical changes.
* e-msg-composer-attachment-bar.c (size_to_string): New helper
function.
(update): Put the size in the icon's label using this function.
(ICON_SEPARATORS): Remove '.' to avoid wrapping of the size string
on the decimal dot. But gnome-libs is broken and this has no real
effect! :-(
(e_msg_composer_attachment_bar_new): No longer make text editable.
Use the `GTK_SELECTION_MULTIPLE' selection mode.
(remove_selected): No longer assume only one attachment is
selected.
* e-msg-composer-attachment.c: #include <sys/stat.h>
(init): Initialize all the members.
(e_msg_composer_attachment_new): Set size using `stat()'.
* e-msg-composer-attachment.h: New member `size' in `struct
_EMsgComposerAttachment'.
* e-msg-composer.c (setup_signals): Connect `address_dialog_cb' to
the "show_address_dialog" signal of the header widget.
* e-msg-composer-hdrs.c (add_address_header): Renamed to
`add_header'. New parameter `addrbook_button': if true, use a
button instead of a label and make it trigger an
"show_address_dialog" signal.
(address_button_clicked_cb): Signal handler to handle this on a
"clicked" signal from the button.
(setup_headers): Updated accordingly. Also, make "Subject" the
last item. (This makes it look more like Outlook and friends.)
* e-msg-composer-hdrs.c: New signal "show_address_dialog".
* e-msg-composer-hdrs.h: Updated accordingly.
* e-msg-composer-hdrs.c (add_address_header): Reduce padding
considerably.
* e-msg-composer.c (e_msg_composer_construct): Do not use any
padding in the main vbox.
* Makefile.am: Moved the `e-table*' sources to `EXTRA_DIST'.
Compile as a shared library.
1999-11-08 Ettore Perazzoli <ettore@gnu.org>
* e-msg-composer-address-dialog.c: Implemented cut & paste for the
recipient lists.
(init): Initialize `cut_buffer'.
(destroy): Free it.
(recipient_clist_selection_get_cb): New function.
(recipient_clist_selection_received_cb): New function.
(recipient_clist_selection_clear_event_cb): New function.
(setup_recipient_list_signals): Install them as signal handlers
for "selection_get", "selection_received" and
"selection_clear_event" respectively.
(copy_recipient_cb): New function implementing the "copy"
operation.
(cut_recipient_cb): New function implementing the "cut" operation.
(paste_recipient_cb): New function implementing the "paste"
operation.
* e-msg-composer-address-dialog.h: New member `cut_buffer' in
`struct _EMsgComposerAddressDialog'.
1999-11-07 Ettore Perazzoli <ettore@gnu.org>
* e-msg-composer-address-dialog.c: New context menu
`recipient_list_popup_info' for the recipient CLists.
(recipient_clist_button_press_cb): New function.
(setup_signals): Install it as the "button_press_event" signal
handler for popping up the CList context menu.
* e-msg-composer.c (free_string_list): New helper function.
(setup_address_dialog): Setup the initial values in the address
dialog according to the ones in the header widget.
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_get_to): New function.
(e_msg_composer_hdrs_get_cc): New function.
(e_msg_composer_hdrs_get_bcc): New function.
* e-msg-composer.c (setup_address_dialog): New helper function.
(address_dialog_cb): Use it.
* e-msg-composer-address-dialog.c (add_address): Do not set the
row data anymore. Instead, put the full address description
(i.e. complete with the email address, not just the full name) in
the CList.
(add_address): Do nothing if no item is selected in the address
CList.
(get_list): Get the address list from the CList without passing
through the address CList.
(set_list): New helper function.
(e_msg_composer_address_dialog_set_to_list): New function.
(e_msg_composer_address_dialog_set_cc_list): New function.
(e_msg_composer_address_dialog_set_bcc_list): New function.
* e-msg-composer.c (address_dialog_apply_cb): Apply values from
the address dialog into the composer.
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_to): New function.
(e_msg_composer_hdrs_set_cc): New function.
(e_msg_composer_hdrs_set_bcc): New function.
* e-msg-composer-address-entry.c
(e_msg_composer_address_entry_set_list): New function.
* e-msg-composer-address-dialog.c (apply): New helper function.
(clicked): New function, `clicked' method for the `GnomeDialog'
class.
(class_init): Install it.
1999-11-06 Ettore Perazzoli <ettore@gnu.org>
* e-msg-composer-attachment-bar.c (destroy): Call the destroy
method of the parent class.
* e-msg-composer.c: #include "e-msg-composer-address-dialog.h".
(address_dialog_cb): New callback to start the address dialog.
(setup_signals): Connect it to the appropriate button/menu item.
(init): Initialize the new `address_dialog' member to NULL.
(destroy): Destroy the `address_dialog' if not NULL.
* e-msg-composer.h: New member `address_dialog' in `struct
_EMsgComposer'.
* e-msg-composer.glade: Added button to activate the address
composition dialog.
* e-msg-composer-address-dialog.h, e-msg-composer-address-dialog.c:
New files implementing the address composition dialog for Evolution.
* e-msg-composer-address-dialog.glade: New file.
* e-msg-composer-attachment.c: `signals' made static.
1999-11-05 Ettore Perazzoli <ettore@gnu.org>
* Makefile.am: Compile the new files in a `libevolutionwidgets'
library.
(CPPFLAGS): #define `E_GUIDIR'.
* e-msg-composer.c, e-msg-composer.h: New files implementing an
initial version of the Evolution message composer widget.
* e-msg-composer-address-entry.c, e-msg-composer-address-entry.h:
New files implementing a GtkEntry customized for entering email
address lists.
* e-msg-composer-attachment-bar.c, e-msg-composer-attachment-bar.h:
New files implementing a widget for editing mail attachments.
* e-msg-composer-attachment.c, e-msg-composer-attachment.h: New
files implementing file attachment objects for the message
composer.
* e-msg-composer-hdrs.c, e-msg-composer-hdrs.h: New files
implementing a widget for editing of email message headers.
* e-msg-composer-attachment.glade: New file.
* e-msg-composer.glade: New file.
1999-10-31 Miguel de Icaza <miguel@gnu.org>
* widgets/e-table-column.c, e-table-column.h: New file, implements the
e-table-column object.
* widget/e-table-model.h, e-table-model.c, e-table-simple.c,
e-table-simple.h: New files. Implements the column model and
a simple table wrapper.
|