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
|
2001-03-30 Dave Peticolas <dave@krondo.com>
* src/scm/report/average-balance.scm: tweak default accounts
* src/scm/html-utilities.scm (gnc:html-build-acct-table):
put in a horizontal line before grand total.
* src/gnome/dialog-tax-info.c: use form & description, not
code & form, in clist. more work on display.
* src/scm/report/txf-export.scm: fix bug
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_modify_current_cell): reset item edit position
* src/register/gnome/gnucash-item-edit.c (item_edit_reset_offset):
new func
* src/gnome/gnc-currency-edit.c (add_item): don't use namespace
in string
* src/quotes/finance-quote-helper.in: check for non-standard
Perl modules
* src/quotes/Makefile.am: add update-finance-quote
* src/quotes/update-finance-quote.in: new file
* src/guile/guile-util.c: new funcs for wrapping price lists
* src/guile/gnc.gwp: wrap more pricedb api. g-wrap price lists.
* src/gnome/dialog-tax-info.c: more work
* src/gnc-ui-util.c (gnc_push_locale): new func
(gnc_pop_locale): new func
* src/gnome/gnc-html-guppi.c: use C locale when parsing doubles
* src/gnc-ui-util.c (gnc_lconv_set): strdup value to make
sure changing the locale doesn't affect the cached value
* src/gnome/window-register.c: make 'record' work like 'enter'
* src/scm/prefs.scm: add internal prefs for tax window size
* src/gnome/gnc-splash.c: make splash a regular window
2001-03-30 James LewisMoss <jimdres@mindspring.com>
* src/test/gnc-test-stuff.c (test_files_in_dir): use file list
rather than dir so we can control the order of files tested (to
allow parent accounts to be parsed first)
* src/test/test-real-data.sh (EXIT_VALUE): make sure test fails if
at least one of the tests fail.
2001-03-29 Dave Peticolas <dave@krondo.com>
* doc/sgml/C/xacc-incomeexpense.sgml: fix debit/credit distinction
* src/scm/report/taxtxf.scm: more work
* src/scm/report/category-barchart.scm: remove url FIXME
* src/scm/html-barchart.scm: add bar & legend urls to render
* src/gnome/top-level.c: Robert Stephenson's patch for
gtkhtml & gconf
* src/gnome/gnc-html-guppi.c: fix bugs
* src/scm/html-text.scm: fix bug
* src/scm/report/portfolio.scm: work on display
* src/scm/report/stylesheet-plain.scm: add styles for totals
* src/scm/html-document.scm: bug fix
* src/scm/report/taxtxf.scm: more work
* src/engine/gnc-commodity.c (count_coms): use
GNC_COMMODITY_NS_ISO instead of the string const.
* src/engine/rpc/Makefile.am: use GLIB_CFLAGS instead of
hard-coded include dir.
* src/engine/rpc/RpcUtils.c (rpcend_build_gnccommoditylist): use
GNC_COMMODITY_NS_ISO instead of the string const. Fix compiler
warning.
2001-03-29 James LewisMoss <jimdres@mindspring.com>
* src/engine/io-gncxml-v2.c (write_counts): don't add an amount if
it's == 0.
2001-03-29 Christian Stimming <stimming@tuhh.de>
* src/scm/report/report-list.scm, Makefile.am: Added new file.
* src/scm/report/category-barchart.scm: Two new reports. Shows
barchart of income (or expense) categories over time.
* src/scm/report/income-expense-graph.scm: Use more
option-utilities.scm. Fixed gnc:dateloop usage (last interval was
wrong).
* src/scm/html-barchart.scm: Added record components for bar- and
legend-urls and their accessor/modifier functions. FIXME: They
don't get rendered yet -- somebody has to add that.
* src/scm/date-utilities.scm (gnc:dateloop): Fixed last interval
not to be longer than the specified end date.
2001-03-29 James LewisMoss <jimdres@mindspring.com>
* src/engine/io-gncxml-v2.c (write_counts): don't add an amount if
it's == 0.
2001-03-29 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/portfolio.scm: New file. Stock portfolio
overview.
* src/engine/date.[ch]: Added timespec_normalize,
timespec_diff, and timespec_abs.
* src/engine/gnc-pricedb.[ch]: added
gnc_pricedb_lookup_nearest_in_time, courtesy Rob B.
2001-03-28 Dave Peticolas <dave@krondo.com>
* src/SplitLedger.c: fix bug
2001-03-28 James LewisMoss <jimdres@mindspring.com>
* src/test/gnc-test-stuff.c (get_random_split): set a share
amount.
* src/engine/gnc-transaction-xml-v2.c (spl_quantity_handler):
should have been xaccSplitSetShareAmount not SetValue
2001-03-28 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-tax-info.c: more work
* src/guile/gnc.gwp: wrap more of pricedb api
* src/engine/gnc-pricedb.c (gnc_pricedb_get_prices): new func
2001-03-28 Bill Gribble <grib@billgribble.com>
* src/gnome/dialog-column-view.c: set the view dirty on edit
* src/gnome/dialog-style-sheet.c: dirty every report using a
stylesheet when it's edited.
* src/gnome/window-report.c: Add display register/unregister for
reports so the reports know which report-windows they are being
displayed in.
* src/scm/html-{bar,pie}chart.scm: Add a little space to work
around a gtkhtml-0.8.3 bug in table display
* src/scm/html-document.scm: move tree collapse and
stringification to the html document rather than the report. Add
functions to render just the body elements of a document.
* src/scm/html-table.scm: fix broken html-table-set-cell!
* src/scm/report.scm: add parents list to report struct. Mark
parents dirty when report is marked dirty. reload windows showing
a report on dirty. Clean up rendering functions a little
* src/scm/report/view-column.scm: Add a link to open each report
in a window by itself. Change rendering to allow children to be
cached.
2001-03-28 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-tax-info.c: more work
* src/engine/Transaction.c (DxaccSplitSetSharePriceAndAmount):
do the double->numeric conversion directly.
* src/guile/gnc.gwp: remove unused deprecated functions
* src/engine/Transaction.c (xaccSplitsComputeValue): convert
imbalance to base_currency fraction if possible
* src/SplitLedger.c (LedgerDestroy): commit pending instead
of rolling back.
2001-03-28 James LewisMoss <jimdres@mindspring.com>
* src/engine/Transaction.c (xaccSplitGetAccount): use
xaccSplitSetAccount_Internal to set. Don't want to NULL out data
if xaccAccountLookup doesn't give us data (for testing).
(xaccSplitSetAccount_Internal): new func that doesn't null out
account guid data
* src/engine/gnc-transaction-xml-v2.c
(gnc_transaction_dom_tree_create): add test to not add trn:num
item when it's an empty string.
* src/test/Makefile.am (clean-local): add to remove .log files.
2001-03-27 James LewisMoss <jimdres@mindspring.com>
* doc-tools/Makefile.am (LDADD): remove all the unneccesary libs.
2001-03-27 Christian Stimming <stimming@tuhh.de>
* src/scm/report/average-balance.scm: Major rework: Uses
option-utilities.scm. Added basic multi-currency handling. Fixed
time interval handling.
* src/scm/report/income-expense-graph.scm,
income-or-expense-pie.scm: Use option-utilities.scm.
* src/scm/options-utilities.scm: Added date interval multichoice
option, report currency option, and plot size option.
2001-03-27 Dave Peticolas <dave@krondo.com>
* configure.in: add --enable-etags argument to turn on
automatic TAGS creation
* src/scm/report/register.scm: add notes field
* src/scm/report/stylesheet-plain.scm: more reports centered
by default
* src/scm/html-document.scm: Christopher Browne's markup
style extension.
* src/gnome/window-main.c (gnc_report_in_main_window): show new
page
* doc/sgml/pt_PT/Makefile.am: remove demo html files
* doc/sgml/es/Makefile.am: remove demo html files
* doc/sgml/C/Makefile.am: remove demo html files
* src/gnome/dialog-column-view.c: mark the options dialog
changes as appropriate
* src/gnome/dialog-options.c (gnc_options_dialog_changed): new
public func
* src/gnome/dialog-tax-info.c: more work
* src/gnome/dialog-options.c: set apply button sensitivity
appropriately
* src/scm/report/average-balance.scm: use option-utilities
* src/scm/report/transaction-report.scm: use option-utilities
* src/scm/options-utilities.scm: remove superfluous (begin)'s
2001-03-26 Dave Peticolas <dave@krondo.com>
* src/gnome/gnc-html.c: fix compiler warning
* src/scm/prefs.scm: add new liability/equity debit/credit labels
* src/register/gnome/pricecell-gnome.c (PriceDirect): don't use
key stroke if cell value doesn't change
* src/register/pricecell.c (xaccSetPriceCellValue): return TRUE
if cell value actually changed
2001-03-27 James LewisMoss <jimdres@mindspring.com>
* src/engine/io-gncxml-v2.c (add_account_local): duh. currency
not commodity. commodity is same as Security. Old gets freed
really hosing the data known_commodities structure.
2001-03-26 James LewisMoss <jimdres@mindspring.com>
* src/engine/gnc-commodity.c (count_coms): new func.
(gnc_commodity_table_get_size): Actually return size rather than
namespace size.
(gnc_commodity_table_get_number_of_namespaces): new func. Used to
be the get_size one.
* src/test/test-commodities.c (test_commodity): Improve error
output for size diffs.
2001-03-26 Bill Gribble <grib@billgribble.com>
* src/gnome/dialog-column-view.{c,h}: new files. Options editor
for the multicolumn report view.
* src/gnome/dialog-options.{c,h}: add API to get notebook widget
from standard options dialog
* src/gnome/gnc-html.c: add handler for gnc-options:report-id=%d
url... pops up the options editor for that report.
* src/gnome/window-main.c: make the app main widget a notebook
with side tabs. When a report is run from the menu, it makes a
new tab and put itself there (via gnc_report_in_main_window).
* src/gnome/window-report.c: ask the report how to edit its
options. Redo options dialog handling. Add a "open in new window"
option to the report toolbar/popup
* src/scm/report.scm: add 'options-editor field to report template
struct. It's optional (there's a default). Add a "Report name"
option for all reports. Not used yet but will be soon.
* src/scm/report/view-column.scm: a generic table layout for
multiple reports. Each report is in a table cell with a
configurable rowspan and colspan.
2001-03-26 James LewisMoss <jimdres@mindspring.com>
* README (NOTE): Update how make-gnucash-patch works.
2001-03-26 Dave Peticolas <dave@krondo.com>
* src/scm/report/transaction-report.scm: fix i18n bug
* src/scm/report/register.scm: more work
* src/SplitLedger.c: update for api change
* src/gnome/window-register.c: update for api change
* src/engine/Transaction.c (xaccSplitGetCorrAccountName): update
name used for split transactions
(xaccSplitGetOtherSplit): rename to be more consistent
* src/gnome/gnc-dialogs.glade: use 'contains' instead of
'matches' in search dialog
* src/guile/gnc.gwp: update for api changes below
* src/engine/Account.c: use US in api names and tags of
US-specific tax info.
2001-03-25 Dave Peticolas <dave@krondo.com>
* src/test/test-exp-parser.c (test_parser): add / 0 test
* src/scm/report/txf-export.scm: fix bugs
* src/gnome/gnc-dialogs.glade: work on tax info dialog
* src/gnome/dialog-tax-info.c: more work
* src/engine/sixtp.c (gnc_is_our_xml_file): don't use
g_return_if_fail for not finding a file -- avoid ** CRITICAL **
warning.
2001-03-24 Dave Peticolas <dave@krondo.com>
* src/engine/gnc-pricedb-xml-v1.c (pricedb_v2_end_handler): fix bug
2001-03-23 Dave Peticolas <dave@krondo.com>
* src/scm/report/txf-export.scm: redo data structure
for txf info
* src/guile/gnc.gwp: wrap tax info api getters
* src/scm/report/income-or-expense-pie.scm: show total in subtitle
* src/scm/html-utilities.scm (gnc:assign-colors): make the order
of color assignment stable
* src/engine/Account.c: add api for tax info
* src/engine/kvp_frame.c: handle NULL pointers
* src/engine/kvp_doc.txt: add tax kvp keys
* doc/gnucash-gdb-cmds: remove, out of date
2001-03-23 Christian Stimming <stimming@tuhh.de>
* src/scm/report/income-or-expense-pie.scm: Included new option to
summarize all subaccount balances below a certain level threshold.
2001-03-23 James LewisMoss <jimdres@mindspring.com>
* src/engine/gnc-pricedb-xml-v1.c (gnc_pricedb_to_dom_tree): Don't
return and empty tree. Return NULL.
* src/engine/io-gncxml-v2.c (write_pricedb): check for null return
from pricedb tree generator and ignore. It's ok to get NULL.
2001-03-22 Dave Peticolas <dave@krondo.com>
* src/Makefile.am: compile src/test after compile src/
* src/guile/gnucash.c.in (gnc_main): change from main
function so other executables can link with this lib
* src/gnc-main.c: new file with gnucash main
* src/test/test-stuff.c: add api to turn on success printing
* src/test/test-exp-parser.c: new test file for testing
expression parser
* src/scm/report/income-or-expense-pie.scm: display totals
in legend
* src/gnome/druid-stock-split.c: check for proper currencies
on income & asset accounts. allow price to be recorded.
* src/gnome/account-tree.c: add api for setting selectability
with a filter function
* src/engine/Group.c (xaccGroupRemoveAccount): check for
group/account mismatch
2001-03-21 Dave Peticolas <dave@krondo.com>
* src/scm/date-utilities.scm: set isdst to -1 before calling
mktime
* src/gnome/window-main.c: put summary info on left side
* src/gnome/gtkselect.c: don't display button unless there is
something to select. put button on left side
2001-03-22 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/date-utilities.scm (moddate): set is-dst to unknown to
hopefully fix daylight-saving time errors.
2001-03-21 Dave Peticolas <dave@krondo.com>
* configure.in: take out --enable-gpg argument, is run-time dep
2001-03-21 Bill Gribble <grib@billgribble.com>
* gnc-network.{c,h}: new files. Functions for user registration
and authentication.
* gnc-gpg.c: fix bugs. make gpg operations optionally
asynchronous via gdk_input_add().
* gnc-html.c: fix URL base name handling. Rework processing of
http requests.
* gnc-http.c: memory management in gnome_http. Still some
memory leaks in there, I think.
* gnc-html-actions.{c,h}: remove files. Content moved into
gnc-network.
* prefs.scm: Add hidden preference for GnuCash Network user ID.
2001-03-21 Dave Peticolas <dave@krondo.com>
* src/scm/report-utilities.scm
(gnc:accounts-get-comm-total-income): new func
(gnc:accounts-get-comm-total-expense): new func
* src/scm/report/income-expense-graph.scm: allow user to display
both income & expense side-by-side
* src/scm/report/pnl.scm: use sprintf to make title
* src/guile/guile-util.c (gnc_get_debit_string): use g_strdup
(gnc_get_credit_string): use g_strdup
* src/gnome/gnc-html.c: add guid type to register anchor
* src/scm/report/register.scm: work on display
* src/engine/Query.c (xaccQueryGetSplitsUniqueTrans): fix bug
* src/gnome/window-register.c: add arguments to report window
for title & debit/credit strings
2001-03-21 James LewisMoss <jimdres@mindspring.com>
* src/engine/Account.c (xaccAccountInsertSplit): add test to not
remove if the account is the same.
(xaccAccountInsertSplit): add check to see if the split already
exists in the account.
* src/test/test-xml2-is-file.c (main): use simple_success_test.
* src/test/test-xml-transaction.c (test_add_transaction):
cleanup. use simple_success_test.
* src/test/test-xml-commodity.c (test_add_commodity): use
simple_success_test.
* src/test/test-xml-account.c (test_add_account): use
simple_success_test.
* src/test/test-string-converters.c (test_string_converters): use
success_with_error_args.
* src/test/test-kvp-frames.c (test_kvp_copy_compare): use
simple_success_test.
* src/test/test-dom-converters1.c
(test_dom_tree_to_commodity_ref): user simple_success_test
* src/test/test-load-xml2.c (main): use success_test_with_error_args
* src/test/test-stuff.c (get_random_string_in_array): new func to
get a random string from a string array.
(get_random_commodity): move func here from test-xml-commodity.c
(success_test_with_error_args): new func.
(vfailure_args): new func. make failure_args call this.
(vsuccess_args): new func. make success_args call this.
* src/engine/io-gncxml-v2.c (gnc_book_load_from_xml_file_v2): zero
out totals as well.
* src/engine/gnc-book.c (gnc_book_push_error): add new parameter
the message string.
(gnc_book_push_error): Change everything to use it (adding NULL
everywhere)
(get_default_error_message): new func to return a message based on
type of error.
(gnc_book_get_error_message): new func to return error message.
(gnc_book_pop_error): change to use clear error so the freeing
behavior of the error message doesn't have to be copied.
(gnc_book_clear_error): free the error message.
* src/engine/io-gncxml-v2.c (gnc_is_xml_data_file_v2): use new
func from sixtp.h
* src/engine/sixtp.c (gnc_is_our_xml_file): extract out v2 xml is
ours test code and create new func.
(search_for): move here from io-gncxml-v2.c
(eat_whitespace): likewise.
* src/engine/io-gncxml-v2.c (gnc_book_load_from_xml_file_v2): set
count totals to 0.
* src/gnome/cursors.c (set_cursor_helper): add NULL test for
window. I think this is a timing thing found by not having the
window come up quickly enough.
2001-03-20 Christian Stimming <stimming@tuhh.de>
* src/scm/report/income-expense-graph.scm,
income-or-expense-pie.scm: Fixed account choosing, fixed default
report currency, added currency exchange calculation.
2001-03-20 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-progress.c
(gnc_progress_dialog_set_activity_mode): new func
* src/guile/gnc.gwp: add new progress dialog api
* src/engine/date.h: remove unneeded includes
* src/scm/report/income-or-expense-pie.scm: make 'other' slice
a link to a new pie report
* src/scm/report.scm (gnc:make-report-options): new func
* src/register/splitreg.c (configLayout): don't show balance
column in stock registers
* src/gnc-ui-util.c (xaccSPrintAmount): put currency symbol
after quantity for shares values
* src/guile/option-util.c (gnc_commit_option): update GUI value
* src/gnome/gnc-html-guppi.c: new func for shutting down guppi
* src/gnome/top-level.c (gnc_ui_shutdown): shutdown guppi
* src/scm/report/income-or-expense-pie.scm: use shorter names
for reports
* src/scm/report/income-expense-graph.scm: work on display
* src/scm/html-utilities.scm (gnc:account-anchor-text): new func
* src/gnome/gnc-html.c: check for null args
* src/scm/report/income-or-expense-pie.scm: work on display
* src/scm/html-utilities.scm: add function for assigning colors
2001-03-20 James LewisMoss <jimdres@mindspring.com>
* src/engine/Group.c (xaccGroupRemoveAccount): rename function
from xaccRemoveAccount and add Group parameter to make it fit with
the rest better.
(xaccAccountRemoveGroup): rename function from xaccRemoveGroup to
better fit naming conventions and add Account parameter. Actually
make the parameter just an Account.
* src/test/test-xml2-is-file.c (main): same as below.
* src/test/test-xml-transaction.c (main): same as below.
* src/test/test-split-vs-account.c (main): same as below.
* src/test/test-string-converters.c (main): add print_test_stats
call.
* src/test/Makefile.am (STUFF): remove test-dom-parser1 because
it's not automated.
* src/test/test-dom-converters1.c (main): same as below.
* src/test/test-date-converting.c (main): add print_test_stats
call.
* src/test/test-stuff.c (print_stats): new func.
(success_args): print success only if set.
(success_args): increment successes.
(failure_args): increment failures.
* src/engine/gnc-transaction-xml-v2.c (split_to_dom_tree): don't
add a memo field with an empty string as the value.
* src/engine/sixtp-dom-parsers.c (dom_tree_to_text): don't return
NULL if no children. This just means there is no text and we
should return a strduped "".
* src/engine/gnc-transaction-xml-v2.c (trn_dom_handlers): make
slots not required transaction item.
* src/engine/gnc-account-xml-v2.c: make code and description not
necessary.
(account_parent_handler): Add tests for NULL data.
2001-03-19 Dave Peticolas <dave@krondo.com>
* src/gnome/gnc-html-guppi.c: fix callback pointer
* src/engine/Transaction.c (xaccSplitGetCorrAccountName): i18n
(xaccSplitGetCorrAccountCode): i18n
* src/guile/gnucash.c.in (gnucash_lowlev_app_init): update
last stable version
* src/scm/report.scm: more work on display
* src/scm/report/register.scm: add api for printing a
register report. more work on display
* src/gnome/window-report.c (gnc_print_report): add api
for printing reports
* src/gnome/gnc-html.c: check for no urltype callback
* src/scm/report/stylesheet-plain.scm: add some more space
between table cells
* src/gnome/window-register.c: add support for printing reports
* src/guile/gnc.gwp: add print report api
* src/gnome/gnc-html.c: use PWARN, not printf
* rpm/gnucash.spec.in: add finance-quote-helper as executable
2001-03-19 Derek Atkins <warlord@MIT.EDU>
* src/engine/rpc/*: Gnucash RPC Subsystem (Backend and Server).
Still considered experimental. Note that the RPC protocol may
change over time causing client/server incompatibilities between
various versions of client and server.
* configure.in: Add option to --enable-rpc. Hook in RPC Subsystem
* src/engine/Account.c: Fix for initial balance on
stock/etc. accounts. In particular, don't set to zero if there
are no splits.
* src/engine/Backend.h: New RPC errors
* src/engine/Query.{c,h}: Add function to obtain the internal
Query Predicate functions (for use in rebuilding Queries from
the RPC subsystem)
* src/engine/Transaction.c: Be sure to call the backend in
xaccTransRollbackEdit()
* src/engine/gnc-book.{c,h}: Added gnc_run_rpc_server() function.
Added hooks to call RPC Backend
* src/guile/gnc.gwp: added gnc_rpc_server() and new RPC Backend errors
* src/scm/command-line.scm: added --rpc-server optio
* src/engine/Makefile.am: Added RPC subdir
2001-03-19 Dave Peticolas <dave@krondo.com>
* src/gnome/gnc-dir.h.in: move to src/gnome. fix for make dist
tarballs
* src/gnome/Makefile.am: add gnc-dir.h target
* src/Makefile.am: remove gnc-dir.h target
* src/quotes/Makefile.am: add gnc-prices to dist
* src/scm/report/transaction-report.scm (record): use number-cell
style
* src/scm/report/register.scm: use number-cell style
* src/engine/gnc-pricedb.c (gnc_price_unref): unref quote source
2001-03-18 Dave Peticolas <dave@krondo.com>
* src/engine/gnc-pricedb.c (compare_prices_by_date): sort
in descending order so the most recent quote is first.
* AUTHORS: update author info
* doc/sgml/C/xacc-about.sgml: update author info
* src/gnome/top-level.c: add VERSION arg to gnome_init
2001-03-16 Rob Browning <rlb@cs.utexas.edu>
* src/scm/utilities.scm
(item-list->hash!): new - fancy (possibly over-customizable)
list->hash converter function.
(filteroutnulls): simplify via SRFI-1.
(flatten): speedup - avoid intermediate appends.
(striptrailingwhitespace): speedup - avoid intermediate substrings.
(string-join): speedup - (maybe), trade string-appends for conses.
* src/scm/process.scm
(gnc:run-sub-process): renamed from run-sub-process.
(gnc:cleanup-sub-process): new - take various steps to make sure
we don't leave a zombie lying around.
* src/scm/price-quotes.scm: substantial rework - now much smarter,
though still a bit too obfuscated.
* src/scm/engine-utilities.scm: various cleanups, speedups, and
new functions.
(gnc:filename->book): deleted.
(gnc:call-with-account-data-from-file): deleted.
(gnc:url->loaded-book): new function.
* src/scm/command-line.scm (gnc:*arg-defs*): add
--add-price-quotes option.
* src/quotes/finance-quote-helper.in: new file - renamed from
price-quote-helper.in.
* src/quotes/README: various updates.
* src/quotes/Quote_example.pl: document that we *don't* use the
"fetch" method in gnucash.
* src/quotes/gnc-prices: new file -- replaces gnc-prices.in and is
now just a wrapper for "gnucash --add-price-quotes".
* src/quotes/Makefile.am: accomodated renaming of
price-quote-helper to finance-quote-helper. Also moved
finance-quote-helper to GNC_SHAREDIR from pkgdatadir.
(gncsharedir): grab GNC_SHAREDIR.
(gncshare_SCRIPTS): put finance-quote-helper in GNC_SHAREDIR.
* src/guile/gnc.gwp: wraped new quote timezone API. Added new
gnc-book wrappers and new pricedb wrappers -- still not finished.
* src/gnome/gnc-dialogs.glade: add quote timezone menu.
* src/gnome/dialog-utils.h: added prototypes for timezone menu
funcs.
* src/gnome/dialog-utils.c:
(known_timezones): new - list of quote timezones we support.
(gnc_find_timezone_menu_position): new.
(gnc_timezone_menu_position_to_string): new.
(gnc_ui_quote_tz_menu_create): new.
* src/gnome/dialog-account.c
(struct _AccountWindow): add quote_tz_menu.
(gnc_account_to_ui): support quote_tz_menu.
(gnc_ui_to_account): support quote_tz_menu.
(gnc_account_window_create): create quote_tz_menu.
* src/gnc-ui-util.h: warn to update price-quotes.scm when
PriceSourceCode changes.
* src/engine/io-gncbin-r.c
(cvt_potential_prices_to_pricedb_and_cleanup): Timespec* ->
Timespec for price time function(s).
* src/engine/gnc-pricedb.h: Timespec* -> Timespec for time
functions.
* src/engine/gnc-pricedb.c
(gnc_price_clone): re-enable, and Timespec* -> Timespec
(gnc_price_set_time): Timespec* -> Timespec
(gnc_price_get_time): Timespec* -> Timespec
(compare_prices_by_date): Timespec* -> Timespec
(gnc_pricedb_lookup_at_time): Timespec* -> Timespec
(gnc_price_print): minor fixes (still lame).
(gnc_price_print_stdout): new (for lame guile side debugging).
* src/engine/gnc-pricedb-xml-v1.c: change price time args/results
from Timespec* to Timespec (to be more guile friendly).
* src/engine/gnc-book.c (gnc_book_init): be more thorough.
* src/engine/Backend.h: warn to update gnc.gwp on some mods.
* src/engine/Account.h: support new funcs and update docs.
* src/engine/Account.c
(xaccAccountSetQuoteTZ): new.
(xaccAccountGetQuoteTZ): new.
2001-03-16 Dave Peticolas <dave@krondo.com>
* src/scm/report/transaction-report.scm: add line before
grand total
* src/scm/report/register.scm: more work
* src/gnome/window-register.c: display shares & current value
in stock registers.
* src/engine/gnc-pricedb.h: fix spelling error
* src/gnc-exp-parser.c (gnc_exp_parser_parse): check for
bad numeric value
* src/calculation/finvar.h: add new parser error type
* src/gnome/dialog-transfer.c (gnc_xfer_dialog_create): don't
set editable_enters for amount field
* src/engine/gnc-numeric.c: check for invalid arg
2001-03-15 Dave Peticolas <dave@krondo.com>
* src/engine/sixtp-to-dom-parser.c (dom_chars_handler): use
xmlNodeAddContentLen
* src/gnome/gnc-dialogs.glade: tweak stylesheet dialog
* src/gnome/dialog-style-sheet.c: tweak looks
* src/scm/report/register.scm: new report
* src/guile/gnc.gwp: g-wrap new query api
* src/gnome/window-register.c: add report menu and toolbar items
* src/engine/Query.c: handle NULL pointers, add api to get list
of splits with unique transactions
2001-03-15 James LewisMoss <jimdres@mindspring.com>
* src/engine/gnc-book.c (gnc_book_load_from_file): add xml v2
loading. Make use new funcs (below)
(happy_or_push_error): new func.
(gnc_book_determine_file_type): new func.
2001-03-14 Dave Peticolas <dave@krondo.com>
* rpm/gnucash.spec.in: simplify
* configure.in: add 'da' to language list
* src/gnome/dialog-totd.c (totd_close_cb): increment tip on
close so we open with the next one
* src/scm/tip-of-the-day.scm: make current tip number a preference
so it is saved and restored
* src/gnome/druid-commodity.c: same as below
* src/gnome/druid-qif-import.c: same as below
* src/gnome/dialog-commodity.c: prevent user from creating
a new iso commodity
* src/gnome/gnc-html.c: set busy cursor on html widget
while request is being processed
* src/gnome/window-main.c: hierarchy not heirarchy
* src/gnome/window-help.c: specify the help window as the
request dialog parent
* doc/sgml/C/xacc-dochack.sgml: remove and fix broken links
2001-03-14 James LewisMoss <jimdres@mindspring.com>
* src/engine/io-gncxml-v2.c (gnc_book_load_from_xml_file_v2): Add
counter callback.
(add_account_local): add call to countCallback
(add_commodity_local): same
(add_transaction_local): same.
2001-03-13 Dave Peticolas <dave@krondo.com>
* src/engine/io-gncxml-r.c (gnc_is_xml_data_file): don't print
a warning just because we couldn't open the file
* src/FileDialog.c (gncPostFileOpen): clear the non-iso
commodities before loading the new file
* src/SplitLedger.c (xaccSRGetEntryHandler): convert imbalance
to transaction currency fraction
* src/FileDialog.c (gncFileNew): clear the non-iso commodities
* src/engine/gnc-commodity.c (gnc_commodity_table_remove_non_iso):
new func
* src/test/test-xml-commodity.c: remove duplicate string_to_integer
* src/gnome/dialog-userpass.c: add missing #include
* src/register/gnome/Makefile.am: add gnome & glib flags
* src/engine/Makefile.am: add glib libs
* src/engine/sql/Makefile.am: add glib flags
* configure.in: fix includes used to check for sizes
* acinclude.m4: fix guppi macro
* macros/: update m4 files
2001-03-13 James LewisMoss <jimdres@mindspring.com>
* src/test/test-stuff.c (get_random_string): sometimes generate
empty strings and NULL (10% each).
(get_random_string): and 10% of the time generate a larger string.
(get_random_character): Generate better characters.
* src/engine/io-gncxml-v2.c (gnc_counter_end_handler): complete
func.
(print_counter_data): new func.
(gnc_book_load_from_xml_file_v2): call above func at end of
parse.
* src/engine/sixtp-dom-parsers.c (string_to_integer): move here
from gnc-commodity-xml-v2.c
* src/engine/io-gncxml-v2.c (gnc_book_write_to_xml_file_v2): add
transaction number output.
* src/engine/Group.c (xaccGroupForEachTransaction): actually make
this work.
(xaccGroupVisitUnvisitedTransactions): actually make this work.
Don't get accounts from group. We already are looking at all of
them by xaccGroupGetSubAccounts.
(xaccGroupVisitUnvisitedTransactions_thunk): new func for
xaccAccountForEachTransaction call.
* src/test/test-string-converters.c (test_string_converters): add
func to test some more difficult strings (including xml special
characters)
* src/engine/gnc-account-xml-v2.c (gnc_account_dom_tree_create):
convert to use text_to_dom_tree.
* src/engine/gnc-commodity-xml-v2.c
(gnc_commodity_dom_tree_create): convert to use text_to_dom_tree.
* src/engine/gnc-book.c (gnc_book_count_transactions): new func.
* src/engine/io-gncxml-v2.c: (write_account_group)new func.
extract out stuff from write_accounts. Forgot to traverse down
accounts so a bunch of the accounts weren't being written.
(write_accounts): now just call the write_account_group func.
(gnc_book_write_to_xml_file_v2): use xaccGroupNumSubAccounts to
get the number of accounts.
2001-03-13 Dave Peticolas <dave@krondo.com>
* src/engine/sixtp-utils.c (gnc_timegm): new func. define as
timegm if present, otherwise implement using mktime.
(string_to_timespec_secs): use gnc_timegm for UTC parsing
* src/engine/io-gncxml-r.c (gnc_book_load_from_xml_file): remove
TZ save & restore.
* src/test/test-date-converting.c: remove putenv
* src/test/test-dom-converters1.c: remove putenv
* src/test/test-xml-transaction.c: remove putenv
* src/gnome/gnc-http.c: same as below
* src/engine/NetIO.c (setup_request): use config.h instead
of hard-coding package and version
* configure.in: check for timegm function
* src/scm/report/taxtxf.scm: more porting work
* src/scm/html-text.scm (gnc:html-markup-em): new func
* src/scm/report/stylesheet-plain.scm: add some default styles
* src/scm/html-style-sheet.scm: remove non-type styles
* src/scm/html-document.scm (gnc:html-document-markup-start):
check for non-string attributes
2001-03-12 Dave Peticolas <dave@krondo.com>
* src/scm/html-style-info.scm: cleanup
2001-03-12 James LewisMoss <jimdres@mindspring.com>
* src/gnome/window-main.c (gnc_ui_xml_v2_cb): new func.
(gnc_ui_account_heirarchy_cb): new empty func.
(gnc_main_create_menus): add devel menu.
* src/engine/io-gncxml-v2.h (struct _load_counter_struct): add
counters stuff.
* src/engine/io-gncxml-v2.c: mostly complete everything. Writing
only partially tested. Reading not tested at all.
* src/engine/gnc-xml.h: add pricedb declarations.
* src/engine/gnc-transaction-xml-v2.c (split_to_dom_tree): check
for NULL return from kvp_frame_to_dom_tree and don't add if we get
it.
(gnc_transaction_dom_tree_create): same.
* src/engine/gnc-commodity.c (gnc_commodity_table_get_size): add func.
* src/engine/gnc-account-xml-v2.c (gnc_account_dom_tree_create):
check for NULL return from kvp_frame_to_dom_tree and don't do
anything if we get it.
* src/gnome/gnc-http.c (gnc_http_start_post): cast data to char*
(it's const char*) (compile warning)
* src/gnome/gnc-html.c: put const on char *ptr (compile warning)
* src/doc/xml/io-gncxml-version2.dtd: reorder commodity and
prices. Add count data defs.
* src/engine/sixtp-dom-generators.c (timespec_to_dom_tree): Only
write nanoseconds if > 0.
(kvp_frame_to_dom_tree): don't return an xmlNodePtr if the frame
is null or contains no data.
* src/engine/gnc-commodity-xml-v2.c
(gnc_commodity_dom_tree_create): check to see if xcode is > 0
* src/engine/gnc-account-xml-v2.c (gnc_account_dom_tree_create):
check for description and code strlen > 0
* src/engine/gnc-pricedb-xml-v1.c (pricedb_v2_end_handler): make
this func work in the v2 manner with a callback in the global
data.
(gnc_pricedb_sixtp_parser_create): change to work in the v2 manner
with an end handler that does the final link of the data into the
book.
(pricedb_after_child_handler): add upping the counter for prices
loaded.
2001-03-12 Dave Peticolas <dave@krondo.com>
* src/engine/io-gncxml-r.c (gnc_book_load_from_xml_file): use
TZ=UTC while parsing xml.
* src/engine/sixtp-utils.c: adjust for timezone offset manually
* src/scm/html-table.scm ((gnc:make-html-table-header-cell/markup
markup . objects)): new func
* src/scm/report/taxtxf.scm: more work on porting
* src/scm/html-style-sheet.scm: add "<number-cell>" and
"<number-header>" styles.
* src/scm/report/account-summary.scm: use "Total" not "Net
Assets". This is a general report, not just limited to asset
accounts.
2001-03-10 Dave Peticolas <dave@krondo.com>
* src/engine/Ledger-xml-parser-v1.c
(ledger_data_after_child_handler): mark pricedb as clean after
loading
2001-03-09 Bill Gribble <grib@billgribble.com>
* add configure/acconfig option for GPG
* src/gnome/gng-gpg.c: add handlers for creation of keypair
(with passphrase) and for exporting public key block to GnuCash
Network server. Fix bugs in old keypair creator. Add passphrase
handling to data encrypt/decrypt.
* src/gnome/gnc-html-actions.c: rewrite privacy notice to use
GnuCash Network terminology. The longer you guys wait to bitch
about the name the more stuck it is. Rewrite gnc-info/form handler
to submit GnuCash version and feature information.
* src/gnome/gnc-html.c: respect global preferences for HTTP, SSL,
and GnuCash Network transactions. Change submit handler calls to
unpack encoded form data into a hash table and possibly re-encode
and re-pack if necessary. Fix bugs in submit handler lookups.
Add RFC-1738 decoder to go with the encoder.
* src/gnome/window-help.c: fix bugs in Open dialog.
* src/scm/html-table.scm: Add new table-cell/markup and
append-row/markup functions to make it easier to set semantic data
styles in style sheets. Remove dead code.
* src/sc/prefs.scm: New preferences section, "Network", with
options to globally disable HTTP, SSL, and GnuCash Network, and to
assign the GnuCash Network server name.
* src/scm/report/table-test.scm: new test report to demonstrate
row and cell semantic style
2001-03-09 James LewisMoss <jimdres@mindspring.com>
* src/doc/xml/prices-v1.dtd: Add rest of def.
* src/engine/gnc-pricedb-xml-v1.c (add_child_or_kill_parent):
remove unneeded check since NULL has already been checked.
(xml_add_gnc_pricedb): extract out pricedb xmlNodePtr creation to
func not requiring parent then add that to parent passed into this
func.
(gnc_pricedb_to_dom_tree): new func.
(gnc_pricedb_sixtp_parser_create): new func to call other so names
are standard in v2 parser setup.
* src/engine/Account.c (xaccAccountInsertSplit): Remove unused
var oldacc (assigned to once) and the block that went with it.
* src/gnc-ui-util.c (gnc_account_print_info_helper): New helper
func.
(gnc_account_quantity_print_info): Use new helper func.
(gnc_account_value_print_info): same.
(gnc_default_print_info_helper): new helper func.
(gnc_default_share_print_info): use new helper func.
(gnc_default_price_print_info): same.
(gnc_split_quantity_print_info): add test for NULL split and
return a default.
(gnc_split_value_print_info): same.
2001-03-08 James LewisMoss <jimdres@mindspring.com>
* src/test/test-stuff.c (failure): don't print num if == -1.
(success): same.
(get_random_account): move here from test-xml-account.c
(get_random_split): move here from test-xml-transaction.c
(get_random_transaction): same.
(success_args): New func.
(success): Simplified version
(failure_args): new func.
(failure): Simplified version.
* src/engine/io-gncbin-r.c: same as below.
* src/engine/TransLog.c (xaccTransWriteLog): same as below.
* src/engine/Group.c (xaccGroupMergeAccounts): same as below.
* src/engine/Backend.c (xaccTransactionGetBackend): Convert to not
use the split's acc part directly, but only to access through
funcs
* src/engine/sixtp-dom-parsers.c (dom_tree_generic_parse): Add
generic parser.
* src/engine/gnc-account-xml-v2.c (gnc_account_end_handler): use
generic parser extracted from here and used here and
gnc-transaction-iml-v2.c
* src/engine/Transaction.c (xaccInitSplit): Add a split->acc_guid
field that is set to the account's guid. This way an Account is
not required to exist yet when loading the split. Later when
xaccSplitGetAccount is called the account is looked up, cached and
returned. Make sure everything accesses ->acc through the helper
function.
* src/engine/AccountP.h: same as below.
* src/engine/Account.c (xaccAccountSetGUID): mark guid argument
const since it doesn't keep a pointer to it.
* src/doc/xml/transactions-v2.dtd: change guid -> id.
2001-03-08 Dave Peticolas <dave@krondo.com>
* src/scm/report/report-list.scm: load tax report if possibly in
US locale.
* src/scm/report/taxtxf.scm: work on tax report (unfinished)
2001-03-07 James LewisMoss <jimdres@mindspring.com>
* src/engine/Transaction.c (get_denom_internal): New helper func.
(get_currency_denom): use func.
(get_security_denom): use func.
* src/engine/sixtp.c: (sixtp_sax_end_handler,
sixtp_sax_characters_handler, sixtp_sax_start_handler): don't use
g_return_if_fail to test pdata->parsing_ok so we don't see the
million CRITICAL warnings. We'll print an error at the end
anyway.
2001-03-07 Dave Peticolas <dave@krondo.com>
* src/scm/report/hello-world.scm: use new html format functions.
Add scheme reference.
* src/gnome/dialog-fincalc.c (gnc_ui_fincalc_dialog_create): hide
schedule button. Use 'lookup_widget'.
* src/gnome/gnc-html.c (gnc_html_export): handle cancelling
* src/scm/html-style-info.scm: remove cruft
2001-03-08 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm: More colourization.
2001-03-07 Bill Gribble <grib@billgribble.com>
* summary: separate the HTML and HTTP processing functions into
different files to facilitate reuse. Modularize much of the
gnucash-specific behavior of the HTML code (<object> and form
submission) to use run-time-expandable bahavior tables. Add the
gnc-action: mechanism for installing form submission handlers.
* src/gnome/gng-gpg.c: initialize gnc-html handler for crypted
HTML objects. Remove all mention of GPG from gnc-html.c
* src/gnome/gnc-html-actions.c: new file. Add a simple form
submission action (action=gnc-action:gnc-info/form?CGI_URL) to
test submit and action processing. This is useless ATM. Some of
the stuff in the privacy comments is unimplemented yet.
* src/gnome/gnc-html-guppi.c: move all Guppi references from
gnc-html.c into a separate file, with an initializer for
the Guppi <object> tags.
* src/gnome/gnc-html.c: get rid of SSL references; all that stuff
is now in gnc-http.c. Restructure to use gnc-http instead of
ghttp directly. Finish GET and POST default handlers, and add
handler lookup/install mechanism for gnc-action: actions. crib
urlencoding function from gtkhtml guts.
* src/gnome/gnc-http.c: new file. Move HTTP stuff here. Finish
POST handling.
* src/gnome/top-level.c: add calls to Guppi, GPG, and gnc-html
init functions. These calls will eventually go into loadable
module startup functions, when we get loadable modules.
* src/scm/html-text.scm: Add html-markup/format.
(html-markup/format "%a %a %a %a" 1 2 3 4) does what you'd expect,
even if the non-format args are html-markup objects.
2001-03-07 Dave Peticolas <dave@krondo.com>
* src/gnome/top-level.c (gnc_ui_check_events): add timeout
handler for checking backend events.
* src/engine/gnc-book.{ch}: add api calls to use backend
event hooks.
* src/engine/BackendP.h (struct _backend ): add events_pending
and process_events callbacks.
* src/scm/command-line.scm: extend usage command with argument
list
* src/pixmaps/Makefile.am: switch splash graphics
* src/gnome/gnc-splash.c (gnc_show_splash_screen): add a border.
use new graphic.
* src/gnome/window-main.c: store namespace & mnemonic instead
of commodity pointers in the asset/profit widget.
2001-03-07 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm: Added row colors to make
things look pretty. Comments on effectiveness appreciated.
* src/scm/html-table.scm: keep track of how many rows are in the
table.
2001-03-06 Dave Peticolas <dave@krondo.com>
* src/scm/iso-4217-currencies.scm: remove duplicate currency
fix colonial franc names
* src/engine/sixtp-dom-parsers.c (dom_tree_to_commodity_ref): use
gnc_commodity_destroy, not g_free.
* src/guile/gnc.gwp: fix for new commodity insert
* src/gnome/druid-qif-import.c: fix for new commodity insert
* src/gnome/dialog-commodity.c: check for existing commodity.
fix for new commodity insert.
* src/engine/io-gncbin-r.c: fix for new commodity insert
* src/gnome/druid-commodity.c: fix for new commodity insert
* src/engine/gnc-commodity.c: change commodity insert semantics to
use an existing commodity if present. Remove
gnc_commodity_table_remove(). It wasn't used and was a mem leak.
* src/engine/Commodity-xml-parser-v1.c
(commodity_restore_end_handler): use gnc_commodity_destroy,
not just g_free.
2001-03-05 Dave Peticolas <dave@krondo.com>
* src/register/gnome/gnucash-item-edit.{ch}: improve horizontal
scrolling behavior.
2001-03-05 Christian Stimming <stimming@tuhh.de>
* src/scm/html-utilities.scm: reorganizing of the hierarchical
reports: subtotals are now printed *below* the subaccounts instead
of above.
2001-03-05 James LewisMoss <jimdres@mindspring.com>
* src/engine/Transaction.c (xaccSplitSetAccount): new func.
* src/doc/xml/transactions-v2.dtd: move splits to an array type
structure.
2001-03-04 Dave Peticolas <dave@krondo.com>
* configure.in: define a new substitution GNC_PIXMAP_DIR for
a pixmap directory. check for gal.
* src/pixmaps/Makefile.am (gncpixmapdir): install in configured
pixmap directory
* src/gnc-dir.h.in (GNC_PIXMAP_DIR): define pixmap directory
* src/Makefile.am (gnc-dir.h): configure pixmap directory
for gnc-dir.h.in
* src/gnome/dialog-utils.c (gnc_get_pixmap): use configured
pixmap directory
* src/engine/gnc-associate-account.c: fix some uses of glib
list routines (they always return the new head of the list).
* src/pixmaps: add gnucash_long.png graphic
* src/gnome/top-level.c (gnucash_ui_init): show splash screen
* src/gnome/gnc-splash.{ch}: splash screen functionality
* src/gnome/dialog-utils.{ch} (gnc_get_pixmap): new function
* src/gnc-dir.h.in: add header file with directory info
* src/guile/Makefile.am: use BUILT_SOURCES for *.in sources
2001-03-04 Christian Stimming <stimming@tuhh.de>
* src/scm/html-utilities.scm: Added different printing of stock
accounts. Started a new layout/ordering for sub-totals.
* src/scm/commodity-utilities.scm (gnc:sum-collector-stocks):
added such that stock prices are no longer shown but foreign
currencies are. Rounding precision increased. Added sanity checks
for arguments of various funtions.
* src/scm/report-utilities.scm (gnc:account-is-stock?): added
function
2001-03-04 Dave Peticolas <dave@krondo.com>
* src/gnome/window-help.c: save & restore window size
* src/gnome/window-report.c: save & restore window size
* src/scm/prefs.scm: add vars for report & help win sizes
2001-03-03 Dave Peticolas <dave@krondo.com>
* src/engine/sql/README: add info about running without root
privileges
* src/engine/sql/design.txt: update design docs
* src/engine/sql/PostgresBackend.c (pgend_session_begin): connect
to template1 database instead of 'gnucash'
2001-03-02 Dave Peticolas <dave@krondo.com>
* src/gnome/new-user.glade: tweak layout, strings
* src/gnome/new-user-funs.h: add gpl header
* src/gnome/new-user-funs.{ch}: add gpl header
* src/gnome/new-user-callbacks.c: tweak layout, add gpl header
* src/gnome/gnc-dialogs.glade: add title to transfer dialog
* src/engine/gnc-pricedb.c (gnc_pricedb_destroy): fix mem leak
* src/gnome/dialog-options.c: cleanup destruction semantics.
destroy tooltips
* src/engine/io-gncxml-r.c (gnc_book_load_from_xml_file): fix mem
leak
* src/gnome/dialog-utils.c (gnc_build_option_menu): destroy
tooltips when menu is destroyed
2001-03-02 James LewisMoss <jimdres@mindspring.com>
* src/test/test-xml-transaction.c (test_generation): add success
call for creation accuracy.
* src/test/test-xml-commodity.c (test_generation): Add success
call for creation accuracy.
* src/test/test-xml-account.c (test_generation): Add call to
xaccGUIDinit. Don't know how this was working before without this
call. Maybe hit good memory spots before.
(test_generation): add success call for creation accuracy.
* src/engine/Transaction.c (xaccSplitSetSlots_nc): New func.
(xaccTransSetSlots_nc): new func.
2001-03-01 James LewisMoss <jimdres@mindspring.com>
* src/engine/gnc-account-xml-v2.c (account_id_handler): fix mem
leak because xaccAccountSetGUID doesn't keep pointer to guid
passed in.
2001-03-01 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-transfer.c: destroy tooltips object
* src/gnome/window-main.c (gnc_ui_destroy_all_subwindows): now all
windows use component manager
* src/gnome/window-report.c: add report to component manager.
cleaner destruction behavior
* src/gnome/window-help.c: cleaner destruction behavior
* src/gnome/gnc-html.c: fix to avoid having the ref the container
from outside for destruction
* src/FileDialog.c (gncAddHistory): fix mem leak
* src/gnome/dialog-options.c (gnc_option_create_date_widget): fix
bug & mem leak.
2001-03-01 James LewisMoss <jimdres@mindspring.com>
* src/engine/gnc-account-xml-v2.c (account_id_handler): fix mem
leak because xaccAccountSetGUID doesn't keep pointer to guid
passed in.
2001-03-01 Dave Peticolas <dave@krondo.com>
* src/register/gnome/gnucash-sheet.c: if input is cancelled by
user during delete, ignore the insert callback.
* src/MultiLedger.c: update for new view api
* src/register/recncell.{ch}: allow setting a parent to be used
for the dialog.
* src/gnome/query-user.c (gnc_verify_dialog_parented): handle null
parent by using gnc_get_ui_data.
* src/gnome/window-register.c: eliminate calls to
xaccSRCheckReconciled. confirmation is done in SplitLedger.c now.
* src/SplitLedger.c: use new data entry confirmation callback
to confirm changes to a reconciled split.
* src/register/splitreg.{ch}: mod for table-allgui changes
* src/register/table-allgui.{ch}: encapsulate 'view' callbacks
into a struct. add a callback for confiming data entry.
2001-03-01 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm (add-split-row): Now
uses date-posted rather than date-entered.
(used-<foo>, build-column-used): use a vector rather than a
record. *Big* speedup :)
* src/scm/html-document.scm (gnc:document-fetch-markup-style): use
a let rather than repeated variable lookups.
(gnc:document-fetch-data-style): ditto.
(gnc:html-document-markup-end): use new closing-font-tag? variable
for more speedup.
* src/scm/html-document.scm (<html-markup-style-info>): add new
closing-font-tag? variable to speedup closing tags. Also modify
setter functions to set closing-font-tag to appropriate values,
and add a setter and getter for it.
(gnc:html-style-info-markup-set): modify to set closing-font-tag
to appropriate state.
(gnc:html-style-info-markup-merge): modify to set closing-font-tag
to appropriate state
* src/scm/html-table.scm: replace for-each-in-order with for-each,
which has exactly the same semantics according to R5RS (which
guile is a superset of). Was done in hope of speedup, but none
forthcoming. Didn't change back because for-each is R5RS, but
for-each-in-order isn't. Probably should make the substitution
globally.
2001-02-28 Dave Peticolas <dave@krondo.com>
* src/engine/Transaction.c (xaccSplitsComputeValue): fix a bug
* src/engine/gnc-book.c (gnc_book_load): fix spelling
* src/engine/Scrub.c (xaccTransScrubImbalance): don't use sub_fixed
since the value may not have the right denominator
(xaccSplitScrub): handle splits without accounts
* src/gnome/query-user.c
(gnc_choose_radio_option_dialog_parented): actually set the parent
* src/SplitLedger.c (xaccSRCheckReconciled): check current
transaction, not current split.
* src/engine/GNCId.c: use GUID allocator for hash keys.
2001-02-28 James LewisMoss <jimdres@mindspring.com>
* src/engine/gnc-commodity-xml-v2.c (gnc_commodity_end_handler):
mem leak. free the node in the end handler.
* src/engine/gnc-commodity.c (reset_unique_name): new func.
(reset_printname): new func.
(gnc_commodity_new): use new funcs
(gnc_commodity_set_mnemonic): use new funcs.
(gnc_commodity_set_namespace): use new funcs.
(gnc_commodity_set_fullname): use new funcs.
* src/engine/gnc-commodity-xml-v2.c (gnc_commodity_end_handler):
Don't free commodity. That's the globaldata funcs job if it wants
to.
(set_commodity_value): Must remember compare equals == 0. Duh.
* src/engine/sixtp.c (sixtp_parse_file): Only run end handler if
parsing is already ok.
* src/test/test-xml-account.c (test_generation): oops should have
continued here.
* src/engine/gnc-commodity-xml-v2.c (valid_commodity): Complete func.
* configure.in (LIBS): disable libxml/xmlversion.h checks so we can't
compile for libxml2 for now.
* src/test/test-xml-account.c (node_and_account_equal): fix mem
leak.
(test_add_account): new func.
(test_generation): Actually test the node created and the
parser. Everything looks good other than some sixtp oddness I
don't understand yet.
* src/engine/gnc-transaction-xml-v2.c
(gnc_transaction_end_handler): same as below.
* src/engine/gnc-commodity-xml-v2.c (gnc_commodity_end_handler):
Use data struct from io-gncxml-v2.h
* src/engine/gnc-account-xml-v2.c (account_currency_handler): Make
not use engine commodity funcs to make this testable. Will have
to have something to clean this up in production code.
(account_security_handler): Same.
(gnc_xml_set_account_data): Oops. Actually set that we have
gotten this so the got all test succeeds.
(gnc_account_end_handler): Start the main parsing setup by relying
on data struct from io-gncxml-v2.h
(gnc_account_end_handler): fix free to free the correct thing.
Add some g_warning calls to make errors more apparent.
2001-02-28 Dave Peticolas <dave@krondo.com>
* src/FileDialog.c: store the original (not comma-fied) version
of the url in the file history.
2001-02-28 James LewisMoss <jimdres@mindspring.com>
* src/test/test-xml-account.c (delete_random_account): new func to
cleanup commodities not generally freed at xaccAccountDestroy.
(node_and_account_equal): complete func to compare account and the
dom tree created. Looks good except for some warnings from
dom_tree_to_text.
* src/test/test-stuff.c (equals_node_val_vs_commodity): new func.
(equals_node_val_vs_guid): New func.
(equals_node_val_vs_string): new func.
* src/engine/gnc-account-xml-v2.c (account_code_handler): Add func.
(account_description_handler): Add func. Oops forgot a couple.
(gnc_account_dom_tree_create): Move all string tags in file to
const gchar*s.
(account_slots_handler): Complete func.
* make-gnucash-patch.in: Test to see if makepatch exists.
* src/engine/sixtp-dom-parsers.c (dom_tree_to_text): same as
below. Add NULL tests for arguments. Affected many functions in
this file.
* src/engine/gnc-pricedb-xml-v1.c (price_parse_xml_sub_node): Same
as below.
* src/engine/gnc-commodity-xml-v2.c (set_commodity_value): Convert
dom_tree_to_text to act as rest looking at children on it's own.
2001-02-27 Dave Peticolas <dave@krondo.com>
* src/register/gnome/gnucash-scrolled-window.c: subclass of
gtk_scrolled_window for use in register.
* src/register/gnome/gnucash-item-list.c: use scrolled window
for really long account names.
* doc/sgml/es/Makefile.am (GNUCASH_SGML_FILES): fix list of sgml
files
* src/gnc-ui.h: use gncUIWidget not GtkWidget* in non-gnome
directories.
* src/engine/sql/PostgresBackend.c (pgendSyncTransaction): add
missing call to gnc_engine_resume_events ().
2001-02-28 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm: Formatting cleanups.
Gotta keep Dave P happy . . .
* src/scm/html-table.scm: html table data field list now stored in
*reverse* order, to make appending rows fast (prepending is now
O(n^2) however. If we want linear-time appends and prepends,
we'll need a Glist wrapper :) )
* src/scm/report/folio.scm: use renamed collector functions (dunno
why, code is dead . . .)
* src/scm/report/taxtxf.scm: use renamed collector functions (see
above)
* src/scm/report/average-balance.scm: changed to use renamed
collector functions.
* src/scm/commodity-utilities.scm: changed to used renamed
make-<foo>-collector functions.
* src/scm/report-utilities.scm (gnc:make-<foo>-collector): renamed
to prevent namespace pollution.
2001-02-27 James LewisMoss <jimdres@mindspring.com>
* src/test/test-xml-account.c (node_and_account_equal): Start
proper comparison between node and Account.
* src/engine/sixtp-dom-parsers.c (dom_tree_to_guid): Merge in Hans
de Graaff's xml patch. Use safe_strcmp.
* src/engine/gnc-xml-helper.h: cleanup. Merge in Hans de Graaff's
xml patch.
* src/engine/gnc-account-xml-v2.c: Merge in Hans de Graaff's xml
patch.
* src/test/test-stuff.c (check_dom_tree_version): Add func.
* src/test/Makefile.am (LDADD): Add EFENCE_LIBS to LDADD list.
* src/Makefile.am: Add EFENCE_LIBS to LDADD list.
* acconfig.h: Add required USE_EFENCE def.
* configure.in: Add --enable-profiling argument.
(GHTTP_CFLAGS): Add --enable-efence argument.
2001-02-27 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-userpass.c: add a dialog for username/password
entry
2001-02-26 Dave Peticolas <dave@krondo.com>
* src/engine/gnc-engine-util.h: don't evaluate debug macro
arguments unless it's going to be printed.
2001-02-25 Robert Graham Merkel <rgmerk@mira.net>
* src/engine/Query.[ch]: added support for sorting by account
names and codes, as well as names and codes for the "other" split
in the transaction. also, modified (xaccQuerySetSortIncreasing)
so you can sort in different orders for the three criteria
specified.
* src/engine/Transaction.[ch]: Added new functions for comparing
splits on account names and codes.
* src/engine/reconcile-list.c (gnc_reconcile_list_set_sort_order):
modified to use new query sorting interface.
* src/scm/report/transaction-report-2.scm: New file. Transaction
report rewritten for our new improved HTML generator. Most
functionality is now present, but the layout is "homely". Will
fix later.
* src/scm/report/transaction-report.scm: Old transaction report,
removed.
* src/scm/report/report-list.scm: added new transaction report.
* src/scm/report-utilities.scm: modified for new query sorting
interface.
* src/doc/design/multicurrency.discussion.txt: The log of an IRC
discussion between cstim and myself about his currency-collector
code. Included because it's the only documentation we have on
this material.
* src/doc/design/.cvsignore: ignore additional generated files.
2001-02-24 Rob Browning <rlb@cs.utexas.edu>
* configure.in (AC_ARG_ENABLE): add --enable-error-on-warning.
Enables -Werror and whatever else is needed for super-strict
checks. I'm compiling with this now, and I urge everyone else to
as well. We do have a few aggravating things we still ignore,
like unused variables, but as of today, the whole codebase
compiles successfully with this turned on.
(AC_CHECK_PROG): Add a check for etags.
(AC_ARG_WITH): --with-perl-includes - don't die if CORE not found.
I install modules in a local directory and use --perl-includes to
enable gnucash to find Finance::Quote at runtime, but there won't
be a CORE file.
(AC_CHECK_LIB): popt - note required Debian -dev package.
* macros/autogen.sh (conf_flags): omit --enable-compile-warnings.
This was adding flags that overrode our configure.in settings;
specifically, this kept --enable-error-on-warning from working.
* Makefile.am (noinst_DATA): add optional TAGS target.
(DISTCLEANFILES): add tags cleanup bits.
(TAGS): Add fancy TAGS handling. TAGS file is only built if you
have etags available, and now it takes into account
additions/deletions of files in addition to modifications.
* src/engine/gnc-engine-util.c
(g_hash_table_key_value_pairs): new - returns a GSList of all the
key value pairs in a given hash table so you can manipulate them.
(g_hash_table_kv_pair_free_gfunc): new - g_slist_foreach helper
for deleting key value hash pairs when you're finished with the
results from g_hash_table_key_value_pairs. You'll still need to
call g_slist_free as well to delete the spine of the list.
* src/engine/NetIO.c: comment out various bits of the code that's
incompatible with the recent gnc-book changes. Linas said he'd
fix it later.
* src/scm/price-quotes.scm: new file - not used yet.
* src/scm/price-quotes.scm: new file - launch a sub-process you
can talk to bidirectionally from scheme read/write.
* src/scm/command-line.scm: (disabled) support for getting prices.
* src/scm/command-line.scm
(gnc:group-map-accounts): implementation simplified dramatically,
probably should be dropped entirely, in favor of just calling (map
thunk (gnc:group-get-subaccounts group)) -- which is what's in the
replacement code.
* src/quotes/price-quote-helper.in: new file.
* src/Backend.h: Delete ERR_FILEIO_MISC (use ERR_BACKEND_MISC).
Replace ERR_FILEIO_ALLOC with ERR_BACKEND_ALLOC.
* src/engine/gnc-book.c: add support for GNCPriceDB element. Move
still relevant FileIO bits here. Add support for gnc-book
clean/dirty checking instead of just Group checking.
* src/engine/gnc-book.h: fixes for gnc-book marking, private
header, and addition of pricedb.
* src/engine/gnc-book-p.h: new file - private book functions.
* src/engine/Ledger-xml-parser-v1.c
(ledger_data_after_child_handler): new function to handle grabbing
the pricedb when we hit it.
* src/FileDialog.c: Various fixes to replace uses of the top level
AccountGroup with the parent GNCBook. Also add support for
reading/writing the GNCPriceDB. This file still needs a lot of
work. Much of it should become a proper file IO Backend.
* src/guile/gnc.gwp: Add <gnc:Book*>. Add gnc:get-current-book.
Add gnc:book-get-group. Add gnc:account-get-price-src.
* src/gnome/druid-commodity.c (finish_helper): add support for
GNCPriceDB.
* src/engine/sixtp-writers.h: add support for GNCPriceDB.
* src/engine/sixtp-to-dom-parser.c
(sixtp_dom_parser_new): change signature to add fail and result
cleanup functions. These can be NULL, in which case they're
ignored. Also modify overall scheme to clean internal garbage up
properly in case of failure.
* src/engine/sixtp-parsers.h
(sixtp_dom_parser_new): change signature.
* src/engine/sixtp-dom-parsers.c (dom_tree_to_text): minor fixes.
* src/engine/sixtp-dom-generators.c
(text_to_dom_tree): new function.
* src/engine/sixtp-dom-generators.h
(text_to_dom_tree): new prototype.
* src/engine/io-gncxml-w.c: add support for pricedb and using
GNCBook at top level rather than Group.
* src/engine/io-gncxml.h: support migration from top level Group
to top level GNCBook.
* src/engine/io-gncbin-r.c: add support for detecting legacy
prices and migrating them to the new pricedb. Replace top level
uses of a Group with a GNCBook.
* src/engine/io-gncbin.h: support pricedb and gnc-book changes.
* src/engine/io-gncxml-p.h: new file - private header.
* src/engine/io-gncxml-r.c: move bits to private header. Make
changes to support move from top level to Group to top level
GNCBook.
* src/gnome/druid-qif-import.c: -Werror fixes.
* src/engine/gnc-pricedb.h: new file.
* src/engine/gnc-pricedb-p.h: new file.
* src/engine/gnc-pricedb.c: new file.
* src/engine/gnc-pricedb-xml-v1.c: new file.
* src/engine/gnc-engine-util.h: accomodate new functions.
* src/engine/gnc-commodity-xml-v2.c
(gnc_commodity_sixtp_parser_create): fix sixtp_dom_parser_new call.
* src/engine/gnc-account-xml-v2.c
(gnc_account_end_handler): -Werror fixes.
(gnc_account_sixtp_parser_create): fix sixtp_dom_parser_new call.
* src/engine/date.h (timespec_equal): add back.
* src/engine/date.c (timespec_equal): add back.
* src/engine/Commodity-xml-parser-v1.c
(xml_add_commodity_ref): cleanup.
* src/FileIO.h: deleted.
* src/FileIOP.h: deleted.
* src/FileIO.c: deleted.
* src/test/test-dom-parser1.c: fixes for new sixtp_dom_parser_new.
* src/test/test-xml-account.c: fixes for new sixtp_dom_parser_new.
* src/test/test-xml-commodity.c: fixes for new sixtp_dom_parser_new.
* src/guile/option-util.h: remove consts from
gnc_commoditities (after consultation with Bill).
* src/guile/option-util.c: remove consts from
gnc_commoditities (after consultation with Bill).
* src/guile/guile-util.h: remove consts from
gnc_commoditities (after consultation with Bill).
* src/guile/guile-util.c: remove consts from
gnc_commoditities (after consultation with Bill).
* src/guile/global-options.h: remove consts from
gnc_commoditities (after consultation with Bill).
* src/guile/global-options.c: remove consts from
gnc_commoditities (after consultation with Bill).
* src/gnome/window-register.c: remove consts from
gnc_commoditities (after consultation with Bill).
* src/gnome/window-main.c: remove consts from
gnc_commoditities (after consultation with Bill).
* src/gnome/gnc-currency-edit.h: remove consts from
gnc_commoditities (after consultation with Bill).
* src/gnome/gnc-currency-edit.c: remove consts from
gnc_commoditities (after consultation with Bill).
* src/gnome/gnc-commodity-edit.h: remove consts from
gnc_commoditities (after consultation with Bill).
* src/gnome/gnc-commodity-edit.c: remove consts from
gnc_commoditities (after consultation with Bill).
* src/gnome/druid-commodity.c: remove consts from
gnc_commoditities (after consultation with Bill).
* src/gnome/dialog-account.c: remove consts from gnc_commoditities
(after consultation with Bill).
* src/gnome/dialog-options.c: remove consts from gnc_commoditities
(after consultation with Bill).
* src/gnome/dialog-commodity.h: remove consts from
gnc_commoditities (after consultation with Bill).
* src/gnome/dialog-commodity.c: remove consts from
gnc_commoditities (after consultation with Bill).
* src/gnc-ui-util.h: remove consts from gnc_commoditities (after
consultation with Bill).
* src/gnc-ui-util.c: remove consts from gnc_commoditities (after
consultation with Bill).
* src/engine/Transaction.h: remove consts from gnc_commoditities
(after consultation with Bill).
* src/engine/Transaction.c: remove consts from gnc_commoditities
(after consultation with Bill).
* src/engine/Scrub.c: remove consts from gnc_commoditities (after
consultation with Bill).
* src/AccountP.h: remove consts from gnc_commoditities (after
consultation with Bill).
* src/Account.h: remove consts from gnc_commoditities (after
consultation with Bill).
* src/Account.c: remove consts from gnc_commoditities (after
consultation with Bill).
* src/SplitLedger.c: remove consts from gnc_commoditities (after
consultation with Bill).
* src/EuroUtils.h: remove consts from gnc_commoditities (after
consultation with Bill).
* src/EuroUtils.c: remove consts from gnc_commoditities (after
consultation with Bill).
2001-02-23 Bill Gribble <grib@billgribble.com>
* src/scm/qif-import/qif-dialog-utils.scm: Be more flexible
about account types on QIF import
* src/scm/qif-import/qif-objects.scm: make sure the list of
allowed types is in the right order
* src/scm/qif-import/qif-to-gnc.scm: be more flexible about type;
check on parent type after creating child; don't set security on
non-{stock,mutual} accounts.
2001-02-22 Christian Stimming <stimming@tuhh.de>
* src/engine/Transaction.h: Added xaccSplitGetAmount to be used
instead of SplitGetShareAmount. Added some explanatory comments
about our commodity restructuring.
2001-02-22 James LewisMoss <jimdres@mindspring.com>
* src/test/test-dom-parser1.c: Move generic funcs to test-stuff.c
* src/test/test-dom-converters1.c: Move generic funcs to
test-stuff.c
* src/test/test-date-converting.c: move generic funcs to
test-stuff.c
* src/engine/sixtp-to-dom-parser.c (dom_start_handler): cast arg
to xmlNewChild to xmlNodePtr
(dom_chars_handler): Remove is_whitespace func and use isspace_str
from other file.
* src/engine/sixtp-dom-parsers.c: Add all the dom_tree_to funcs.
* src/engine/sixtp-dom-generators.c (guid_to_dom_tree): Make GUID
arg const.
(commodity_ref_to_dom_tree): check nulls.
(add_kvp_value_node): Add all the kvp code.
* src/engine/kvp_frame.c: Use string cache func.
(charstar_va_list_to_gslist): new func.
(kvp_frame_get_frame): More refactoring.
* src/engine/gnc-engine.h: Add func def as below.
* src/engine/gnc-engine.c: Move string cache creation to function
to get so that you don't have to gnc_engine_init to use the global
string cache.
(gnc_engine_get_string_cache): Add func as above.
* src/engine/gnc-book.h: Add func as below.
* src/engine/gnc-book.c (gnc_book_get_commodity_table): Add
function.
* src/engine/gnc-account-xml-v2.c (gnc_account_dom_tree_create):
Complete func.
(gnc_account_end_handler): Fix up. Finish work.
* src/engine/Transaction.c (xaccInitSplit): Use func to get string
cache rather than accessing the var directly.
* src/engine/Account.h: same as Account.c. Add comment on
xaccAccountSet{Currency,Security} that they take control of the
gnc_commodity args.
* src/engine/Account.c: Rename xaccAccountSetSlots to *_nc so we
use the kvp_frame provided rather than copy.
* src/doc/xml/types.dtd: Fix up kvp type list. clean up timestamp
tuff. Simplify a bit.
* src/doc/xml/account-v2.dtd: add code and description.
2001-02-19 James LewisMoss <jimdres@mindspring.com>
* src/engine/kvp_frame.c: Fix < to be > in binary datasize
argument (bug fix). Add comment about appropriateness of
comparing data sizes first.
Fix double compare. was using just gint64 compare. Extracted out
double compare into double_compare function.
Fix return value of kvp_value_compare from gboolean -> gint.
Fix bug in kvp_glist_compare where it should have read (!lp2 &&
lp1) and it read (!lp2) so glists never compared equal.
(kvp_frame_get_hash): Add func.
(kvp_frame_to_string): Add func.
(kvp_value_to_string): Add func.
(kvp_value_glist_to_string): Add func.
(binary_to_string): Add func.
2001-02-15 Bill Gribble <grib@billgribble.com>
* src/scm/qif-import/qif-guess-map.scm: add stock hash
save/restore to map IO
* src/scm/qif-import/qif-to-gnc.scm: bug fixes to remove duplicate
account problems
2001-02-15 Christian Stimming <stimming@tuhh.de>
* src/scm/report-utilities.scm: Added functions to filter accounts
by type, and helpers for calculating balances.
* src/scm/commodity-utilities.scm: (gnc:make-exchange-function)
now uses <gnc-monetary>.
* src/scm/html-utilities.scm: (gnc:html-build-acct-table) major
code cleanup. Added new function to generate a <html-table> of
exchange rates.
* src/scm/options-utilities.scm: Added function for another
option.
* src/scm/report/{pnl,account-summary}.scm: Added options.
2001-02-15 James LewisMoss <jimdres@mindspring.com>
* src/engine/Account.h: Add prototype for SetSlots.
* src/engine/Account.c (xaccAccountSetSlots): add func.
* src/test/test-dom-converters1.c (main): Add return_value
handling to better be a "check"able program.
* src/test/test-date-converting.c (main): Add return_value
handling to better be a "check"able program.
* src/engine/kvp_frame.c (kvp_frame_get_frame): refactor to use
glist func.
(kvp_frame_parse_slash_path): extract from slashpath func
(kvp_frame_get_frame_slash): refactor to use gslist func
* src/test/test-dom-converters1.c
(test_dom_tree_to_commodity_ref): Use no_engine version.
* src/engine/sixtp-dom-parsers.c
(dom_tree_to_commodity_ref_no_engine): rename func.
(dom_tree_to_commodity_ref): Add func to do complete commodity
creation including adding to engine cache.
2001-02-14 James LewisMoss <jimdres@mindspring.com>
* src/test/test-dom-converters1.c (Repository): fix mem leak.
* src/engine/sixtp-dom-parsers.h (Repository): start of kvp code.
* src/engine/sixtp-dom-parsers.c (Repository): fix mem leak.
Start of kvp code.
* src/engine/sixtp-dom-generators.c (Repository): fix mem leak.
(Repository): Start of kvp code.
* src/test/test-date-converting.c (Repository): Tests to make sure
date <-> string converting strings work.
* src/test/test-dom-converters1.c (Repository): Add tests for rest
of converters.
* src/test/Makefile.am (Repository): add new test. Make "make
check" work here.
* src/engine/sixtp-xml-write-utils.c (Repository): use date format
strings from sixtp-utils.h
* src/engine/sixtp-utils.h (Repository): add date format strings.
#include sixtp.h
* src/engine/sixtp-utils.c (Repository): Use define as timespec
date format string.
* src/engine/sixtp-dom-parsers.c (Repository): Add funcs from
Rob. make consistent. Fix a few bugs. Make
dom_tree_to_commodity_ref testable by adding new func
"associate_commodity_ref_with_engine_commodity" to do final
association with engine commodity table.
* src/engine/sixtp-dom-generators.c (Repository): Fix to_guid to
be generic. Oops. Add rest of funcs to to foo_to_dom_tree to
match funcs in sixtp_dom_parsers.
* src/engine/gnc-numeric.c (Repository): Comment out unused var.
* src/engine/gnc-account-xml-v2.c (Repository): change to use
dom_tree_to_commodity_ref.
* src/doc/xml/types.dtd: Change cmd: to cmdty: and add ts: to the
timespec tags.
2001-02-14 Dave Peticolas <dave@krondo.com>
* src/engine/date.c: use nl_langinfo (D_FMT) instead of %x for
locale-based date formatting and parsing.
2001-02-14 Bill Gribble <grib@billgribble.com>
* src/scm/qif-import/*.scm: fuzzify account type rules a bit to
make imports more likely to match up with existing accounts. Fix
broken "New" detection.
* src/gnome/druid-qif-import.c: add default acct based on file
name
* src/gnome/dialog-account-picker.c: make sure picker gets
scrolled to initial selection.
2001-02-14 Christian Stimming <stimming@tuhh.de>
* src/scm/html-utilities.scm (gnc:html-build-acct-table): Add
grouping of accounts according to their types and show their
subtotal. Major cleanup.
2001-02-13 Bill Gribble <grib@billgribble.com>
* src/engine/gnc-numeric.c: fix stupid. stupid. stupid. stupid
log10 error
* src/guile/gnc-helpers.c: start to fix scm_to_gint64 for
guile-1.3.. this is sort of a duct-tape fix. We need to port some
stuff from the guile-1.4 source tree. Should work fine unless you
are Bill Gates and you do your accounting in lira.
* src/gnome/dialog-style-sheet.c: handle WM delete event
* src/scm/qif-import/qif-to-gnc.scm: fix backtrace-if-exception
usage; add preliminary memo/payee-to-account mapping.
* src/scm/utilities.scm: define hash-fold if it's not builtin
2001-02-12 Bill Gribble <grib@billgribble.com>
* src/scm/html-style-info.scm: minor fixes to html style
compile
* various in src/scm: fixes for i18n .. use (N_ instead of (_
where appropriate.
* src/engine/gnc-numeric.{c,h}, src/scm/gnc-numeric.scm: add
support for a new auto-denom type, GNC_DENOM_SIGFIGS(x), where x
is the number of "significant figures" you want in the output.
This means that the output denominator will always be a poewr of
10, but which power is determined by the magnitude of the
argument.
* src/engine/Transaction.c, src/gnc-exp-parser.c,
src/gnc-ui-util.c: make minor changes to use GNC_DENOM_SIGFIGS
where appropriate.
* src/gnome/dialog-account-picker.{c,h}: totally rewritten QIF
import account picker. this one is much less likely to get you
into trouble. Still some rough edges but MUCH better than
the old one.
* src/gnome/druid-qif-import.c: fixes. Add memo/payee matching
(but it's not hooked up to the import yet so don't get that
excited).
* src/scm/qif-import/qif-dialog-utils.scm: memo mapping stuff,
i18n fixes.
* src/scm/qif-import/qif-to-gnc.scm: update error catching; print
backtrace on failure.
2001-02-09 Christian Stimming <stimming@tuhh.de>
* src/scm/commodity-utilities.scm: Functions to calculate exchange
rates (weighted average) for different commodities (moved from
report-utilities.scm). Major cleanup.
* src/scm/options-utilities.scm: Option creation functions common
to several reports. (moved from report-utilities.scm)
* src/scm/report-utilities.scm: Major cleanup.
2001-02-08 Bill Gribble <grib@billgribble.com>
* src/gnome/druid-qif-import.c: restructure druid a bit to
allow more flexible navigation (in particular, so we can have
a global pref to skip documentation pages)
* src/scm/html-*.scm: change rendering model to speed up reports.
use a "string tree" instead of the old with-output-to-string and
compile style tables where possible. Strangely enough, alists
are faster than hash tables.
* src/scm/html-table.scm: clean up row/col style stuff a little.
semantics changed a wee bit: now row style takes precedence over
column style. this was necessary for performance.
* src/scm/prefs.scm: add a global pref to skip doc pages in the
QIF importer.
* src/scm/report.scm: shuffle around a bit for the new rendering
model.
* src/gnome/window-report.c: back out some overly-aggressive
memory reclamation. I need to figure out how to do this right.
2001-02-08 Christian Stimming <stimming@tuhh.de>
* src/scm/date-utilities.scm Added (gnc:timepair-previous-day).
* src/scm/report-utilities.scm (gnc:account-get-balance-interval)
Fix bug with start date.
* src/scm/html-style-info.scm: Fix bug.
* src/scm/gnc-numeric.scm: Add more functions on gnc-monetary.
* src/scm/html-utilities.scm: Add balance sign reversal
conditioned on gnc:account-reverse-balance? for the account
table. Add function to print exchange rates.
* src/scm/report-utilities.scm: Modify commodity-collector to
enable more sign reversals and usage of gnc-monetary. Add option
creation functions common to several reports.
* src/scm/report/account-summary.scm: Removed function now in
report-utilities.scm. Added variables for option names.
* src/scm/report/pnl.scm: New Profit And Loss report, based on
account-summary report.
2001-02-08 James LewisMoss <dres@phoenixdsl.com>
* src/engine/sixtp.c (sixtp_parse_file): Only set parse_result if
it points somewhere.
* src/engine/sixtp-to-dom-parser.c (dom_chars_handler): fix
character adding.
2001-02-07 James LewisMoss <dres@phoenixdsl.com>
* make-gnucash-patch.in: Add a file ending that is ignored.
* src/doc/xml/types.dtd: Change currency-type -> commodity-type.
Add defs for cmd:space and cmd:id.
* src/doc/xml/io-gncxml-version1.dtd: Change currency-type ->
commodity-type.
* src/doc/xml/account-v2.dtd: Change currency-type ->
commodity-type.
2001-02-06 James LewisMoss <dres@phoenixdsl.com>
* src/engine/sixtp.c: Use frame creator.
Move sixtp_handle_catastrophe to here. Add functions
sixtp_context_new, sixtp_context_destroy. And change and move
sixtp_parse_file and sixtp_parse_buffer here from io-gncxml-r.c
Add concept of a parsing context to hold data.
* src/engine/sixtp-stack.h: Add creator. Add headers.
* src/engine/sixtp-stack.c: Add creator.
* src/engine/sixtp-parsers.h: add needed headers.
Add func from sixtp-to-dom-parser.c
* src/engine/io-gncxml.h: Fix name.
* src/engine/io-gncxml-w.c: Fix name.
* src/engine/io-gncxml-r.c: Fix name. Create stack frame creator
function and use here.
2001-02-05 James LewisMoss <dres@phoenixdsl.com>
* src/engine/sixtp-stack.h: Add glib.h include (needed for GSList)
* src/engine/sixtp.c: Add catchall tag for parsing handlers. Use
name instead of next_parser_tag since that can now contain a magic
value.
2001-02-05 Bill Gribble <grib@billgribble.com>
* src/scm/qif-import/qif-merge-groups.scm: new file. Utilities
for detecting duplicate transactions in two account groups.
* src/scm/qif-import/qif-quick-import.scm: new file (unfinished).
A start at a "quick import" facility that will import a single
QIF file with very little interaction.
* src/engine/Group.c: be sure to free account split list and
set to NULL on merge
* src/engine/Query.c: add a new API to get Transactions from a
query instead of splits. you have to specify whether you want
transactions with one split matching the query or all splits
matching the query. More options later.
* src/gnome/druid-qif-import.c : add a few slots to the
QIF window struct and add the extra pages to the dialog to
allow review and selection of duplicate transactions
* src/guile/gnc.gwp: wrap new Query functions and enums; wrap
gnc:group-concat-group
* src/scm/gnc-numeric.scm: add gnc-numeric enumerated types.
They need to be bitwise combined so don't use g-wrap enum
features.
* src/scm/qif-import/qif-to-gnc.scm: change semantics slightly to
put new xtns in a new Group and return it before committing.
2001-02-05 Christian Stimming <stimming@tuhh.de>
* src/scm/html-utilities.scm: Added sorting of accounts according
to their account-code. Added calculation of a total sum.
* src/scm/report-utilities.scm: Improved calculation of the
exchange rates such more complicated currency configurations can
be handled.
2001-02-03 Christian Stimming <stimming@tuhh.de>
* src/scm/html-utilities.scm: add account table generating
function which builds a hierarchy and is generalized enough to be
used in balance- and profit-and-loss style reports. (moved from
report/account-summary.scm)
2001-02-02 Christian Stimming <stimming@tuhh.de>
* src/scm/report-utilities.scm: add function for determining the
account tree depth (moved from account-summary)
* src/scm/report/account-summary.scm: changed semantics of account
selection option.
2001-02-01 Bill Gribble <grib@billgribble.com>
* src/gnome/gnc-html-history.{h,c}: add destroy callback. part of
report memory management cleanup
* src/gnome/window-report.c: set report dirty flag when options
apply or reload is clicked. Store report object in window
struct while it's visible.
* src/scm/qif-import/qif-file.scm: expand detection of opening
balance transactions.
* src/scm/qif-import/qif-parse.scm: fix regexp bug in miscincx and
miscexpx category parsing (thanks carol!)
* src/scm/qif-import/qif-to-gnc.scm: use correct amount for
non-stock investment transactions (dividends etc). Use fuzzy
equality predicate for inexact numbers.
* src/scm/report.scm: Add dirty flag and 'children' (other reports
created by this report... nobody uses it yet) to report struct.
Add function to clean up report when it's erased from the window
history. Add some debugging timing bits to the report-run
function. Display cached HTML if not dirty.
* src/scm/report.scm: WARNING! Change prototype of report
rendering functions... they take a <report> object as argument
instead of an options object. This is necessary for memory
management stuff when reports create other reports.
* src/scm/report/account-summary.scm: fix to use new renderer
signature
* src/scm/report/average-balance.scm: fix to use new renderer
signature
* src/scm/report/hello-world.scm: fix to use new renderer
signature
2001-01-30 Bill Gribble <grib@billgribble.com>
* src/scm/report/stylesheet-{plain,fancy}.scm: add a new boolean
option to disable hyperlinks in reports. This will make it nicer
to have a "printing" style sheet that disables links when you want
to print. (if you change a report's style sheet, click "Reload"
to see it take effect. this needs to be fixed)
* src/gnome/gnc-html-embedded.c: add support for URLsa attached to
double clicks of pie slices, bar chart bars, and legend entries of
guppi graphs. Still need to do this for scatter chart.
* src/scm/html-{piechart,barchart}.scm: add API for callbacks.
Not totally finished with barchart yet.
* src/scm/qif-import/qif-to-gnc.scm: check for currency and type
mismatches between QIF-imported and existing GNC accounts. If
there's a name conflict, rename the new account with a unique name
and a description indicating there was a conflict. This should
fix several reports of crashes for multi-currency users.
* src/scm/report-utilities.scm: back out my previous breakage of
gnc:amount->string
* src/scm/report.scm: Thanks to the guile mailing list for
pointing my at this odd bit of code needed to print backtraces on
guile exceptions while still running. You need to run with
--debug to get the trace.
2001-01-26 Bill Gribble <grib@billgribble.com>
* src/gnome/gnc-gpg.{c,h}: if Linas can add useless prototype
code, so can I :) Gnucash now supports display of GPG-encrypted
HTML pages via another special <object> block.
* src/gnome/gnc-html.c: Add support for GPG stuff. Fix error
reporting to display errors from GHTTP if available.
* src/gnome/window-help.c: Add an Open button to open an arbitrary
URL. The network IS the computer!
* src/scm/html-document.scm: Change interface to additional
attributes on html-document-markup-start.
* src/scm/html-table.scm: Fix rendering of <html-table-cell> to do
rowspan/colspan correctly. Add new constructors to build <th>
<html-table-cells> in addition to <td>
* src/scm/report-utilities.scm: Rename misnamed d-gnc:foo
functions to gnc:foo. d-gnc: is only for preexisting engine
interface functions that had signature changes. there's nothing
inherently deprecated about using doubles in reports.
* src/scm/report.scm: Start trying to print backtraces on
exceptions in reports. Only partially successful at this point;
the error gets printed but the backtrace won't. Stay tuned. You
need to run with --debug to see the error information.
* src/scm/report/account-summary.scm: Modify to use new
table-cell ctors where appropriate. Set justification for
cells correctly.
* src/scm/report/average-balance.scm: Add title.
* src/scm/report/stylesheet-plain.scm: Render title in plain
stylesheet. Set default table border to 0.
2001-01-15 Bill Gribble <grib@billgribble.com>
* src/gnome/druid-qif-import.c: remove printout
* src/scm/qif-import/qif-parse.scm: Warning dialog on unknown
Action type. Add new actions from Q2000.
* src/scm/qif-import/qif-to-gnc.scm: Fix handling of commissions
for (hopefully) the last time. Add new security Action types.
Don't puke on unknown Action.
* src/scm/qif-import/qif-dialog-utils.scm: Change default account
for ShrsIn/ShrsOut to 'Retained Earnings', which is a normal
account; replaces old policy of stock-denominated Equity
subaccounts.
2001-01-15 Rob Browning <rlb@cs.utexas.edu>
* configure.in (G_WRAP_LINK_ARGS): require g-wrap 1.1.5. This
should fix a number of problems, including guile 1.3.4
compatibility (g-wrap was using the *_NEWSMOB macros which guile
1.3.4 doesn't have), and maybe even Dave's ugly memory issues.
* src/scm/report/average-balance.scm: new g-wrap fix.
Essentially all of these g-wrap fixes are to accomodate the new
type names and visible bindings for g-wrapped non-native types.
Where we had <gw:wct-void*> we now have <gw:void*>. This naming
convention has been applied unilaterally, even for native types,
so we now have <gw:int>. Further, types that are gnucash types
appear as <gnc:Account*>, and types that are glib appear as
<glib:GList*>, etc. Finally, in cases where the name of the type
is already prefixed with gnc, the prefix is not doubled, so we
have gncSomeThing -> <gnc:SomeThing> and gnc-commodity* ->
<gnc:commodity*>.
* src/scm/report-utilities.scm
(gnc:account-get-balance-at-date): new g-wrap fix.
* src/guile/option-util.c
(gnc_option_db_register_change_callback): new g-wrap fix.
* src/guile/guile-util.c
(gnc_copy_split): new g-wrap fix.
(gnc_copy_split_scm_onto_split): new g-wrap fix.
(gnc_copy_trans): new g-wrap fix.
(gnc_copy_trans_scm_onto_trans_swap_accounts): new g-wrap fix.
(gnc_glist_account_ptr_to_scm_internal): new g-wrap fix.
(gnc_scm_to_commodity): new g-wrap fix.
(gnc_commodity_to_scm): new g-wrap fix.
(gnc_glist_commodity_ptr_to_scm): new g-wrap fix.
* src/guile/gnucash.c.in (gnucash_main_helper): new g-wrap fix.
* src/guile/gnc.gwp: major rework (mostly s///) for new g-wrap.
* src/guile/gnc-helpers.c (gnc_scm_traversal_adapter): new g-wrap fix.
* src/gnome/top-level.c (gnc_ui_show_main_window): new g-wrap fix.
* src/doc/design/engine.texinfo (Splits): mention location of
kvp_frame.txt -- the reserved key list.
2001-01-12 Bill Gribble <grib@billgribble.com>
* doc/html/C/account-tree-demo.html: add a simple demo of
embedding a gnucash main window widget in HTML
* src/gnome/dialog-options.c: add a 'pixmap' option type to
the GNC options
* src/gnome-dialog-style-sheet.{c,h}: new dialog for creating
and editing HTML style sheets
* src/gnome/druid-qif-import.c: add support for false-if-exception
error handling within QIF import process
* src/gnome/gnc-html-embedded.c: add backslash escaping for
converting string arrays to and from single HTML strings
* src/gnome/gnc-html-embedded.c: error handling in creating guppi
plots, and add new embedded object type for embedding a gnucash
mainwindow-account-tree in HTML (preliminary). Add x axis
label rotation as an option to the barchart.
* src/gnome/gnc-html.c: fixes for renaming of report objects and
handling false-if-exception returns from report runs. Use async
mode for ghttp requests and add a gtk_timeout callback to check on
their status. Add a gnc_html_cancel() which gets rid of pending
ghttp requests (called by the stop buttons in help, report
windows)
* src/gnome/window-help.c: bug fixes for search results printing.
Don't expand help topics nodes on creation. Add stop and reload
buttons to the toolbar.
* src/gnome/window-report.c: Add stop and reload buttons to the
toolbar.
* src/guile/gnc-helpers.c: fix helpers for recordization of
<gnc-numeric> on Scheme side
* src/scm/engine-utilities.scm: rewrite transaction map functions
to eliminate ith-transaction calls
* src/scm/gnc-numeric.scm: make gnc-numeric into a first class
type on the scheme side (<gnc-numeric>)
* src/scm/html-*.scm (7 files): new architecture for generating
HTML within reports. See src/scm/report-html.txt for an overview.
* src/scm/options.scm: support for pixmap options
* src/scm/qif-import/: add false-if-exception error catching in
QIF import entry points.
* src/scm/report-utilities.scm: add functions to get immediate
subaccounts; rewrite get-balance-at-date.
* src/scm/report.scm: rename report objects; now the thing that
gets created by define-report is a <report-template> and the thing
that has a window and a set of parameters is a <report>. Add a
"style sheet" option automatcally to EVERY report, and a "General"
section to put it in; report with only 1 page of options should
use "General". Add false-if-exception error catching to report
run.
* src/scm/report/account-summary.scm, src/scm/report/hello-world.scm,
src/scm/report/average-balance.scm: rewrite some reports using the
new HTML generation infrastructure. Old reports won't work until
they are rewritten.
* src/scm/report/stylesheet-*.scm (2 files): create some sample
stylesheet templates.
2001-01-03 Rob Browning <rlb@cs.utexas.edu>
* src/engine/Transaction.h :start documenting reserved split slots.
add prototypes for new functions below.
* src/engine/Transaction.c
(xaccSplitGetType): new function.
(xaccSplitMakeStockSplit): new function.
* src/doc/design/engine.texinfo
(Engine Introduction): add docs for split types, including the new
stock-split split.
(General Split API): remove Slot Get/Set function docs.
(General Split API): add xaccSplitMakeStockSplit docs.
(Split Getters): add xaccSplitGetType docs.
* .cvsignore: add TAGS.
2000-12-20 Bill Gribble <grib@billgribble.com>
* src/scm/report.scm: minor changes to allow report URLs
(mainly a structure for "instantiated" reports and a global index
of instantiated reports).
* src/scm/help-topics-index.scm: first pass at an index of the
user manual. Mainly just to see how it looks.
* src/gnome/window-report.c: major surgery. Add embedded
parameters editor, constructor option for putting in an external
container, popup menu when no toolbar.
* src/gnome/window-help.c: major surgery. add topics browser,
keyword search, etc etc.
* src/gnome/print-session.{c,h}: fix b0rken printing stuff and
start using gnome-print's print dialog and preview. Now prints to
PDF!
* src/gnome/gnc-html*.c: new html infrastructure. gnc-html.c is
the basic struct and operations; gnc-html-history is the history
object; gnc-html-embedded is support for creating embedded graphs
in HTML.
* gnc-dialogs.glade: get rid of homemade print preview window;
we're using gnome's now. Add nifty features to help and
report windows.
* src/gnome/dialog-options.c: redo to allow embedding in a
pane within a report window. this means not being a
GnomePropertyBox.
* src/engine/gnc-commodity.c: memory management cleanups
(thanx memprof!)
* src/engine/Query.c: get rid of Split** internally and in
return from xaccQueryGetSplits
* src/SplitLedger.c: update for GList return from
xaccQueryGetSplits
* doc/html/C/guppi*.html: some simple demos of the guppi
plot system. You can get at them through the help topics
browser.
* build-help-index.pl : a dirt stupid HTML index builder.
Constructs a DB2 file from a list of input files.
* Add configure checks for guppi, libghttp
2000-12-18 Dave Peticolas <dave@krondo.com>
* src/register/gnome/quickfillcell-gnome.c: add support for mb
char sets
* src/register/gnome/pricecell-gnome.c: add support for mb char
sets
* src/register/gnome/gnucash-sheet.c: add support for mb char sets
* src/register/gnome/datecell-gnome.c: add support for mb char
sets
* src/register/gnome/combocell-gnome.c: add support for mb char
sets
* src/register/numcell.c: add support for mb char sets
* src/register/basiccell.c: add support for mb char sets
* src/register/QuickFill.c: add support for mb char sets
2000-12-14 Robert Graham Merkel <rgmerk@mira.net>
* src/guile/Makefile.am: replace hardwired g-wrap module dir
with value from configure.in.
* src/engine/gnc-associate-account.[ch] : New files with code for
associating income/expense accounts with a stock account. Not yet
hooked up to the UI.
2000-12-13 Rob Browning <rlb@cs.utexas.edu>
* src/scm/text-export.scm: kill pointer-token*
* src/scm/report/transaction-report.scm: minor formatting changes.
* src/scm/report/taxtxf.scm: kill pointer-token*
* src/scm/report/folio.scm: use new g-wrap enum support.
* src/scm/report/budget-report.scm:
disable report until we fix the enumeration usage.
* src/scm/report/balance-and-pnl.scm: kill pointer-token*
* src/scm/report/average-balance.scm: minor formatting changes.
* src/scm/report-utilities.scm: kill pointer-token*
(gnc:account-has-shares?): use new g-wrap enum support.
* src/scm/qif-import/qif-to-gnc.scm: kill pointer-token*
* src/scm/qif-import/qif-parse.scm:
delete unusd gif-parse:print-acct-type
* src/scm/qif-import/qif-guess-map.scm: kill pointer-token*
* src/scm/main.scm
(gnc:main): add handle-batch-mode-item so --evaluate works.
* src/scm/engine-interface.scm: kill pointer-token*.
* src/scm/c-interface.scm: kill pointer-token*.
* src/quotes/gnc-prices-2.in: various small fixes (big ones later).
* src/optional/swig/.cvsignore: add Makefile Makefile.in
* src/guile/option-util.c
(gnc_option_db_register_change_callback): update for new g-wrap.
* src/guile/guile-util.c
(gnc_copy_split): update for new g-wrap.
(gnc_copy_split_scm_onto_split): update for new g-wrap.
(gnc_copy_trans): update for new g-wrap.
(gnc_copy_trans_scm_onto_trans_swap_accounts): update for new g-wrap.
(gnc_glist_account_ptr_to_scm): use gnc_glist_to_scm_list.
(gnc_scm_to_glist_account_ptr): use gnc_scm_list_to_glist.
(gnc_scm_to_commodity): update for new g-wrap.
(gnc_commodity_to_scm): update for new g-wrap.
(gnc_glist_string_to_scm): double speed - use stack.
(gnc_scm_to_glist_string): don't reverse result.
(gnc_glist_commodity_ptr_to_scm): update for new g-wrap.
use gnc_glist_to_scm_list.
(gnc_scm_to_glist_commodity_ptr): use gnc_scm_list_to_glist.
* src/guile/gnucash.c.in
(gnucash_main_helper): add g-wrap module dir to %load-path.
(gnucash_main_helper): call init_g_wrapped_gnc, not init_gnc.
* src/guile/gnc.gwp: update for the new g-wrap.
* src/guile/gnc-helpers.h: add prototypes for new functions.
* src/guile/gnc-helpers.c
(glist_to_scm_list_helper): new (private) function.
(gnc_glist_to_scm_list): new public function.
(gnc_scm_list_to_glist): new public function.
(glist_map_helper): new (private) function.
(gnc_glist_scm_map): new public function.
(gnc_glist_scm_for_each): new public function.
(gnc_gettext_helper): always strdup result.
(gnc_timespec2timepair): use gint64, not long long.
(gnc_timepair2timespec): use gint64, not long long.
(gnc_timepair_p): use more accurate test (including range check).
(gnc_scm_traversal_adapter): use new g-wrap wcp code.
(gnc_gint64_to_scm): new public function.
(gnc_scm_to_gint64): new public function.
(gnc_gh_gint64_p): new public function.
(gnc_scm_to_numeric): use gint64, not long long.
(gnc_numeric_to_scm): use gint64, not long long.
(gnc_numeric_p): use gint64, not long long.
* src/guile/Makefile.am: update for new g-wrap.
* src/gnome/top-level.c (gnc_ui_main): use new g-wrap wcp code.
* src/gnome/druid-qif-import.c: use new g-wrap wcp code.
* src/engine/gnc-commodity.c: g_strdup the key.
(gnc_commodity_table_delete_namespace): g_free the key.
These fixes are probably not sufficient.
* src/engine/Account.c: make temp warnings more informative.
* configure.in: update for new g-wrap.
check for guile bug (sizeof long_long >= long long).
check that sizeof unsigned long >= guint32.
* acinclude.m4: update for new g-wrap.
2000-12-08 Dave Peticolas <dave@krondo.com>
* src/gnome/gnc-dateedit.c: use more care when using parsed
date values.
* src/register/gnome/datecell-gnome.c: use more care when using
parsed date values.
* src/engine/Query.c: make sure to use end-of-day times for the
end date in a search.
* src/engine/date.c: remove xaccValidateDate -- use mktime instead.
Use more care when setting struct tm values, especially with is_dst.
2000-12-05 Robert Graham Merkel <rgmerk@mira.net>
* src/gnome/account-tree.[ch] (gnc_account_tree_unselect_account):
Add unselect account functionality as required by mainwindow
account tree
2000-12-04 Robert Graham Merkel <rgmerk@mira.net>
* src/gnome/mainwindow-account-tree.[ch]: new file. Widgetizes
the current contents of the main window in preparation for
pane-ization.
* src/gnome/window-main.c: modified to take account of the above.
2000-11-17 James LewisMoss <dres@debian.org>
* src/doc/design/reports.texinfo (Reports): Reorder option
descriptions to match the order in the example function.
* src/doc/design/Makefile.am (gnucash_design_TEXINFOS): Add info
files to clean list (why the hell aren't they already cleaned?)
2000-11-15 James LewisMoss <dres@debian.org>
* src/doc/design/register.texinfo (Split Register): Move a little
something around to make sure dvi/ps output doesn't spill off side
of page.
* src/doc/design/intro.texinfo (Introduction): Move a little
something around to make sure dvi/ps output doesn't spill off side
of page.
* src/doc/design/fdl.texinfo (GNU Free Documentation License):
Comment out @bye causing texi2dvi to quit not completing the
output.
2000-11-09 Bill Gribble <grib@billgribble.com>
* src/engine/gnc_numeric.c: fix remainder-handling error
* src/scm/qif-import/qif-dialog-utils.scm: only ask about
stocks that are in the QIF files being loaded.
* src/scm/qif-import/qif-file.scm: add progress bar to file read
* src/scm/qif-import/qif-to-gnc.scm: add progress bar to
transaction mark and import.
2000-11-08 Bill Gribble <grib@billgribble.com>
* src/engine/SplitLedger.c: use new SetShareAmount/SetValue
semantics (need to make sure this is correct!)
* src/engine/Group.c: fix the "splits in GList with NULL data"
problem.
* src/engine/Transaction.c: get rid of Set***Directly functions,
and modify the gnc_numeric versions of SetValue and SetShareAmount
to use the direct semantics (i.e. SetValue doesn't affect the
ShareAmount any more unless you use the deprecated double API).
* src/engine/gnc-numeric.c: fix gnc_numeric_convert and
double_to_gnc_numeric to ameliorate overflow problems. This
should fix the wrong balance problems people are seeing.
* src/gnome/druid-qif-import.c: make selection persistent in
account/cat pick lists
* g-wrap gnc-numeric datatype and API; shuffle the Scheme API in
the same way the C was done to add the new gnc-numeric API using
the "real" function names and deprecate the old double API by
prefixing the names with d-. Now (for example)
gnc:split-set-value takes a gnc_numeric arg, and
d-gnc:split-set-value takes a double. All calling scheme code was
sed'ed to make this change.
* src/scm/qif-import/qif-dialog-utils.scm: fix stock name regexp
parsing bug in QIF importer. This should fix the crash that many
people have reported.
* src/scm/qif-import/qif-file.scm: fix an Opening Balance
processing bug that was causing some opening balance transactions
to be duplicated.
* src/scm/qif-import/qif-to-gnc.scm: fix double-counting of
Commissions. Change to use gnc_numeric and new Set semantics;
this should (maybe) fix some reported off-by-a-penny problems.
2000-11-05 Rob Browning <rlb@cs.utexas.edu>
* src/engine/io-gncxml-w.c: sort commodities by namespace and id
before writing so we get stable output.
2000-10-30 Dave Peticolas <dave@krondo.com>
* src/gnc-exp-parser.c: modify to use gnc_numerics instead of
doubles.
* src/engine/gnc-numeric.c: special case num == 0 to prevent
divide by zero exception.
2000-10-27 Dave Peticolas <dave@krondo.com>
* src/calculation/expression_parser.c: handle (num) as -num.
2000-10-26 Dave Peticolas <dave@krondo.com>
* src/engine/util.c (DxaccParseAmount): handle (num) as -num.
2000-10-23 Rob Browning <rlb@cs.utexas.edu>
* src/scm/main.scm:
(gnc:*batch-mode-things-to-do*): new var - keep track of startup bits.
(gnc:main): add --load processing for "things-to-do".
* src/scm/engine-utilities.scm:
(gnc:filename->account-group): new - likely temporary.
(gnc:call-with-account-data-from-file): new - likely temporary.
* src/scm/command-line.scm (gnc:*arg-defs*): add --load option in
addition to --evaluate.
* src/engine/sql/PostgresBackend.c: handle changes in the rest of
the code.
* src/engine/kvp_frame.c: change the datatype a little to pull the
union tag into the main struct. Also update the functions and
datatypes to more closely mirror glib types. i.e. lists are now
just GLists that must contain only kvp_value pointers. The kvp
docs have *not* been updated to reflect these changes (nor the
changes listed below).
(kvp_frame_set_slot): now setting a slot to a NULL value deletes
the slot. This is not in the docs yet.
(init_frame_body_if_needed): new function - only initialize the
guts of the kvp_frame if we need them. This helps in some
situations and should be free otherwise. All the other functions
should handle this properly now.
(kvp_value_new_binary_nc): new function - create a new binary
object using the pointer given directly.
(kvp_frame_for_each_slot): new function.
(kvp_value_compare): new function.
(kvp_frame_compare): new function.
* src/engine/kvp_frame.h: accomodate changes to kvp_frame.c.
* src/engine/guid.c:
(guid_compare): new function.
(guid_hash_to_guint): hash function from glib.
(guid_hash_table_new): new function.
(guid_g_hash_table_equal): new function.
* src/engine/guid.h: accomodate changes to guid.c.
* src/engine/date.c:
(timespec_equal): new function.
* src/engine/date.c: accomodate changes to date.c.
* src/engine/Transaction.c: update all functions to mark the
account's dirty flags when needed.
(xaccTransGetSlot): deleted - replaced by xaccTransGetSlots.
(xaccTransSetSlot): deleted - replaced by xaccTransGetSlots.
(xaccTransGetSlots): new function.
(xaccTransEqual): new function.
(DATE_CMP): don't use pointer to pointer args (unnecessary).
(xaccSplitDateOrder): now a total order - sort on guid if needed.
(xaccSplitOrder): deleted - unused.
(xaccTransOrder): now a total order - sort on guid if needed.
(xaccTransSetDocref): deleted.
(xaccTransGetDocref): deleted.
* src/engine/Transaction.h: accomodate changes to Transaction.c.
* src/engine/TransactionP.h: accomodate changes to Transaction.c.
* src/engine/Session.c:
(xaccSessionGetFileError): new function - migrate away from using
global for error status.
(xaccSessionBegin): change semantics - a begin does *not* load the
file automatically now. You must call xaccSessionLoad for that.
This is better, particularly in the SaveAs case when the load is
wasteful, and, until we fix the GUID code up so that loading the
same file twice doesn't cause a detonation, safer.
(xaccSessionBegin): change semantics - same as for
xaccSessionBegin.
(xaccSessionLoad): new function - loads the session data.
(xaccSessionSaveMayClobberData): new function - predicate.
(xaccSessionSave): change semantics - don't delete the file if
topgroup is NULL. This is too scary given all the other changes.
We can bring it back later if needed, but I'd probably rather see
an xaccSessionPurgeStorage, or similar.
* src/engine/Session.h: support changes to Session.c.
* src/engine/Makefile.am: handle new, deleted, and renamed files.
* src/engine/Group.c: handle vanished account id's, etc.
(xaccGroupEqual): new function.
(xaccGroupVisitUnvisitedTransactions): new function.
(xaccGroupForEachTransaction): new function.
(xaccGroupMapAccounts): new function (probably going away later).
(xaccGroupForEachAccountDeeply): ditto.
* src/engine/Group.h: handler changes to Acccount*'s and to Group.c.
* src/engine/GNCId.c:
(xaccGetAndResetEntityTable): new function - needed when you want
to load two files representing the same data for
comparison.
(xaccSetEntityTable): new function - needed when you want
to load two files representing the same data for
comparison.
* src/engine/GNCIdP.h: accomodate changes to GNCId.c
* src/engine/Account.c: many changes, removed some unused fields,
changed Account's to have a GList of splits rather than a NULL
terminated array of pointers - allowed optimizing several things
and made the code cleaner in spots.
(xaccAccountBeginEdit): remove defer argument - difficult to
handle with nesting - may add later if really needed. Change this
and
(xaccAccountCommitEdit): to handle nesting. Fix up all setter
routines to respect Begin/Commit, including ones for splits over
in Transaction.c.
(xaccInitAccount): Add/use sort_dirty and balance_dirty flags.
Change kvp_data to always be initialized (also changed kvp_frames
to be lighter weight when empty).
(xaccAccountEqual): new function.
(xaccSortSplits): new function.
(xaccAccountBringUpToDate): new function.
(xaccAccountGetSlot): deleted - replaced by xaccAccountGetSlots
(xaccAccountSetSlot): deleted - replaced by xaccAccountGetSlots
(xaccAccountGetSlots): new function - returns kvp_frame.
(xaccAccountGetID): deleted - accounts no longer have IDs.
(xaccAccountGetID): deleted - accounts no longer have flags.
(xaccAccountCheckDateOrder): renamed to xaccAccountFixSplitDateOrder.
(xaccCheckTransDateOrder): renamed to xaccTransFixSplitDateOrder.
(xaccAccountSetNotes): notes now stored in slot "notes".
(xaccAccountGetNotes): ditto.
(xaccAccountTypeEnumAsString): new function - required by text IO.
(xaccAccountStringToType): new function - required by text IO.
(xaccAccountSetPriceSrc): prices now stored in slot "old-price-source".
(xaccAccountGetPriceSrc): ditto.
(xaccAccountVisitUnvisitedTransactions): new function.
(xaccAccountForEachTransaction): new function.
* src/engine/Account.h: changes to accomodate above changes to
Account.c.
* src/engine/Account.h: changes to accomodate above changes to
Account.c.
* src/engine/io-gncxml-r.c: new xml format reader. This has a
semi-abstract incremental configurable low-ish memory XML tree
parser inside which should later be broken out into a separate
file.
* src/engine/io-gncxml-w.c: new xml format writer. This is pretty
straightforward, but due to limitations in libxml, has large
memory requirements. It has to build the entire XML tree in RAM
before it writes anything.
* src/engine/io-gncxml.h: new file - the current XML handling does
*not* have any transparent file compression. Expect that soon -
it doesn't make the performance any worse (thank goodness).
* src/engine/io-gncbin-r.c: renamed from src/engine/FileIO.c.
Only the reader is still active. All writing is as XML now.
* src/engine/io-gncbin.h: renamed from src/engine/FileIO.h.
* src/engine/FileIO.c: new file - now the meta-level file that has
functions that handle the various underlying file types. Any old
docref fields are stored in an "old-docref" slot and any old price
sources are stored in an "old-price-source" slot. Handle the fact
that account id's are gone.
* src/engine/FileIO.h: new file.
* make-gnucash-patch.in: ignore some more autogen files.
* src/FileDialog.c: update to handle new Session* semantics.
Saving and SavingAs are not the same anymore, session-wise. We
don't perform a pointless (and GUID dangerous) load before we
SaveAs.
* Many changes, not all of which will be documented right now.
This patch must get out. I'll come back and fix this up later.
The highlights are...
2000-10-16 Bill Gribble <grib@billgribble.com>
* Patch for new numeric representation, new commodity
representation, and rewritten QIF importer.
- numeric format: the engine's internal representation of values
changed from 'double' to 'gnc-numeric', an exact number format.
see src/doc/gnc-numeric.txt. This patch is step 1; the old
'double' engine API remains, but the names have been changed
from (for example) xaccSplitSetValue to DxaccSplitSetValue. The
D means deprecated. Will be gradually migrating the usage of
doubles to gnc-numeric throughout gnucash, eventually removing
the Dxacc API completely. ATM, there is no scheme support for
gnc-numeric, so I just left the Scheme API alone (old function
names still work, and work the same way).
- commodity representation: up to now, the engine has just used
strings to represent currencies. Now we use a struct
'gnc-commodity', which has more information about the
currency/stock/commodity than its name, including what exchange
it trades on and what the resolution of transactions is in
fractional units. When you read in an old gnucash file, you
will get a 'wizard' that will ask questions about the currencies
and stocks in your old file.
- QIF importer: I redid the GUI to be more of a wizard style.
This should get rid of a lot of people's problems using it since
it's more step-by-step oriented.
* src/scm/qif-import/qif-to-gnc.scm: set Reconcile correctly.
Also numerous other small changes.
* src/scm/qif-import/qif-parse.scm: handle 20000101 date formats
and MiscExpX category lines correctly.
* src/scm/qif-import/qif-file.scm: correctly handle ambiguous
date format by asking the right answer.
* src/scm/qif-import/qif-dialog-utils.scm: use the correct account
separator char for automatically created accounts
* src/scm/hooks.scm: added a file-opened-hook that gets run
any time a gnucash file is opened.
* src/engine/gnc-engine.{c,h}: new files for global engine
meta-operations. I mainly needed it to add a global list of known
'commodities' (currencies, stocks, etc), but there's now an
gnc-engine-init function called at startup with settable hooks.
* src/gnome/dialog-account.c: add "select" buttons for account
security and currency. Still need to make "smallest currency
unit" configurable per-account, but need to fix common-currency
problem first.
* src/gnome/dialog-find-transactions.c: use gnc_dateentry widget
* src/engine/Translog.c: warning! log format for numbers is
now "%Ld/%Ld", numerator/denominator.
* src/engine/Query.c: change date query functions to be more
useful. Start and end dates are optionally ignored, making it
possible to say "any date before.." or "any date after.."
2000-09-16 Dave Peticolas <dave@krondo.com>
* src/register/table-allgui.c: re-implement using gtables.
* src/register/cellblock.c: re-implement using gtables.
* src/register/gtable.c: implentation of a dynamic 2-d array.
2000-09-13 Dave Peticolas <dave@krondo.com>
* src/SplitLedger.c (xaccSRSaveChangedCells): don't copy memo
and action to other split.
2000-09-12 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-transfer.c (gnc_xfer_dialog_close_cb):
disconnect amount edit entry signals to avoid gtk warnings.
* src/engine/Transaction.h: make xaccInitTransaction a private
function.
* src/scm/qif-import/qif-to-gnc.scm: Don't init a new transaction.
gnc:transaction-create does this automatically. Doing it again leaks
memory.
2000-09-11 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-transfer.c: incorporate amount editing widget
into the transfer dialog.
* src/gnome/gnc-amount-edit.c: new widget to allow amount editing
with expression parsing.
2000-09-05 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/date-utilities.scm ((gnc:reldate-initialize)): New
function - initialise explicitly at startup rather than in ad-hoc
manner
2000-08-31 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/balance-and-pnl.scm: Bug fixes for new date
options.
* src/scm/report/transaction-report.scm: Bug fixes for new date
options.
* src/scm/report/budget-report.scm: Bug fixes for new date options.
2000-08-30 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/hello-world.scm: A couple of new functions to
test the relative and combination date style options.
* src/scm/report/*.scm: Modified date options to take the new
function. Most are still using absolute options at this stage,
will get modified to use relative dates later.
* src/scm/options.scm (gnc:make-option): new argument
(option-data-fns) for manipulating multi-choice style options.
Changes to option-makers to either support this.
(gnc:make-date-option): modified to support relative and
combination dates.
* src/scm/date-utilities.scm: Extensive additions for manipulating
relative dates.
* src/guile/option-util.c: Support for new relative-date and
combination options , and use of scheme getters
rather than direct data structure manipulation.
(gnc_oiption_db_lookup_date_option): modified to
support relative and combination date options.
(gnc_option_date_option_get_subtype: new function.
* src/guile/guile-util.c (gnc_timepair2timespec): Check to make
sure it's a timepair before doing conversion.
* src/gnome/dialog-options.c: Extensive changes to support relative
and combination date options. Also changed multichoice callback
to use wrapped scheme getter rather than directly manipulating
scheme data structure.
* make-gnucash-patch.in: Exclude generated HTML.
2000-08-26 Dave Peticolas <dave@krondo.com>
* src/engine/Group.c (xaccGetAccountRoot): remove unnecessary
casts.
* src/gnome/window-reconcile.c
(gnc_ui_reconcile_window_delete_cb): rewrite to use g_lists.
2000-08-23 Dave Peticolas <dave@krondo.com>
* src/engine/kvp_frame.c: use g_strdup, not strdup.
* src/calculation/expression_parser.c: use glib memory routines.
(exit_parser): fix a bug where pe->named_vars was freed twice.
2000-08-22 Dave Peticolas <dave@krondo.com>
* src/engine/Transaction.c (xaccSplitSetBaseValue): check to
make sure the security is not "" before allowing price changes.
* src/gnome/window-register.c (gnc_register_check_close): use
xaccSRCancelCursorTransChanges to cancel any pending changes.
2000-08-21 Dave Peticolas <dave@krondo.com>
* src/gnome/reconcile-list.c (gnc_reconcile_list_fill): fix
a memory leak. xaccTransGetDateStr returns a malloc'd string.
* src/engine/: Move transaction date routines from date.c to
Transaction.c. Move definition of Timespec from Transaction.h
to date.h. Some code cleanup in date.c.
* src/register/QuickFill.c (qfInsertTextRec): When inserting new
strings, don't replace older strings that are prefixes of the new
string.
* src/engine/gnc-common.h: remove gncBoolean type and constants.
Replace all uses with glib versions.
2000-08-12 Dave Peticolas <dave@krondo.com>
* src/engine/Transaction.c (xaccSplitSetBaseValue): don't adjust
the price when the base currency is the security of the account.
2000-08-10 Dave Peticolas <dave@krondo.com>
* src/register/table-allgui.c (gnc_table_physical_cell_valid): bug
fix -- get the virtual cell of the target location before getting
the cellblock.
2000-08-09 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-utils.c: remove unused code
* src/gnome/dialog-account.c: new file implementing the
consolidated account add and account edit windows using glade.
2000-08-07 Dave Peticolas <dave@krondo.com>
* src/register/*.c: Use glib memory allocation routines.
* src/register/cellblock.c: fix memory leaks and use glib memory
allocation routines.
* src/register/table-allgui.c: reimplement the Table code using
glib's dynamic arrays. Clean up the code and homogenize the
function naming convention.
2000-08-04 Dave Peticolas <dave@krondo.com>
* src/register/table-gnome.h: remove unused data members
* src/register/basiccell.h: remove the pixel_width argument
to the realize callback, it is no longer used.
* src/register/table-allgui.c: remove the gnc_table_column_width
call.
2000-08-07 Rob Browning <rlb@cs.utexas.edu>
* src/scm/tip-of-the-day.scm: don't initialize at startup.
* src/scm/main.scm (gnc:*batch-mode-forms-to-evaluate*): new
global to hold forms added by --evaluate for execution after
startup.
(gnc:main): support --evalutate properly.
* src/scm/engine-utilities.scm (gnc:transaction-map-splits): moved
here.
(gnc:group-map-accounts): moved here.
* src/scm/command-line.scm (gnc:*arg-defs*): add --evaluate
option. This should be considered beta, and it's not documented
yet, but it's useful for me right now, we need something like it,
and I'd like others to see what they think. Also, this will only
work right when I finish fixing up tip-of-the-day to not
initialize when the file loads.
* src/pixmaps/Makefile.am: minor typo.
* src/guile/option-util.c: include string.h
* src/guile/guile-util.c: include string.h
* src/guile/gfec.c: include string.h
* doc/gnucash.1: change filename extension in example to .gnc
* configure.in: always report missing templates as an error.
* README: updates (also change = to # for section seps (helps CVS))
2000-07-22 Dave Peticolas <dave@krondo.com>
* src/gnome/window-reconcile.c: After reconciliation, if the
account is a credit card account, automatically pop up a transfer
window with the appropriate amount and accounts.
2000-07-21 Dave Peticolas <dave@krondo.com>
* src/calculation/fin.c: Some cleanup and renaming of function
names to be longer and more descriptive.
* src/gnome/dialog-transfer.c: Add Num field to the transfer
dialog. Add APIs to change the amount, the description, and the
accounts. Fix a bug in the default sense of the show/hide buttons.
2000-07-20 Dave Peticolas <dave@krondo.com>
* src/gnome/top-level.c (gnc_ui_destroy_all_subwindows): destroy
open transfer windows.
* src/Destroy.c: remove notes window functions.
* src/AccWindow.h: remove notes window functions.
* src/gnome/dialog-transfer.c: Make transfer dialog modeless.
2000-07-19 Dave Peticolas <dave@krondo.com>
* src/gnome/account-tree.c: Use income_expense instead of
category for names.
2000-07-12 Dave Peticolas <dave@krondo.com>
* src/SplitLedger.c (LedgerAutoCompletion): simplify, and fix a
bug with split auto-completion.
* src/scm/bootstrap.scm.in: add HOME/.gnucash to scm search path.
2000-07-04 Dave Peticolas <dave@krondo.com>
* src/scm/bootstrap.scm.in: bump up the stack limit
* src/engine/date.c (xaccValidateDate): move this function from
src/register/datecell.c to here, so it can be used elsewhere.
* src/gnome/gnc-dateedit.c: make the widget respond to the same
accelerators as the register date cell.
2000-07-03 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/c-interface.scm: Added scheme definition for
pointer-token-null? if not already defined by g-wrap. Fixes bug
when compiling with g-wrap >= 0.9.4.
2000-06-28 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-budget.c (entry_down_button_clicked): bug fix.
* src/gnome/dialog-options.c: implement font options.
* src/scm/prefs.scm: add options for the register fonts.
* src/gnome/top-level.c: configure the register fonts from
callbacks.
* src/register/gnome/gnucash-style.c: make the register font and
hint fonts configurable outside the register.
2000-06-28 Robert Graham Merkel <rgmerk@mira.net>
* src/gnome/dialog-totd.c: If somebody tries to open a second
tip of the day window, just raise the original. Fixes a crash
when somebody tried to do this before.
2000-06-27 Robert Graham Merkel <rgmerk@mira.net>
* src/gnome/dialog-totd.c: Added code to make "Tip of the day"
dialog modeless
2000-06-27 Dave Peticolas <dave@krondo.com>
* src/gnome/top-level.c (gnucash_ui_init): set the reconciled cell
string getter to the dialog-utils function for i18ning the reconcile
flag value.
* src/engine/Transaction.c (xaccSplitSetReconcile): make sure the
reconciled flag given is good.
* src/register/splitreg.c: modify for the changes in the reconcile
cell.
* src/SplitLedger.c: modify for the changes in the reconcile cell.
* src/register/recncell.c: make the reconcile cell a real object,
not just a BasicCell with some extra functions. Add functionality
for distinguishing between the flag value and the displayed value.
2000-06-26 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-utils.c (gnc_get_reconcile_str): new function.
Return i18n'd string for reconciled flag.
* src/gnome/reconcile-list.c: use i18n'd reconciled flag string.
* src/scm/tip-of-the-day.scm: put the check for whether tips
should be shown or not inside the hook. We can't do the check
here because the options haven't been loaded yet.
* src/scm/options.scm: fix bug in writing options. Use 'write'
to output section and option names for proper escaping.
2000-06-27 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/date-utilities.scm: Added date-granularity timepair
comparison functions. Removed direct access functions to the time
structures in various functions (Dave also worked on this).
* src/scm/report/transaction-report.scm: Changed to use date
comparison functions in date-utilities.scm.
2000-06-26 Robert Graham Merkel <rgmerk@mira.net>
* src/guile/global-options.[ch] (gnc_option_refresh_ui_by_name):
New function to make refreshing the GUI options possible from C as
well as scheme.
(gnc_set_boolean_option): C function to set boolean options from
outside the options dialog.
* src/gnome/dialog-totd.[ch]: New files containing the GUI
functions for doing tips of the day.
* src/guile/tip-of-the-day.[ch]: New files with a C interface for
the scheme tip of the day engine.
* src/guile/option-util.[ch] (gnc_option_db_set_boolean_option):
New function to set a boolean option.
* src/scm/tip-of-the-day.scm: New file: an interface for reading
in and passing tips to the gui in text form.
* src/scm/tip-list.scm: A list of tips as a Scheme list. File
should probably be shifted somewhere else.
* src/scm/startup.scm: Loads tip-of-the-day.scm
* src/scm/prefs.scm: Add an option for displaying tips of the day
at startup. Also added gnc:support line.
* src/gnome/window-main.c (gnc_ui_totd_cb): Added menu entries and
callbacks to add "tips of the day" to help menu.
2000-06-23 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-utils.c (gnc_window_adjust_for_screen): new
function. if the window size is bigger than the screen, adjust
it down. Use this for the account add and edit, reconcile, and
register windows.
* doc/html/C/projects.html: update last version info
* doc/html/C/xacc-about.html: update last version info
* src/guile/gnucash.c.in: update last version info
2000-06-21 Dave Peticolas <dave@krondo.com>
* src/register/splitreg.h: break out the register type and the
register style into two separate struct members, instead of using
bitmasks. This is much, much simpler.
* src/optional/swig/Makefile.am (gnucash-engine-perl5_wrap.c):
remove the -stat argument, it's no longer support in later swig
versions.
* src/register/Makefile.am: don't compile table-html.c, it is
not needed for linking.
* src/gnome/window-register.c: remove include of table-html.c
* src/engine/gnc-common.h: use 'gboolean' to typedef gncBoolean.
We should probably just phase out the use of gncBoolean.
2000-06-20 Dave Peticolas <dave@krondo.com>
* src/engine/util.c (xaccParseAmount): accept 8 decimal places
instead of 6, and trucate if more than 8.
* src/gnome/dialog-add.c: make this window modeless.
(gnc_ui_accWindow_ok_cb): don't let the user add an account with
the same fully-qualified name as another account.
* src/gnome/top-level.c (gnc_ui_destroy_all_subwindows): destroy
all the account add windows, too.
* src/gnome/window-main.c (gnc_refresh_main_window_title): new
function to put the current filename in the main window title.
(gnc_refresh_main_window): use the above when refreshing.
* src/FileDialog.c (gncFileSaveAs): refresh the main window after
'saving as' to update the filename in the main window.
2000-06-19 Dave Peticolas <dave@krondo.com>
* src/guile/gnc.gwp: take out GUIDs for Groups.
* src/engine/Group.c: take out GUIDs for Groups. Groups are really
just lists with no additional structure, and giving them GUIDs
complicates matters without adding any utility. You can always use
the parent account GUID instead.
* src/gnome/top-level.c: configure list auto-popping from here.
* src/register/gnome/combocell-gnome.c: determine whether or not
to auto-pop lists based on a class variable, and not by looking
up the guile function. This removes a src/guile dependency from
src/register/gnome.
2000-06-14 Dave Peticolas <dave@krondo.com>
* src/register/gnome/gnucash-item-edit.c (item_edit_show_list):
make sure the current selected item is visible and, before doing
so, process all pending events to make sure the list is shown and
sized first.
2000-06-13 Dave Peticolas <dave@krondo.com>
* src/SplitLedger.c: refresh the main window before refreshing the
register. This makes sure balances are recomputed first.
* src/engine/Transaction.c (xaccSplitSetBaseValue): mark the split
as having changed.
* src/gnome/gnc-currency-edit.c: loosen the restrictions on what
can be typed in. The 'currency' could potentially be a stock
symbol.
2000-06-12 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-transfer.c: don't use 'Categories', it's a
confusing term.
* src/SplitLedger.c (LedgerAutoCompletion): open transaction
without deferring rebalancing.
2000-06-09 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm (): commented out
"merged" style because of conflict with double-column amounts.
2000-06-08 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/average-balance.scm (average-balance-renderer):
added a condition to catch incorrectly entered dates without crashing.
2000-06-07 Dave Peticolas <dave@krondo.com>
* src/engine/Query.c: fixed a "dave is an idiot" bug in cropping
the split list.
* src/gnome/window-register.c (gnc_register_create_menu_bar): don't
use stock close menu -- it's for closing files not closing windows.
* src/gnome/dialog-add.c (gnc_ui_accWindow_create_account): don't
make an opening balance transaction.
* src/SplitLedger.c: use value, not share amount, for debit/credit
cells in equity registers.
* src/gnome/dialog-utils.c (gnc_ui_install_field_strings): set the
code even if it's blank. Auto-coding doesn't work right now.
2000-06-06 Dave Peticolas <dave@krondo.com>
* src/SplitLedger.c (LedgerTraverse): use correct argument for
exact_cell to gnc_table_find_valid_cell_horiz.
(LedgerMoveCursor): ditto.
* src/register/splitreg.c (xaccInitSplitRegister): Don't blank
zeros in the price cell.
* src/guile/gfec.c: fix bugs in usage of internal guile functions.
more cleanup.
2000-06-05 Dave Peticolas <dave@krondo.com>
* src/register/splitreg.c (xaccInitSplitRegister): use higher
precision for stock prices.
* src/<lots>: moved gui-dependent definitions from
src/engine/gnc-common.h to src/engine/gnc-ui-common.h.
Use guint32 instead of home-grown typedef. This touched
many files.
* src/guile/guile-util.c (gnc_get_debit_string): make sure to
return a malloc'd string.
* src/register/splitreg.c (configLabels): check for NULL strings
from the label getters.
* src/gnome/window-register.c (gnc_register_date_window): if 'show
all transactions' is not set in the preferences, limit it to
30. Temporary fix for 1.4, this should be configurable.
* configure.in: changed '! test' to 'test !'.
* src/engine: removed *Consolidate* functions. These were cruft
used by the old QIFIO routines.
2000-06-04 Dave Peticolas <dave@krondo.com>
* src/engine/util.c: add log level modification functions.
* src/scm/command-line.scm: add a --loglevel argument to set the
logging level.
2000-06-04 Rob Browning <rlb@cs.utexas.edu>
* */Makefile.am and others: fix up make dist to build a full-blown
tarfile.
2000-06-04 Dave Peticolas <dave@krondo.com>
* src/engine/Session.c (xaccSessionSave): record file writing errors
in the session error code.
* src/FileDialog.c (gncFileSave): print an error message in a dialog
on file-writing errors.
* src/register/quickfillcell.c (quick_modify): before updating the
original copy, make sure it's still the same as the old value,
modulo case.
2000-06-03 Dave Peticolas <dave@krondo.com>
* src/engine/FileIO.c: John Goerzen's patch for 64-bit
architectures.
2000-06-02 Dave Peticolas <dave@krondo.com>
* src/register/splitreg.c: added functions for getting cell types
and getting the locations for cell types.
* src/SplitLedger.c: add functionality for auto-completion
2000-06-02 Rob Browning <rlb@cs.utexas.edu>
* quite a few bugfixes to the automake stuff.
* guid-md5.* -> md5.* - Dave liked this better, and I did too.
* src/register/gnome/* - restored ... for now.
2000-06-01 Rob Browning <rlb@cs.utexas.edu>
* README: many mods to accomodate new changes, but still unfinished.
* configure.in: --with-opt-style-install changed to
--enable-opt-style-install
2000-05-31 Rob Browning <rlb@cs.utexas.edu>
* Giant automake switchover.
doc/html/*/pix/ -> doc/html/*/image/
intl/* - new directory/contents (filled via gettextize).
src/doc - new directory to collect src docs.
src/experimental - new directory.
src/gg -> src/experimental/gg
src/cbb -> src/experimental/cbb
src/optional - new directory for configure --with and --enable bits.
src/swig -> src/optional/swig - preparation for new quoting system.
src/swig/perl5 deleted - swig is now just in a single directory.
src/reports/File.c -> src/guile/File.c
src/register/gnome/* -> src/register/* - automake wants flat lib dirs.
src/qt deleted - docs indicate how to get it if you want it.
src/motif deleted - docs indicate how to get it if you want it.
src/g-wrap merged into src/guile.
src/engine/guid/* -> src/engine - automake wants flat lib dirs.
man/* -> doc/
lib/* deleted - nothing needed right now; see lib/README.
gnucash.gdb-cmds -> doc/
gnucash.desktop -> src/gnome/
gnucash deleted - see doc/README.build-system
etc/config -> src/guile/config
doc/html/logos/ -> doc/html/C/logos - this should handle intl better.
doc/build-system -> doc/README.build-system
doc/aix.txt -> doc/build-aix.txt
doc/SuSE-6.3.txt -> doc/build-suse.txt
doc/solaris.txt -> doc/build-solaris.txt
doc/README -> README - as per GNU coding/automake standards.
doc/INSTALL -> INSTALL - as per GNU coding/automake standards.
Makefile.init.in deleted - not needed with automake.
Makefile.common deleted - not needed with automake.
Configure-uw7 -> doc/Configure-uw7
Configure-osr5 doc/Configure-osr5
ABOUT-NLS - new file.
AUTHORS - as per GNU coding/automake standards.
*/Makefile.am - new automake files.
acconfig.h - aclocal.m4 is now autogenerated, so use this instead.
Various libtool files automagically added by libtool.
src/examples/xacc-shell.c -> old/xacc-shell.c
* src/scm/startup.scm: load depend.scm here.
* src/scm/report/average-balance.scm: handle new possible #f
return from gnc:group-get-account-list.
* src/scm/engine-utilities.scm (gnc:group-get-account-list):
moved here and reworked to build result in order, no reverse.
Change to return #f on error so it can be distinguished from an
empty list.
* src/scm/engine-utilities.scm: new file.
2000-05-31 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/splitreg.c (configLabels): label the straight xfer
and xfer to cells as 'Account', label the mirrored xfer as just
'Transfer'.
* src/register/gnome/gnucash-header.c
(gnucash_header_reconfigure): also redraw if the style changes.
2000-05-30 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/quickfillcell.c: if a quickfill attempt fails,
replace the string with the original case string.
2000-05-29 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report-2.scm (make-account-subheading):
added the ability to display balances at start-of-report date
when sorting by accounts. Also replaced gnc:split-get-amount
(which doesn't exist) with gnc:split-get-value for amount sorting.
* doc/guile-hackers.txt: Added pointers to g-wrap now that it's
not part of the main gnucash distribution.
2000-05-24 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/SplitLedger.c: some simplification, some additional
complexity :) Fixed a crash-bug with traversing out of the
pending transaction and rolling it back. Fixed traversal out
of the blank line of a multi-split transaction that has been
edited.
2000-05-23 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine: removed QIF routines from the engine.
* src/scm/options.scm: add a currency option type.
* src/gnome/dialog-options.c: add support for currency options.
* src/gnome/dialog-utils.c (gnc_ui_account_field_box_create): used
the new currency editor widget.
* src/gnome/gnc-currency-edit.c: new widget for picking currencies.
2000-05-22 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/guile/guile-util.c (gnc_depend): new function to access the
gnc:depend guile function.
2000-05-21 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-reconcile.c: use share balances when
reconciling stock, mutual fund, and currency accounts.
2000-05-20 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/Account.c (xaccAccountRecomputeBalance): added share,
cleared share, and reconciled share balance tracking, along with
api calls for getting them.
* src/engine/Transaction.c: add calls to get share cleared and
reconciled balance.
* src/engine/Query.c: use g_list_prepend and then reverse when
gathering splits. When pruning the list, prune from the beginning,
not the end, per the original semantics. Handle the case when
q->max_splits is 0.
* src/gnome/dialog-add.c (accWindow): if the window is closed as a
result of a gnome_dialog_close, don't save the size or destroy the
window, it's already gone.
* configure.in: remove check for readline. guile-config should
return the right values. Also, change LOCALE_DIR definition to
$datadir/locale. This seems to be more correct.
* src/swig/perl5/Makefile.in: use -fPIC because it's needed on
sparcs and doesn't seem to hurt for others.
* src/gnome/window-register.c (gnc_register_sort): just sort by the
given key and then by the standard order.
* src/gnome/window-reconcile.c: add menus to change the sort order
of the debits and credits list.
* src/engine/Query.c: allow the sort order to be set as increasing
or decreasing.
2000-05-19 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-style.c (gnucash_style_init): use
default style's font. Unfortunately, there doesn't seem to be a
way to get a default italic font, so use the regular one for now.
* src/gnome/reconcile-list.c: use Queries to get the splits so
we can do sorting. Add an api call to change the sort order.
* src/engine/Query.c (xaccAmountMatchPredicate): debits are
positive, credits are negative.
* Makefile.in: install files and directories one at a time. If the
user does not have an install script, the one supplied in the
gnucash distribution can only handle one file at a time.
* src/engine/util.c (xaccParseAmount): allow negative sign to be
at the front or back of the amount.
2000-05-18 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-reconcile.c: make the finish button sensitivity
depend on whether the reconciliation is balanced.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_activate_cursor_cell): if the callback changes the
value, redraw.
2000-05-17 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/Query.c: allow sorting by reconciled date and
reconcile status.
* src/gnome/window-reconcile.c: add a 'statement date' to the
reconciliation date. This date is used to set all the reconcile
dates of the splits that get reconciled.
* src/engine/Transaction.c (xaccSplitSetReconcile): don't change
the reconcile date when the reconcile status is changed.
2000-05-18 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report-2.scm: Fixed *some* of the
bugs with two-column balance displays.
2000-05-17 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-reconcile.c (gnc_recn_create_tool_bar): add a
'Finish' reconcile button to the toolbar.
* src/register/splitreg.c (configLabels): use callbacks to get
debit/credit headings.
* src/guile/guile-util.c: new functions to access guile
debit/credit synonyms by account type.
* src/scm/prefs.scm: added debit/credit synonym configuration.
2000-05-16 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/guid/guid.h: change the GUID struct to a union with
an integer to force 32-bit alignment on systems that need it.
* src/register/splitreg.c (xaccInitSplitRegister): in a currency
register, set the is_currency flag on the price cell.
* src/register/pricecell.c (xaccSetPriceCellIsCurrency): function
to set printing of currency prices in price cells.
* src/engine/util.c (xaccSPrintAmount): added a PRTCUR flag for
printing currency prices. Changed flags type from short to unsigned
int with a typedef of GNCPrintAmountFlags. Changed other files to
reflect this.
* src/scm/report/balance-and-pnl.scm: fix html error (fix from
Martin Schwenke).
* src/guile/guile-util.c: many bug fixes.
* src/scm/engine-interface.scm: fix list-ref arg order bug.
* src/SplitLedger.c (xaccSRCountRows): fix a bug when a two or
more splits from the same transaction are in the same account. Fix
other bugs including not accessing deleted splits/transactions.
Improve the refresh strategy. Could this code get any more
complicated? Yes...
2000-05-15 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/splitreg.c (xaccSplitRegisterGetCursorTypeRowCol):
new function, get cursor type by virt row/col.
* src/scm/report/transaction-report.scm: debits on left, credits
on right.
* src/engine/guid/md5.c (md5_process_bytes): fix 32-bit alignment
bug.
2000-05-14 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/guile/guile-util.c: added several interface functions to
src/scm/engine-interface.scm.
* src/Refresh.c (gnc_account_glist_ui_refresh): added a refresh
function that takes glib lists. Much more convenient.
* src/SplitLedger.c: add functionality for transaction
cut/copy/paste.
* src/MultiLedger.c (ledgerIsMember): always return true
for SEARCH_LEDGERS. Simple, but safe.
2000-05-12 Dave Peticolas <peticola@cs.ucdavis.edu>
* Makefile.in: add -follow arguments to find commands
* Makefile.common (CFLAGS): removed hard-coded profiling option
* configure.in: add a profiling argument.
* src/guile/gnucash.c: use putenv, not setenv. putenv is POSIX,
seems to be more common.
2000-05-10 Dave Peticolas <peticola@cs.ucdavis.edu>
* many: removed use of SCM registry in favor of scm_protect_object
and scm_unprotect_object.
* src/engine/GNCId.c (xaccRemoveEntity): don't allow the NULL id
to be removed.
* src/scm: remove some old, unused files.
* src/register/splitreg.c (configLayout): swap mirrored xfer from
and xfer to field in the transaction line of the ledgers.
2000-05-09 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-add.c (gnc_ui_accWindow_create_account): insert
the account *after* setting the account values so the sort order
is correct.
* src/engine/Account.c (xaccAccountInsertSplit): check the currency
before inserting.
2000-05-08 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/GNCId.c (xaccGUIDNew): new function to generate
IDs for gnucash. Use this, not guid_new. Also modified other
engine files to use this function.
* src/register/pricecell.c (COLORIZE): check for being close to
zero before colorizing red.
* src/scm/main.scm (gnc:main): if no filename was specified, open
the most recent file in the history.
* src/gnome/file-history.c (gnc_history_get_last): new function to
return the last filename the user opened.
2000-05-08 Rob Browning <rlb@cs.utexas.edu>
* make-gnucash-patch.in: change gnucash.h to gnucash.c in ignores.
Delete src/messages_i18n.h from ignores.
Remove g-wrap files from ignores.
* src/guile/gnucash.c.in: new file (now auto-generated)
This and the following change fix a mutual dependency problem.
* src/guile/gnucash.h: new file (no longer auto-generated).
* src/Makefile.in (CLEAN_SUBDIRS): add quotes.
(all targets): build g-wrap before guile.
* Makefile.init.in (VERSION): Added to fix problems with rpm spec,
etc.
2000-05-08 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/pricecell.c: allow the cell to be blanked directly.
* src/SplitLedger.c (xaccSRLoadRegEntry): explicitly blank the
balance cell for the blank split.
* src/register/splitreg.c (xaccInitSplitRegister): don't blank zeros
on the balance cell by default.
* src/gnome/window-main.c (gnc_main_create_menus): rename the
'Help' menu item to 'Manual'.
2000-05-07 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/guile/i18n.h.in: always include locale.h
* src/messages_i18n.h: no longer needs to be configured.
* configure.in: don't bother checking for locale.h, we have
to have it anyway.
* aclocal.m4: always include locale.h
* src/gnome/window-register.c (deleteCB): use g_strdup_printf
instead of asprintf.
2000-05-06 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/Query.c: g_list_sort *returns* the new first node.
* src/engine/Group.c
(xaccAccountsBeginStagedTransactionTraversals): bug fix -- used wrong
pointer type.
(xaccSplitsBeginStagedTransactionTraversals): bug fix -- used wrong
pointer type.
* src/gnome/reconcile-list.c (gnc_reconcile_list_fill): print the
amount using the account's currency.
* src/gnome/dialog-transfer.c (gnc_xfer_dialog_create): remove the
currency symobl from the dialog and use the account currency, if
available, in printing amounts.
* src/gnome/window-adjust.c: remove the currency symbol from the
dialog and use the account currency in printing amounts.
2000-05-05 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/SplitLedger.c (xaccSRSaveRegEntry): set the date entered
time of the blank split transaction.
* src/gnome/window-reconcile.c: print different currencies
correctly. Print reconciled balance so far.
2000-05-04 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-main.c (gnc_main_create_toolbar): removed the
'open file' item from the toolbar, to lessen conflict with the
'open account' item.
2000-05-03 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c: add a gui option for sorting by
date entered.
* src/engine/Query.c: add a BY_DATE_ENTERED sorting option.
* src/scm/prefs.scm: convert the gui options to internal options.
* src/scm/options.scm: add an interal option type with no frills.
* src/engine/util.c (xaccSPrintAmount): add a space after the
currency code to make the currency symbol.
(gnc_lconv_set_char): check for the lconv default value using
CHAR_MAX, not 127.
2000-05-02 Rob Browning <rlb@cs.utexas.edu>
* Makefile.in: switch to sed to handle non-makefile generation.
* Makefile.init.in: kill PATH mangling.
Add DIFF GUILE and g-wrap command handling.
* configure.in: Many changes related to the great g-wrap exodus
and the change to handle non-makefile with sed.
Kill recursive var expansion.
Kill prefix pre-expansion.
Remove fancy guile handling - presume newer guile (which is required).
Remove non-makefiles from AC_OUTPUT (except the locale stuff for now).
* doc/build-system: Document configure handling of non-makefiles.
* lib/Makefile.in: expunge g-wrap.
* make-gnucash-patch.in: use sed @--@ handling for expansions.
Be strict.
Add ignore for src/messages_i18n.h
* po/Makefile.in.in: handle extract-macros.perl.in vars with sed.
* po/extract-macros.perl.in: handle vars with sed.
* rpm/Makefile.in: new file. Handle gnucash.spec.in with sed.
* rpm/gnucash.spec.in: use @--@ vars.
* src/Makefile.in: handle src/quotes in the build process.
Re-order src/guile to build before src/g-wrap.
* src/g-wrap/Makefile.in: handle new version of g-wrap.
* src/gnome/Makefile.in: fix compile var handling for g-wrap, etc.
* src/guile/Makefile.in: fix compile var handling for g-wrap, etc.
Add sed handling for gnucash.h.in.
* src/guile/gnucash.h.in: handle g-wrap changes.
Handle removal of EXPANDED vars.
Switch to sed @--@ vars.
* src/qt/Makefile.in: fix compile var handling for g-wrap, etc.
* src/quotes/Makefile.in: new file.
Handle gnc-prices.in with sed.
* src/quotes/gnc-prices.in: Switch to sed @--@ vars.
* src/scm/Makefile.in: Handle bootstrap.scm.in with sed.
* src/scm/bootstrap.scm.in: Switch to sed @--@ vars.
2000-05-02 Robert Graham Merkel <rgmerk@mira.net>
* man/gnc-prices.1: fixed typo.
* src/scm/report/transaction-report-2.scm: fixed typo for debit string
and reversed displayed sign in debit column.
2000-05-01 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report-2.scm : Added i18n and
optional two-columns printout to the new transaction report.
2000-04-30 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/Queue.c (xaccQueueGetShares): computation should start
at the tail split, not at split 0.
(xaccQueueGetValue): ditto.
* src/scm/report/average-balance.scm: track stock account balances,
i.e. value, not cost.
2000-04-29 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/splitreg.c: add a flag determining whether to use
regular labels or only debit/credit.
* src/gnome/top-level.c: implement the debit/credit label option
* src/scm/prefs.scm: added option to only use debit/credit labels
in the register.
* src/MultiLedger.h: remove the MAX_SPLITS constants
* src/gnome/window-main.c (gnc_ui_refresh_statusbar): no need to
reverse quantities.
* src/gnome/top-level.c (gnc_configure_reverse_balance): take out
debit sign-reversal type.
* src/scm/prefs.scm: take out debit sign-reversal type
* src/SplitLedger.c: debit/credit reversal.
* src/register/pricecell.c: debit/credit reversal.
* src/register/splitreg.c: switch the column labels for the
debit/credit reversal.
* src/gnome/window-reconcile.c: fix up the dialog for the
debit/credit reversal. Also, fix the calculations so the user
can change sign-reversal modes while the dialog is open.
* src/gnome/window-main.c (gnc_ui_delete_account): refresh the
main window fully.
* src/gnome/reconcile-list.c (gnc_reconcile_list_fill): debits are
positive, credits are negative.
2000-04-28 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/html-generator.scm (html-table-do-entry): Bryan Larsen's
fix for null (#f) generators.
2000-04-28 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/option-util.c: redid the option database storage as
a hash table, so databases have the same handle throughout their
lifetime.
* src/engine/Transaction.c (xaccTransOrder): only compare nums if
they are non-blank.
2000-04-27 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-main.c (gnc_ui_refresh_statusbar): use ASSET
type to determine sign reversal for assets quantity.
2000-04-25 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/guid/guid.c (guid_init): add hostname and domainname
to the mix.
* src/engine/AccInfo.c (xaccAccountTypesCompatible): relax the
restrictions on account types. Go to three groups: asset &
liability, income & expense, equity.
* src/engine/FileIO.c: no need to free NULL pointers.
2000-04-24 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/report/average-balance.scm: the min and max columns
were swapped. Also, the last average balance entry wasn't being
calculated correctly.
* src/gnome/dialog-options.c: modified to use gnc-dateedit.
* src/gnome/window-adjust.c: modified to use gnc-dateedit.
* src/gnome/window-register.c: modified to use gnc-dateedit.
* src/gnome/dialog-transfer.c: modified to use gnc-dateedit.
* src/gnome/gnc-dateedit.c: new file. gnome date editor modified
to use gnucash date printing and parsing routines. I plan on
extending this with additional features, too.
* src/engine/Group.c (xaccMallocAccountGroup): loop until we
get a unique id. This is just paranoia code. Ditto for Account.c
and Transaction.c.
* src/engine/Account.c: add some 'const' keywords to string
arguments. This affected many other files.
* src/engine/Scrub.c: i18n strings used to make new accounts.
2000-04-22 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-options.c: use the default section, if present,
when building the dialog.
* src/scm/options.scm: option databases can have default sections.
* src/scm/report/transaction-report-2.scm: make the default option
section "Report Options". Change "x Display" section to "Display".
Add title of report to string database.
2000-04-21 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/report/average-balance.scm: comment out query function.
This needs to be fixed when the new query api gets g-wrapped.
* src/engine/Query.c: (xaccFreeQuery): free the split list
(xaccQueryGetSplits) handle a null account group
* src/gnome/dialog-edit.c: figure out all the accounts affected
by a currency/security/type change and ask the user whether the
needed changes should be made.
* src/gnome/dialog-utils.c (gnc_fill_menu_with_data): also recurse
for GNOME_APP_UI_SUBTREE_STOCK.
* src/gnome/top-level.c (gnc_configure_reverse_balance): change
asset-expense to all debit accounts.
* src/register/numcell.c: include <limits.h> per Eric Hanchrow's
fix.
2000-04-16 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/g-wrap/gnc.gwp: wrap functions for getting account guids and
looking up accounts by guids.
* src/g-wrap/gnc-helpers.c: add helper functions for using guids.
* src/scm/prefs.scm: add an assets-expense choice to which kinds of
accounts are sign-reversed.
* src/gnome/top-level.c (gnc_configure_reverse_balance): handle the
asset-expense choice.
2000-04-15 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-style.c (gnucash_style_layout_init):
added a missing 'break' statement.
2000-04-14 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/AccInfo.c: allow the price source to be set to NULL.
* lots of build system files: changes for the global id stuff.
* src/engine/GNCId.c: engine globally unique id api implementation.
* src/engine/guid/md5.c: taken from GNU textutils.
* src/engine/guid/guid.c: new file with routines for generating
globally unique ids.
2000-04-10 Dave Peticolas <peticola@cs.ucdavis.edu>
* doc/README: only the environment variable LANG needs to
be set to change the locale.
2000-04-09 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/srfi/srfi-1.r5rs.scm: renamed 'list-index' to
'list-index-pred'. guile-1.3.4 defines a list-index with
different api and semantics.
* configure.in: make gnucash.spec configured
* rpm/gnucash.spec.in: new file, same as old gnucash.spec, but
with @VERSION@ instead of a hard-coded version number. Removed
gnucash.spec.
* src/scm/prefs.scm: make the default field types be description
and total
* src/gnome/window-main.c (gnc_configure_account_tree): set the
state of the total field
* src/gnome/account-tree.c: add in the new total field
* src/gnome/dialog-utils.c: add the new account field key
ACCOUNT_TOTAL. This key refers to the account's balance plus the
balances of all children. The ACCOUNT_BALANCE key now refers to
the balance of the account itself, without children.
2000-04-08 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/report/balance-and-pnl.scm: remove the report description.
It just looked weird!
* src/scm/command-line.scm (gnc:prefs-show-version): use the
configured version instead of hard-coding it.
* src/scm/bootstrap.scm.in (gnc:version): configure this guile
variable with the gnucash version info.
* src/SplitLedger.c (xaccLoadXferCell): == not = Doh!!!
2000-04-07 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/Query.c (PROLOG): move declaration of da and db
locals into the macros that actually use them. This gets rid
of some annoying warnings.
* src/register/numcell.c: added method to set the last number
entered. The next number entered is now the last number + 1.
* Makefile.in: changed [ -e filename ] to [ -f filename ]
* src/scm/report.scm: Changed the report format to be a record.
2000-04-05 Dave Peticolas <peticola@cs.ucdavis.edu>
* configure.in: removed check for eperl
* src/reports: removed pathconfig.h.in and Sheet.? (eperl stuff)
* src/gnome/window-help.c: took out gncReport call (eperl)
* lib/Makefile.in: took out make dist hack
* src/register/table-allgui.c: more error checking
* src/SplitLedger.c: more cleanup. Fix a bug in refreshing a register
in auto-mode where the current transaction has been deleted.
* src/scm/report/balance-and-pnl.scm: put sub-accouts below their
parent accounts and indent their names. Align the columns better.
Print fully-qualified names.
2000-04-04 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-style.c: update the styles
appropriately for the changes below.
* src/register/splitreg.c: configure the ledger style register
with a xfer to field in all modes.
* src/SplitLedger.c (xaccSRLoadRegister): remove stock price hack.
many code cleanups throughout file.
2000-04-03 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c: changed menu definitions to be
statically allocated.
* src/gnome/window-main.c: ditto
* src/SplitLedger.c: added extra checks for boundary conditions.
When refreshing, try to go to the same cell offset as before.
2000-04-01 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/SplitLedger.c: more generalizations needed for general
ledger operation.
* src/register/splitreg.c (configLayout): add the xto cell into
the transaction cursor.
2000-03-31 Rob Browning <rlb@cs.utexas.edu>
* src/scm/Makefile.in: set top_srcdir and include Makefile.init
* src/reports/pathconfig.h.in: use new GNC_EXPANDED_ vars.
* src/quotes/gnc-prices.in: new file.
* src/quotes/gnc-prices: deleted.
* src/guile/gnucash.h.in: use new GNC_EXPANDED_ vars.
* src/guile/i18n.h.in: use new GNC_EXPANDED_ vars.
* src/guile/Makefile.in (top_srcdir): set.
* src/Makefile.in: minor cleanups and safety code.
* make-gnucash-patch.in: new file.
* make-gnucash-patch: deleted.
* lib/Makefile.in: re-configure g-wrap after every distclean and
rebuild/install it on every build.
* gnucash: fix the doc-path to match the new structure. This
fixes things back the way they were, but now we need to add
runtime locale detection.
* doc/build-system: new file - should eventually cover
build-system info and justifications.
* configure.in: changes to accomodate the new GNC_EXPANDED_*
vars. See doc/build-system for a summary.
* Makefile.init.in (ABSOLUTE_TOP_SRCDIR): set
(top_srcdir): don't set (it has to be set in each separate Makefile.in)
* Makefile.config.finish: deleted.
* Makefile.in: minor cleanup -- some safety checks.
* Makefile.common: Clear all the .SUFFIXES rules. They were
causing weird behaviors when I was trying to create some new
implicit rules.
* src/scm/printing/number-to-words.scm: scope gnc:depend and
gnc:support calls.
* src/scm/printing/print-check.scm: scope gnc:depend and
gnc:support calls.
* src/scm/qif-import/qif-dialog-utils.scm: scope gnc:depend and
gnc:support calls.
* src/scm/qif-import/qif-file.scm: scope gnc:depend and
gnc:support calls.
* src/scm/qif-import/qif-guess-map.scm: scope gnc:depend and
gnc:support calls.
* src/scm/qif-import/qif-import.scm: scope gnc:depend and
gnc:support calls.
* src/scm/qif-import/qif-objects.scm: scope gnc:depend and
gnc:support calls.
* src/scm/qif-import/qif-parse.scm: scope gnc:depend and
gnc:support calls.
* src/scm/qif-import/qif-to-gnc.scm: scope gnc:depend and
gnc:support calls.
* src/scm/qif-import/qif-utils.scm: scope gnc:depend and
gnc:support calls.
* src/scm/qif-import/simple-obj.scm: scope gnc:depend and
gnc:support calls.
* src/scm/main.scm: fix load-path problems.
2000-03-31 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (gnc_transaction_delete_query): ok, we
can't destroy the dialog on close, because we need the widgets to be
there afterwards. gtk_widget_destroy() the dialog instead.
* src/register/splitreg.c: add a SEARCH_LEDGER register type. Don't
include the balance field in 'ledger' style registers.
* src/register/gnome/gnucash-style.c (gnucash_style_layout_init):
new layouts for ledgers -- they don't have a balance field. We'll
probably need to redo them if we add a xto field. Broke out the
actual layout construction into separate functions.
2000-03-30 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/SplitLedger.c (xaccSRSaveRegEntry): remove the 'special
case' for setting the price. It is no longer needed.
* src/gnome/window-register.c (gnc_reg_set_window_name): set the
name regardless of whether there is a leader.
* src/SplitLedger.c (xaccSRLoadRegister): fixed a possible memory
leak in destroying the buffer
2000-03-29 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/report/transaction-report.scm: bug fixes and speed
improvements
* src/engine/Group.c: added some new transaction traversal code
* src/scm/report/folio.scm: implement the old eperl report
2000-03-28 Robert Graham Merkel <rgmerk@mira.net>
* man/gnc-prices.1: new file. Man page for gnc-prices. Somebody
please add installation from makefile!
2000-03-27 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/report/budget-report.scm: removed use of transaction
report function. This was generating a value that was not
subsequently used.
2000-03-26 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/report/transaction-report.scm: i18n the report
* src/gnome/window-register.c (gnc_transaction_delete_query):
destroy on close, don't hide.
* src/register/splitreg.c: several new functions for saving and
restore the contents of the cursor.
* src/SplitLedger.c (xaccSRRedrawRegEntry): always redraw, caller
knows best!
(LedgerMoveCursor): if we are leaving the pending transaction,
commit it.
(xaccSRLoadRegister): save and restore changed cursor values.
(xaccSRSaveRegEntry): clear the register change flags.
2000-03-24 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/quickfillcell-gnome.c (QuickFillDirect): if
the cursor is in the selection, move it to the start of the
selection.
* Makefile.common: add the value of DEFS to the compile flags
* Makefile.init.in: get the value for DEFS.
* src/register/numcell.c: new cell for entering numbers. Handles
accelerators for increasing/decreasing the number and remembers
the largest number for auto-filling.
2000-03-23 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/report/average-balance.scm: fixed many things and i18n'd
the report.
* src/engine/util.c (PrintAmt): always use '.' as the decimal point
coming from sprintf.
2000-03-22 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/prefs.scm: set the default currency code using the
wrapped C function in util.c below.
* src/engine/util.c (xaccSPrintAmount): add a PRTNMN flag for
printing non-monetary values.
(gnc_locale_default_currency): return the currency code for the
current locale.
* src/register/splitreg.c (xaccInitSplitRegister): update for
changes to the price cell api.
* src/engine/util.c (xaccSPrintAmount): set the precision based on
the locale.
* src/register/pricecell.c: remove some unneeded api calls and
add one for specifying that the cell contains a share quantity.
2000-03-19 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-options.c (gnc_option_set_ui_widget): request
a reasonable size for the number-range widget.
* src/FileDialog.c (gncFileQuerySave): return a boolean value
indicating whether the user wants to proceed or cancel. The uses
of this function have been updated to respond appropriately.
2000-03-18 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/Query.c (xaccInitQuery): make the standard engine
order the default sort order.
* src/gnome/window-adjust.c (adjBRefresh): update the title
* src/Refresh.c (gnc_account_ui_refresh): refresh the edit account
and adjust balance windows too.
* src/gnome/dialog-edit.c: add gui for changed the account type.
* src/engine/Account.c (xaccAccountSetType): allow account types
to be changed.
2000-03-15 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/extensions.scm (gnc:new-menu-namer): register and
translate the names correctly.
* src/scm/report.scm (gnc:report-menu-setup win): make sure the
report title gets registered and translated.
* src/scm/report/hello-world.scm: i18n'd this report.
2000-03-14 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-sheet.c
(gnucash_register_key_press_cb): generate activate event on a
keypad enter as well as the return key.
* Docs/C/xacc-ticker.html: updated for Yahoo Europe information.
2000-03-13 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-utils.c: added Yahoo Europe to the quote source
menu.
* src/quotes/Quote.pm: added method for getting Yahoo European
quotes. Also, fixed the parsing of csv data.
* src/quotes/gnc-prices: cleanup the code, less wordy output.
* src/quotes/Quote.pm (yahoo): updates from latest YahooQuote.pm
2000-03-12 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/c-interface.scm (gnc:error->string tag args): print a
stack backtrace.
* src/gnome/cursors.c: when given a NULL argument, the set and
unset busy cursor function change all top-level window cursors.
This breaks the motif side though, in that the cursor will no
longer get set there. Oh well.
* src/gnome/window-register.c (duplicateCB): new callback for
duplicating the current transaction/split.
* src/SplitLedger.c (xaccSRDuplicateCurrent): new function to
duplicate the current split or transaction.
* src/gnome/window-report.c (gnc_run_report): set the busy cursor
while running the report generator.
2000-03-10 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-main.c (gnc_ui_refresh_statusbar): revise the
profit and asset calculation.
* src/MultiLedger.c (xaccLedgerDisplayRefresh): don't reverse the
balances ever -- let the GUI do it.
* src/motif/RegWindow.c (regRefresh): reverse the balances
for INCOME and expense.
2000-03-09 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (regRefresh): print
reversed-balanced account balances appropriately.
2000-03-07 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/report/transaction-report.scm: a few bug fixes.
* src/gnome/window-main.c (gnc_ui_delete_account): destroy the
windows *then* remove the account from the tree. Sometimes,
destroying the window can result in a refresh, which will do
strange things if we have already removed the account from the
tree.
2000-03-06 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-reconcile.c (recnRefresh): resize the window
* src/FileDialog.c (gncPostFileOpen): set the busy cursor while
reading the file.
(gncFileSave): ditto.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_update_adjustments): set the step increment.
2000-03-06 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-style.c
(gnucash_sheet_style_set_col_width): Adjust the overall style
width, too.
* src/register/gnome/gnucash-header.c
(gnucash_header_auto_resize_column): Resize the window to fit the
register.
(gnucash_header_event): ditto on a column resize.
2000-03-05 Rob Browning <rlb@cs.utexas.edu>
* src/scm/report/transaction-report.scm: add support for depend
mechanism.
* src/scm/report/hello-world.scm: add support for depend
mechanism.
* src/scm/report/folio.scm: add support for depend mechanism.
* src/scm/report/balance-and-pnl.scm: add support for depend
mechanism.
* src/scm/report/average-balance.scm: add support for depend
mechanism.
* src/scm/report.scm (gnc:report-menu-setup): fixed minor
non-r5rsism (defines must be at the beginning of a <body>).
* src/scm/report/report-list.scm: new file. This is where all of
the reports that should be loaded at startup should be listed.
* src/scm/main.scm (gnc:startup): don't autoscan/load from the
report dir anymore. Use the depend mechanism instead. This isn't
as convenient, but it's safer.
* src/scm/hooks.scm (gnc:hook-run-danglers): added a little
debugging code.
* src/scm/extensions.scm (gnc:extensions-menu-setup): fixed minor
non-r5rsism (nested defines must be at the beginning of a <body>).
* make-gnucash-patch: allow the user to override the default
locations with environment variables.
2000-03-04 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/guile/gnucash.c (main): load the locale from the environment
with setlocale. This is needed so that guile can find the locale.
* Docs/: reorganized the Docs directory. Then english language
stuff moved to the "C" directory. The french stuff goes under
"fr". The "En" and "Fr" directories are gone. The standard for
country codes uses lower-cases letters, so we should stick to
that. The graphics files go under "pix" directories under their
respective language directories.
* src/scm/path.scm: create documentation search paths based on the
current locale. The default "C" locale is always searched last.
* src/reports/File.c (gncFindFile): take out dead code.
2000-03-04 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-style.c (set_dimensions_pass_one):
Only set the dimensions based on percentages if the dimensions
have not been set before. This gets rid of some strange behavior
where styles change width by a few pixels when window size was
changed.
(gnucash_sheet_style_set_dimensions): Add a width argument; now we
compute dimensions to fit "width" as best as possible. Most of
the time width should be the allocation width of the sheet, except
that when the style is first compiled, the allocation width may be
unavailable.
(style_recompute_layout_dimensions): Set dimensions->width
properly.
(gnucash_style_default_width): Nuke this function, since we can
now use dimensions->width.
(gnucash_sheet_style_compile): Use a default width to set
dimensions.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_set_top_row):
Update the canvas before the scroll. This helps eliminate some of
the flashing when the register scrolls. Still not perfect,
though.
2000-03-03 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_size_allocate): Keep track of the allocation and
update everything only if the allocation changes. This is needed
because gnome canvas widget items always do a gtk_widget_set_usize
(), which in turn forces a reconfigure of the parent widgets. So
we were getting size_allocate events even when the size of the
window was not changing.
(gnucash_sheet_set_top_row): Scroll the sheet by setting the
adjustment values rather than calling gnome_canvas_scroll_to ().
* src/register/gnome/gnucash-header.c
(gnucash_header_reconfigure): Set the sheet width from the header.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_block_set_from_table): Check to see if the style
has changed before we reallocate all the entries and colors.
(gnucash_sheet_block_set_entries): Don't strdup the entries from
the table.
(gnucash_sheet_block_clear_entries): Don't free the text in the
entries, since now the table owns this.
(gnucash_sheet_set_scroll_region): New function; sets the scroll
region on the register canvas.
(gnucash_sheet_update_adjustments): This was being done
incorrectly. The layout widget on which the gnome canvas is based
takes care of the adjustments, and we've just connected to these
adjustments in the smooth-scroll case. Now that the scroll region
is set correctly, just let the layout manage the adjustments.
2000-03-03 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/pricecell.c (PriceMV): accept thousands separators.
* src/scm/c-interface.scm: new functionality for registering
translatable strings and saving them to a file in a suitable
format for po creation. This touched a bunch of other .scm
files as well.
2000-03-02 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-options.c: use gettext to translate the strings
used to make the gui components.
* src/gnome/window-reconcile.c
(gnc_reconcile_window_create_list_frame): always show vertical
scrollbars, the columns widths work out better that way.
* src/gnome/reconcile-list.c
(gnc_reconcile_list_get_needed_height): better estimate of needed
height than just multiplying row height times rows.
* src/register/gnome/gnucash-item-list.c (gnc_item_list_autosize):
new function to autosize the list. For some reason, have the list
autosize for each new insertion wasn't working for very large
registers.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_new): bump up
the scroll region for very large registers.
* src/gnome/window-main.c (gnc_main_create_toolbar): removed the
C-a and C-d shortcuts for adding and deleting accounts.
* src/gnome/reconcile-list.c (gnc_reconcile_list_init): print
selected 'y' reconcile flags in yellow for better contrast.
(gnc_reconcile_list_unselect_row): don't unselect the row if we
are toggling the current row.
* src/gnome/window-reconcile.c (recnRecalculateBalance): reverse the
balance if appropriate.
2000-03-01 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-adjust.c (gnc_ui_AdjBWindow_ok_cb): reverse the
balance if appropriate.
* src/scm/extensions.scm: add the extensions menu if debugging.
* src/scm/bootstrap.scm: new function to check debugging status.
* src/FileDialog.c (gncFileQIFImport): set the busy cursor when
reading and processing the qif.
* src/SplitLedger.c: added a sign-reversal callback.
* src/gnome/dialog-utils.c (gnc_ui_get_account_full_balance): used
the sign-reversal option in computation.
* src/gnome/top-level.c: implement the sign-reversal configuration
and callbacks.
* src/gnome/window-main.c (gnc_ui_refresh_statusbar): used
sign-reversal option in computation.
* src/scm/prefs.scm: add an option to choose how accounts
are sign-reversed.
2000-02-29 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/cursors.c (gnc_ui_set_cursor): let the gtk main loop
catch up before we exit. This makes sure the cursor gets changed
before we return.
* src/gnome/dialog-filebox.c: hide the window before exiting
the gtk main loop.
* src/scm/prefs.scm: added a new option for expanding parent
accounts with double-clicks instead of opening them.
* src/gnome/window-main.c (gnc_account_tree_activate_cb): use
expansion option to decide whether to open or expand.
* src/SplitLedger.c: check for common currency when saving a
register entry. If there is none, don't perform the split
insertion; instead show a warning dialog.
* src/scm/prefs.scm: converted account type and account field
options to list options.
* src/register/gnome/combocell-gnome.c (leaveCombo): if a new
value is returned, also set the same value as the cell value.
* Makefile.in: added 'unfinished' to qt compile target info.
2000-02-28 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/options.scm: added a list option
* src/scm/report/hello-world.scm: added a demo list option
* src/gnome/dialog-options.c: added implementation of list options.
* src/engine/QIFIO.c (xaccParseQIFDate): fix for 4-digit dates.
(xaccParseQIFDate): fix for x/x' 00 dates, which are an old
format for 2000 dates.
* src/scm/report/average-balance.scm: fix report to work when
there are no accounts.
* src/scm/report/transaction-report.scm: initialize the inflow and
outflow variables to zero each time the report is run.
2000-02-27 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/gnome/top-level.c (gnc_configure_register_borders): Add
options for setting cell borders.
* src/scm/prefs.scm: ditto
* src/register/gnome/gnucash-style.c
(gnucash_style_set_cell_borders):
(gnucash_style_set_register_borders):
(gnucash_style_set_borders):
(gnucash_sheet_set_borders): Functions to interactively set cell
borders.
2000-02-26 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-style.c
(gnucash_sheet_style_compile): Support for turning horizontal and
vertical borders on and off.
(gnucash_sheet_style_recompile): Ditto
* src/register/gnome/gnucash-grid.c (draw_cell): ditto
* src/register/gnome/gnucash-header.c
(gnucash_header_reconfigure): Fix a bug in how the scroll region
was set. Remove some outdated code.
2000-02-27 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-transfer.c (gnc_xfer_dialog_create): use
gnc_localconv to get the currency symbol.
* src/gnome/window-adjust.c (adjBWindow): put colons after label.
Use gnc_localeconv to get the currency symbol.
2000-02-26 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-adjust.c (gnc_adjust_update_cb): only update if
the new string is different from the old. ditto for the reconcile
and transfer windows.
2000-02-25 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/pricecell.c (PriceHelp): print out full number for
help value.
* src/register/table-allgui.c (makePassive): implement alternative
passive colors.
* src/register/splitreg.h (struct _SplitRegisterColors): add color
for odd rows in single mode, and boolean argument determining
whether to alterative virtual or physical rows in double mode.
2000-02-25 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_check_grab):
see if we need to release the grab.
* src/register/splitreg.c (xaccInitSplitRegister): configure the
mxfer cell with an ignore string (SPLIT_STR) and a help string
explaining multi-line transactions.
* src/register/gnome/combocell-gnome.c: added help handler and
ignore string functions.
* src/register/table-allgui.c (gnc_table_enter_update): don't set
changed flag if new string is identical.
2000-02-24 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/table-gnome.c (xaccRefreshTableGUI): redo the style
information so that new colors (and other info) get refreshed.
* src/register/gnome/gnucash-header.c (gnucash_header_draw): use
header style color to draw header background.
* src/gnome/option-util.c: new functions to support color options.
* src/gnome/dialog-options.c: gui implementation of color options.
* src/scm/report/hello-world.scm: used the new color option.
* src/scm/options.scm: added a new color option.
2000-02-23 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/extensions.scm (gnc:new-menu-namer): new object that
automatically picks accelerator keys for a group of menu items.
2000-02-22 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_delete_cb):
don't bother with the callback if the ending position of the
deleted section is <= to the starting position. This can happen.
* include/messages_i18n.h.in: added menu item strings with
underscore accelerators. Changed several gnome files to use
these strings.
2000-02-21 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-header.c
(gnucash_header_reconfigure): scroll region width should be the
style width, not the allocation width.
2000-02-20 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/guile/gfec.c (gfec_catcher): use a guile function for
printing the error instead of the C interfaces. This removes
a dependency on guile 1.3.4.
* src/scm/c-interface.scm: add function for return an error string.
Used by the C-side error catcher in gfec.c.
2000-02-19 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/report/hello-world.scm: added a 'crash the report'
option for testing the reports code.
* src/register/gnome/gnucash-header.c (gnucash_header_event):
modify per changes to pointer_on_resize_line. Allow the user to
resize by double-clicking anywhere in a column heading.
(pointer_on_resize_line): set the column with a pointer argument.
return true if on a resize line, false otherwise.
(gnucash_header_init): initialize normal_cursor to NULL, which
selects the default gdk cursor.
2000-02-18 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-style.c (gnucash_style_layout_init):
Make only the description cell a FILL cell.
2000-02-18 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/util.c (gnc_localeconv): Diane Trout's patch to set
the default values with a function.
* src/register/datecell.c (DateMV): validate change values longer
than a single character. Also, update the date value after a
non-accelerator change.
* src/register/pricecell.c (PriceMV): validate change values
longer than a single character.
* src/engine/util.c (gnc_localeconv): add in default values for
the sign and currency positions if their values are out of range.
* src/gnome/window-reconcile.c (recnRecalculateBalance): colorize
the negative values in the summary frame.
2000-02-17 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (gnc_register_create_menu_bar):
added an edit menu with cut/copy/paste.
(gnc_register_create_menu_bar): use 'blank' instead of 'new' to
describe the command to jump to the blank split. Use a new tooltip
too. Ditto for the popup menu and the toolbar.
* Makefile.in: reversed order of gnucash linking so gnucash.gnome
gets linked last, so it overides the motif version. Also, install
the gnucash.desktop entry so gnucash appears in the gnome panel.
* src/register/splitreg.c: right-align the xfer cells
* src/register/gnome/gnucash-item-edit.c: handle selections the
gtk way with the gtk_selection_ routines. Grabbed this stuff from
gtkeditable and gtkentry.
* src/register/gnome/gnucash-sheet.c: use the new selection handling
code in the item editor to do cutting and pasting.
2000-02-16 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-item-edit.c: added code to support
real gtk selection handling. Adapted this from the gtk editable
widget.
2000-02-15 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-transfer.c (gnc_xfer_dialog_create): allow the
user to resize the window
* src/gnome/window-register.c: save and restore window size
* src/gnome/window-main.c: save and restore window size
* src/gnome/dialog-edit.c: save and restore window size
2000-02-14 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-add.c (accWindow): save and restore window size
* many files: use the configured account separator
* src/gnome/dialog-utils.c (gnc_get_account_separator): new function
to get the account separator
* src/scm/prefs.scm: new option for the account separator
2000-02-13 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/splitreg.c (configLayout): swap the xfer and desc
cells. Add the debit and credit cells to the transaction cursor
so we get totals.
* src/register/quickfillcell.h: add a GUI-specific initializer.
The motif version does nothing. The gnome version add a direct
callback to handle auto-completion keystrokes.
* src/register/table-allgui.c (gnc_table_direct_update): new
function for passing direct gui input to the table, and then the
cells.
* src/register/basiccell.h: added a direct_update callback for
responding to raw gui input.
* src/register/gnome/combocell-gnome.c (ComboDirect): add complete
to char and complete as far as possible functionality.
2000-02-12 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c: add new account menu item
* src/engine/Transaction.c (xaccTransCommitEdit): always check the
split ordering on a commit. Only checking the transaction date won't
work, because other fields in the transaction and the split affect
the order.
* src/engine/Account.c (xaccCheckDateOrder): use
xaccSplitDateOrder, the same routine as xaccAccountInsertSplit to
do the ordering.
* src/register/table-allgui.c (gnc_table_modify_update): new
function, a direct gui callback.
2000-02-11 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm
((gnc:tr-report-get-first-acc-name split-scm)): Fixed crash when
it's a lone split, and somebody's not using proper double-entry
accounting!
* Doc: Extensive clean-up and documentation of new features,
including several new images.
2000-02-11 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/splitreg.c (xaccInitSplitRegister): change memo
cell to be a quickfill cell.
* src/gnome/window-main.c (gnc_refresh_main_window): refresh all
account trees.
(gnc_ui_delete_account): remove account from all trees.
* src/gnome/account-tree.c: added a global list of account trees.
added functions for refreshing all trees and deleting an account
from all trees.
* src/register/basiccell.h: (and lots more files) added a cell
callback for getting the 'help' string of a cell. This uses a
default which uses the value of the cell, if its not blank, and
a "blank help" otherwise. The blank help string can be set on a
per-cell basis.
The date cell replaces the help callback with one that prints the
date out in full, according to the current locale.
The split register initialization sets a few of the cells with
blank help values.
Finally, the gnome register uses the help strings to set the
status of the statusbar.
2000-02-10 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/util.c (loglevel): print warnings and errors in
all modules.
* src/gnome/window-main.c: change the sensitivity of menu and
toolbar items that need a selected account.
* src/gnome/dialog-edit.c (editAccWindow): allow dialog to be
resized
* src/scm/extensions.scm: add code for a more flexible menu
definition process under guile. Comment out extensions menu
stuff -- it's not complete.
* src/register/gnome/gnucash-sheet.c (gnucash_button_press_event):
after moving, get the cursor position again before setting the
item editor cursor position because the cursor position may have
changed due to auto-mode rearrangement.
* src/scm/prefs.scm:comment out locale-based date parsing
* src/gnome/window-main.c (gnc_main_create_menus): modify the
names and order of the items per gnome standards.
* src/scm/options.scm: Only save options that have been changed
from their default values.
* include/messages_i18n.h.in: removed periods from end of tooltips
(gnome standard).
2000-02-09 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-reconcile.c (recnFinishCB): rewrote to be more
like the other top-level windows.
* src/gnome/dialog-transfer.c (gnc_xfer_dialog): have the amount
entry grab focus.
2000-02-08 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/options.scm: add a number-range option
* src/scm/prefs.scm: add an option of number of register rows.
* src/gnome/option-util.c: add utility functions for number
range options.
* src/gnome/dialog-options.c: implement number range options
* src/scm/prefs.scm: added a register 'show all transactions'
option.
* src/gnome/window-register.c (gnc_register_date_window): lookup
guile 'show all' option to determine how to set the date range.
* src/register/splitreg.c (xaccInitSplitRegister): Set the minimum
trailing zeros for share quantities to 0. All price cells are now
monetary values.
* src/register/pricecell.c: modify to use integer arg for trailing
zeros. Add function for changing blank_zero option.
* src/engine/util.c (PrintAmt): change the trailing zeros argument
to an integer indicating the minimum number of trailing zeros to
print.
* src/register/gnome/gnucash-item-list.c: handle mouse wheel
scrolling from the clist.
2000-02-07 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-main.c (gnc_ui_refresh_statusbar): set the
color of deficit values to red in the main window status bar.
* src/gnome/account-tree.c (gnc_account_tree_insert_row): only set
values as red if they are less than but not extremely close to
zero.
* src/gnome/window-main.c (mainWindow): separate profit and asset
labels in the status bar.
2000-02-07 Robert Graham Merkel <rgmerk@mira.net>
* src/gnome/global-options.c (gnc_options_dialog_help_cb): pops
up a help window.
* src/gnome/dialog-edit.c (gnc_ui_EditAccWindow_help_cb): callback
now displays help page instead of placeholder dialog.
* Docs/En/xacc-accountedit.html: New file explaining account edit
dialog.
* Docs/En/xacc-globalprefs.html: New file explaining preferences.
* Docs/En/xacc-main.html: Added pointers to new help pages for
account-edit and preferences dialog boxes.
* src/top-level.h: Added new HH_* macros for new help pages for
dialog boxes
2000-02-06 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/SplitLedger.c (xaccSRSaveRegEntry): don't refresh if the
transfer account hasn't really changed.
* src/gnome/window-adjust.c (gnc_ui_AdjBWindow_ok_cb): parse
amount with xaccParseAmount. When the amount entry goes out of
focus, reformat the value with separators.
* src/gnome/dialog-transfer.c: parse amount with xaccParseAmount.
When the amount entry goes out of focus, reformat the value with
separators.
* src/gnome/reconcile-list.c (gnc_reconcile_list_fill): print the
amount with xaccPrintAmount, with separators.
* src/gnome/window-reconcile.c (startRecnWindow): print the amount
with separators and parse it with xaccParseAmount. When the amount
entry goes out of focus, parse it and reformat it.
* src/register/splitreg.c (xaccInitSplitRegister): set the stock
register cell options appropriately.
* src/register/pricecell.c: add functions for setting the precision
and trailing zeros option. removed the 'shares' option.
* src/engine/util.c (xaccSPrintAmountGeneral): add a generalized
amount printing function.
* src/gnome/window-register.c (gnc_register_date_window): add a
button to the date range window for setting the date range when
the user changes a date without 'enter' or 'double-click'.
* src/engine/Account.c (xaccAccountGetFullName): moved this function
from gnome to here to make it gui independent. Returns a malloc'd
string with the fully-qualified name of the account using the given
separator char.
2000-02-06 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-header.c
(gnucash_header_auto_resize_column): Support for auto sizing.
(gnucash_header_event): Double clicks on the resize lines will
auto resize the column to fit the text.
* src/register/gnome/gnucash-sheet.c (compute_optimal_width): Use
the style layout to compute a good width for the sheet.
* src/register/gnome/gnucash-header.c (gnucash_header_draw): Draw
the big rectangle correctly.
(gnucash_header_reconfigure): Set the scroll region and header
width based on the size of the sheet, not the current style.
2000-02-05 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/splitreg.c (xaccInitSplitRegister): flag the share
quantities as such.
(xaccInitSplitRegister): initialize the physical column to 0.
* src/register/pricecell.c: get rid of the format string, add an
option for printing share quantities.
* src/engine/Session.c (MakeHomeDir): just because ~/.gnucash
exists doens't mean ~/.gnucash/data exists.
* src/scm/report/hello-world.scm: renamed from dummy.scm. Added
documentation to the source code and additional help text in the
report. This is intended to be an example for how to write reports.
* src/gnome/window-report.c (reportAnchorCB): use gnome_url_show
to display the anchors.
* src/gnome/window-help.c (helpAnchorCB): use gnome_url_show to
display the other anchor types.
* src/gnome/dialog-utils.c: removed tooltip setting function. I was
using tooltips the wrong way. Instead of having one tooltips object
for each tip, you use one tooltips object for each logical group of
tips, i.e., all the tips on a dialog. Also, changed the dialogs to
use this method.
* src/gnome/dialog-transfer.c: use labels with colons.
2000-02-04 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/extensions.scm: removed cruft functions
* src/register/gnome/gnucash-item-list.c (gnc_item_list_select):
set the focus row to the selected row.
* src/register/gnome/combocell-gnome.c (ComboMV): auto-pop the
list on input, according to the option value below.
* src/scm/prefs.scm: added option to auto-raise register list on
input.
2000-02-03 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/combocell-gnome.c (enterCombo): sort the list
before popping up.
* src/engine/Query.c: do num sorting using numerical values where
possible.
* src/register/gnome/gnucash-item-edit.c: added new functions for
cutting, copying, and pasting the clipboard. We have to do this
manually instead of relying in the gtk_entry, as it screws up the
selection handling.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_insert_cb):
fixed bug where new text was being copied incorrectly for
insertions longer than a character.
2000-02-02 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-sheet.c (compute_optimal_width):
return optimal width if possible
* src/register/gnome/gnucash-style.c
(gnucash_style_default_width): new function, compute optimal sheet
width
* src/gnome/option-util.c: interfaced with the guile option callback
mechanism.
* Changed all existing callbacks to use guile callbacks. Touched
many files.
* src/scm/options.scm: added an option change callback mechanism.
2000-02-01 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/options.scm: new file. Moved the general options code
here. Modularized the options code.
2000-01-31 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/SplitLedger.c: use the last date entered in the blank split
for the date of the new blank split.
* src/scm/prefs.scm: use hash for storing options
2000-01-30 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/bootstrap.scm.in: deleted hash-for-each. This is defined
in slib2c6, which we are requiring anyway. Not the thunk for this
should accept two args: the key and the value.
* src/register/QuickFill.c: add sorting option to choose between
LIFO and alphabetic orders.
2000-01-29 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/bootstrap.scm.in: Used Matt Martin's guile error catching
code to print errors from gnc:load.
2000-01-28 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-header.c (pointer_on_resize_line): Fix a
problem with the limits. Now the last column is resizable.
(gnucash_header_event): Check for which button is pressed/released.
2000-01-27 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/splitreg.c (xaccInitSplitRegister): set format of
price cell in stock registers to 4 decimal places.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_scroll_event):
new function. Do mouse wheel scrolling in gnome register.
* src/register/gnome/gnucash-style.c (gnucash_style_layout_init):
use printDate to find a date width using the current date style.
(gnucash_style_layout_init): use i18n'd string to set transfer
from field width.
* Removed uses of nana and dependencies on nana.
* src/scm/report/transaction-report.scm: change to handle new
reports.
* src/scm/report/dummy.scm: change to handle new reports.
* src/scm/report.scm: Change reports so that they have a function
which generates a new set of options. Change the report running
functions to accomodate this.
* src/FileDialog.c: avoid showing multiple error dialogs.
* src/guile/gfec.c (gfec_catcher): new file with functions for
running scheme code with error handlers. Grabbed this off the
guile faq and made a few mods.
* src/gnome/window-report.c: modify to use the new gfec routines.
2000-01-27 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm
(tr-report-primary-key-op),(tr-report-primary-order-op)
(tr-report-secondary-key-op),(tr-report-secondary-order-op):
new options controlling sorting order for transaction report
display.
(gnc:tr-report-get-first-acc-name): get the name of the first
"other" account" of a split's transaction
(gnc:sort-predicate-component): return a predicate for comparing
two split-scm's on a certain component
(gnc:tr-report-make-sort-predicate): process sorting options,
return a corresponding sorting predicate
"Account Transactions" report: added sorting.
2000-01-25 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (regRefresh): refresh the window name
* src/gnome/dialog-edit.c: Rob Merkel's patch to reparent accounts.
* src/engine/Account.c (xaccAccountHasAncestor): new function to
determine whether an account has another as an ancestor.
* src/gnome/account-tree.c (gnc_account_tree_set_filter): add a
filter function to an account tree to select a subset of accounts.
* src/engine/Query.c: some new functions for setting the date
ranges.
* src/gnome/window-register.c: add 'show earliest' and 'show
latest' options to the date range window.
2000-01-25 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-grid.c (gnucash_grid_init):
Initialize the fonts here.
* src/register/gnome/gnucash-style.c
(gnucash_sheet_style_compile): Use sheet->grid->normal_font for
all the computations. style->fonts[][] is now only used for
drawing in gnucash-grid, etc. when it's non-NULL.
2000-01-24 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/splitreg.c (xaccInitSplitRegister): make the action
cell accept strings not in the list.
* src/register/gnome/combocell-gnome.c (xaccComboCellSetStrict):
new function that determines whether the combo accepts strings
not in the list. Defaults to 'does not accept'.
2000-01-23 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-style.c: Many functions touched.
Fairly extensive changes to how the layouts and dimensions are
handled. We now lump together cursors which should have same
dimensions (e.g. all the single line cursors have the same layout
and dimension data).
2000-01-21 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_key_press_event): oh, what a hack! The extra stuff
is to make sure the selection is changed appropriately according
to the key that is pressed. Some of the logic is extracted from
gtkentry.c so the behavior is similar. We have to do this because
the entry widget is not realized and thus does not change its
selection as usual. However, we can't realize it, see the
explanation below.
* src/register/gnome/combocell-gnome.c: added quickfilling
* src/register/quickfillcell.c (quick_modify): new code for gnome,
old code for motif. motif doesn't support the cursor position and
selection args.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_new): ok,
*don't* put the entry in a widget. We can't have it realized
because it screws up the selection changes during the insert/
delete callbacks. We're going to have to fake the other
functionality.
* src/register/QuickFill.c: make quickfill work on non-alphabet
characters.
(xaccGetQuickFillStr): new function search for a prefix match on
more than one character at a time.
* src/register/gnome/gnucash-sheet.c
(gnucash_button_release_event): new function to track button
release for dragging purposes.
(gnucash_motion_event): new function for tracking mouse movement
and updating the selection region.
(gnucash_sheet_init): initialize top_block_offset
(gnucash_sheet_set_top_row): adjust the new top row to show as many
rows as possible.
(gnucash_sheet_vadjustment_value_changed): compute visible range
after adjusting top block in smooth scrolling.
(gnucash_sheet_compute_visible_range): start at the top_block_offset
(gnucash_sheet_update_adjustments): scroll faster
2000-01-20 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-sheet.c (gnucash_button_press_event):
if we're mousing in the current cell, don't bother going through
modify_update and all that jazz, but only if we are currently
editing. This makes sure the reconcile cell still gets its enters.
* src/register/gnome/gnucash-item-edit.c
(item_edit_set_cursor_pos): add option to extend selection.
2000-01-20 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm: Fixed date bug, ensuring
"to" date is treated as a <= rather than a <.
2000-01-20 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_new): put the
editing entry into a canvas item so it will get realized. It needs
to be realized for full functionality.
(gnucash_sheet_modify_current_cell): add new args to modify update.
(gnucash_sheet_insert_cb): new args for modify update
(gnucash_sheet_delete_cb): new args for modify update
* src/register/gnome/gnucash-item-edit.c (item_edit_destroy): only
disconnect if the editor hasn't been destroyed.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_activate_cursor_cell): added new args for enter
update. change entry widget appropriately.
* src/register/table-allgui.c (gnc_table_enter_update): added args
to set cursor position and highlited selection.
* src/scm/prefs.scm (gnc:save-options): truncate the options file
when opening.
* src/register/gnome/gnucash-item-edit.c (item_edit_draw_info):
calc regions for the highlited portion of the text.
(item_edit_draw): draw the hightlited portion of the text.
2000-01-19 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/guile/gnucash.c (gnucash_lowlev_app_init): use DEBUG and PERR
instead of print(stderr, ...);
* src/scm/prefs.scm: new technique for saving options. Easier
to generalize to other option databases.
* src/gnome/window-html.c (gnc_html_load): set button states at
the beginning, in case report doesn't work.
* src/scm/report.scm: catch exceptions in executing the report
* src/gnome/window-report.c (reportJumpCB): report errors that occur
in executing the report.
* src/register/table-allgui.c (gnc_table_traverse_update): use the
return value consistently to indicate no move.
* src/scm/path.scm (gnc:make-home-dir): new function. creates gnc dir
* src/scm/main.scm: don't abort if user config file fails
* src/scm/prefs.scm: make options save to ~/.gnucash/config.auto
* src/gnome/dialog-options.c (gnc_option_create_account_widget):
if not multiple selection, use browse mode so user has to select
an account.
(gnc_option_set_ui_widget): when making account list widget, connect
the signals after the value has been set so the dialog isn't already
in a changed state.
2000-01-17 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/bootstrap.scm.in: add a test for slib >= 2c6.
2000-01-16 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-add.c (gnc_ui_accWindow_list_box_create): Put
the account types in a scrolled window.
(gnc_ui_accWindow_tree_select): scroll the list types when a new
type is selected.
(accWindow): remember window size and recreate it.
* src/engine/util.c (xaccParseQIFAmount): rename this from
xaccParseUSAmount to explictly reflect its only usage. Modify
the parsing to guess what symbol is used as a decimal point.
2000-01-15 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-report.c (gnc_report_export): add error checking
and i18n messages.
* src/gnome/window-html.c (gnc_html_load): set toolbar button
states at end.
2000-01-15 Robert Graham Merkel <rgmerk@mira.net>
* src/gnome/window-report.c (gnc_report_export): new function to
allow generated HTML reports to be exported to a file.
(reportWindow): added a button to the toolbar for exporting HTML
2000-01-15 Dave Peticolas <peticola@cs.ucdavis.edu>
* Makefile.config.finish: Get rid of xemacs mode comments.
* configure.in: Move the commands at the end of configure.in into
the EXTRA-CMDS section of AC_OUTPUT so that config.status will
redo them. Don't bother defining GNC_RUNTIME_* vars as they are
not substituted using AC_OUTPUT.
2000-01-15 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-style.c (struct _CellLayoutInfo):
Add new flags for attributes the user can change interactively.
* src/register/gnome/gnucash-style.c (compute_cell_origins_[xy]):
Precompute these since they stay fixed until dimensions change.
* src/register/gnome/gnucash-header.c (gnucash_header_draw):
Be sure rect.width is non-negative. Also, we draw all the
rows in the header now.
(gnucash_header_set_arg): Remove the ARG_ROW argument.
For ARG_CURSOR_TYPE, only reconfigure the header
when the type changes. This optimizes the drawing a bit.
(gnucash_header_reconfigure): We're drawing all rows now, so
use the proper height.
(gnucash_header_event): Implement resizing of columns. This is
a bit rough in places, because we have to take cell alignments
into account. Need to work more on the styles.
(gnucash_header_draw): Support dynamic resizing in the header,
to give the user feedback during the resize.
* src/register/gnome/gnucash-grid.c (gnucash_grid_draw): Optimize
so it draws only the needed cells, not the entire row.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_init): Add a
compile time option for smooth vertical scrolling. Later we can
add user selectable scrolling if we decide it's worth it.
(gnucash_sheet_make_cell_visible): support smooth scrolling.
(gnucash_sheet_update_adjustments): ditto
(gnucash_sheet_vadjustment_value_changed): ditto
(gnucash_sheet_create): ditto
(gnucash_sheet_y_pixel_to_block): New function. Convert a canvas
y-coordinate to a virtual row.
2000-01-14 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm: Added initial balance
and summary displays.
2000-01-12 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm: Added balance field,
running totals, patched for empty-second-split case, fixed
other bugs, added documentation.
2000-01-10 Dave Peticolas <peticola@cs.ucdavis.edu>
* Apply Jan Schrage's doc patch.
* src/gnome/window-reconcile.c (recnWindow): tighter arrangement
of the buttons.
* src/g-wrap/gnc.gwp: removed wrap of private engine function.
* src/engine/util.c (gnc_localeconv): new function to get a lconv
structure for locale info.
(PrintAmt): add argument which determines whether amounts are
monetary or not. Use locale information to get separators.
(xaccSPrintAmount): first cut at printing i18n'd amounts.
(xaccParseAmount): new function for parsing i18n'd amounts,
both monetary and non-monetary.
* src/register/splitreg.c (xaccInitSplitRegister): let the price
cell format be the default monetary format. Set the shares cell
and, for stock registers, the credit and debit cells to
non-monetary cells.
* src/register/pricecell.c (xaccSetPriceCellMonetary): new
function for setting 'monetary' member.
* src/register/pricecell.h: add a 'monetary' boolean member
of price cells which indicate whether the value should be
parsed as money or not.
2000-01-09 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/splitreg.c: print price cells in a monetary format,
not 4 place decimal notation.
* src/gnome/window-register.c (regRefresh): print separators in
the amounts at the bottom of the register window.
* Applied Ken Yamaguchi's QIF import patch.
* src/scm/prefs.scm: modified the account list option so
that it returns the default-getter value until explicitly
set.
2000-01-09 Robert Graham Merkel <rgmerk@mira.net>
* src/scm/report/transaction-report.scm: Added a pile of stuff,
should now produce a HTML formatted report containing basic info.
Unfortunately, crashes gtk-xmhtml at this stage.
2000-01-08 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/bootstrap.scm.in: Added a check for slib.
2000-01-07 Dave Peticolas <peticola@cs.ucdavis.edu>
* make-gnucash-patch: changed aclocal.m4 to lib/g-wrap/aclocal.m4
in the exclude list, so people can patch the main aclocal.m4 file.
2000-01-07 Jan Schrage <jan.schrage@urz.uni-heidelberg.de>
* configure.in: for --opt-style-install add $prefix/include
and $prefix/lib to $CPPFLAGS and $CFLAGS respectively to fix
broken check for nana.
2000-01-06 Dave Peticolas <peticola@cs.ucdavis.edu>
* various and sundry: apply Laurent P{'e}lecq's i18n with gettext
patch. Move raw strings from gnome code into message database.
* src/gnome/window-report.c: modify for changes to window-html.
Make sure properties dialog callback only changes the window if
we are on that page.
* src/gnome/window-help.c: modify for the changes to window-html
* src/gnome/window-html.c: enhance window. Titles and buttons
are now associated with each history item, not the whole window.
* src/gnome/dialog-options.c: added support for account list
guile options.
2000-01-05 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/option-util.c: new functions for sending and receiving
lists of accounts to guile.
* src/gnome/account-tree.c: modified this widget so that
it keeps track of a list of selected accounts. Normal mode
is still single selection.
2000-01-04 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-add.c (gnc_ui_accWindow_list_select_cb):
prevent user from selecting illegal account types.
2000-01-02 Peter Pointner <peter@wuzel.m.isar.de>
* configure.in: disable qt build by default. --enable-qt enables it.
* Makefile.in: new targets qt.static and qt.disable
* make-gnucash-patch: exclude *.moc
* src/g-wrap/gnc.gwp (current-gnc-compile-flavor): add flavor qt.static
* src/qt/* and src/register/*-qt.*: assorted changes to make the
qt version compile.
2000-01-02 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c: redid this window. Put style, sort
order, and date range into menu bar. Put toolbar under menu.
Added status bar at bottom.
* src/register/table-allgui.c (xaccVerifyCursorPosition): return
boolean indicating whether cursor was repositioned.
(wrapVerifyCursorPosition): use return value from above in
deciding whether to refresh UI.
* src/SplitLedger.c (xaccSRCancelCursorSplitChanges): move off of
an EXACT_ONLY cell, if on one.
2000-01-01 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/splitreg.h: uses ints, not shorts for values.
* src/SplitLedger.c (xaccSRLoadRegister): use the function below
to find the cell where to land on.
(xaccSRLoadRegister): fix a bug with auto mode to single/double
mode transition.
* src/register/table-allgui.c (gnc_table_find_valid_cell_horiz):
new function. Find a valid cell in the row, starting at the
given coordinates and fanning out.
* src/register/basiccell.h: add a new kind of io_flag.
XACC_CELL_ALLOW_EXACT_ONLY means a cell can only be entered
when the user specifically indicates that cell. Right now,
this means only a mouse pointer clicked on that cell. This
is used to prevent the reconcile cell from acting strangely.
* src/register/table-allgui.c (gnc_table_traverse_update): do left
traversals a little better.
* src/gnome/window-html.c (htmlKeyCB): handle keyboard horizontal
scrolling.
1999-12-31 Dave Peticolas <peticola@cs.ucdavis.edu>
* Code cleanup with -Wall. Deleted unused variables. Added missing
#include's and missing function declarations.
* src/engine/QIFIO.c (FavorDateType): Christopher Browne's QIF
import patch.
* configure.in: Albert Chin-A-Young's patch to configure.in for
perl config.
* src/MultiLedger.c: nix xaccRegisterCountHack.
It is no longer needed.
* Docs/En/xacc-about.html: added contributors.
* make-gnucash-patch: new script. Make a patch for submission.
* README: added contributors. Added sections on gnucash
development and submitting patches.
1999-12-30 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/SplitLedger.c (xaccSRGetCurrentTrans): Fix error messages.
1999-12-29 Peter Pointner <peter@wuzel.m.isar.de>
* src/motif/FileBox.c (closeBoxCB): reset fileName only if !done.
This fixes the FileBox problems with lesstiff 0.89.1, at least
for me.
* configure.in: change CPPFLAGS used to search for gtk-xmhtml
1999-12-26 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-report.c (reportWindow): Add a properties
button to the html window icon bar to allow the report parameters
dialog to be brought up.
(reportWindow): Add a title to the properties dialog.
* src/gnome/window-html.c (htmlWindow): Add arguments to allow the
caller to add its own icons to the window.
1999-12-25 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/global-options.c (gnc_show_options_dialog): Added
title.
* src/gnome/window-main.c: removed eperl reports menu items
* src/gnome/window-report.c: new file. Report-specific gnome
gui code will reside here.
1999-12-24 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-html.c: take out help and report specific code.
* src/gnome/dialog-options.c: removed global options code.
These routines now with with arbitrary options databases.
* src/gnome/global-options.c: new function. global options are
implemented here. This uses dialog-options and option-util
functions.
* src/gnome/option-util.c: removed global options code.
* src/gnome/window-register.c (gnc_build_ledger_style_menu): set
the style menu to the default on creation.
1999-12-23 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/account-tree.c (gnc_account_tree_refresh): thaw after
all changes.
1999-12-22 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/option-util.c: many new functions. Rewrote this to
add the concept of option databases, a data structure which holds
a collection of options and allows access to them. This will be
used to hold, e.g., options for a report window. The old functions
now just call the new ones with the 'global' configuation option
database as the database argument.
* src/gnome/dialog-report.c: Rename dialog-trans-report.? to
dialog-report.?. This will construct a generic report dialog.
1999-12-21 Robert Graham Merkel <rgmerk@mira.net>
* src/gnome/dialog-trans-report.c: New file. GNOME code for
creating a dialog box for information on the transaction report.
At the moment only contains a stub for the actual dialog box code.
* src/gnome/dialog-trans-report.h: New file. Headers for
the dialog box stuff, obviously!
* src/gnome/Makefile.in: modified to compile dialog-trans-report.c
1999-12-21 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-reconcile.c: enhance this window with
new, edit, and delete transaction buttons.
1999-12-20 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_size_allocate): Configure the item_editor on a
resize.
* src/register/gnome/gnucash-cursor.c
(gnucash_cursor_get_pixel_coords): Don't use the horizontal scroll
offset.
* src/register/gnome/gnucash-item-edit.c
(item_edit_get_pixel_coords): Ditto.
* src/register/gnome/gnucash-item-list.c (gnc_item_list_new): Set
the "x" coordinate on creation.
1999-12-20 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (regWindowLedger): get the default
register type guile option to set the register style.
(regRefresh): set the toolbar button display based on the guile
option value.
1999-12-19 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/MultiLedger.c (xaccRegisterRefreshAllGUI): new function.
call gui refresh on all registers.
* src/MultiLedger.h: remove unecessary externs.
1999-12-19 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_update_adjustments): Update the horizontal
adjustments, too.
(gnucash_register_new): Attach the horizontal scrollbar to the
horizontal adjustment.
* src/register/gnome/gnucash-header.c (gnucash_header_set_arg):
Hook up the hadjustment from the sheet so that they scroll
horizontally together.
1999-12-19 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/util.c: applied Grant Likely's patch to the number
formatting routines.
* src/register/splitreg.c: applied Grant Likely's patch to make
stock register have 4 decimal places of accuracy.
* Applied Christopher Brown's html and QIFIO.c patch.
1999-12-19 Robert Graham Merkel <rgmerk@mira.net>
* src/src/report/transaction-report.scm: New file. Will contain
code for doing a transaction report on an account. At this stage
all it does is display unformatted raw scheme lists.
* README.guile-hackers: Added general information about Scheme and
a pointer to net resources about it. Also explained a little
about g-wrap and gave a pointer to the documentation for it.
1999-12-18 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-header.c
(gnucash_header_reconfigure): Don't set the width of the widget,
let it find it's own width.
* src/register/gnome/gnucash-style.c
(gnucash_sheet_style_set_dimensions): Reworked extensively. It
now tries very hard to fit the cursors in the register window.
Supports a number of layout options for the cursors, as detailed
in the source.
1999-12-18 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (gnc_register_create_tool_bar):
Don't cause a legister refresh.
1999-12-17 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-edit.c (gnc_ui_EditAccWindow_ok_cb): refresh
all the registers.
* src/gnome/dialog-add.c (gnc_ui_accWindow_create_account):
refresh all the registers.
* src/gnome/window-register.c (regRefresh): reload the transfer
cells.
* src/SplitLedger.c (xaccSRLoadXferCells): new function. Load the
transfer cells in a split register.
* src/register/gnome/combocell-gnome.c (xaccClearComboCellMenu):
new function. clear all items in the combocell menu.
1999-12-16 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/table-allgui.c (gnc_table_traverse_update): Use the
exit flags from the cellblock to decide how to set
exit_register, and don't change entries in the traverse arrays
to positive.
* src/register/splitreg.c (configTraverse): Mark all the exit rows
and columns, too.
* src/register/cellblock.h: Add variables to the CellBlock struct
that flag the exit cells. We can't use negative entries in the
traverse arrays anymore, since left traverses sometimes need
valid negative directions.
1999-12-16 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/pricecell.c (xaccPriceCellPrintValue): new
function. return a pointer to a static string buffer with the
cell amount printed.
(xaccSetPriceCellValue): simplify with above function.
(PriceLeave): new leave callback for price cells. Pretty-prints
cell value using xaccPriceCellPrintValue.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_cursor_move):
have this function take physical instead of virtual coordinates.
This function now 'does the move' using wrapVerifyCursorPosition.
It has smarts that were in the three functions below.
It returns TRUE if the current cell changed.
(gnucash_button_press_event): simplify
(gnucash_sheet_key_press_event): simplify
(gnucash_sheet_goto_virt_row_col): simplify
1999-12-15 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/table-allgui.c (gnc_table_traverse_update): take
out the reverify fields. These are unnecessary for the auto modes
(at least for gnome) and complicate the leave semantics.
* src/SplitLedger.c (xaccSRGetCurrentTrans): use the register
physical row and not the table. needed for auto mode movement.
* src/register/table-allgui.c (gnc_table_leave_update): do the
wrapverify after we check for changes. I'm not sure if wrapverify
could change the outcome of this, but doing the check after the
wrap verify makes no sense since the row and col values aren't
meaningful anymore.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_deactivate_cursor_cell): always call the leave
update, even for "bad" locations. We need the wrap verify that
happens in the gnc_table_leave_update.
1999-12-15 Robert Graham Merkel <rgmerk@mira.net>
* src/gnome/dialog-add.c (xaccSetDefaultNewaccountCurrency): Added
an interface to set the default currency for new accounts.
* src/scm/prefs.scm (gnc:make-string-option) added a new option
generator for strings, used this to add a "default new account
currency" option
* src/gnome/top-level.c (gnc_configure_newacc_currency_cb)
callback to update the default currency when options are changed
(default_configure_newacc_currency) does the work of updating
(gnucash_ui_init) registered the new callback
1999-12-14 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/table-allgui.c (gnc_table_traverse_update): a fix
for the auto modes.
* src/SplitLedger.c (xaccSRCountRows): Look for the cursor
position using the transaction, as well as the split. Useful when
changing modes when you are on a blank split in multi-line.
(xaccSRGetCurrentTrans): new function. Gets current transaction.
Works when you are on blank splits as well.
(LedgerTraverse): save the old register values and then restore
them.
1999-12-13 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-header.c
(gnucash_header_reconfigure): check for a valid header row before
proceeding.
1999-12-13 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-cursor.c (gnucash_cursor_set): Set
the type and row arguments in the header.
* src/register/gnome/gnucash-header.c (gnucash_header_draw): Tweak
the coords on the separator line a bit. Draw the header based on
header->type and header->row.
(gnucash_header_set_arg): Add two new arguments to support setting
the type of the header from the current cursor and the row within
the cursor to draw.
* src/register/gnome/gnucash-style.c
(gnucash_sheet_style_compile): Set the header font.
1999-12-13 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/option-util.c (gnc_lookup_multichoice_option): Rob
Merkel's patch.
* src/engine/date.c (printDate): Rob Merkel's patch to i18n date
formats.
* src/gnome/top-level.c (gnc_configure_date_format): Rob Merkel's
patch to i18n date formats.
1999-12-12 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/table-allgui.c (gnc_table_traverse_update): Put an
assert(0) in the default case, since now we handle all possible
cases.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_key_press_event): Remove hack to wrap around when
moving the cursor. splitreg.c takes care of this, after a
fashion.
1999-12-12 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/combocell-gnome.c (disconnect_list_signals):
if the list has been destroyed, don't bother.
(connect_list_signals): ditto.
1999-12-10 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/splitreg.c (configTraverse): Configure left
traverses, too.
* src/register/cellblock.[c,h] (xaccInitCellBlock): Allocate left
traverse matrices.
(FreeCellBlockMem): Free left traverse matrices.
(xaccNextLeft): New function.
* src/register/table-allgui.c (gnc_table_traverse_update): Add
support for left traverses.
1999-12-10 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (jump_cb): new callback. Used to
jump to 'other' account.
* src/gnome/option-util.c: modify multichoice
functions. multichoice options are now a list of vectors,
where each vector contains the value, name, and description.
* src/gnome/dialog-options.c (gnc_option_set_ui_widget): Rob
Merkel's patch to add the option name to a multichoice option.
1999-12-09 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-utils.c (gnc_build_option_menu): change this
function so that the callback includes the index of the selection
as well as the user_data.
* src/gnome/option-util.c
(gnc_option_value_num_permissible_values): new function. return #
of permissible values.
(gnc_option_value_permissible_value_index): new function. search
for SCM value in permissible value list.
(gnc_option_value_permissible_value_name): new function. return
name of indexth permissible value.
(gnc_option_value_permissible_value_help): new function. return
help of indexth permissible value.
* src/gnome/dialog-options.c (gnc_option_set_ui_value): add
multichoice option.
(gnc_option_get_ui_value): add multichoice option.
(gnc_option_multichoice_cb): new function. callback for
multichoice buttons. We use an object data with key
"gnc_multichoice_index" to store the index with the option menu.
(gnc_option_create_multichoice_widget): new function. create the
widget for multichoice options.
(gnc_option_set_ui_widget): add multichoice option.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_block_destroy): Don't free the entries and colors,
that is done by gnucash_sheet_block_clear_entries now.
(gnucash_sheet_block_clear_entries): Set the freed pointers to
NULL for safety.
1999-12-09 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-color.c (color_hash): The argument is
an argb, not a GdkColor. So we'll just use its value directly.
This fixes a bug in that we were getting lots of failed color
lookups in the hash table, and therefore lots of redundant
insertions.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_block_clear_entries): Free entries, fg_colors,
bg_colors here. We were leaking [fg,bg]_colors.
1999-12-09 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (regWindowLedger): set the window
policy to allow shrinking and growing.
* src/SplitLedger.c (xaccSRSaveRegEntry): change the memo
before you create the 'other' split, so it gets the same memo.
Also, if we are committing the blank split, insert it into the
account before we create the 'other' split, so the other split
can get a parent account, too.
1999-12-08 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/main.scm (gnc:ui-finish): destroy the ui subwindows
before doing a file-query-save. The register windows need to
be closed before saving, in case there are edited transactions.
* src/gnome/top-level.c (gnc_ui_destroy_all_subwindows): new
function. used by guile to destroy all non-main windows.
* src/gnome/window-help.c (gnc_ui_destroy_html_windows): new
function. destroy any help or report windows open.
1999-12-08 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-cursor.c (gnucash_item_cursor_draw):
Draw an inner rectangle in the cell cursor. This balances the
cursor top/bottom versus sides, and fixes some ugliness especially
in double line mode.
1999-12-08 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/SplitLedger.c (xaccSRLoadRegister): restore original
position a bit more accurately.
1999-12-07 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/text-export.scm (gnc:account-transactions-export-as-text):
return #f as value so the traversal keeps going. (See Group.h).
* src/g-wrap/gnc-helpers.c: use gh_long2scm instead of the
long long version. This is incorrect for very large values,
but longlong doesn't seem to be working right now.
* src/engine/LedgerUtils.c (accListHasAccount): new function.
search for account in list.
* src/MultiLedger.c: Only add the leader if it wasn't in the list.
* src/gnome/window-register.c (gnc_register_create_menu_bar):
Added an option to scrub the account. Changed Register menu
to Account menu.
* src/engine/Transaction.c (MARK_SPLIT): mark the account group
as not saved. Ensures we get a "do you want to save" dialog.
* src/register/gnome/gnucash-sheet.c (compute_optimal_height):
request height for DEFAULT_REGISTER_ROWS rows.
* src/gnome/window-register.c (deleteCB): fancy deletes.
1999-12-06 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/SplitLedger.c (xaccSRSaveRegEntry): Insert the blank split
into the account when it is committed, not when it is created.
Otherwise, the blank split gets saved to a file if you save with
an open register. Also, it gets stuck in the reconcile window if
you open that with an open register.
* src/register/pricecell.c (xaccSetDebCredCellValue): simplify
and fix value setting bug.
* src/SplitLedger.c (xaccSRCancelCursorTransChanges): new
function. Cancel the changes to the current transaction.
* src/motif/RegWindow.c (cancelCB): use SR functions instead.
* src/g-wrap/gnc.gwp: add wrapper for xaccGroupGetBalance
* src/gnome/window-register.c (regWindowLedger): take out the size
code altogether.
1999-12-06 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c (DEFAULT_REGISTER_WIDTH):
Increase this a little, so at least a checking account register is
drawn correctly. This is a hack for now anyway until the
computations in gnucash-style.c are reworked.
* src/gnome/window-register.c (regWindowLedger): Comment out the
call to gtk_widget_set_usize (), so the register window finds it's
own natural size.
* src/register/gnome/gnucash-header.c
(gnucash_header_reconfigure): Compute w, h correctly.
1999-12-05 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (closeCB): Query the user as to
whether or not to save a changed transaction.
* src/MultiLedger.c (xaccLedgerDisplayClose): Only refresh
if there were really changes.
* src/SplitLedger.c (LedgerDestroy): Paranoia checks.
* src/gnome/window-register.c (regWindowLedger): catch the register
"activate_cursor" signal. Upon receipt, record the transaction and
move to the next virtual row.
* src/register/gnome/gnucash-sheet.c
(gnucash_register_goto_next_virt_row): new function. Cause the
register cursor to advance to the next virtual row.
* src/register/gnome/gnucash-sheet.h: Add a "activate_cursor"
callback to the register that is emitted when the user pressed
return.
1999-12-04 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-main.c (gnc_ui_mainWindow_scrub): new function.
Scrub the current account.
(gnc_ui_mainWindow_toolbar_open_subs): new function.
Open subaccounts.
* src/gnome/window-register.c (gnc_register_raise): new function.
Cause the given register window to be raised to the top.
* src/gnome/scripts_menu.c (gnc_extensions_menu_add_item): We have
to register the scheme scripts to make sure they aren't
garbage-collected.
(gnc_extensions_shutdown): New function. Call when shutting down
to free memory structures and unregister scheme scripts.
* src/gnome/window-register.c (gnc_register_create_popup_menu): new
function. Create a popup menu for the register.
(regWindowLedger): Add the popup menu to the register.
* src/register/gnome/gnucash-sheet.c (gnucash_button_press_event):
return FALSE for unused events so they are passed up the hierarchy.
* src/gnome/window-adjust.c (adjBWindow): use fully qualified
account name in window title.
* src/gnome/window-register.c (regWindowLedger): use fully
qualified name in the title of the window.
* src/gnome/dialog-utils.c (gnc_ui_get_account_full_name): new
function. Construct the fully-qualified account name using the
given separator string.
* src/engine/Account.c (xaccAccountGetParentAccount): new function.
Return the parent account of an account.
* src/engine/Group.c (xaccGroupGetParentAccount): new function.
Return the parent account of a group.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_key_press_event):
respond to keypad directional keys.
1999-12-03 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/SplitLedger.c (xaccSRLoadRegister): When we refresh, look
for the pending transaction. If we don't find it, clear the
pending transaction to prevent it being committed later.
* src/g-wrap/gnc.gwp: added binding for reportWindowDirect
* src/gnome/window-register.c (helpCB): help window should not
be parented.
* src/gnome/window-main.c (gnc_ui_help_cb): help window should
not be parented.
(gnc_ui_reports_cb): reports window should not be parented.
* src/engine/Transaction.c (xaccTransBeginEdit): Check for an
already open transaction.
(xaccTransIsOpen): new function. returns true if transaction
is open for editing.
* src/gnome/window-register.c (regWindowLedger): Use a gnome dock
to hold the window contents. This is more flexible.
(gnc_register_create_tool_bar): use graphical buttons. Also, don't
create the handle box, the gnome dock item will handle that.
(gnc_register_create_menu_bar): don't create the handle box.
* src/reports/Sheet.c: Rob Merkel's patch for locating eperl
* src/gnome/account-tree.c (gnc_account_tree_refresh): tighter
bounds on adjustment value. Prevents quirks when refreshing to
a smaller number of accounts.
* configure.in: Rob Merkel's eperl and gtkxmhtml build patches
* Makefile.in: Rob Merkel's patch to enforce gtkxmhtml requirement
* src/gnome/window-register.c (deleteCB): use
xaccSRDeleteCurrentSplit to delete the split.
1999-12-02 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/combocell-gnome.c (moveCombo): disconnect
the list signals.
* src/SplitLedger.c (LedgerMoveCursor): update cursor_phys_row and
cursor_virt_row in the SplitRegiter.
(xaccSRDeleteCurrentSplit): new function. delete the current split
in the register.
(xaccSRCountRows): don't move the saved physical and virtual rows
if the current split was NULL.
* Makefile.in: Added Tyson Dowd's rules to rerun autoconf
and configure when needed.
1999-12-01 Rob Browning <rlb@cs.utexas.edu>
* src/scm/txn-create.scm: remove trailing garbage.
* src/scm/srfi: new directory containing source for various Scheme
Requests for Implementation. We now have srfi-8 and srfi-1.
These are very useful. Docs are available at
http://srfi.schemers.org/.
* src/scm/report/folio.scm: new file implementing
Reports/report-folio.phtml. Not finished, but not loaded either.
* src/scm/report/dummy.scm: new file to test the report system.
Shows the current date.
* src/scm/report/balance-and-pnl.scm: new file to generate balance
sheet and profit and loss reports. Implements
Reports/report-baln.phtml and Reports/report-pnl.phtml. The code
in here could be better, but it's not awful. It's mostly a
straight eperl port.
* src/scm/report.scm: new file implementing the initial
scheme-based report system.
* src/scm/main.scm: use the new depend mechanism and load the new
srfis
* src/scm/extensions.scm: reformat so all the code doesn't go off
the right side of a normal screen (with tabs set to 8, etc).
Linas might veto this, but I thought it was worthwhile.
* src/scm/depend.scm: new file adding a support/depend mechanism.
Modify other files to start using it.
1999-11-30 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-help.c: extensive rewrite. Revamped look to use
dockable toolbar. Handle motion keys. Escape key closes window.
Graphics are now loaded.
1999-11-28 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/table-allgui.c (doMoveCursor): don't scroll when we
update the cursor after the the callback.
* src/register/table-gnome.c (doRefreshCursorGUI): same as below
* src/register/table-motif.c (doRefreshCursorGUI): same as below
* src/register/table-allgui.c (xaccRefreshCursorGUI): add a
do_scroll argument to determine whether the gui should scroll to
make the cursor visible. This lets us cut down on flashing.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_table_load):
try to avoid scrolling
(gnucash_sheet_cursor_set_from_table): remove redundant call to
update adjustments.
* src/gnome/window-register.c (cancelCB): use
xaccSplitRegisterClearChangeFlag.
(gnc_register_create_tool_bar): right-align the displayed balances
* src/register/splitreg.c (xaccSplitRegisterClearChangeFlag): new
function. Clear the change flags of the register.
* src/SplitLedger.c (xaccSRCancelCursorChanges): new
function. Cancel the changes made to the current cursor.
1999-11-27 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (regWindowLedger): set default sort
order to the standard order.
(gnc_build_ledger_sort_order_menu): add the standard order to the
list of options.
(gnc_ledger_sort_cb): handle the standard order
* src/engine/Query.c (xaccQuerySetSortOrder): added BY_STANDARD and
BY_NONE sort orders.
* src/register/splitreg.c (configLayout): configure the single
cursor last so the header is the most reasonable. This is a
hack. Eventually, we should probably switch headers dyamically.
* src/register/gnome/gnucash-sheet.c
(gnucash_register_goto_virt_row_col): replaces and generalizes
gnucash_sheet_go_to_last_row.
* src/gnome/window-register.c (gnc_register_jump_to_blank): new
function to jump to the blank split.
(new_trans_cb): use gnc_register_jump_to_blank
(regWindowLedger): jump to the blank split with above function
before returning
* src/SplitLedger.c (xaccSRGetSplitRowCol): new function
(xaccSRGetBlankSplit): new function
* src/register/splitreg.c (configLabels): apply Rob Walker's patch
to fix the labels.
* src/gnome/window-register.c (gnc_register_date_cb): set start
date to the first second of the day selected and the end date to
the last second of the day selected.
* src/engine/Query.c (xaccQueryGetSplits): fixed a problem to
prevent returning one split too many. We need to check for the
max date before we add the split.
1999-11-23 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_go_to_last_row):
jump to the last row in the sheet. This will be the blank split.
* src/gnome/window-register.c (gnc_register_create_menu_bar): add
a menu item for moving to the blank split
(regWindowLedger): jump to the last row, i.e., the blank split,
before you return.
* src/register/gnome/gnucash-style.c (gnucash_style_layout_init):
make the reconcile cell visible in mult-line mode. It's not
active, but it looks better.
* src/SplitLedger.c (LedgerMoveCursor): tell xaccSRSaveRegEntry
which transaction we are moving to.
(xaccSRSaveRegEntry): add an argument to indicate which
transaction will be current after the save. This allows us to
commit right away if we are changing transactions and keeps the
register gui in sync with the engine.
* src/register/table-allgui.c (doMoveCursor): refresh the gui
cursor after the second makePassive if we are moving the gui.
This fixes a refresh bug that happens if the splits get reordered.
* configure.in and src/gnome/Makefile.in: Rob Merkel's patch
to check for gtkxmhtml
* src/scm: applied Rob Walker's patch to add a version argument
* src/gnome/account-tree.c (gnc_account_tree_init): auto resize
the first column
* src/gnome/window-main.c (mainWindow): give focus to the
account tree before we exit
1999-11-22 Rob Browning <rlb@cs.utexas.edu>
* src/register/table-motif.c (modifyCB): *trivial* modification to
support modify_verify cursor_position arg. I'm not in a position
to easily deal with the XmBae callback complexity. This should
just leave the status-quo.
* src/motif/RegWindow.c (dateChangeCB): ditto.
* src/register/table-allgui.[hc]: quickfill fixes, support the new
modify_verify cursor_position arg.
* src/register/gnome/gnucash-sheet.c: quickfill fixes, use the new
modify_verify cursor_position arg.
* ChangeLog: merge all the src/register/gnome/ChangeLog entries
into this file and delete that file to finish up what Dave started
on 1999-11-20. Aside from being cleaner, it also makes emacs (and
I suspect other editors) automatically find the right file when
you do a "C-x 4 a" (changelog-add-entry).
* src/register/*cell.h: added position (int *) parameter to
all cell MV calls. This allows the callback to reposition the
cursor within the text if needed. This was required by the
quickfill fix, but is probably useful elsewhere.
* src/register/quickfillcell.c (quick_modify): fixed so that
cursor tracks as you type along with some other important bugs
(quickfill divergences now cause the remainder of the stale fill
to be deleted, etc.)
1999-11-21 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c: (recordCB): when when record
a new or existing transaction, make sure it will be in the
date range we are viewing.
* src/register/table-allgui.c: (gnc_table_traverse_update): handle
pointer traversals a bit more intelligently.
* src/register/gnome/gnucash-item-edit.c: (item_edit_set_cursor_pos)
fix for when you enter a cell that's right-aligned.
1999-11-20 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/ChangeLog: we're going to stop using this
changlog file and put all changes in the top-level ChangLog file.
* src/gnome/reconcile-list.[ch]: Use a hash table to remember
reconcile flags after a refresh. Also remember scroll position.
Change row styles so active row isn't highlited.
* src/register/gnome/gnucash-sheet.c:
(gnucash_button_press_event): For now, we need to enter the cell,
even if we're already there. The reconcile cell, for instance,
depends on this behavior. But, if we're entering the cell where we
already are, we remember the cursor position and try to go back to
it. Also, when we're entering a new cell it's drawn as if we're at
cursor position 0, so tell item_edit_set_cursor.
* src/register/gnome/gnucash-item-edit.c (item_edit_draw_info):
new function to calculate drawing parameters for the item
editor. This is used both in drawing and in calculating the place
to move the cursor to for mouse traversals.
(item_edit_draw): use item_edit_draw_info
(item_edit_set_cursor_pos): use item_edit_draw_info
1999-11-19 Heath Martin <martinh@pegasus.cc.ucf.edu>
* gnucash-cursor.c (gnucash_item_cursor_draw): Use light gray for
the cell cursor; experimental to see if we like it.
(gnucash_item_cursor_draw): Draw the inside rectangle slightly
inside.
(gnucash_cursor_request_redraw): Tighten up the bounds now that we
don't have the outside rectangle.
* gnucash-sheet.c (gnucash_button_press_event): Only move the cursor
if the button press moves us to a new cell. Set the editing cursor.
* gnucash-item-edit.c (item_edit_draw): Take justification into
account here. Use CELL_HPADDING, CELL_VPADDING instead of magic
constants to set the clip rectangle and the offsets.
(item_edit_set_cursor_pos): New function.
(item_edit_update): Adjust the positioning of the list now that we
don't have the outer rectangle.
1999-11-19 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/account-tree.c: remember expansion state and
scroll position after a refresh.
* src/gnome/query-user.[ch]: add parented versions of the
query dialogs.
* src/gnome/: modify dialogs to use parented dialogs
* src/register/gnome/gnucash-cursor.c: (gnucash_item_cursor_draw):
Heath's mod which removes the outer rectangle.
* src/register/gnome/gnucash-item-edit.c: (item_edit_update):
Heath's mod to make the combo list draw correctly
1999-11-18 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/util.c: (PrtAmtComma): fixed
rounding error when remainder is close to 1.
1999-11-17 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-header.[ch]: removed type
variable. The header should always be type GNUCASH_CURSOR_HEADER
* src/register/gnome/gnucash-style.c:
(gnucash_sheet_style_compile): use the cell labels for the header
style labels
* src/register/gnome/gnucash-item-edit.[ch]: Added a toggle button
for popping the combo list.
* src/register/gnome/gnucash-style.c: (gnucash_style_layout_init)
make the width of the 'num' column of the split cursor the same as
the others.
1999-11-15 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-sheet.c: (gnucash_sheet_delete_cb)
and
(gnucash_sheet_insert_cb): use malloc/free instead of glib
routines for newval. newval may be free()d by routines in the
register code. You can't mix-n-match.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_destroy) and
(gnucash_sheet_new): sink the entry and unref it after the item
editor is destroyed. This fixes a memory leak, the entry was not
being finalized.
* src/register/gnome/gnucash-sheet.c add
(gnucash_sheet_key_press): allow outside entities to pass
keystrokes to the sheet. Used by the combocell.
* src/register/gnome/combocell-gnome-c: extensive modifications to
support the new list item.
* src/register/gnome/gnucash-item-edit.[ch]: ditto
1999-11-12 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/util.c: (xaccSPrintAmount): print values
very close to 0 as 0 without negative sign.
* lib/README: updated to indicate obsolete packages.
* lib/Makefile.in: don't build g-wrap if g-wrap-install
directory exists
* src/guile-util.c: (gnc_register_c_side_scheme_ptr):
modified to return SCM handle, which is used with
(gnc_unregister_c_side_scheme_ptr) to unregister.
* src/gnome/option-util.c: added (gnc_options_init)
and (gnc_options_shutdown).
* src/gnome/top-level.c: call above functions at
appropriate times.
* src/gnome/account-tree.c: (gnc_account_tree_select_account):
scroll to make sure account is visible.
* src/register/gnome/gnucash-item-edit.c: (item_edit_draw): make
the cursor larger and allow it to be seen even when it's at the
end of a too-long-to-fit-in-cell string.
* src/register/gnome/gnucash-item-list.[ch]: new code to support
the combo cell.
1999-11-10 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/dialog-filebox.c: Use GtkFileSelection instead
of GtkFileSelection2.
* build: Changed configure.in/Makefile.in's to remove dependencies
on gtkfilel2.
* build: automatically rebuild gnc.[ch] when gnc.gwp changes *or*
if you switch from motif to gnome build or vice versa.
* src/gnome/window-main.: added Save As menu item.
* src/register/gnome/combocell-gnome.c: reformatted to be
idiomatic
* src/register/gnome/gnucash-sheet.c:
(gnucash_sheet_key_press_event): Added support for pageup/down and
home/end keypressed.
1999-11-07 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/Refresh.c: Added this code for refreshing account-related
windows when accounts change. Right now, this is registers and
reconcile windows.
* src/gnome/window-register.c: fixed deleting of blank split
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_activate_cursor_cell): handle enter updates when
new_text is non-null by updating the cell from the table and *not*
src/register/gnome/starting the editing widget.
* gnucash-grid.c (draw_cell): used CELL_HPADDING for right justify
adjustment on x value instead of CELL_VPADDING.
1999-11-05 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-grid.c (gnucash_grid_draw): use
g_return_if_fail for error checks.
* src/register/gnome/gnucash-grid.c (gnucash_grid_unrealize):
Sanity checks before unrefing the gc's.
* src/register/gnome/gnucash-header.c (gnucash_header_unrealize):
sanity checks
* src/register/gnome/gnucash-currsor.c (gnucash_cursor_unrealize):
sanity checks
* src/register/gnome/gnucash-sheet.h (GnucashRegisterClass):
parent class should be GtkTableClass
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_update_adjustments): update page_increment, so
clicking on the rest of the scrollbar scrolls one page
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_key_press_event): call gnc_table_traverse_update on
up/down motion.
1999-11-04 Dave Peticolas <peticola@cs.ucdavis.edu>
* Add this changelog entry which I should have done a long
time ago.
* Rework most of the src/gnome stuff to be compliant with
gnome-standards.
* Add QIF fixes.
* Add Transfer and Adjust Balance windows.
* Add gnome<->guile options interface.
* Add c-side SCM registry, courtesy of Rob.
* Add Alexandru's register window enhancements.
* Add Heath's gnome register enhancements.
* Remove dependencies on gtksheet. Hooray!
* src/register/gnome Various: a few fixes here and there to make
everything compile cleanly under -Wall. Mainly removing unused
local variables, and changing g_return_if_fail to
g_return_val_if_fail for functions which return a value. Added a
few prototypes that were missing. Cleaned up #includes.
* src/register/gnome/gnucash-sheet.c (gnucash_register_new): Make
the vertical scrollbar flush with the top of the register.
* src/register/gnome/Makefile.in: removed motif and qt
targets. Made gnome target the default.
1999-08-30 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_key_press_event): Be sure to set new_p_row in the
case GDK_Tab, since the function gnc_table_traverse_update checks
the proposed new row/col, so we need to initialize properly.
1999-08-28 Heath Martin <martinh@pegasus.cc.ucf.edu>
* TODO: New file.
* src/register/gnome/gnucash-style.c (gnucash_style_init): Removed
the dependency on gnome-print for now. We may want to use the
gnome-print library in the future.
* Makefile.in (LIBS): Ditto
1999-08-25 Rob Browning <rlb@cs.utexas.edu>
* Add ./README.gnome-hackers.
* Add ./README.guile-hackers.
* Add this file (./ChangeLog). I'm planning to add change
information here, and I invite others to do the same. For those
that use emacs, 'C-x 4 a' adds a new entry. If people don't like
this idea, we can drop it.
* Add new scheme function gnc:choose-item-from-list-dialog. There
is C side code, but it's only meant to be called from scheme.
This function is quite flexible in handles selections. Eventually
we might want to generalize this even more, but there are some GC
issues to consider. See src/gnome/query-user.c and gnc.gwp for
details, and see src/scm/extensions.scm for an example usage.
* IMPORTANT: queryBox signature has changed. See the docs in
src/gnome/query-user.c and in gnc.gwp for details.
* Remove queryBox stubs from Motif side. Motif doesn't support it
(yet), and with gnc.gwp conditional inclusion we can just ignore
it on the motif side.
* Add function (current-gnc-compile-flavor) to gnc.gwp so that we
can have conditional blocks. Possible return values are 'gnome
and 'motif.
1999-08-23 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-header.c (gnucash_header_draw): Added
a separator line between the header and the register entries.
* src/register/gnome/gnucash-item-edit.c (item_edit_new): Attempt
to implement the comboboxes. For some reason, I can't get combos
to work, something related to how the widget size is computed.
Comment this out for now.
* src/register/gnome/gnucash-item-edit.c (item_edit_set_arg):
Ditto
1999-08-20 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-grid.c (draw_cell): Set the
background/foreground color on a per cell basis. This obsoletes
the bg/fg colors in the styles for now.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_block_clear_entries): Fixed a big memory leak here.
(gnucash_sheet_block_set_entries): Support for background and
foreground colors for the cells. Set these from the table.
1999-08-19 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-style.c (gnucash_style_layout_init):
Layout the stock registers.
1999-08-18 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-grid.c (gnucash_grid_draw): When the
block is active, if a cell doesn't have a user-entered string,
then draw the label for that cell type as a hint for what should
be entered. TODO: Don't draw the label if the cell isn't an
input/output cell, or whatever.
* src/register/gnome/gnucash-style.c
(gnucash_sheet_style_compile): Initialize the labels[][] array in
the style.
1999-08-17 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-cursor.c (configure_bounds): Do this
the right way.
* src/register/gnome/gnucash-item-edit.c (item_edit_draw): Added
the clip rectangle, and made it so the text scrolls to keep the
cursor in view.
* src/register/gnome/gnucash-grid.c (gnucash_grid_draw): Added the
clip rectangle.
1999-08-14 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-cursor.c
(gnucash_cursor_get_pixel_coords): Take into account the alignment
offsets.
* src/register/gnome/gnucash-item-edit.c
(item_edit_get_pixel_coords): Take into account the alignment
offsets.
* src/register/gnome/gnucash-grid.c
(gnucash_grid_find_block_origin_by_pixel): Fixed an off-by-one
mistake.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_make_cell_visible): New function
(gnucash_sheet_cursor_move): Make the cell visible.
(gnucash_sheet_set_top_row): Added support for aligning on the top
or bottom row.
(gnucash_sheet_update_adjustments): Fixed this so the sheet can't
scroll past the bottom row.
1999-08-12 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_activate_cursor_cell): With Alexandru's patches, we
seem to need to grab the focus. We'll probably need this
elsewhere.
1999-08-11 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c (gnucash_button_press_event):
New function.
* src/register/gnome/gnucash-grid.c
(gnucash_grid_find_block_origin_by_pixel): Add a return value.
(gnucash_grid_find_cell_origin_by_pixel): New function.
1999-08-10 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_key_press_event): Added up/down movement.
(gnucash_sheet_style_set_dimensions): Change the way we set
dimensions.
(gnucash_sheet_size_allocate): Recompute style dimensions.
* src/register/gnome/gnucash-item-edit.c
(item_edit_get_pixel_coords): We need to compute pixels relative
to the canvas origin, not the window origin. Duh. (Note that
canvas sends coordinates to a draw function relative to the canvas
origin.)
* src/register/gnome/gnucash-cursor.c
(gnucash_cursor_get_pixel_coords): Ditto.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_deactivate_cursor_cell): New function.
(gnucash_sheet_activate_cursor_cell):
(gnucash_sheet_cursor_move):
(gnucash_sheet_start_editing_at_cursor):
(gnucash_sheet_stop_editing):
1999-08-09 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/combocell-gnome.c: New file, everything is a
no-op for now, we just need the stubs.
* src/register/gnome/gnucash-item-edit.[ch]: New file. Implements
an entry for the sheet.
1999-08-08 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-cursor.[ch] : New file. Implements a
block/cell cursor.
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_style_get_cell_pixel_rel_coords): New function.
1999-08-06 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-grid.c (gnucash_grid_draw): Updated
to reflect the changes below.
(gnucash_grid_find_block_origin_by_pixel): Bug fix (off by one).
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_table_load):
Another overhaul of the structure. We need to keep a local copy
of the table, to keep what we need to redraw from changing
underneath us. So we needed some memory management and some minor
API adjustments.
(gnucash_sheet_resize):
(gnucash_sheet_resize_row):
(gnucash_sheet_destroy_row):
(gnucash_sheet_block_new_row):
(gnucash_sheet_block_set_from_table):
(gnucash_sheet_block_set_entries):
(gnucash_sheet_block_clear_entries):
(gnucash_sheet_insert_block_row):
(gnucash_sheet_get_block):
1999-08-04 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_compute_visible_range): New
* src/register/gnome/gnucash-grid.c (gnucash_grid_draw): Basic
support for drawing the text of a cell.
(gnucash_grid_draw): Added support for justifications.
1999-08-03 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c (gnucash_register_new): Make
register into an independent widget.
* src/register/gnome/gnucash-sheet.c, gnucash-grid.c: Overhaul of
the structure. We don't need to keep a list of blocks, or a hash
list of styles. All the info we need is in the Table, and there
are only five styles associated to a given table (from
splitreg.h). Many functions touched to reflect the change. Also,
keep track of the SplitRegister associated to this table.
1999-08-02 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-color.c (gnucash_color_init): move
the color allocation and hash table routines from table-gnome.c to
here.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_block_append):
fixed a silly bug.
(gnucash_sheet_block_style_new): Fix up the key.
(gnucash_register_new): This is complex widget that already has
the vertical/horizontal scrollbars attached.
* src/register/gnome/gnucash-grid.c (gnucash_grid_find_block): Be
sure we get a valid sheet_block. Our register window may be
larger than the number of blocks.
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_load): Initial
load of the table into the register.
* src/register/gnome/gnucash-color.[c,h]: steal these files from gnumeric
1999-08-01 Heath Martin <martinh@pegasus.cc.ucf.edu>
* src/register/gnome/gnucash-sheet.c
(gnucash_sheet_style_recompile): make height, width a member of
the style, so we don't have to change every block when the style
gets recompiled (on sheet allocation changes for example).
* src/register/gnome/gnucash-grid.c (gnucash_grid_get_type): First
hack at getting a grid going.
(gnucash_grid_class_init): Ditto
(gnucash_grid_set_arg):
(gnucash_grid_init):
(gnucash_grid_draw):
(gnucash_grid_find_block):
(gnucash_grid_update):
(gnucash_grid_unrealize):
(gnucash_grid_realize):
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_new): New
(gnucash_sheet_get_type): New
(gnucash_sheet_class_init): New
(gnucash_sheet_create): New
(gnucash_sheet_realize): New
(gnucash_sheet_block_new): New
(gnucash_sheet_block_destroy): New
(gnucash_sheet_vadjustment_value_changed): New
(gnucash_sheet_set_top_block): New
(gnucash_sheet_block_get_pixels): New
(gnucash_sheet_get_block): New
(gnucash_sheet_style_init): etc, per block style handling
|