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
|
sam ao 6 17:20:39 CEST 2005 Dodji Seketeli
* src/mlview-plugin-descriptor.[cc|h],
src/mlview-plugin-manager.[cc|h], src/mlview-plugin.[cc|h],
src/mlview-plugin-window.h, tests/firstplugin.cc,
src/tests/firstplugin.xml,
ui/mlview-plugins-window.glade: these files got pulled from
a patch from Nicolas Centa to add support for plugins in MlView.
* src/mlview-safe-ptr.h src/mlview-safe-ptr-utils.h
src/mlview-view-manager.h menu-descriptions/main-menu-bar.xml
tests/Makefile.am src/Makefile.am src/main.cc src/mlview-app-context.h
src/mlview-app.cc src/mlview-utils.h ui/Makefile.am,
src/mlview-prefs-storage-gconf-impl.cc: these files got modified by
the very same patch by Nicolas Centa. I modified them a bit. Here is
a small log of what I did:
don't expose PluginManager in AppContext.h. Instead, make it be
a private member of mlview::App.
Control *when* the plugins are going to get loaded, that is,
call PluginManager::load_all_plugins_from_default_plugins_dir(),
at the end of App::App(), when the MlView application is correctly
initialized.
in mlview-plugin-descriptor.h and mlview-plugin.h
Make the classes respect the canonical form of mlview classes, i.e
only one member, declaration of assignment operator, copy constructor, etc,
don't expose any member data, only accesors.
in mlview-plugin-descriptor.cc:
replace if (!condition) goto error ; by THROW_IF_FAIL (condition) ;
replace char* by safer UString.
in mlview-plugin-manager.cc and other files
don't do catch (...) only and don't do it without tracing.
removed mlview-safe-ptr-object-utils.h, move its content into
mlview-safe-ptr-utils.h
jeu ao 4 22:23:41 CEST 2005 Philippe Mecha
* configure.in:
Added gnome-vfs-2 dependency, it was formerly included by eel.
Re-Added libgnomeui2, formerly included by eel and need by
EggRecentItems
This fixes compilation errors in previous patch
jeu ao 4 21:25:42 CEST 2005 Philippe Mecha
* configure.in:
Removed dependency on EEL
* src/Makefile.am:
Added mlview-prefs-category-sizes.(cc|h) to the sources
* src/mlview-app-context.cc
* src/mlview-app-context.h:
Completely removed the old AppSettings class
* src/mlview-app.cc
* src/mlview-editor.cc
* src/mlview-icon-tree.cc
* src/mlview-node-type-picker.cc
* src/mlview-parsing-utils.cc
* src/mlview-tree-editor.cc
* src/mlview-tree-view.cc
* src/mlview-xml-document.cc
* src/mlview-view-factory.cc
* src/mlview-view-manager.cc:
Completely removed references to the old AppSettings class.
Everything has been switched to the new preferences system.
* src/mlview-prefs.cc:
Added reference to new preferences category (ie Sizes)
* src/mlview-prefs-category-sizes.(cc|h):
First revision of a new category that handle various ui sizes
in order to keep state among sessions.
This category doesn't have an associated frame because these
preferences are for internal use only
* src/mlview-prefs-category-treeview.(cc|h):
Added a public constant CATEGORY_ID (removed hardcoded strings)
* src/mlview-prefs-category-frame-treeview.cc:
Removed a dummy paste
* src/mlview-prefs-category-general.(cc|h):
Added a public constant CATEGORY_ID (removed hardcoded strings)
2005-08-03 22:30:18 CEST Philippe Mecha
* src/mlview-prefs-category-treeview.(cc|h):
Added methods to get colours from an mlview::TreeEditorsNodeColou
const Glib::ustring get_color_for_type (mlview::TreeEditorsNodeColour)
const Glib::ustring get_color_for_type_default (mlview::TreeEditorsNodeColour)
* src/mlview-tree-editor.cc
* src/mlview-icon-tree.cc
Added instant-apply color change in the treeview.
It seems not to work for the Document & the DTD nodes.
Might not be strange as i also had problem with them
for the selection color patch.
2005-08-03 19:55:19 CEST Philippe Mechai
* schemas/mlview.schemas:
Added new configuration key for treeview attributes values colour
* src/mlview-prefs-category-frame-treeview.cc:
Added the new preference colour to the list
* src/mlview-tree-editor.cc:
Added code to handle the new preference colour
lun ao 1 21:51:52 CEST 2005 Dodji Seketeli
* src/mlview-source-view.cc: don't put tooltip and action names in
GtkAction entries that refer to STOCK items (thanks to Philippe Mecha
for spoting that).
Add a GTK_STOCK_DELETE menuitem to the contextual menu.
lun ao 1 19:26:56 CEST 2005 Dodji Seketeli
* test/testsafeptr.cc: added some basic (yet to be complete)
tests for the safeptr class.
2005-07-31 23:03:46 CEST Philippe Mechai
* configure.in:
Added depency on libvte used for the execute command dialog.
* ui/mlview-exec-command.glade:
First revision of the new Execute Command dialog ui
* menu-descriptions/main-menu-bar.xml:
Added menu entry for Execute command
* src/mlview-app.cc:
Added callback for the Execute command menu action
* src/mlview-exec-command-dialog.(cc|h):
First revision of the new Execute Command dialog.
This dialog let the user enter a command to run against the
current document.
sam jui 30 17:18:05 CEST 2005: Dodji Seketeli
* src/mlview-source-view.(cc|h),
src/mlview-prefs-category-sourceview.(cc|h),
schemas/mlview.schemas,
src/mlview-prefs-category-frame-sourceview.(cc|h): applied a patch
from Philippe Mecha to add the preferences related to the source view
to the preferences management system.
sam jui 30 13:42:36 CEST 2005 Dodji Seketeli
* src/mlview-source-view.(cc|h): added cut/copy/paste to the contexutal
mlview::Clipboard class to put/get text/nodes to/from the clipboard.
sam jui 30 14:40:53 CEST 2005 Dodji Seketeli
* src/mlview-view-manager.h: don't include mlview-safe-opbject-utils.h
anymore. Include mlview-safe-ptr-utils.h instead.
This should fix #311433.
2005-07-29 23:40:28 CEST Philippe Mechai
* src/mlview-source-view.cc:
Added complete preferences support
2005-07-29 22:53:34 CEST Philippe Mechai
* src/mlview-tree-editor.cc:
Fixed a little regression with the search bar position.
2005-07-29 20:15:22 CEST Philippe Mechai
* ui/mlview-prefs-window.glade:
Created the SourceView preferences category ui
* schemas/mlview.schemas:
Added configuration keys for the SourceView
* src/mlview-prefs-category-sourceview.(cc|h):
First revision of the SourceView preferences category.
* src/mlview-prefs-category-frame-sourceview.(cc|h):
First revision of the SourceView preferences category frame.
* src/mlview-prefs.(cc|h):
Added reference to the new preferences category
* src/mlview-prefs-window.cc:
Added code to use the new preferences category frame
2005-07-26 20:57:45 CEST Philippe Mechai
* src/mlview-ui-utils.(cc.h):
Moved the color conversion from Gdk::Color to an ustring hex
representation to two new ui oriented utility functions.
* src/mlview-prefs-category-treeview.cc:
Removed color conversion code
* src/mlview-icon-tree.cc
* src/mlview-tree-editor.cc:
Selection color patch should (hopefully) be really finished
2005-07-26 19:34:23 CEST Philippe Mechai
* src/mlview-icon-tree.cc
* src/mlview-tree-editor.cc:
Added instant-apply font change to the treeview
2005-07-26 01:15:17 CEST Philippe Mechai
* src/mlview-icon-tree.cc
* src/mlview-tree-editor.cc:
Added code to handle color change when a node is selected.
Basically added a boolean parameter to all the _to_string_tag
functions and used the current theme selection foreground color
when set to true, the colour stored in the preferences otherwise.
Fixed bug #155081
2005-07-26 00:22:12 CEST Philippe Mechai
* src/mlview-prefs-category-*.h:
Added code to handle default value.
For each preference accessor the same method suffixed with
_default has been added. A 'Reset to default' has been added to
all category frames
dim jui 24 12:16:59 CEST 2005 Dodji Seketeli
* src/mlview-prefs-storage-manager.h,
src/mlview-prefs-storage-gconf-impl.h:
Don't use 'throw' but rather THROW() . The side effect of this
is that we all use the same unique mlview::Exception class
throughtout the application (for the time being). See
docs/coding-standards.txt for more explanations.
Also, use SafePtr to avoid leaks elegantly.
* src/mlview-safe-ptr-utils.h: when you want to use SafePtr, you now
have to include this file only.
dim jui 24 07:29:00 CEST 2005 Dodji Seketeli
* po/POTFILES.in: added some missing files in here.
Sat Jul 23 20:36:54 CEST 2005 Nicolas Centa
* src/mlview-exception.cc, src/mlview-exception.h: added a protected
void constructor to mlview::Exception to allow easy inheritance.
src/mlview-prefs-storage-manager.h,
src/mlview-prefs-storage-gconf-impl.h,
src/mlview-prefs-storage-gconf-impl.cc: added error management
to preferences storages.
sam jui 23 12:45:09 CEST 2005 Dodji Seketeli
* Makefile.am: correctly reference docs/coding-standards.txt
* po/POTFILES.in: don't reference ui/mlview-preferences.glade.
* src/mlview-preferences.cc, src/mlview-preferences.h: remove these
useless files.
ven jui 22 16:20:22 CEST 2005 Dodji Seketeli
* src/mlview-view-manager.h, src/mlivew-gvc-iface.h, mlview-old-gvc.h,
mlview-validator.h, mlview-validation-output.h: applied patch
mlview--main-happypeng--0.9--patch-1 from Nicolas centa to fix gcc 4
compilation errors.
ven jui 22 15:22:59 CEST 2005 Dodji Seketeli
* src/mlview-app.cc: fixed a regression introduced by my last
patch: make the edit menu be selectable by default.
* src/mlview-old-gvc.cc:
(OldGVC::remove_view): don't notify the view that is gona be
swapped out. Notifying views is the
job of the ViewManager.
* src/mlview-prefs-category-treeview.cc:
(MlViewPrefsCategoryTreeView::set_color_for_type):
use correct format for g_snprintf().
* src/mlview-safe-gobject-utils.h: added GtkWidgetRef/Unref,
GtkSourceViewRef/Unref.
* src/mlview-source-view.cc: refcount the private GtkSourceView
delegate. Delegates should always be alive when we need them.
* src/mlview-view-manager.cc:
(ViewManager::on_views_swapped): don't notify a views of
its swapping in when we are closing it.
mer jui 20 10:46:02 CEST 2005
* src/mlview-old-gvc.cc: cleaned mlview::OldGVC::on_switch_page(),
moved the generic stuffs into mlview::ViewManager. Now, when
implementing a GVCIface, you just need to emit
GVCIface::signal_views_swapped().
signal when views swap.
Also, clean the mlview::OldGVC to make it lean an simple.
The app seems not to crash too much anymore.
2005-07-19 23:40:59 CEST Philippe Mechai
* src/mlview-prefs-category-treeview.cc:
Fixed color conversion code. Took code directly from GTK+
2005-07-19 22:27:38 CEST Philippe Mechai
* ui/mlview-prefs-window.glade:
Fixed bug #127064 (rename Text Node to Text Node Content).
* src/mlview-prefs-*.h:
All classes where heavily documented
mar jui 19 08:01:29 CEST 2005 Dodji Seketeli
* view management files: fixed the last crashes I have seen.
did a big cleanup of mlview::OldGVC::on_switch_page().
Added mlview_tree_editor_reload_from_doc() method. Make it
reload the doc upon the "document-reloaded" signal emission by
MlViewXMLDocument. The code of mlview::OldGVC::on_switch_page()
should be put at the mlview::ViewManager level now.
2005-07-18 00:30:51 CEST Philippe Mechai
* src/mlview-prefs.cc:
Added reference to new preferences category
* src/mlview-prefs-category-treeview.(cc|h):
First revision of the treeview preferences category
* src/mlview-prefs-category-frame-treeview.cc:
Added calls to the treeview preferences category
* src/mlview-prefs-category-general.(cc|h)
* src/mlview-prefs-category-search.(cc|h):
Added some more code. Still not finished
* src/mlview-tree-editor.cc:
Changed color conversion code
lun jui 18 12:02:08 CEST 2005 Dodji Seketeli
* view management files: fixed lots of craches around the
views swapping management. Some important crashes
remain to fix though: I need to allow all the types of views
to "reload" an MlViewXMLDocument when the doc emits the
"document-reloaded" signal. It is right to let each view reload
itself upon document reloading, rather than trying to
destroy/recreate the view by the GVC, which is neither trivial
nor elegant or even right.
2005-07-17 14:45:14 CEST Philippe Mechai
* ui/mlview-prefs-window.glade:
Added font chooser button in the treeview category frame
* schemas/mlview.schema:
All treeview related keys have been moved to /apps/mlview/treeview
Treeview colours are in /apps/mlview/treeview/colours
* src/mlview-app-context.(cc|h):
Added a new preference for the treeview font in the AppSettings struct
Changed a few gconf keys path to match schema changes
* src/mlview-prefs.cc:
Fixed a leak
* src/mlview-icon-tree.cc
* src/mlview-tree-editor.cc:
Added code to load font when the view is created
2005-07-17 03:16:34 CEST Philippe Mechai
* src/mlview-prefs.cc:
Added reference to new category
* src/mlview-prefs-category-frame-search.cc:
Added calls to the preferences search category
* src/mlview-prefs-category-search.(cc|h):
First revision of the preferences search category
2005-07-17 02:08:40 CEST Philippe Mechai
* src/mlview-prefs-window.cc
* src/mlview-prefs-category-frame-general.cc:
Cleanups, Tweaks & Fixes
* src/mlview-prefs.(cc|h):
New class. Handles preferences
* src/mlview-prefs-category.(cc|h):
Base class for preferences categories
* src/mlview-prefs-category-general.(cc|h):
General preferences category
* src/mlview-prefs-storage-manager.h:
Definition of preferences storage interface
* src/mlview-prefs-storage-gconf-impl.(cc|h):
New class. GConf-based implementation of the PrefsStorageManager
2005-07-16 03:33:48 CEST 2005 Philippe Mecha
* ui/mlview-prefs-window.glade:
Created new category frame ui for treeview category
* src/mlview-prefs-window.(cc|h):
Added code to handle the new category
* src/mlview-prefs-category-treeview.(cc|h):
New class for the treeview category frame
* src/mlview-prefs-category-general.cc
* src/mlview-prefs-category-search.cc:
Cleanups, Tweaks & Fixes :)
sam jui 16 01:10:26 CEST 2005 Dodji Seketeli
* mlview-editor.cc:
(Editor::close_all_xml_documents): fix this.
* mlview-gvc-iface.cc:
(GvCIface::set_cur_view): make this optionaly emit a "views-swapperd" signal.
* src/mlview-iview.cc:
put IViewPriv::view_impl_ptr into a safeptr. added
IView::set_view_widget() and IView::get_view_widget() to get/associate a widget
to the view. Views must no more inherit widgets, for ref/unref hell
management reasons.
* src/mlview-object.cc:
(Object::Object): ref objects at creation. This prevents early objet
destruction.
* src/mlview-old-gvc:
(OldgGVC::insert_view): don't cast IView* into Gtk::Widget*, use
->get_view_widget() instead. Don't forget to show
the content of a notbook page before inserting
it. Otherwise, the page will never come on front,
event if you call Gtk::Notebook::set_current_page().
(OldGVC::rebuild_view): don't cast IView* into Gtk::Widget*
(OldGVC::on_switch_page): shield this from 2 calls of this method without
the pages actually switching. Make sure the
graphical view updates its cur_view pointer, and
emit a signal to let the view manager do the
same
* src/mlview-safe-gobject-utils.h: added GtkWidgetMMRef and
GtkWidgetMMUnref so that we can build safeptrs of Gtk::Widget pointers.
2005-07-15 22:53:18 GMT Philippe Mecha
* ui/mlview-main-app-win2.glade:
Re-added a statusbar
* src/mlview-tree-editor.cc:
Added code to reorder the search bar in the main-app-win2 main vbox
* src/mlview-prefs-window.(cc|h):
New class to handle the Preferences window
* src/mlview-prefs-category-frame.(cc|h):
Base class for categories frame
This is an abstract class
* src/mlview-prefs-category-frame-general.(cc.h):
Category frame for the preferences general category
* src/mlview-prefs-category-frame-search.(cc|h):
Category frame for the preferences search category
jeu jui 14 08:29:05 CEST 2005 Dodji Seketeli
* src/mlview-app-context.cc:
(AppContextPriv::AppContextPriv): properly initialise
the private members of AppContext to NULL otherwise boom.
* src/mlview-app.c: (App::init_from_glade): initialize the
context member right at the begining of the method, otherwise boom.
jeu jui 14 00:20:44 CEST 2005 Dodji Seketeli
* lots of files: ported MlViewAppContext to mlview::AppContext, bringing
in type safety, especially for signal yay!. I changed
*all* the client classes to reflect that change. Also,
now, no client class exposes the mlview::AppContext in
its public api. AppContext is now a good singleton
pattern citizen. If you can to get it, call
mlview::AppContext::get_instance (). The lifetime of
the instance of AppContext is the lifetime of
mlview::App.
* src/mlview-clipboard.(cc|h): started to hack on the basis the new
clipboard architecture.
DISCLAIMER: I think mlview is miserably broken at this point.
I don't even expect the app to launch. It only compiles. I'll try
to debug it and bring it back to life soonish. Time for bed now.
dim jui 10 15:58:50 CEST 2005 Dodji Seketeli
* src/mlview-object.(cc|h), mlview-validator.(cc|h),
src/mlview-validation-output.(cc|h): applied a patch from Benoit Dejean
to fix gcc 4 compilation errors.
dim jui 10 09:15:34 CEST 2005 Dodji Seketeli
* src/mlview-view-manager.cc:
(ViewManager::insert_view): applied a patch from Philippe Mechai
to fix a stupid regression I have introduced. This
Should fix #309922 .
sam jui 9 19:12:12 CEST 2005 Dodji Seketeli
* docs/view-system.txt: updated this
* src/main.cc: updated this to reflect name changes in safeptrisms.
* src/mlview-app.cc: changed this to reflect the birth
of the ViewManager.
* src/mlview-editor.cc: Huge change to delegate view management to
the brand new ViewManager. Basically, to add/remove a view ,
you first get a pointer on mlview::ViewManager
and invoke mlview::ViewManager::insert_view() or
mlview::ViewManager::remove_view() etc.
Also, put all the pointer members
in SafePtr. I am sure this'll lead to nights of debugging. But a
better life is ahead if I take this route.
* src/mlview-exception.(h|cc): allow exceptions feeding with
UString messages.
* src/mlview-gvc-iface.(h|cc): added the Graphical View Container
Interface class, the mother interface of all the graphical view
containers.
* src/mlview-object.cc, src/mlview-safe-gobject-utils.h,
src/mlview-safe-object-utils.h, src/mlview-sage-ptr.h:
don't make ref/unref return integers, shorten the name of ref/unref
functors.
* src/mlview-view-adapter.cc: plug the ref/unref method on the
Glib::Object reference/unreference() method so that views get
refcouting only using the GObject refcounting system.
* src/mlview-view-manager.(cc|h): went forward here.
ViewManager now delegates the graphical management to mlview::GVCIface.
* src/mlview-gvc-factory.(cc|h): added this factory to create
graphical view container objects.
* src/mlview-old-gvc.(cc|h): all the previous graphical view
management code is now implemented by the OldGVC class, which
is a delegate of mlview::ViewManager. This class handle views
layouting by using a classical notebook. Just as what was done
before. A New graphical view container should come to light in the
coming months.
* src/mlview-view-factory.(cc|h): added this factory to create
IView objects. The view creation abstraction code that was in
previously in mlview::Editor has been moved here. Much Cleaner.
jeu jui 7 08:44:01 CEST 2005 Dodji Seketeli
* src/mlview-gvc-iface.h, src/mlview-view-manager.(cc|h): added this
new classes. Just started to work on a well separated view manager and
graphical view container.
Sun jul 3 19:09:52 CEST 2005 Dodji Seketeli
* NEWS: updated the translation part for 0.8
lun jun 27 22:21:49 CEST 2005 Philippe Mecha <pmechai@free.>
* src/mlview-node-editor.c: added standalone checkbox handling
* src/mlview-xml-document.[ch]: added standalone attribute handling
Added 2 new methods
gboolean mlview_xml_document_is_standalone (MlViewXMLDocument*)
void mlview_xml_document_set_standalone (MlViewXMLDocument*, gboolean)
jeu mai 12 22:58:43 CEST 2005 Philippe Mechai <pmechai@free.fr>
* ui/Makefile.am: switched to the new search box
* ui/mlview-search-node.glade: new search box ui
* src/mlview-tree-view.c: adapted the code to the new ui.
Mon jun 27 22:34:28 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* docs/view-system.txt: added this doc to revision control
Sun jun 26 23:45:33 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/main.cc: put the mlview_application into a brand new
SafePtr class that can handle virtually all the pointers,
even those which lifecyle is handled by something else but
new/delete.
* src/mlview-object.(h|cc): added refcounting to this class
* src/mlview-validator.(h|cc): started to put in place the kernel
of the new element name completion engine to come
* src/mlview-safe-ptr.h: added this implem of smart pointer.
This one can wrap native pointer types (such as types coming from
libxml) which lifecyle is not managed using malloc/free or
new/delete. For example, there can be a pointer type Foo, that
is instantiated by the function foo_new(), and destroyed by
foo_destroyed (). The mlview::SafePtr() can handle this, via
template-foo and functor objects.
* src/mlview-safe-libxml-utils.h, src/mlview-safe-gobject-utils.h,
src/mlview-safe-object-utils.h: these are utils to allow
mlview::SafePtr to handle pointer types as different as
gobject (libgobject), Glib::Object, xmlRegexec, and mlview::Object.
As you can some of these types support reference counting, others
don't. However, mlview::SafePtr can handle all of them.
Sat jun 18 19:53:38 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* tests/testcompl2.cc: this will be the testbed for completion stuffs.
* src/mlview-validation-output.cc, src/mlview-validator.cc,
src/mlvie-validator-window.cc: moved this to C++. Mainly the
validator so that I can use it in the completion testbed.
* src/mlview-source-view.cc: a little bit of debugging here, and
put this view as the default view from now on.
Fri jun 17 23:58:09 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.cc: don't unref xml doc when removing the view.
The view is responsible of refing/unrefin the doc.
* src/mlview-iview.cc: use IView::set_document () in the constructor
so the the doc is properly ref'ed. make sure that
IView::set_document (NULL) ; unrefs the doc hold by the view.
* src/mlview-node-editor.cc: ref the widgets we need to touch in the
destructor and unref them in the destructor.
* src/mlview-source-view.cc: make sure the 'create_source_view_instance()'
manages the instance of MlViewSourceView it creates.
* src/mlview-tree-view.cc: here again, make sure the member widgets
are 'managed' and are ref'ed. This way, we can touch them in the
destructor without any fear of touching deallocating memory.
In the destructor, make sure to unref what has been ref'ed.
Also, make create_tree_view_instance() manage the view it creates.
* src/mlview-xml-document.cc: replace the g_return_if_fail() by
THROW_IF_FAIL() and a small part of the g_return_val_if_fail() too.
This entry fixes a leak and a crash that was appearing when we
close a view.
Thu jun 16 23:49:44 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.cc: wired the source view back.
Fixed some view adding/removing logic. Now, it seems there
are still some bugs with view name setting upon first saving.
* src/mlview-iview.cc: fix the IView::set_document() method.
* src/mlview-source-view.cc: debuged the porting of this class.
* src/mlview-tree-view.cc:
(TreeView::handle_contextual_menu_request): fixed a nasty typo here.
* src/mlview-utils.h: add an endl at the end of what is displayed
by the LOG_TO_ERROR_STREAM() macro
Tue jun 14 22:40:17 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.cc: heavy debug of this class to make
it capable of adding new view and removing them without
too much crashing. Replaced all the g_return_* by THROW_IF_FAIL().
* src/mlview-tree-view.cc|h: implemented the
IView::get_must_rebuild_upon_document_reload() method.
Tue jun 14 08:01:11 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-app.cc: reflect the changes in the view system
porting.
* src/mlview-editor.cc: debug the view 'adding' workflow, and make it
work somehow. Now, the global notebook is a Gtk::Notebook, not a
GtkNotebook anymore.
Sun jun 12 16:31:30 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-source-view.(cc|h): ported MlViewSourceView to
mlview::SourceView and update mlview-editor.c accordingly.
Okay, the view system is ported and compile. It is broken though.
I need to make mlview::Editor use a Gtk::Notebook instead of
a GtkNotebook so that the whole thing can work.
Today, mlview does not run anymore.
Sat jun 11 14:06:29 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-tree-view.(cc|h], src/mlview-iview.(cc|h),
src/mlview-view-adapater.(cc|h): Of porting the view system
up to MlViewTreeView into C++. I still need to port the
MlViewSourceView.
* src/mlview-app.cc, src/mlview-editor.cc,
: modify these classes to reflect the changes that appear
in the view system.
* src/mlview-exception.h: fix this header to prevent double inclusion.
* src/mlview-object.(h|cc): moved the decl and def of the
MethodNotImplementedException exception class.
* src/mlview-object.c: don't make mlview::Object inherit
sigc::trackable because it prevents mlview::TreeView to compile.
* src/mlview-tree-editor.h: put 'const' here and there.
* src/mlview-ustring.(cc|h): added a copy constr for Glib::ustring.
Fri May 27 17:37:44 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.cc: this class has no more GHashTable. Maps rules.
Okay, the views manipulation code needs testing now.
(Editor::close_xml_document): don't loop over a map from which
you are removing elements. That can invalidate your current
iterator and crash the application. This is a first attempt
to fix http://bugzilla.gnome.org/show_bug.cgi?id=305586 .
Thu May 26 20:25:28 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-ustring.(cc|h): added the class mlview::UString
that derives from Glib::ustring. It's = operator accepts NULL char *
and sets the content to "" in that case.
* src/main.cc: use mlview::UString instead of Glib::ustring.
* src/mlview-editor.cc: replaced
mlview::EditorPriv::opened_file_base_names and
mlview::EditorPriv::opened_file_paths (GHashTables) by standard maps.
Also we use mlview::UString instead of Glib::ustrings here.
* src/mlview-editor.cc:
Sun May 22 23:04:20 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.cc: Replaced
EditorPriv::opened_document_label_names (a GHashTable) by a map.
Also fixed some crashes that occurs in the "open doc" workflow,
as well as "save". Actually, this is due to str = NULL, when
str is a Glib::ustring. Hmmh, I will code a mlview::Ustring
that accepts a str = NULL, and use that one thoughout the project.
Sun May 22 19:46:59 CEST 2005 Dodji Seketlei <dodji@mlview.org>
* src/mlview-editor.cc: started to remove the GHashTables used
in the Editor class and replaced them by maps. Rock on.
* src/mlview-exception.h, src/mlview-utils.h: don't rely on g_log()
anymore for our logs. It has behaviours I don't really get.
* docs/coding-standards.txt: update this
Sun May 22 09:58:02 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/main.cc: correctly handle the case where the user provides
a dtd in command line mode. Make sure a Glib::ustring is not
compared with "NULL", but with "" instead.
* src/mlview-editor.cc: ported the destruction code of MlViewEditor
to mlview::Editor::~Editor. No crash seen (yet).
Hmmh, it seems like this entry actually provides a first decent
step of the porting of MlViewEditor to mlview::Editor.
Sun May 22 09:14:02 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/main.cc: enclose everything in try/catch to report exceptions.
don't pass NULL ptr to a Glib::ustring constructor, this raises
an exception and brings the app down. Now the application comes up.
Still, it display some error messages I have to hunt down.
Yay anyway. I also have to code the mlview::Editor::~Editor() method
otherwise that class will leak like a pig.
Sun May 22 01:54:49 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-object.h: don't make mlview::Object inherit
Glib::Object because it makes the app goes down when
mlview::Editor derives from Gtk::VBox (which is a Glib::Object)
and from mlview::Object. Make it derive from sigc::trackable so
that all mlview::Object can emit signals.
* src/mlview-app.cc:
(App::init_from_glade): don't use g_signal_connect on
to emit signals on mlview::Editor since this class now uses
the sigc signal/slot mecanics. This was crashing mlview at startup.
Okay, now, mlview still crashes when you try to open a document.
I will look at this issue later. Bed time for now.
Sat May 21 19:30:47 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-exception.cc: added the root exception class of mlview.
* src/mlview-editor.cc: started to c++fy this. It compiles somehow,
but is terribly broken, segfaults at startup and leaks terribly :-\
Anyway, bye bye MlViewEditor, long life mlview::Editor.
* src/main.cc, src/mlview-app.(cc|), src/mlview-iview.(cc|h],
src/mlview-utils.h, src/mlview-view-adapter.cc,
src/mlview-xml-document.(cc|h], src/mlview-xslt-utils.(cc|h),
src/mlview-drop-manager.cc: changed these classes to match
the changes in mlview-editor.(cc|h)
* src/Makefile.am: added mlview-exception.cc, and re-arrange
the compilation order to better fit with the porting needs.
Tue May 17 23:00:36 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* configure.in: used gtkmm-2.4 instead of gtkmm-2.0
* docs/coding-standards.txt: started to hack on a coding
standards doc.
Tue May 17 21:04:35 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* configure.in: test the presence of gtkmm2.0. Add a -Wall -Werror
to compile line. Added more configuration reporting at the end
of the configure stage.
* src/main.cc: debug this to make mlview actually launch again.
basically init the Gtkmm toolkit by instancing Gtk::Main
* src/mlview-app.cc: debug this to actually make the whole mlview
launch and work again.
* src/mlview-utils.cc: added a debuggin macro here.
* src/mlview-cell-renderer.cc: fix some compilation warnings
due to the -Wall flag.
Okay, this entry unbreaks the mlview build again.
Tue May 17 08:20:46 CEST 2005 DOdji Seketeli <dodji@mlview.org>
* src/mlview-app.h, src/mlview-app.cc: refactored this into
real C++ object oriented code. Now, this is located in the
mlview namespace, and class names don't need to start with
'MlView' anymore. namespace rules. Also, it derives from
the mlview::Object class now. The mlview::Object class derives
from Glib::Object. All the mlview classes should derive from
mlview::Object from now on. Okay, the interfaces should maybe
derive from class mlview::Interface that is not written yet.
* src/mlview-object.cc, src/mlview-object.h: added this class to
the project.
* src/mlview-service.cc, src/mlview-service.h, src/main.cc:
* configure.in: make the projet depend on libgtkmm2.0 .
propagated the change of MlViewApp into mlview::App here.
Oh, this entry breaks the mlview code. It crashes at launch time.
I need to give it gdb love.
Sun May 15 18:57:32 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-service.cc, src/mlview-app.cc,
src/mlview-file-descriptor.h, src/mlview-kb-eng.cc,
src/mlview-doc-mutation.cc, src/mlview-doc-mutation-stack.cc,
src/mlview-cell-renderer.cc, src/mlview-schemas-window.cc,
src/mlview-validator-window.cc, src/mlview-schema.cc,
src/mlview-schema-list.cc, src/mlview-drop-manager.cc:
Applied a patch from Stephane Wirtel to finally make the compile
whole project compile. I just added some G_BEGIN_DECLS/G_END_DECLS
in mlview-file-descriptor.h to make it link.
Hoooray, we now have the first version of mlview++ running :-).
Thank you Steph.
Sun May 15 15:04:29 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-tree-editor.cc: second attempt to make this really compile
with g++
2005-05-15 Stephane Wirtel <stephane.wirtel@belgacom.net>
* src/mlview-node-editor.cc: g++ified this.
Sun May 15 12:46:06 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-app.cc: g++ified this. thanks to Stephane Wirtel.
Sun May 15 11:47:22 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/*.cc: went forward in g++ification.
Now, everything should compile up to mlview-validator.cc, included.
Sat May 14 23:52:08 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.c: make this compile with g++
Sat May 14 23:05:45 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-source-view.cc, src/mlview-iview.cc,
src/mlview-tree-view.cc, src/mlview-view-adapter.cc:
make these file compile with g++
Sat May 14 20:39:05 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* configure.in, src/Makefile.am, src/*:
set the default compiler to g++, rename the files
*.c into *.cc.
* src/mlview-app-context.cc, src/mlview-utils.cc:
make these files compile with g++. The whole project doesn't
compile yet, but I keep the faith.
Sat avr 30 21:50:04 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlviewctl.c, configure.in: make sure the beast compiles
without dbus support. Thanks to mohinze and herckb for reporting this.
Sun avr 24 18:04:35 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-ping-dbo.[ch], src/mlview-ping-dbc.[ch],
src/mlview-dbus-cli.[ch]: added support for remotely closing
the application by "mlviewctl close-application".
* src/mlviw-app.[ch]: added public MlViewApp::close_application()
and MlViewApp::close_docs() methods.
* configure.in: configure --enable-debug=yes triggers logging of
everything that goes through mlview_utils_trace_debug().
* src/mlview-kb-eng.c: use mlview_utils_trace_debug() instead
of the former #ifdef MLVIEW_VERBOSE g_print() #endif
Sun avr 24 13:20:00 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-dbus-cli.c: added the "load-xml-file" support.
* src/mlview-editor-dbc.c: make the MlViewEditorDBC::load_xml_file()
method work. It now correctly invokes with the
MlViewEditorDBO::load_xml_file_with_dtd() method.
* src/mlview-editor-dbo.c: correctly construct the instances of this
class. Make the MlViewEditorDBO::load_xml_file_with_dtd() actually
work.
* src/mlview-editor.[ch]: modified MlViewEditor::load_xml_file(),
MlViewEditor::load_xml_file_with_dtd() so that they can do their
job in a non interactive way, i.e, without poping up windows
asking questions to the user. This is useful for remote control.
Adapted the client code to this API change.
* src/main.c,src/mlview-app.c,mlview-parsing-utils.c:
adapted the code to the
MlViewEditor API change w.r.t document loading.
* src/mlview-service.c: use mlview_utils_trace_debug() instead of
printf().
* src/mlviewctl.c: added the "load-xml-file" command to the help.
Sat avr 23 22:14:07 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* configure.in,src/mlview-utils.h: make sure the messages logged
using mlview_utils_trace_debug() macro are displayed only if the
MLVIEW_DEBUG env variable is set. Also, this macro has the
same signature as printf() now, which makes it pretty much
convenient to log messages. Also, replaced all the
mlview_utils_trace_info() function calls by
mlview_utils_trace_debug(). sed -i is great.
* src/Makefile.am: added mlview-ping-dbo.c (MlView Ping DBus Object)
and mlview-ping-dbc.c (MlView Ping DBus Client) to the project.
* src/mlview-dbus-cli.c: make this actually work. Make it support
the "list-services" and "ping-service" functionality.
* src/mlview-editor-dbo.c: added some debug messages
* src/mlview-idbc.c: added a default MlViewIDBC::get_bus() method.
here to get the dbus session bus.
* src/mlview-service.c: added a hook for the MlViewPingDBO object.
Also, added a hack so that each instance of MlView can have
a unique dbus service name. Actually, the services are named
org.mlview.Service.a, org.mlview.Service.b, etc ... until
org.mlview.Service.z . There cannot be more than 26 instances
of mlview up at the same time. I tried to call the services
org.mlview.Service-0, org.mlview.Service-1 etc, but it appeared
that dbus clients can't join dbus services which name contain
either '-' or digits.
Thu avr 21 00:20:29 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/Makefile.am: created a new library:
libmlviewdbusclient.so. It is to be linked with dbus client apps.
For the moment, this library contains mlview-editor-dbc.[ch],
the editor dbus client class.
Also started to work on mlviewctl, the command line tool that'll
be used to control mlview "remotely", via the command line.
The testing framework is getting in place slowly.
* src/mlview-editor-dbc.[ch]: first non tested implementation of
the call to the "load_xml_file_dtd" method.
* src/mlview-service.c:
(get_bus): more robust error reporting
* src/mlview-dbus-cli.[ch]: added this file. It the class that
abstracts the mlview command line interface that'll be the core
of the coming testing framework.
* src/mlviewctl.c: added this file. It is the command line tool
to be used by users willing to control mlview remotely (i.e, via ipc)
Mon avr 18 00:00:15 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/Makefile.am, src/mlview-idbc.[ch], src/mlview-editor-dbc.[ch]:
started to write the skeleton of the "MlView DBus Client Interface"
and the first class to implement that interface, MlView
editor DBus Client, MlViewEditorDBC. This is only gobject-foo
atm. Nothing works yet, but the ball is rolling.
Sun avr 17 13:39:15 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* configure.in: don't append dodji's flags when MLVIEW_DEVEL=on env
var is set. Make them override the default flags instead.
* src/Makefile.am: don't compile mlview-dbus-manager.[ch] anymore.
This is going to be replaced by th new framework. This new framework
is composed of dbus objects that implements the interface MlViewIDBO,
MlView Dbus Object Interface. Objects are activated when
the MlViewService is started. Of course, when dbus is not enabled
starting the MlViewService does void. For the moment, MlViewEditorDBO
is the only dbus object implemented, and it has not client yet. But
that'll come soon. I prefer not breaking users who compile mlview
and who don't have dbus correctly installed yet. The dbus framework
will get slowly up to speed by the time DBus gets more widely
installed.
* main.c: call MlViewService::start() instead of calling
the dbus manager. This is the begining of the new framework.
* src/mlview-app.c:
(close_application): call MlViewService::stop() when closing the app.
This is a from where to cleanup all the dbus'isms.
* src/mlview-editor-dbo.c: go forward in implementing the
MlView Editor DBus Object. Make sure the object properly inits himself
etc ...
* src/mlview-idbo.[ch]: cleanups.
src/mlview-service.[ch]: make this start to work. It now properly
register/unregister the dbus objects of the apps etc.
Registration is done indirectly by MlViewService::start().
Unregistration is donne by MlViewSerice::stop(). This respects
the basic paradigm that says "a service is a process in whice
DBus objects runs." So, starting a service means "make what is
necessary to have the dbus object ready to serve requests coming from
clients".
Fri avr 15 09:49:28 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-idbo.h,src/mlview-editor-dbo.[ch]:
Went forward in coding the editor dbus object methods.
Nothing works yet, but the framework is getting in place
slowly.
* src/mlview-editor.[ch],src/mlview-file-descriptor.[ch],
src/mlview-parsing-utils.[ch],src/mlview-xml-document.[ch]:
added the 'const' keyword here and there for cleanup purposes.
Thu avr 7 22:24:08 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor-dbo.[ch],src/mlview-idbo.[ch],
mlview-service.[ch],configure.in:
building a new framework for the DBus managed objects running
in a DBus service in MlView.
Basically, this work is rooted in what toonsy has done so far.
There is one org.mlview.MlViewService running. This service runs
many DBus objects. The MlViewService is started in the main.
It registers the objects which are then ready to service requests.
I am just at the beginning of the framework design.
Tue mar 29 22:10:24 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* COPYRIGHT: updated COPYRIGHT information
Sun mar 27 20:12:34 EST 2005 Mohinze Tidjani <mtidjani@free.fr>
* src/mlview-tree-editor.c:
(mlview_tree_update_child_node_added):
In the call of the mlview_utils_gtk_tree_expand_row_to_depth, I
replace the depth value from "-1" to 1.
Basically, now, this called function expand the tree to one level after
a child node was added. This should fix #163892
Sun mar 27 17:52:40 CEST 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-utils.c
(mlview_utils_parse_start_tag): forgot to init a variable. no good.
Sun mar 20 21:49:58 CET 2005 Philippe Mechai <pmechai@free.fr>
* src/mlview-dbus-manager.[ch]:
Added a simple DBus Object to MlView. This object represents
the current MlView Instance.
It is used in order to ensure that there's never more than
one MlView instance running.
* src/mlview-app.[ch]:
Added method: mlview_app_set_visible (MlViewApp *)
Used to display the main window. This is used to delay
the display of the main window.
It avoids having the window display and hide when there's
already an instance running.
* ui/mlview-main-app-win2.glade:
Make the window not visible by default.
Sun mar 20 13:56:48 CET 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-app-context.[ch]:
Added an mlview_app_context_notify_view_undo_state_changed() function.
Basically, now, the undo/redo actions are now conceptually carried
by the views. An undo/redo is view specific. It is the duty of the view
to decide wether an undo should afect the in memory MlViewXMLDocument or
not. So the signal emited by the MlViewAppContext to reflect an
undo state change is now named "view-undo-state-changed", no more
"document-undo-state-changed".
* src/mlview-app.c:
Reflect the changes in the new undo/redo "philosophy".
Use the MlViewEditor::can_redo() and MlViewEditor::can_undo()
(instead of the methods of MlViewXMLDocument) to update
the undo/redo state arrows of the application menu
* src/mlview-editor.c:
(mlview_editor_switch_notebook_page_cb): make sure to call
mlview_app_context_notify_view_undo_state_changed() so that
the application can update it's undo/redo state arrows correctly
when we switch from one view to another.
(mlview_editor_undo,redo,can_undo,can_redo): make these methods
delegate their behaviour to the MlViewIView::undo,redo,can_undo,can_redo
of the current editing view
* src/mlview-iview.[ch]:
added the pure virtual methods MlViewIView::undo,redo,can_undo,can_redo,
to support the new undo/redo philosophy.
* src/mlview-source-view.[ch]: provide a brand new undo/redo capability
that delegates its behaviour to GtkSourceView .
* src/mlview-tree-view.[ch]: provide an undo/redo capability.
This one is not different than the one we had previously at the
MlViewEditor level. Now, what's new is that the *view* now has
a specific undo/redo behaviour.
* src/mlview-tree-editor.[ch]: Connect to the
MlViewXMLDocument::"document-undo-state-changed" signal to notify
the whole app about the undo state change.
* src/mlview-xml-document.[ch]: small changes to reflect the
new undo/redo philosophy.
Sat mar 19 11:23:33 CET 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-utils.[ch]: added the xmlDictFreeMem() function
to free strings potentially owns by the libxml2 dictionnary.
* src/mlview-parsing-utils.[ch] :
(build_required_element_content): don't xmlFree() node->name ;
use xmlDictFreeMem() instead. This is the third attempt of
fixing #160882 . In any case, this definitely saves me from
a double free.
* src/mlview-iview.h: started to move the undo/redo management
to the view level. I want to have MlViewIView::undo() MlViewIView::redo(),
etc... so that undo/redo can be view specific. The MlViewEditor::undo()
would then delegate the job to the current view. Okay, this is the
big picture. Nothing is done yet.
Thu mar 17 21:47:53 CET 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.c:
(mlview_editor_open_xml_document_interactive): add an assert
to make sure we got the EggRecentModel when we ask it.
* src/recent-files/egg-recent-view-uimanager.c:
(egg_recent_view_uimanager_set_list): don't unref the EggRecentItem
when the action is destroyed. This causes a double free because
the EggRecentItem will be unrefed anyway. Thank to Richard Hult who
enlighted me in this topic. I hope this fixes #160882
Thu mar 17 00:51:01 CET 2005 Dodji Seketeli <dodji@mlview.org>
* src/*.[ch]: fixed a couple of warnings reported by gcc 3.3.5.
* src/mlview-iview.[ch]: switched MlViewIView back to an GTypeInterface.
Now, I understand better how to use GTypeInterfaces
* src/mlview-view-adapter.[ch], src/mlview-tree-view.[ch],
src/mlview-source-view.c: made the necessary modifications to
make the views work crashless. This should fix #170457.
* configure.in: fix this to make the dodji flags applied.
Wed mar 16 00:50:51 CET 2005 Dodji Seketeli <dodji@mlview.org>
* po/*: pulled i18n stuffs from the CVS.
* src/mlview-ivew.[ch]: make the iview not be a GInterface anymore.
It was a pain in the arse for me to manage. Now, it inherits a vbox.
It's less elegant, but I least, I can use the virtual method paradigm.
* src/mlview-view-adapter.[ch], src/mlview-tree-view.c,
src/mlview-source-view.c: make the changes necessary to reflect
the type change of MlViewIView .
All this type changing stuffs should fix some crashes that were
occuring when switching from a type of view to another one
Sun mar 13 21:56:08 CET 2005 Dodji Seketeli <dodji@mlview.org>
* po/POTFILES.in: added src/mlview-source-view.c,
ui/mlview-new-document.glade, and ui/mlview-node-editor.glade
* src/mlview-editor.c:
(mlview_editor_save_xml_document_as): use
the mlview_editor_get_current_document() instead of touching
the private data of the MlViewEditor class.
* src/mlview-file-descriptor.c:
(mlview_file_descriptor_update_modified_time): unbreak this.
(mlview_file_descriptor_is_modified): unbreak this.
* src/mlview-source-view.c: Override the abstract
MlViewIView::get_document() method. Make it reload the dom
when the buffer has been modified.
Added a "close relevant tag" contextual menu item to close the
last opened tag. The former menu item has been renamed
"close all tags" because it clauses all the opened tags.
Sat mar 12 15:35:25 CET 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.[ch]:
(mlview_editor_load_xml_file_with_dtd): open docs using
the source view as default view.
* src/mlview-tree-view.c:
(activate_or_deactivate_proper_menu_items2):
There is no menuitem named UncommentNodeAction.
Rather use UncommentNodeMenuitem. This fixes the second
error message reported in bug
http://bugs.gnome.org/show_bug.cgi?id=169189 .
This entry closes this bug as the first error message was fixed
when closing the bug #157593.
* autogen.sh: switched to automake 1.7.2
* src/mlview-tree-editor.c, src/mlview-cell-renderer.[ch]:
change the name of the "editing-started" signal into
"editing-has-started".
This fixes http://bugs.gnome.org/show_bug.cgi?id=157593
Wed mar 9 23:51:04 CET 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-source-view.[ch]:
(get_last_dangling_opened_tag): fix several bugs here and there.
Make this function actually work.
(mlview_source_view_close_currently_opened_tag ): idem here. Fixed
several bugs that were preventing this method to actually work.
Sun mar 6 22:32:40 CET 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-source-view.[ch]: went forward in the tag
closing feature. Still does not work. There is even maybe an
infinite loop in close_tag_action_cb() because the
mlview_source_view_close_currently_opened_tag() doesn't detect
doesn't work properly the second time it is called. Still
it works fine the first time... which is a progress.
* src/mlview-utils.c:
(mlview_utils_parse_element_name2): fix this to make the
a_name_end_iter point to the end of the parsed name, unlike
like the C++ stl iterators.
(mlview_utils_parse_start_tag2): fix various bugs in this function.
made it work, basically.
(mlview_utils_parse_closing_tag2): made this function work.
Wed mar 2 10:01:06 CET 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-source-view.[ch],src/mlview-utils.c:
bug fixing in the "close opened tag" feature. Still have to make it work.
Mon feb 28 15:31:12 CET 2005 Dodji Seketeli <dodji@mlview.org>
* src/mlview-source-view.c: more contexual menu code. Now has the code
to pop contextual menu up. I still have to plug the tag closing code
in there.
* menu-descriptions/source-view-edit-menu.xml: added the ui-manager desc
file of the contextual menu for the source view.
* src/mlview-source-view.c:
more progress on the tag closing code of this view.
Has something that builds now. Doesn't work though.
Thu dec 16 21:20:01 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-app.c:
(build_view_types_choice_submenu): added this private method to
compute the list of menuentries that lets the user choose the type of
view she want to create on the document. The list is built dynamically
from all the types of views supported by the MlViewEditor class.
(new_view_on_doc_menuitem_actoin_cb):
modified this to take benefit of the dynamicaly created menuentries
thingy
(build_and_init_menus): modify this to make it dynamically build the
types of view choice dynamically.
* src/mlview-editor.c:
(mlview_editor_create_new_view_document3),
(mlview_editor_create_new_view_on_current_document):
Added these public methods to create views of a given 'type'.
Thu dec 9 13:22:13 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.c:
(build_ext_subset_id_list): make this function not reentrant.
When clearing/rebuilding the ext subset combo, block the
ext_subset_system_id_combo_changed_cb being called, otherwise we
crash.
* src/mlview-schema-list.c:
(mlview_schema_list_get_size): added this new method to the class.
Renamed mlview_schema_list_associate_schema() into
mlview_schema_list_add_schema(). Same thing for
mlview_schema_list_unasociated_xxx which has been renamed into
mlview_schema_list_remove_schema_xxx() ...
* src/mlview-schema.c:
(mlview_schema_destroy): added this method. Make mlview_schema_unref()
use this new method.
* src/mlview-xml-document.c:
(mlview_xml_document_new): a better handling of external subset object
sharing between MlViewSchema and native xmlDoc. This makes us
duplicate the xmlDtd because it doesn't have refcounting. This is not
resource friendly but it is the only to do it in a maintainable way.
(mlview_xml_document_set_ext_subset_with_url):
Same object sharing and better lifetime management work w.r.t the dtd
associated to the native xmlDoc. This makes us crash much less.
Tue dec 7 16:48:19 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-node-editor.c:
(select_dtd_in_ext_subset_id_list):
replace a dry g_return_if_fail() by a debugable message output.
Also, avoid signal handler reentrancy. This is bad truely bad.
* src/mlview-schema.c:
(mlview_schema_new_from_dtd), (mlview_schema_load_from_file):
Let the caller choose to free (or not) the native underlying schema
(dtd, xsd, or rng) upon MlViewSchema instance destruction. This allows
the MlViewSchema to safely share the native schema with other
components.
* src/mlview-xml-document.c:
(mlview_xml_document_new): make the MlViewSchema properly share the
native dtd with the MlViewXMLDocument and not necesarily free it at
destruction time. This fixes a nasty memory management bug.
* configure.in: fixed a typo: say GTK2 not GKT2. Thanks to
Jonas Geiregat who spotted it.
Mon dec 6 23:17:58 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-xml-document.c:
(mlview_xml_document_reload_from_buffer):
set PRIVATE (a_this)->cur_node to NULL after reloading the xml doc
because the previous pointer belongs now to a freed doc. Accessing it
is no good for our health.
Sun dec 5 16:03:34 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-tree-editor.c:
don't store the native xmlDoc in the tree view because we don't
control it's lifetime. Only store the MlViewXMLDocument. This fixes
a bunch of memory errors. Thanks valgrind.
* src/mlview-xml-document.c:
(mlview_xml_document_save_xml_doc): don't use a freed xmlDoc. No good
for memory related ecology.
Sat dec 4 21:36:57 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-source-view.c:
Detect the change of the view vis a vis the DOM and update the
DOM when necessary. Update the DOM when the user wants to save it
and when it is not up to date.
* src/mlview-xml-document.c:
emit the signal "going-to-save" the xml doc is to be saved.
Thu dec 2 22:55:36 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-source-view.c: make sure the view gets sync'ed to
DOM when it is swapped out. Still need to make sure that 'dirty' views
__i.e views that aren't in sync with the DOM__ get sync'ed when the user
hits the 'save' button so that the view get sync'ed into DOM before
the DOM itself gets saved to disk. When this is done, then I'll be
able to focus on editing features inside the view itself.
Thu dec 2 12:31:20 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-view-adapter.c:
(connect_to_document): make sure definition and declaration have
the same API
wed dec 1 23:20:49 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.c:
(get_current_view_from_notebook): take the case of empty notebook in
account.
* src/mlview-view-adapter.c:
(set_document): make sure to ref the document.
Sun nov 28 19:00:24 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-source-view.c: added syntax highligthing based on
gtksourceview magic here. Also added plumbing to reload the document
when the view is swapped in.
* src/mlview-xml-document.c: added a
MlViewXMLDocument::get_mime_type() method here.
Sat nov 27 13:29:41 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-editor.[ch]: added lots of voodoo to be able to handle
view rebuilding when the user goes from one to another.
The views can decide not to build rebuild upon 'swapped-in' signal
though.
New public methods that got in are:
mlview_editor_rebuild_view(), mlview_editor_add_view_at_index(),
mlview_editor_create_new_view_on_document2().
* src/mlview-ivew.[ch]: added 'get-must-rebuild-upon-document-reload'
signal. This is actualy a virtual method implemented as a signal.
Make sure MlViewIView setters/getters flush better error messages
whet there are not implemented. Added
MlViewIView::set_desc_type_name(),
MlViewIView::get_desc_type_name() and
MlViewIView::get_mus_rebuild_upon_document_rebuild() interface
methods.
* src/mlview-source-view.c:
(dispose), (finalize): don't forget to chain these method up
with their parent classes implementation.
* src/mlview-tree-view.c: implement the
'get_must_rebuild_upon_document_reload' MlViewIView virtual method.
* src/mlview-view-adapter.c: implement the
MlViewIView::get_desc_type_name() and
MlViewIView::set_desc_type_name() virtual methods.
* src/mlview-xml-document.c: added a 'document-reloaded' signal.
Added a mlview_xml_document_reload_from_buffer() method.
Mon nov 22 23:22:12 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-iview.c: fix the signal parameters.
* src/mlview-source-view.c:
(mlview_source_view_dispose): don't unref packed widgets because
their lifetime is already managed.
* src/mlview-tree-view.c:
(mlview_tree_view_construct): fix some stupid stuffs here.
Okay basically, the source-view shows itself now. Doesn't do
anything yet though.
Mon nov 22 00:08:44 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/*.[ch]: lots of modifications on the road of MlViewSourceView.
actually, cleaned up some broken view management stuffs to make true
multi view work. Reached the screenshot state ;) nothing more.
Still have to make all this shit work.
Sat nov 20 19:29:38 CET 2004 Dodji Seketeli <dodji@mlview.org>
* configure.in src/mlview-source-view.[ch], src/Makefile.am:
started to hack up a source editing view. Nothing can be tested yet.
Thu nov 11 20:03:18 CET 2004 Philippe Mecha <pmechai@free.fr>
* src/mlview-editor.c:
Changed New Document Dialog (Fix bug #154731).
Fri nov 12 16:59:25 CET 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-tree-view.c:
(paste_node_as_next_action.cb): action name is
paste-node-as-next-sibling, not past-node-as-next-sibling.
This fixes http://bugs.gnome.org/show_bug.cgi?id=157966 .
Thu nov 11 17:11:02 CET 2004 Dodji Seketeli <dodji@mlview.org>
* NEWS: updated this for 0.8.0.
Thu nov 11 17:11:02 CET 2004 Dodji Seketeli <dodji@mlview.org>
* mime/mlview.keys, mime/Makefile.am: make mlview known to the system
when it comes to open xml files.
* application-registry/Makefile.am,
application-registry/mlview.applications: add mlview to the list of
applications of the system.
Sun nov 7 20:27:54 CET 2004 Dodji Seketeli <dodji@mlview.org>
* configure.in: define the MLVIEW_EXE variable.
* mlview.desktop.in: unbroke this. Put the menu in
application/development. Unfuck the binary path.
* pixmaps/Makefile.am: distribute the public mlview icon in
$(prefix)/share/pixmaps/, not in $(prefix)/share/mlview.
* src/mlview-app.c:
(init_app_win) : unfuck the search patch of the mlview icon.
Wed nov 3 22:31:23 CET 2004 Dodji Seketeli <dodji@mlview.org>
* configure.in:
setup a new set of compilation flags + -Werror.
now, warnings should not be accepted anymore.
* src/mlview-editor.c,src/mlview-file-descriptors.c,
src/mlview-marshal.c, src/mlview-parsing-utils.c,
src/mlview-validator-window.c:
fixed some errors catched by the new compilation flags set.
Mon Nov 1 23:07:54 CET 2004 Philippe Mecha <pmechai@free.fr>
* schemas/mlview.schema:
Added keys to persist window size, and gutters' position of GtkPaned
widgets.
* src/mlview-app-context.[ch]:
Added functions to save window and treeview state (size & gutters'
positions).
Added code to handle new schema keys.
* src/mlview-app.c src/mlview-tree-view.c:
Added code to change size of window and positions of the GtkPaned
widgets' gutters from the settings.
Mon nov 1 03:40:02 CET 2004 Philippe Mecha <pmechai@free.fr>
* Makefile.am configure.in:
* menu-descriptions/main-menubar.xml:
* src/recent-files/*:
* src/Makefile.am:
* src/mlview-app.c src/mlview-editor.c:
Added support for recent files from libegg.
Used code from planner (src/recent-files/egg-recent-view-uimanager.[ch])
in order to make things work with GtkUIManager.
Sun oct 31 02:02:34 CET 2004 Philippe Mechai <pmechai@free.fr>
* src/mlview-node-editor.c ui/mlview-node-editor.glade:
Switched the MlViewNodeEditor to Glade.
Added the glade file.
Fixed some little bugs in Schemas and Validation windows.
* src/mlview-completion-table.c:
Switched layout from 2 rows 2 columns to 4 rows 1 column.
* src/mlview-tree-view:
Changed GtkPaned layout (see bug #150932)
Sun oct 31 00:14:09 CEST 2004 Dodji Seketeli <dodji@mvliew.org>
* menu-descriptions/main-menu-bar.xml: added a new "reload xml
document" entry in here.
* src/Makefile.am: renamed the MlView binary into mlview. No more mlv.
* src/mlview-app.c: hook the new mlview_editor_reload_document()
method in here.
* src/mlview-editor.c: renamed the mlview_editor_get_cur_doc_view()
into mlview_editor_get_current_document_view() and
mlview_editor_get_cur_doc() into mlview_editor_get_current_document().
Following the rule of minimum surprise is good.
Added a new mview_editor_reload_document() method. Stupid simple.
Mon oct 25 03:48:58 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* configure.in: bump libmlview version info.
* src/mlview-xml-document.[ch]: make the
mlview_xml_document_replace_node() method be undo/redo aware.
Now the mlview_xml_document_uncomment() is fully undo/redo aware and
functionnal. It only needs testing love.
Sun oct 17 02:11:27 CEST 2004 Philippe Mechai <pmechai@free.fr>
* pixmaps/Makefile.am pixmaps/mlview-*-schema.png:
Added icons to distinguish schemas in the schema dialog.
* src/mlview-schema.h:
Added arrays to index schema labels & icon path.
* src/mlview-schemas-window.c:
Added icons instead of stock items.
Changed from the old glade file to the new one. Which means adding
code to manage the new add dialog.
FIXME: Make entry history work !
* src/mlview-validation-window.c:
Added some code to handle icon state for the new dialog.
Sun oct 17 09:07:35 PDT 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-node-editor.c:
catch the "node-commented", "node-uncommented" and "replace-node"
signals to update the node editor accordingly. Otherwise,
the comment/uncomment workflow lead us to touch some dirty memory.
* src/mlview-xml-document.[ch]: emit the "replace-node" signal
before doing node replacement in the comment/uncomment workflow.
Still need to make mlview_xml_document_replace_node() undo/redo
powered otherwise, the comment/uncomment node breaks the undo
stack.
Fri oct 15 13:58:52 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-xml-document.[ch]:
make the mlview_xml_document_comment_node()
and mlview_xml_document_uncomment_node() methods
be undo/redo powered. This still need some testing.
* src/mlview-tree-editor.c: update this to reflect the
api change of mlview_xml_document_comment_node() and
mlview_xml_document_uncomment_node().
Tue oct 12 01:11:15 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-xml-document.[ch], src/mlview-tree-view.[ch]:
src/mlview-tree-editor.[ch], src/mlview-parsing.[ch]:
Started to add an uncommented feature. Already testable.
Still lack undo/redo though.
* synch with mlview--mainline--0.7 .
Sun oct 10 12:42:35 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* fr.po/fix some translation strings here.
* src/mlview-tree-editor.c:
(button_press_event_cb): when user right clicks, select the node
before displaying the contextual menu. This fixes
http://bugs.gnome.org/show_bug.cgi?id=154002 .
* po/fr.po: pulled fr translations from CVS
* po/fr.po: fix a merge breakage
Sat oct 9 14:17:25 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* po/[en_GB,fr.po]: pull updated translations from CVS.
Fri oct 8 14:47:04 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-tree-editor.c: make the search node window
behave correctly when the user hits enter/esc
* autogen.sh: enable/disable verbose now triggered by MLVIEW_DEVEL .
* src/mlview-view-adapter.c:
(build_name_edition_dialog): pass the correct params to
gtk_dialog_new_with_buttons() so that esc/enter correctly
activates/cancels the "set-view-name" dialog. This fixes
bug #154340
Thu oct 7 00:38:35 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-tree-editor.c: make the search node dialog react to
esc/enter correctly.
* src/mlview-xml-document.c:
(mlview_xml_document_set_node_name_without_xpath): added this method
to set node name without using xpath. You can't address dtd node using
xpath.
* src/mlview-tree-editor.c:
(mlview_tree_editor_edit_dtd_node): use
mlview_xml_document_set_node_name_without_xpath() to set dtd node
name. This fixes #154338 .
Tue oct 5 21:56:57 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-app-context.c:
(mlview_app_context_get_file_chooser): change this iface
to allow mode selection: "open" or "save" mode. This should
fix #154491 .
* src/mlview-editor.c: propagate the
mlview_app_context_get_file_chooser() api change.
* src/mlview-file-descriptor.c:
(mlview_file_descriptor_new): replace a g_return_val_if_fail()
by an if test. This kills a bunch of runtime warnings and
it fixes #154489
* src/mlview-parsing-utils.c, src/mlview-schema.c:
propagate the mlview_app_context_file_chooser() api change.
Sun oct 3 14:15:23 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-app.c: applied the patch
http://bugs.gnome.org/show_bug.cgi?id=154342 from Sebastion Bacher to
fix the credit dialog box text. This fixes bug
http://bugs.gnome.org/show_bug.cgi?id=154342 .
* src/mlview-tree-view.c: Remove a useless nulle entry from the
gv_edit_menu_actions table. This should fix
http://bugs.gnome.org/show_bug.cgi?id=154337 .
* src/mlview-kb-eng.c,src/mlview-tree-view.c: show debug messages only
when MLVIEW_VERBOSE is defined.
* autogen.sh: don't enable verbose debugging messages by default.
This entry should fix http://bugs.gnome.org/show_bug.cgi?id=154339 .
Sun oct 3 00:41:23 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* ============= MlView 0.7.0 =====================
sat oct 2 23:57:28 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-tree-editor.c,mlview-utils.c: gcc-2.95 compilation fixes.
* po/[de,ja,nl].po: pulled translations from CVS
Thu sep 30 15:11:19 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* po/[cs,en_CA,nl].po: pulled translations from CVS.
* configure.in: move the gettext init before the library checks.
It seems that helps to fix the i18n breakage.
* src/Makefile.am: cleanup the i18n releated defines
* src/mlview-app.c: explicitely trigger i18n in the gtkuimanager
* src/mlview-tree-view: explicitely trigger i18n in the gtkuimanager...
Wed sep 29 14:55:10 CEST 2004 Dodji Seketeli <dodji@mview.org>
* po/POTFILES.in, po/en_CA.po, po/fr.po:
Pulled translations from CVS to arch.
* src/mlview-app.c:
(set_tree_view_proportions_cb):
Added this function to set the proportion of the tree view at
the view realize time. We seriously need to rework the layout of
the tree view to let more place to the tree editor widget.
Mon sep 27 23:49:45 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-schema.c:
(mlview_schema_load_interactive): use the new filechooser.
This fixes http://bugs.gnome.org/show_bug.cgi?id=153856 .
2004-09-27 Philippe Mecha <pmechai@free.fr>
* ui/mlview-uri-dialog.glade:
Added some eye candy to the dialog :)
2004-09-27 Philippe Mecha <pmechai@free.fr>
* src/mlview-file-descriptor.c,src/mlview-file-descriptor.h:
Added a convenient method to get the file descriptor's uri as a
string. Password and port are hidden.
* src/mlview-editor.c:
Fixed a bunch of bugs (mostly side effects) caused by the uri-fication
of file names.
Mon sep 27 23:49:45 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* src/mlview-tree-view.c:
(mlview_tree_view_is_swapped_out): clear the
contextual menu of the current view when the view
is swapped out. Otherwise, it is added to the contextual
menu of the other views. Did the same thing when the view
is getting destroyed. This fixes bug
http://bugs.gnome.org/show_bug.cgi?id=153874.
* src/mlview-schema.c:
(mlview_schema_load_interactive): use the new filechooser.
This fixes http://bugs.gnome.org/show_bug.cgi?id=153856 .
Sun sep 26 16:43:47 CEST 2004 Dodji Seketeli <dodji@mlview.org>
* po/ en_GB.po: sync'ed with CVS HEAD
* src/mlview-editor.c:
(mlview_editor_remove_xml_document_view): when a view is removed
from the notebook, set the current view pointer to the new selected
view, otherwise, boom. This fixes
http://bugs.gnome.org/show_bug.cgi?id=153735 .
2004-09-26 Philippe Mechai <pmechai@free.fr>
* src/mlview-node-editor.c:
redesigned document node editor to be more HIG compliant.
gotta rework the others too.
Some bug fixes and code cleanup here and there.
2004-09-25 Philippe Mechai <pmechai@free.fr>
* src/mlview-file-descriptor.h, src/mlview-file-descriptor.c:
added mlview_file_descriptor_get_mime_type () which return the mime
type :/
* src/mlview-editor.c:
added eye candy to the notebook tab titles. added the icon associated
to the mime-type and a close button.
* menu-descriptions/main-toolbar.xml:
removed close button from the toolbar.
2004-09-23 Philippe Mechai <pmechai@free.fr>
* src/mlview-file-descriptor.h, src/mlview-file-descriptor.c:
replaced actual implementation with gnome-vfs calls.
little fixes here and there :)
* src/mlview-editor.c, src/mlview-file-descriptor.h:
fixed a bug with tab labels: changed mlview_file_descriptor_get_path
to return the complete uri for non local uris. changed mlview-editor
to crop the label when uri are too long.
2004-09-18 Philippe Mechai <pmechai@free.fr>
* Makefile.am, src/mlview-drop-manager.h, src/mlview-drop-manager.c:
added files for drop management. now widgets willing to support dnd
just have to call:
mlview_drop_manager_register_target (MlViewAppContext*,
GtkWidget*);
atm only a simple mime-type filter is implemented. in the future
widgets will have the ability to register their own handlers for drop
support.
* src/mlview-app.c:
removed drop support and added a call to new function.
* src/mlview-editor.c, src/mlview_parsing_utils.c:
cleaned gnome-vfs implementation.
little bug when looking whether the widget is already in the editor or
not.
2004-09-18 Dodji Seketeli <dodji@seketeli.org>
* AUTHORS, src/mlview-app.c:
added Philippe Mechai in to the credits list.
2004-09-17 Philippe Mechai <pmechai@free.fr>
* src/mlview-app.c: added basic drop support.
Still need to filter dropped uris.
2004-09-17 Philippe Mechai <pmechai@free.fr>
* menu-descriptions/main-menu-bar.xml,src/mlview-app.c:
Added an open location menu entry in the file menu.
* src/mlview-editor.c,src/mlview-parsing-utils.c,
src/mlview-tree-view.c,src/mlview-utils.c:
Initial port over to gnome-vfs.
2004-09-17 Dodji Seketeli <dodji@seketeli.org>
* configure.in: enable new gtk file chooser by default.
This is a patch from John Spray.
2004-09-16 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-parsing-utils.c:
(mlview_parsing_utils_ask_for_DTD_change_and_validation):
Smallish indentation and coding style fixes.
* src/mlview-utils.c:
(mlview_utils_uri_is_relative):
fix this to correctly detect relative URIs.
2004-09-15 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-editor.c:
(mlview_editor_create_new_xml_document):
Parse what is typed to be the root element name. Don't assume
it's correct input.
* src/mlview-tree-editor.c:
(handle_nt_picker_ok_button_clicked_to_add_child):
(handle_nt_picker_ok_button_clicked_to_insert_sibling_node):
Parsed what is typed to be the element name. Don't assume it's
correct input.
This entry should fix http://bugs.gnome.org/show_bug.cgi?id=152629 .
2004-09-14 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-cell-renderer.c:
(get_layout): start playing with line wrapping.
For the sake of testing, set the line wrapp length to around 80 char
max. This should enhance legibility. I still need to make this
a parameter to pass to the MlViewCellRenderer.
2004-09-12 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-utils.c:
(mlview_utils_escape_underscore_for_gtk_widgets):
Wrote this to escape names with underscore so that they appear
correctly in menus and gtktreeview titles.
* src/mlview-tree-editor.c:
Use the the previous function to escape file names with underscores
in the GtkTreeView column title. This fixes http://bugs.gnome.org/show_bug.cgi?id=150384 .
* src/mlview-utils.c:
(mlview_utils_uri_is_relative):
Applied patch http://bugs.gnome.org/attachment.cgi?id=31487&action=view
from lepejac@telenet.be to fix bug http://bugs.gnome.org/show_bug.cgi?id=150290 .
I have modified the patch to make it compile with c89 compilers and make
it comply with our coding rules.
2004-09-11 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-tree-editor.c:
(mlview_tree_editor_cut_node3): prevent the user from cutting
XML root node and document root nodes. This makes no sense
and lets the editor in an unstable state. This should fix
http://bugs.gnome.org/show_bug.cgi?id=152232 .
* src/mlview-node-editor.c: detect when a characters
are deleted from the text node view and start an editing transaction then.
Also, make sure mlview_node_editor_edit_xml_node() is not executed when
editing transactions are not commited. This prevents reentrancy related
undo bugs.
This entry fixes http://bugs.gnome.org/show_bug.cgi?id=150206 .
* src/mlview-icon-tree.c:
(node_cell_edited_cb):
Make sure to parse node name before setting it. Garbage can get in
otherwise.
* src/mlview-tree-editor.c:
(node_cell_edited_cb):
After a new name is set, update node_path before calling
mlview_xml_document_synch_attributes(). This fixes
http://bugs.gnome.org/show_bug.cgi?id=150184 .
* src/mlview-tree-view.c:
(document_ext_subset_changed_cb):
when a dtd is associated to a document,
don't only show the completion table widget, also update it according
to the currently selected node !
This fixes http://bugs.gnome.org/show_bug.cgi?id=150175.
2004-09-10 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-editor.c: applied patch
http://bugs.gnome.org/attachment.cgi?id=31429&action=view,
from Thierry Moisan to fix bug
http://bugs.gnome.org/show_bug.cgi?id=148335.
2004-09-09 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-parsing-utils.[ch], src/mlview-xml-document.c:
already found a bug in the fragment
(de)serialisation and clipboard management
code.
2004-09-08 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-xml-document.c: modified the node clipboard management.
Now, copying a node to clipboard means serializing the node
and storing that serialize fragment in the clipboard.
Copying nodes from the clipboard means parsing the last
stored fragment. This will maybe be hosed when entities comes
into play ... well, let's jump into it and see what comes out
of the game.
* src/mlview-tree-editor.c: made the changes to reflect the
clipboard management change.
2004-09-06 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-editor.c: some cleanups
* src/mlview-node-editor.c,src/mlview-schemas-window.c,
src/mlview-validator.c, src/mlview-validator-window.c,
src/mlview-schema.c,src/mlview-schema-list.c:
Made a cleanup. Remove public members from MlViewSchema. That's
good for coming abi compatibility burden.
Propage the changes where it's needed.
* src/mlview-xml-document.c: let the document
know about the schema association.
2004-09-05 Dodji Seketeli <dodji@seketeli.org>
* menu-descriptions/main-menu-bar.xml: added some separators in the
edit menu.
* src/mlview-app-context.[ch]: some cleanup
* src/mlview-app.c: plug the "plugable edit menu" machinery.
* src/mlview-editor.[ch],src/mlview-iview.[ch],src/mlview-tree-view.[ch]:
Add the ability for views to edit the "edit menu" and thus "export"
the editing action they are aware of. Woaaaa, that's ubercool.
I still need to document that.
* po/ChangeLog, po/enCA.po, po/pt_BR.po:
sync'ed this translations from CVS HEAD to mlview--mainline--0.7
2004-09-04 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-tree-editor.[ch],src/mlview-tree-view.[ch]:
add support for next sibling element node insertion via the
contextual popup menu.
* src/mlview-tree-editor.[ch],src/mlview-tree-view.[ch]:
add support for prev sibling element node insertion via the
contextual popup menu.
2004-09-03 Dodji Seketeli <dodji@seketeli.org>
* configure.in, src/mlview-app-context.[ch]:
remove dependancy on libgnomeui.
* src/mlview-tree-editor.[ch]:
(mlview_tree_editor_add_child_element_node):
(mlview_tree_editor_add_child_text_node):
added these methods
to support the new contextual menu design reorganization.
* src/mlview-tree-view.c:
Build element insertion completion submenu in the contextual menu.
Make child element nodes actually possible. Still have to do the same
for sibling elements.
2004-09-01 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-tree-view.c:
(build_edit_menu_body):
Forgoted to add the "copy node" menuitem in the contextual menu.
(update_completion_popup_submenu2):
Went forward in filling the completion menuitems of the
"add child node" submenu. I still have to make this really work.
Once that's done, I'll do the same for "insert next child" and
"insert prev child" submenus.
2004-08-31 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-app.c:
removed the stock icon from the help menu
* src/mlview-tree-view.c:
Went forward in the contextual menu management.
The element name completion ain't there yet, but the basics
of the contextual menu is there. Still a lot to do there.
Basically stated to write update_completion_popup_submenu2()
that should replace update_completion_popup_submenu() soon.
2004-08-27 Dodji Seketeli <dodji@seketeli.org>
* configure.in: bumped dependencies required versions to libxml2 2.6.11,
libxslt 1.1.8, gtk+ 2.4.3, gconf 2.6.2, libglade 2.4.0
eel 2.6.2 and glib 2.4.6.
2004-08-26 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-tree-view.c:
(activate_or_deactivate_proper_menu_items2): added this
new helper function to set the sensitivity of the contextual menu
items depending of the context. This is totally GtkUIManager based.
* src/mlview-xml-document.c:
(mlview_xml_document_get_root_element):
added this new public method.
* src/mlview-app.c:
Update about string. Patch from Baptiste Mille-Mathias.
* src/mlview-tree-view.c:
(mlview_tree_view_get_ui_manager):
make this method public to access the uimanager associated
to MlViewTreeView
(mlview_tree_view_get_contextual_menu):
port this over uimanager.
2004-08-25 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-tree-editor.c:
(handle_nt_picker_ok_button_clicked_to_add_child):
(handle_nt_picker_ok_button_clicked_to_insert_sibling_node):
more xpath related bug fixes. Now we should be able to
Insert new nodes in the document using the contextual menu.
2004-08-24 Dodji Seketeli <dodji@seketeli.org>
* src/mlview-tree-editor.c:
(handle_nt_picker_ok_button_clicked_to_add_child)
Started to fix a bug that occurs when we add new nodes
to the tree. (This is related to node addressing via xpath)
Basically, make sure a node has a name before adding it to
to the tree.
2004-08-23 Dodji Seketeli <dodji@gnome.org>
* menu-descriptions/main-menu-bar.xml: numerous fixes in here.
* src/mlview-app-context.c:
(mlview_app_context_get_ui_manager): added this method
to access the app wide uimanager.
* mlview-tree-view.c:
went forward in porting the contextual menu plumbing over
gtkuimanager. Start to display something even if the menuitself
doesn't work yet.
2004-08-20 Dodji Seketeli <dodji@gnome.org>
* short-term-todo.xml: updated this.
* src/mlview-app.c: Wired the menubar/toolbar accelerators plumbing.
* src/mlview-editor.c:
(mlview_editor_remove_xml_document_view):
g_object_ref() the view before removing it.
This way, signaling happens before the view is removed.
g_object_unref() the view after signaling.
This prevent some weird memory management bugs.
* src/mlview-app-context.c:
(mlview_app_context_notify_document_undo_state_changed):
One must be able to call this method with a NULL document argument.
* src/mlview-app.c: Updated about dialog.
Code the actions sensitivity management.
We are now at the same level of functionality as what we had
before this port over GtkUIManager, woohoo !
2004-08-19 Dodji Seketeli <dodji@gnome.org>
* menu-descriptions/main-toolbar.xml: share the same actions
with the main menubar.
* src/mlview-app.c: Put the structure of actions place.
Wire the action callbacks to bring life to the editor again;
* ui/mlview-main-app-win2.glade: edit this file with MlView to
fix MlView's interface. Eating own dog food is good.
2004-08-18 Dodji Seketeli <dodji@gnome.org>
* ui/mlview-main-app-win2.glade,menu-descriptions/main-menu-bar.xml,
src/mlview-app.[ch], src/mlview-utils.c:
go forward in the gtkuimanager based menu machinery.
2004-08-16 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app.c: went a bit forward in defining the menu structure.
* menu-descriptions/main-toolbar.xml: added this new toobar
description file.
2004-08-15 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c:
(mlview_xml_document_remove_redundant_ns_def_from_node) :
fix a crasher in here.
* src/mlview-ns-editor.c:
(mlview_ns_editor_enable_node_alteration):
added this api to enable/disable node alteration.
When we just update the ns editor, make sure we can't
alter the node.
* src/mlview-xml-document.c:
(mlview_xml_document_add_child_node_real):
(mlview_xml_document_insert_prev_sibling_node_real):
(mlview_xml_document_insert_next_sibling_node_real):
Whenever a new node is added to the document, make sure
to remove possible duplicated default namespaces,
reconciliate namespaces and update default namespace when it is
needed. This fixes a long time anoying and hard to
reproduce/describe bug that was happening when a default
namespaced document was edited.
2004-08-14 Dodji Seketeli <dodji@gnome.org>
* src/mlview-attrs-editor.c,src/mlview-completion-table.c,
src/mlview-icon-tree.c, src/mlview-node-editor.c,
src/mlview-tree-editor.c: Don't use xmlGetNodePath(),
use mlview_xml_document_get_node_path() instead.
* src/mlview-utils.[ch]: remove mlview_utils_get_node_from_xpath().
* src/mlview-xml-document.[ch]:
(mlview_xml_document_get_node_xpath): add this method
to calculate node path without forgetting about possible
default namespaces.
2004-08-10 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app-context.c: properly shield the use of
GtkFileChooser in the MLVIEW_WITH_GTK_FILE_CHOOSER define.
This allow the code to build with gnome 2.4.
2004-08-09 Dodji Seketeli <dodji@gnome.org>
* src/mlview-attrs-editor.c,src/mlview-completion-table.c,
src/mlview-tree-editor.c:
Propagate the API change of mlview_xml_document_set_attribute()
and mlview_xml_document_synch_attributes()
* src/mlview-tree-editor.c:
(mlview_xml_document_set_attribute)
* src/mlview-xml-document.c:
add the undo here.
2004-08-04 Dodji Seketeli <dodji@gnome.org>
* src/mlview-icon-tree.c,src/mlview-node-editor.c,
src/mlview-tree-editor.c:
propagate the
mlview_xml_document_set_node_content() API change.
* src/mlview-xml-document.c: added undo to the
"set-node-content" mutation.
* src/mlview-app.c,src/mlview-editor.c: re-wire the redo.
* src/mlview-completion-table.c,src/mlview-icon-tree.c,
src/mlview-node-editor.c,src/mlview-tree-editor.c:
propagated the API changes to address document nodes
using xpath expressions.
* src/mlview-doc-mutation-stack.c:
(mlview_doc_mutation_stack_clear):
fix this to properly decrement the mutations_len priv field.
* src/mlview-xml-document.c: properly handle the redo, woot !
Fix numerous bugs to make the undo/redo work properly.
A lots of memleaks are still to be killed though.
Started to modify basically all the mutation APIs to address
document nodes via xpath expressions.
2004-08-03 Dodji Seketeli <dodji@gnome.org>
* src/mlview-icon-tree.c,src/mlview-node-editor.c,
src/mlview-tree-editor.c:
propagated the api change of mlview_xml_document_set_node_name().
* src/mlview-xml-document.c: code the undo of the "set-node-name"
mutation.
2004-08-02 Dodji Seketeli <dodji@gnome.org>
* src/mlview-completion-table.c,src/mlview-tree-editor.c:
propagageted the API change of
the MlViewXMLDocument::insert_next_sibling_node() method.
* src/mlview-xml-document.c: added undo support for the
"insert-next-sibling" mutation.
* src/mlview-completion-table.c: propagated the API change of the
MlViewXMLDocument::insert_prev_sibling_node() method.
* src/mlview-doc-mutation.c:
(mlview_doc_mutation_new): don't ref the MlViewDocMutation at
instanciation time.
* src/mlview-tree-editor.c:
propagated the the API change of hte
MlViewXMLDocument::insert_prev_sibling_node() method.
* mlview-xml-document.c: code the undo for the
MlViewXMLDocument::insert_prev_sibling_node()
2004-08-01 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c: propagated the API change of
mlview_xml_document_cut_node().
* mlview-xml-document.c: added undo support to the "cut-node"
mutation.
* docs/user-docs/keybindings.html: added this file to
the source tree.
2004-07-29 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app-context.c: added an "document-undo-state-changed"
signal to get notified when a document goes from the "can-undo"
state to the "cant-undo" state, or vice versa.
Client code can send this notification by invoking
mlview_app_context_notify_document_undo_state_changed().
* src/mlview-app.c: added undo and redo buttons to the toolbar.
connect the necessary signal plumbering.
* src/mlview-completion-table.c: propagate
the mlview_xml_document_add_child_node() api change.
* src/mlview-doc-mutation-stack.c:
added ref/unref calls to the stacked instances of MlViewDocMutation
(mlview_doc_mutation_stack_clear): added this method to clear
a mutation stack.
* src/mlview-doc-mutation.c:
(mlview_doc_mutation_get_doc): added this method to access
the document associated to the mutation.
(mlview_doc_mutation_destroy):
(mlview_doc_mutation_ref):
(mlview_doc_mutation_unref):newly added method for memory
management.
* src/mlview-editor.c: added an undo/redo methods.
They actually call the mlview_xml_document_undo_mutation() and
mlview_xml_document_redo_mutation() methods
on the currently selected document.
Also added a bunch of undo management methods.
* src/mlview-tree-editor.c:
propagated the api change of
mlview_xml_document_add_child_node().
* src/mlview-utils.[ch]:
(mlview_utils_get_node_from_xpath): gets the node that matches
an xpath expression.
* src/mlview-xml-document.c:
(mlview_xml_document_add_child_node_real):
added this method to really do the "add-child-node" "mutation".
This does not handle any kind of undo stuff.
(mlview_xml_document_do_mutation_add_child_node): the
"do_mutation" handler of the "add-child-node" mutation.
(mlview_xml_document_undo_mutation_add_child_node): the
"undo_mutation" handler of the the "add-child-node" mutation.
(mlview_xml_document_record_mutation_for_undo): records a given
mutation for later undo. I.E pushes the mutation on the undo stack
and clears the redo stack. Also notifies the world about the
change in the undo state.
(mlview_xml_document_record_mutation_for_redo): records a given
mutation undo for later redo. I.E pops the mutation from the
undo stack and pushes is on the redo stack. Notifies the world
about the change in undo state.
(mlview_xml_document_add_child_node):
Change the content of this method to make it use the mutation
plumbering and make it support undo.
(mlview_xml_document_can_undo_mutation): tests if the undo
stack is empty, i.e, if an undo action is possible.
(mlview_xml_document_can_redo_mutation): tests if the redo stack
is empty, i.e, if an redo action is possible.
(mlview_xml_document_undo_mutation): undo the topmost mutation
pushed on the undo stack. I.E, calls the undo handler of the mutation
topmost mutation object pushed on the undo stack.
Pushes that mutation object on the redo stack. Pop the undo stack.
* ui/mlview-main-app-win.glade: add undo/redo buttons in the
app toolbar.
2004-07-27 Dodji Seketeli <dodji@gnome.org>
* src/mlview-doc-mutation-stack.[ch],
src/mlview-doc-mutation.[ch]: added these new files
as part of the work on the new undo/redo functionality.
* src/mlview-utils.h: added some new members to the MlViewStatus enum.
* src/mlview-xml-document.c: added an undo and redo stack to the
private members of MlViewXMLDocument.
I have finally started to work on undo/redo. Woot.
2004-07-25 Dodji Seketeli <dodji@gnome.org>
* docs/user-docs/keybindings.xml: fixed a couple of typos here.
* short-term-todo.xml: updated this
* src/mlview-editor.c: corrects some comments
* src/mlview-tree-editor.c: when the document is modified,
append a "(modified)" string to the first column
of the tree editing widget when the document is modified.
When the document is saved, append a " saved" string instead.
* src/mlview-xml-document.c: don't emit the "document-changed"
signal when a node is commented and when a node
or when a node is replaced.
* src/mlview-tree-editor.c: fixed a selection bug in the
(mlview_tree_editor_select_next_sibling_node2):
(mlview_tree_editor_select_prev_sibling_node2):
(mlview_tree_editor_select_parent_node2):
Fixed a selection bug in here.
* docs/user-docs/keybindings.xml: updated keybindings doc.
2004-07-24 Dodji Seketeli <dodji@gnome.org>
* docs/user-docs/keybindings.xml: started to write this
documenation about keybindings.
* long-term-todo.xml,short-term-todo.xml: updated these
* src/mlview-tree-editor.[ch]: added
"ctrl-down"/select-next-sibling, "ctrl-up"/select-prev-sibling,
"esc-up"/select-parent-node.
Added a bunch of new methods to select next/prev sibling nodes
and parent node.
* src/mlview-tree-view.c: added select next/prev sibling node
and parent node to the contextual menu.
2004-07-23 Dodji Seketeli <dodji@gnome.org>
* docs/mlview-internals/src/mlview-internals2.xml:
Went forward with the documentation.
* src/mlview-app-context.[ch]: added the "document-name-changed"
signal.
(mlview_app_context_notify_document_name_changed):
Added this method to notify listeners that the document name has
changed. This basically emits the "document-name-changed" signal.
* src/mlview-app.[ch]: listen to the "document-name-changed" and
"view-swapped" signal and change the title of the main window
to reflect the name of the document being edited. This is
kind of required by the HIG.
(mlview_app_set_main_window_title): added this public method
to change the name
of the main app window.
* mlview-tree-editor.c: make the application context notify
listeners about the change of the file path of xml documents.
2004-07-22 Dodji Seketeli <dodji@gnome.org>
* docs/mlview-internals/src/mlview-internals2.xml: went forward in
this documentation a bit. This is a nice test for MlView actually.
* src/mlview-app-context.[ch]:
(mlview_app_context_get_file_chooser): added this method to get
a cached version of the file chooser. MlView components should use
this method to get a file selector. They should not instanciate their
own file chooser.
* src/mlview-app.c:
(init_app_win): allow the app window to shrink.
* src/mlview-editor.c,src/mlview-parsing-utils.c,
src/mlview-xslt-utils.c:
grab the file chooser from the MlViewAppContext
instance instead of instanciating a new one all the time.
* src/mlview-node-editor.c: added the 'esc !' keybinding to
commit the current editing transaction. No more need to go click
in another node of the tree editor to commit the content of
the current node content being edited.
* src/mlview-editor.c:
(mlview_editor_select_view_to_open): initialize some variables.
(mlview_editor_create_new_xml_document): add a verbose message for
when a bad view type name gconf key has been specified.
2004-07-21 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c,src/mlview-xml-document.c:
fixed two strings typos. This should fix bugs
http://bugs.gnome.org/show_bug.cgi?id=147820 and
http://bugs.gnome.org/show_bug.cgi?id=148015 .
* po/*.po updated po files from cvs.
* src/mlview-editor.c,src/mlview-parsing-utils.c,
src/mlview-xslt-utils.c: really enable switch on/off of
the new file selector. Just in case ...
* src/mlview-app.c:
* src/mlview-file-selection.c:
fixed typos.
* src/mlview-tree-editor.c:
(get_search_dialog): Build a new "search node" dialog based on
a GtkWindow, not a GtkDialog. This way, the MlView application
can still receive events when the user is doing a search.
This should fix bug #145383.
* ui/mlview-search-node.glade: added this new search dialog glade file.
This one has strictly the same aspect as the previous one.
But it is based on a plain bare GtkWindow instead of a GtkDialog.
2004-07-19 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c,src/mlview-parsing-utils.c,src/mlview-xstl-utils.c:
Applied the patch #27495 from Benjamin Dauvergne. This patch
Adds the support of the new gtk file chooser.
* autogen.sh,configure.in: trigger the usage of the new gtk file
chooser with --enable-gtk-file-chooser=yes|no .
2004-07-18 Dodji Seketeli <dodji@gnome.org>
* src/mlview-parsing-utils.c:
(mlview_parsing_utils_serialize_node_to_buf): use
g_strdup() here, instead of xmlStrndup() which was causing
weird memory errors.
2004-07-17 Nicolas Centa <nicolas.centa@free.fr>
* src/mlview-schema.[ch]:
* src/mlview-schema-list.[ch]:
* src/mlview-validator.[ch]:
* src/mlview-validation-output.[ch]:
* src/mlview-schemas-window.[ch]:
* src/mlview-validator-window.[ch]:
The new validation system, designed to support XSD
and Relax-NG schemas, basically works. I will try
to write some documentation about it.
Currently it should work well with DTDs and is not
very well tested with schemas.
2004-07-15 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c:
(mlview_editor_open_local_xml_document_interactive):
When the user tries to open a document that is already open,
ask her whether she want to reload it or not.
(build_reload_file_confirmation_dialog): add this new
confirmation dialog.
This fixes bug #144983.
2004-07-14 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c:
* src/mlview-parsing-utils.c:
* src/mlview-utils.c:
Applied the patch
nicolas.centa@free.fr--mlview-hacks/mlview--happypeng-fixes--0.6--patch-3
from Nicolas Centa to fix bug 144981 (Problem in relative to
absolute file path conversions)
* src/mlview-tree-editor.c:
(mlview_tree_editor_select_node):
Fixed the really annoying bug that was happening
when the user hit the 'del' key and triggers the
'delete-node' keybinding.
(mlview_tree_editor_update_node_cut):
Select the prev node or the parent node after deletion of a
given node.
2004-07-11 Dodji Seketeli <dodji@gnome.org>
* src/mlview-parsing-utils.[ch]:
(mlview_parsing_utils_serialize_node_to_buf)
(mlview_parsing_utils_do_comment_node)
(mlview_parsing_utils_parse_fragment):
added these helpers to support the "comment-node" feature.
* src/mlview-tree-editor.c:
added the following keybdings: (y) -> "copy node",
(pc) -> "paste node as child", (pn) -> "paste node as next
sibling", (pp) -> "paste node as previous sibling",
([esc],c) -> "comment current node".
Oh, and also added the "comment-current-node" feature.
* src/mlview-tree-view.c:
(comment_node_menuitem_activated_cb)
(mlview_tree_view_build_contextual_menu)
(mlview_tree_view_execute_action)
(activate_or_deactivate_proper_menu_items):
Propagated the modifications needed to Add the the
"comment current node" feature.
It seems that these modifcations corrupt the heap or something.
We now need some valgrind love.
* src/mlview-xml-document.[ch]:
(mlview_xml_document_replace_node)
(mlview_xml_document_comment_node):
Added these methods to support the "comment node" feature.
* src/mlview-tree-editor.c: make sure that a selected node is
always made visible.
* src/mlview-tree-editor.c:
(mlview_tree_editor_cut_cur_node): select the node in an
idle time to avoid possible reentrancy problems.
* configure.in: enable the usage of MlViewCellRenderer/MlViewEntry
by default.
* src/mlview-cell-renderer.c:
(custom_selection_bounds): call MlViewEntry methods only on
MlViewEntry instances.
* src/mlview-kb-eng.[ch]: make the keybinding engine class
even more complete and usable by libmlview widgets.
* src/mlview-node-editor.[ch]: make this use the brand new
keybinding engine and define a "esc-o" binding to select
the tree editing widget and continue the editing of the tree.
This only works when the current node being edited is a text node.
Did some cleanups too.
* src/mlview-tree-editor.[ch] : defined a 'o' keybinding that
selects the node editing widget.
Also defined a 'f' keybinding that folds/unfolds the current
selected node.
Ripped off the keybindings management code an put into the
MlViewKBEng class.
* src/mlview-tree-view.c:
Put here the code that controls the 'o'/'esc-o' keybinding.
Jeez, this is a quit heavy ChangeLog entry.
2004-07-09 Dodji Seketeli <dodji@gnome.org>
* src/Makefile.am: added mlview-kb-eng.c to the distro.
* src/mlview-tree-editor.c: switched to the new keybinding handling
engine MlViewKBEng. This lead to an overall better keybinding
handling.
* mlview-kb-eng.[ch]: added this new keybinding handling engine.
2004-07-07 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c: lots of cleanup.
* src/mlview-tree-editor.c: more work on the completion &
keybindings stuffs.
* src/mlview-cell-renderer.[ch]:
Better handling of editable content selection. Still need to
handle some few cases.
* src/mlview-entry.c: fix several crashers here, and make this work.
* src/mlview-tree-editor.c: really popup the completion list
(still need the libxml patch). Better handling of the editing
mode in of the gtktreecells ... This takes doing some stuffs during
idle time.
2004-07-07 Nicolas Centa <nicolas.centa@free.fr>
* src/mlview-parsing-utils.[ch]:
I replaced mlview_parsing_utils_load_xml_file with two
functions : mlview_parsing_utils_load_xml_file_with_dtd and
mlview_parsing_utils_load_xml_file_with_dtd_interactive. See
API documentation.
* src/mlview-xml-document.[ch]:
I replaced mlview_xml_document_open with two functions :
mlview_xml_document_open_with_dtd and
mlview_parsing_utils_open_with_dtd_interactive. See API
documentation.
* src/mlview-editor.c:
(mlview_editor_load_xml_file_with_dtd): I adapted this
function to this new MlViewXMLDocument API for opening
documents.
2004-07-03 Dodji Seketeli <dodji@gnome.org>
* autogen.sh,configure.in: enable the libxml experimental completion code.
This needs a special patch to libxml2.
* src/mlview-completion-table.c: modified this quite heavily to
work around a reentrency bug in GtkTreeView widget.
Also, when adding node, make sure not the compute the required
subtrees (when we use the experimental completion patch of libxml)
* src/mlview-parsing-utils.c:
(mlview_parsing_utils_build_element_name_completion_list):
Make this support the experimental completion patch of libxml2;
This is of course #ifdef protected.
* src/mlview-styled-view.c: make this compile with the last
libcroco/sewfox combo.
* mlview-tree-editor.c: when using the experimental completion
patch, do not compute the required subtree.
* src/mlview-utils.c:
(mlview_utils_get_last_child_element_node): added this helper
function to get the last child element node of a given node.
* tests/testcompl.c: make this work when we use the experimental
completion patch. This is #ifdef protected.
2004-07-02 Nicolas Centa <nicolas.centa@free.fr>
* src/mlview-editor.c, src/mlview-utils.c, src/mlview-parsing-utils.c:
mlview always uses absolute paths for XML documents and DTDs, and
the relative/absolute URI conversion functions seem to work.
This should fix http://bugzilla.gnome.org/show_bug.cgi?id=144981 .
2004-06-20 Dodji Seketeli <dodji@gnome.org>
* tests/testcompl.c:more work on this. Actually make it work basically.
* tests/testcompl.c: added this skeleton of completion test
facility
* configure.in, Makefile.am, tests/Makefile.am: added the tests/testcompl.c
2004-06-14 Dodji Seketeli <dodji@gnome.org>
* src/mlvliew-utils.[ch]:
(xmlElectElementNamesFromElementContent):
(xmlGetValidElementChildrenIfNoChildren):
Started these helpers to
compute the completionlist
(xmlGetValidElementsChildren2):
Started to work on this api to get children elements completion list.
A lot of work is still needed, but at least, I have started.
2004-06-06 Dodji Seketeli <dodji@gnome.org>
* src/mlview-entry.c:
(mlview_entry_class_init):
cleaned this up. Don't connect to "key-press-event-cb" only.
All the other signals are pretty useless.
(build_new_completion_menu):
Make sure there is a default completion string stored at
completion menu build time.
(select_next_or_prev_menu_item):
If no menu entry is selected, select the first one by default.
(mlview_entry_set_current_word_to_current_completion_string):
debug this and make it work somehow.
* src/mlview-cell-renderer.c:
cleanup, move get_current_word_bounds() into
mlview-utils.c and make it a public helper.
* src/mlview-entry.c:
(build_new_completion_menu):
Manage the menu so that we can get the value of the selected
menu entry. (the completion string)
(mlview_entry_set_current_word_to_current_completion_string):
started to work on this public method that should replace the
current word with the selected completion string.
* src/mlview-utils.c:
(mlview_utils_get_current_word_bounds):
moved get_current_word_bounds() from mlview-cell-render.c to here.
2004-06-05 Dodji Seketeli <dodji@gnome.org>
* src/mlview-entry.[ch]:
(select_next_or_prev_menu_item)
(mlview_entry_construct)
(key_press_event_cb):
Added this new helpers.
(mlview_entry_hide_word_completion_menu)
(mlview_entry_is_popup_win_visible)
(mlview_entry_select_next_popup_menu_item)
(mlview_entry_select_prev_popup_menu_item):
Added these public methods.
Here goes to summary: More work on the completion popup
window management.
Now, the completion menu can be popup'ed, hiden, and the up/down
arrows can be used. Nothing usefull is down yet, but things
are going forward.
2004-06-04 Dodji Seketeli <dodji@gnome.org>
* src/mlview-entry.c:
(set_completion_menu_content),
(get_completion_menu):
Added these two new help functions to implement a singleton
pattern on the completion menu. This is just the very beginning
and does nothing useful yet.
2004-06-03 Dodji Seketeli <dodji@gnome.org>
* src/mlview-entry.c:
(compute_completion_list_popup_menu_position):
A bit of cleanup and make this work somehow.
(build_completion_menu):
Went forward here, and make this properly build the menu.
(mlview_entry_popup_word_completion_menu):
Make this popup a dummy word completion menu just to see
What it looks like. This method will require some signature changes
in a very near feature, obviously.
* src/mlview-tree-editor.c:
(word_changed_cb): plug in here the use of the new
mlview_entry_popup_word_completion_menu() and do some cleanups.
All in all we can now see how the completion feature will
look like at the end. Woot. Stay tuned.
2004-06-02 Dodji Seketeli <dodji@gnome.org>
* src/mlview-entry.c:
(build_completion_menu): started this to build the
menu treeview.
(mlview_entry_popup_word_completion_menu): went forward here.
Doesn't do anything yet. But it will soon.
2004-05-31 Dodji Seketeli <dodji@gnome.org>
* autogen.sh: launch configure with
--enable-custom-cell-renderer=yes by default.
* src/Makefile.am: added mlview-entry.[ch] to the project.
* src/mlview-cell-renderer.c:
(mlview_cell_renderer_class_init): fix a crash in the
"word-changed" signal creation code.
Added more parameters to the "word-changed" signal.
(mlview_cell_renderer_text_start_editing):
Use the newly added MlViewEntry instread of the custom GtkEntry.
* src/mlview-tree-editor.c:
more code sketch to popup a completion menu
* src/mlview-entry.[ch]:
This new widget (that inherits GtkEntry) is there to provide
advanced "word completion while typing" feature.
Almost nothing is done yet. But the work is underway.
* po/POTFILES.in: added src/mlview-cell-renderer.c,
src/mlview-entr.c, src/mlview-validation-output.c and
ui/mlview-validation-report.glade .
* src/mlview-app-context.c:
(mlview_app_content_get_type): make this return GType, not guint.
* src/mlview-editor.c:
(mlview_editor_get_type): make this return GType, not guint.
2004-05-25 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c: put #define MLVIEW_WITH_CUSTOM_CELL_RENDERER
where needed so that this file can compile when the macro is not
defined.
* src/mlview-tree-editor.c: connect to the "word-changed" signal
to debug it.
* src/mlview-cell-renderer.c: make this emit a "word-changed"
signal when a word is changed.
* src/mlview-cell-renderer.c:
(get_current_word_bounds): added this new help function
to get the bounds of the word being edited.
(mlview_cell_renderer_insert_text_cb):
Connect this callback to the "insert-text" signal
of the gtkentry used by the cell renderer for editing.
Start to put the analysing code in place.
2004-05-23 Nicolas Centa <nicolas.centa@free.fr>
* src/mlview-editor.c
mlview doesn't ask you if you want to save or close without
saving the document when there are still views on this document.
This should fix http://bugzilla.gnome.org/show_bug.cgi?id=142861 .
* src/mlview-tree-view.c
Cleanly disconnects from MlViewXMLDocument when the view is destroyed
but the document is still alive.
This should fix http://bugzilla.gnome.org/show_bug.cgi?id=142980 .
2004-05-20 Dodji Seketeli <dodji@gnome.org>
* config.h.in,configure.in: enable/disable the use of
MlViewCellRenderer via --enable-custom-cell-renderer=yes|no.
* src/mlview-cell-renderer.[ch]:
make this work like a GtkCellRendererText. From now on I can
Start hacking it to add the completion features I want.
* src/mlview-icon-tree.c, src/mlview-tree-editor.c:
Make these tree editing widget use MlViewCellRenderer if
--enable-custom-cell-renderer=yes at configure time.
* src/mlview-marshal.list:
added a "VOID:STRING,STRING" marshaler.
2004-05-19 Dodji Seketeli <dodji@gnome.org>
* src/Makefile.am,src/mlview-cell-renderer.[ch]:
Stated to code a custom cell renderer.
2004-05-18 Dodji Seketeli <dodji@gnome.org>
* po/POTFILES.in: renamed mlview-tree-editor2.c into
mlview-tree-editor.c
2004-05-17 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c:
(xmlNodeIsChildOf): fixed a stupid I've made here.
* src/mlview-xml-document.c:
(mlview_xml_document_open_with_dtd): don't popup
the validation window when no DTD is associated to the document.
This entry is a patch from Nicolas Centa.
2004-05-16 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app-context.c,src/Makefile.am,
src/mlview-validation-context.[ch]
src/mlview-validation-output.[ch]
src/mlview-validation-report.[ch]
src/mlview-app-context.c
src/mlview-app-context.h
src/mlview-editor.c
src/mlview-editor.h
src/mlview-marshal.c
src/mlview-marshal.h
src/mlview-marshal.list
src/mlview-utils.c
src/mlview-utils.h
src/mlview-xml-document.c
src/mlview-xml-document.h:
Applied patch
nicolas.centa@free.fr--mlview-hacks/mlview--happypeng--0.7--patch-4
From Nicolas Centa. This adds new pretty validation error reporting stuffs.
2004-05-16 Dodji Seketeli <dodji@gnome.org>
* short-term-todo.xml: updated this.
* src/mlview-tree-editor.c:
Coded a "delete-node" keybinding. It's binded on the 'delete' key
for the moment.
(mlview_tree_editor_cut_node3):
(mlview_tree_editor_cut_cur_node):
These two functions were added to support the 'delete' node
keybinding.
* src/mlview-tree-view.c:
applied a patch from Adrian Bunk <bunk@fs.tum.de> to fix
a compilation error when using gcc-2.95
2004-05-15 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c:
defined 4 keybings :'<' (insert-next-sibling-element),
'>' (insert-prev-sibling-element), 'c' (insert-child-element)
't' (insert-child-text-node).
This helped in debugging the keybinding architecture.
* autogen.sh: enable the MLVIEW_VERBOSE macro by default in
developement mode.
* configure.in: bumped version number to 0.7.0 (development
version) and version info to 6:0:0 . Added some friendly message
at the end of the configure.
* src/mlview-tree-editor.c:
Started to write down the infrastructure to parse input key
sequence and match them with predefined keybindings.
(key_press_event_cb):
(analyse_key_press_and_call_editing_action):
(lookup_a_key_binding):
This are the helper function that will do the basic keybinding
management job.
(widget_realized_cb): in here, connect our keybing management
plumbing to the "key-press-event".
* src/mlview-utils.h:
added some more values to 'enum MlViewStatus'.
2004-05-11 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c:
(display_message_dialog)
fix a stupid compilation error that shows up
on some architectures like alpha.
2004-05-10 Dodji Seketeli <dodji@gnome.org>
* src/Makefile.am,src/mlview-icon-tree.[ch],
src/mlview-styled-view.[ch],src/mlview-tree-view.[ch],
src/mlview-xslt-utils.h:
renamed the MlViewTreeEditor2 class into MlViewTreeEditor .
2004-05-09 Dodji Seketeli <dodji@gnome.org>
* ====================== 0.6.3 release ====================
2004-05-09 Dodji Seketeli <dodji@gnome.org>
* configure.in: make mlview depend on libxml2 2.5.11
and libxslt 1.0.33 (at least)
* src/mlview-parsing-utils.c: make this compile with libxml2 < 2.6.
* src/mlview-app.c: updated copyright in the about dialog box.
* NEWS: updated this.
* src/mlview-parsing-utils.c:
(mlview_resolve_external_entity):
smalling fix here in the resolution algorithm.
Better handling of local dtds not addressed
by the system catalog.
* docs/release-notes-template.xml,
docs/release-notes-template.xhtml:
Updated the release notes.
* configure.in: bumped version-info to 5:0:0.
2004-05-08 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c:
(search_in_node):
Search in attributes of element nodes only.
This fixes http://bugzilla.gnome.org/show_bug.cgi?id=142152 .
Also make this go look into more types of nodes.
* po/de.po: update of German translation by Daniel Holbach.
* src/main.c,src/mlview-editor.c: applied a path from
Daniel Holbach to fix several string errors.
* docs/mlview-internals/src/mlview-internals2.xml:
went forward in writting this.
* src/mlview-app-context.c:
(mlview_app_context_message): make this come back to life.
* src/mlview-utils.c:
(mlview_utils_display_message_dialog):
added this method to display info dialogs.
* src/mlview-xml-document.c:
(mlview_xml_document_dispose):
fixed a crasher here during xmlDoc/xmlDtd destruction.
Basically disociate the document and the dtd because
(in our case) they don't
share the same string dictionnary. Otherwise, xmlFreeDtd() crashes.
* src/mlview-icon-tree.c:
(node_cell_edited_cb):
Add support for cdata section editing.
* src/mlview-tree-editor2.c:
(build_tree_model_from_xml_tree):
(node_cell_edited_cb):
add support for cdata section editing.
(mlview_tree_editor2_edit_cdata_section_node):
Created this new method for cdata node editing.
* src/mlview-utils.c:
(mlview_utils_parse_cdata_section):
Created this helper method to parse cdata node tag.
* src/main.c:
fixed a string typo.
* src/mlview-icon-tree.c:
handle the readonly support of cdata section nodes.
* src/mlview-node-editor.c:
implement the semi transaction scheme for cdata section node
to fix the bad memory management bug that
happens when the node editor is used.
Do the same thing fo comment nodes.
* src/mlview-tree-editor2.c:
handle the readonly support of cdata section nodes.
2004-05-07 Dodji Seketeli <dodji@gnome.org>
* src/mlview-node-editor.c:
In the element node view, implement the transaction scheme to
update the document model.
* docs/mlview-internals/src/mlview-internals2.xml: went forward on
this.
* src/mlview-node-editor.c:
Started to code a mini editing transaction support for the text
nodes. This solves some big memory management problems and should be
applied to all the types of nodes. More on this later ...
2004-05-05 Dodji Seketeli <dodji@gnome.org>
* docs/release-notes-template.xhtml,
docs/release-notes-template.xml:
Started to update the release notes.
2004-05-04 Dodji Seketeli <dodji@gnome.org>
* src/mlview-attrs-editor.c:
(attr_name_cell_edited_cb):
Make sure we can't have two attributes with the same name.
This should fix http://bugzilla.gnome.org/show_bug.cgi?id=132756 .
* src/mlview-tree-editor2.c:
(mlview_tree_editor2_add_child_node):
(mlview_tree_editor2_insert_sibling_node):
make sure we don't end up with two root elements.
This fixes http://bugzilla.gnome.org/show_bug.cgi?id=130251 .
2004-05-03 Dodji Seketeli <dodji@gnome.org>
* src/mlview-parsing-utils.c:
(mlview_external_subset_sax_handler): fix a silly bug here,
otherwise we won't load the dtd.
(mlview_parsing_utils_validate_dtd):
Initialise the validation context to zero, otherwise validation is
b0rked. This fixes
http://bugzilla.gnome.org/show_bug.cgi?id=141664 .
(mlview_parsing_utils_build_element_name_completion_list):
Do a hack here to workaround a libxml2 regression:
Do xmlGenericError = NULL before calling
xmlValidGetValidElements() and call
xmlSetGenericErrorFunc after otherwise xmlValidGetValidElements
keeps dumping error messages.
* tests/validation/valid.dtd,tests/validation/valid.xml:
modify this so that valid.xml validates.
* po/POTFILES.in: added
src/mlview-styled-view.c, ui/mlview-main-app-win.glade
and ui/mlview-css-picker.glade here.
* configure.in: replace AM_PROG_LIBTOOL with AC_PROG_LIBTOOL
as the former is deprecated in libtool > 1.4.x
2004-05-02 Dodji Seketeli <dodji@gnome.org>
* schemas/Makefile.am: make the schemas go in
$(GCONF_SCHMA_FILE_DIR). This fixes
http://bugzilla.gnome.org/show_bug.cgi?id=135429 .
* src/mlview-icon-tree.h: fix the MLVIEW_TYPE_ICON_TREE macro.
* src/mlview-editor.c:
(mlview_editor_load_xml_file): convert relative file path to
absolute one. This is way safer.
* src/mlview-parsing-utils.c:
(load_xml_document_from_local_file): don't forget to overload
the resolveEntity callback with our own mlview_sax_resolve_entity().
(mlview_resolve_external_entity): if the external entity *paths*
haven't been resolved via the catalog, check if the system id is reachable
in the file system.
(mlview_parsing_utils_ask_for_DTD_change_and_validation):
change the signature and code of this function to
make sure to convert the relative uri of the dtd into an absolute
one using the document uri as a base, hence the modification of
mlview_editor_load_xml_file().
This should fix http://bugzilla.gnome.org/show_bug.cgi?id=127072 .
(mlview_parsing_utils_load_a_dtd):
Ported this over libxml 2.6 series and above without breaking it
on libxml2 < 2.6.
* src/mlview-utils.c:
(mlview_utils_uri_is_relative):
(mlview_utils_relative_uri_to_absolute_uri):
(mlview_utils_get_dir_name_from_uri):
Added these new helper functions.
2004-05-01 Dodji Seketeli <dodji@gnome.org>
* autogen.sh: unplugged the styled view by default.
* schemas/mlview.schemas, src/mlview-app-context.c,
src/mlview-app-context.h, src/mlview-tree-editor2.c,
src/mlview-tree-view.c, src/mlview-view-adapter.c:
Applied a patch sent by Nicolas Centa to support element name
completion in the popup menu.
2004-05-01 Adam Weinberger <adamw@gnome.org>
* configure.in: Added en_CA to ALL_LINGUAS.
2004-04-09 Gareth Owen <gowen72@yahoo.com>
* configure.in: Added en_GB to ALL_LINGUAS
2004-02-28 Dodji Seketeli <dodji@gnome.org>
* src/mlview-parsing-utils.c:
(mlview_external_subset_sax_handler): start to make
the parsing facilities more libxml2 2.6.xx friendly.
* configure.in: forced mlview to use libxml2 2.6.6 and
libxslt 1.1.2
2004-02-26 Dodji Seketeli <dodji@gnome.org>
* config.h.in,configure.in: define the macro
LIBXML_2_6_SERIES_OR_ABOVE when we use libxml2 2.6.xx.
This will be useful in the process of cleaning up
the way we use libxml2 (given the new api in 2.6) without
breaking the 2.N.xx (N<6) series.
2004-02-24 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app.[ch]:
(set_editing_enabled): better enabling/disabling of editing
when its needed.
* src/mlview-tree-view.c: now some menuitems of the contextual
menu are disabled to prevent the user to perform unwanted
editing actions, or enabled when applicable.
2004-02-21 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c:
(mlview_editor_confirm_close): removed a warning.
* src/mlview-iview.[hc]: removed a crasher related to
bad signal handling.
* src/mlview-node-editor.c:
(xml_doc_node_unselected_cb):
(mlview_node_editor_connect_to_doc): connect to and handle
the "node-unselected" signal.
* src/mlview-styled-view.c: removed the update_from_cascade()
function.
* src/mlview-tree-editor2.c: make sure to disconnect from
the "content-changed" signal of xml-document .
* src/mlview-view-adapter.c: made a lot of cleanup.
* src/mlview-xml-document.[ch]: add a "node-unselected" signal
emited just before selecting a new node.
2004-02-18 Dodji Seketeli <dodji@gnome.org>
* ui/mlview-css-picker.glade: applied a patch from
Stephane Bonhomme to fix a stupid error I have made.
2004-02-18 Dodji Seketeli <dodji@gnome.org>
* autogen.sh: enable default arguments
even when users provide some.
* src/mlview-app-context.[ch],
src/mlview-app.[ch],
src/mlview-editor.[ch]: Editing
is now enabled only when editing views
are opened.
* src/mlview-iview.h: fix a nasty crasher
already fixed in HEAD.
* src/mlview-tree-view.c: start working
on the support of contextual menu
enabling/disabling depending on the ...
context.
2004-02-15 Dodji Seketeli <dodji@gnome.org>
* docs/mlview-internals/uml/mlview-class-diagram.dia,
docs/mlview-internals/uml/mlview-class-diagram.png: added this uml
class diagram of the project.
2004-02-15 Dodji Seketeli <dodji@gnome.org>
* src/mlview-iview.h: First field of struct _MlViewIView
should be a field of type GTypeInterFace g_iface.
2004-02-15 Dodji Seketeli <dodji@gnome.org>
* src/mlview-iview.[ch]: changed the prototype of the
"name-changed" signal here.
* src/mlview-view-adapter.c: removed the "name-changed" signal as
this signal is already defined by the parent interface already.
This is a possible crasher. We rely on the "name-changed" signal
of MlViewIView instead.
2004-02-14 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app.c:
(init_app_win): make sure to set a default icon for all mlview
windows.
src/mlview-editor.c:
(mlview_editor_select_view_to_open),
(mlview_editor_create_new_view_on_document)
applied a patch from Stephane Bonhomme<s.bonhomme@wanadoo.fr>.
This patch lets the user choose the kind of view she want to use
to edit a document. It is triggered whenever the user clicks in
"action->new view on document".
2004-02-09 Sebastien Bacher <seb128@debian.org>
* src/mlview-app.c: (close_application), (delete_event_cb):
* src/mlview-editor.[ch]:
(mlview_editor_close_all_xml_documents_interactive),
(mlview_editor_confirm_close):
Fixed bug with cancel on the exit dialog (Closes: #130184).
Added name, of the document to save, to the dialog.
2004-02-09 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c:
(mlview_editor_add_xml_document_view): don't forget to set the view
name even when the name is "untitled<n>".
2004-02-07 Robert Sedak <robert.sedak@sk.htnet.hr>
* configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
2004-02-05 Dodji Seketeli <dodji@gnome.org>
* src/mlview-styled-view.c: wired up the editing support of
the left hand tree editing widget to it's contextual menu.
2004-02-04 Dodji Seketeli <dodji@gnome.org>
* configure.in: fixed some typos in the options enabling.
* src/mlview-app-context.[ch]:
(mlview_app_context_ask_internal_subset_node_name): put this new
function here. This is the result of a small refactoring task.
* src/mlview-styled-view.c: coded a cascade selection dialog.
Went forward in editing support wiring of the left hand tree editor,
especially the contextual menu stuff.
Started to add some facility to reload css (broken atm) and to dump
the box model (this still needs some love).
* ui/mlview-css-picker.glade: new glade file added (for the css
selection dialog)
2004-02-01 Dodji Seketeli <dodji@gnome.org>
* src/mlview-node-type-picker.c,src/mlview-tree-editor2.c:
applied a patch from nicolas to address
http://bugzilla.gnome.org/show_bug.cgi?id=132034.
2004-01-31 Luuk de Waard <luuk@myjaring.net>
* src/main.c:
* src/mlview-editor.h, src/mlview-xml-document.h:
* src/mlview-editor.c, src/mlview-xml-document.c:
Added --dtd/-d commandline option
Changed mlview_xml_document_open, mlview_editor_load_xml_file
Added mlview_xml_document_open_with_dtd
Added mlview_editor_load_xml_file_with_dtd
Bugzilla: 131372
2004-01-31 Sebastien Bacher <seb128@debian.org>
* src/mlview-attrs-editor.c: (mlview_attrs_editor_construct),
(tree_key_press_cb): allow to delete the selected attribute by pressing
the Del key in the list of the attributes.
2004-01-31 Dodji Seketeli <dodji@gnome.org>
* tests/test4.xml: new test file.
2004-01-31 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c: removed every reference to mlview_tree_view_***
and replaced it with the new multi-type-of-view scheme.
* src/mlview-styled-view.c: properly connected the tree editing widget
to the document object model -> it does editing in this view now.
Also added some api documentation here.
Well, it seems like hacking in the bus makes me write
some api doc ... sweet.
2004-01-29 Kjartan Maraas <kmaraas@gnome.org>
* configure.in: Added "no" to ALL_LINGUAS.
2004-01-29 Dodji Seketeli <dodji@gnome.org>
* tests/test3.xml: added this new simple test file
2004-01-27 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c:
added the "styled-view" to the table of possible views. Still have
to remove all references to mlview_tree_view_* from this file though.
* src/mlview-styled-view.c:
(mlview_styled_view_new) : added this new entry point.
(mlview_styled_view_construct): make this work.
2004-01-25 Dodji Seketeli <dodji@gnome.org>
* autogen.sh: configure --enable-style=yes --enable-verbose=yes by default
in development mode.
* config.h.in: defined MLVIEW_VERBOSE and MLVIEW_WITH_STYLE macros
to control when the styled view is switched on and when verbose debug
message dumping should be switched on.
* src/main.c: removed include config.h.
* src/mlview-app-context.h: include config.h here.
* configure.in: autotool plumbering to support what's above.
* src/Makefile.am: added new files mlview-styled-view.[hc] to the
build system
2004-01-24 Dodji Seketeli <dodji@gnome.org>
* src/main.c: some smallish cleanups.
2004-01-24 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.[ch]:
(mlview_editor_create_new_view_on_document): wired the
support of the semi-dynamic editing view type choice.
2004-01-22 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app-context.[ch]: added a new gconf key to
define the name of the default editing view.
* src/mlview-editor.c:
(mlview_editor_load_xml_file):
added the ability to semi-dynamically instanciate editing
views, based on their name.
2004-01-22 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app-context.[ch]: added a signal plumbering
to notifies views' swapping.
* src/mlview-app.c: make the main menu bar accessible
from the application context.
* src/mlview-editor.c: notify the application
(via the application context) when views swap
* src/mlview-tree-editor2.c:
(button_press_event_cb)fix some bad button press
handling here.
* src/mlview-tree-view.c: added the ability to detect
when this view comes up front (swapped).
2004-01-17 Dodji Seketeli <dodji@gnome.org>
* src/mlview-completion-table.c,src/mlview-tree-view.c,
src/mlview-xml-document.c: applied a patch from Nicolas Centa
to make the presence of the completion widget be contextual.
Made some minor modifications to prevent some smallish
potential problems.
2004-01-17 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app.c,ui/mlview-main-app-win.glade:
added "associate dtd, validate doc and
apply xslt" menuitems to the Action menu.
* src/mlview-tree-view.c: added several menu items to
the contextual menu.
2004-01-15 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-view.c:
Wired the contextual menu to real editing actions.
(mlview_tree_view_dispose): make sure to disconnect
from signal we connect to on objects which life time is
longer than ours. Otherwise, bang.
2004-01-15 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app-context.c:
(mlview_app_context_init_clas): fixed some bugs in
signal creation
* src/mlview-editor.c:
(mlview_editor_load_xml_file): unwired some button-pressed
event handling code that had nothing to do here.
* src/mlview-tree-editor2.c: used the new (still wet)
contextual menu architecture to signal a contextual menu
request when needed.
* src/mlview-tree-view.c: started to connect to the
contextual menu request signal and build the menu.
2004-01-13 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app-context.[ch]:
(mlview_app_context_notify_contextual_menu_request):
This new function adds the ability for
editing widget to signal that a user wants a contextual menu.
* src/mlview-app.c: (mlview_app_new) fix a crash prone
memory management error.
* src/mlview-tree-view.c:
(mlview_tree_view_handle_contextual_menu_request)
(contextual_menu_requested_cb): added these functions
to handle the contextual menu requests comming from
editing widgets.
2004-01-12 Dodji Seketeli <dodji@gnome.org>
* po/POTFILES.in: added src/mlview-completion-table.c into
the translatable files list.
* ui/Makefile.am: removed the mlview-main-app-win.glade
file that has nothing to do in HEAD right now.
2004-01-12 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-view.c:
(mlview_tree_view_build_contextual_menu),
(mlview_tree_view_get_contextual_menu): started to write
the contextual menu code.
* src/mlview-app.c:
(connect_menu_and_toolbar_signals)
(init_menu_and_tool_bar): do the necessary signal plumbing
to wire the basic editing functionalities.
* ui/mlview-main-app-win.glade: more gui-fu here.
2004-01-11 Dodji Seketeli <dodji@gnome.org>
* pixmaps/Makefile.am: cleanup icon naming and packaging.
* src/main.c,src/mlview-app-context.[ch],src/mlview-app.[ch],
src/mlview-editor.[ch], src/mlview-utils.[ch],
ui/Makefile.am: started a big refactoring to replace
the GnomeApp-&-co based application container building scheme
by a scheme based on glade. This the start of the final
work toward the support of multi-type-of-editing-views.
2004-01-11 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c,src/mlview-utils.[ch],
src/mlview-xml-document.c,src/mlview-xslt-utils.c:
Applied patch http://bugzilla.gnome.org/showattachment.cgi?attach_id=22740.
from Paolo Borelli.
That fixes bug http://bugzilla.gnome.org/show_bug.cgi?id=130089 .
2004-01-11 Dodji Seketeli <dodji@gnome.org>
* src/mlview-completion-table.[ch],src/Makefile.am,
src/mlview-tree-view.c: applied a patch from Nicolas Centa
that provides the current editing view with an completion
based entirely based on gtk+-2.xxx
2004-01-11 Dodji Seketeli <dodji@gnome.org>
* revert previous changeset. Screwed up the branch creation.
2004-01-11 Dodji Seketeli <dodji@gnome.org>
* pixmaps/Makefile.am: cleanup icon naming and packaging.
* src/main.c,src/mlview-app-context.[ch],src/mlview-app.[ch],
src/mlview-editor.[ch], src/mlview-utils.[ch],
ui/Makefile.am: started a big refactoring to replace
the GnomeApp-&-co based application container building scheme
by a scheme based on glade. This the start of the final
work toward the support of multi-type-of-editing-views.
2003-12-26 Dodji Seketeli <dodji@gnome.org>
* src/mlview-icon-tree.c:
(mlview_icon_tree_load_icons): fixed a typo I've made here.
(mlview_icon_tree_free_icons): made this more reliable.
* pixmaps/xml-entity-ref-node.png: added this new icone
done by Baptiste Mille-Mathias .
* src/mlview-node-type-picker.c:
(mlview_node_type_picker_init): disactivate combo
drowpdown when the "enter" key is hit. This
fixes http://bugzilla.gnome.org/show_bug.cgi?id=130027.
* src/mlview-tree-editor2.c:
(handle_nt_picker_ok_button_clicked_to_add_child) :
Stop considering that strings coming from gtk widgets
are non utf8. This fixes
http://bugzilla.gnome.org/show_bug.cgi?id=130036 .
2003-12-25 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app-context.c:
(mlview_app_context_dispose),
(mlview_app_context_finalize): fixed a leak here.
* short-term-todo.xml: updated TODO list.
* pixmaps/Makefile.am: added a new placeholder icon
for the new supported entity reference nodes.
* src/mlview-icon-tree.c: added read only support for
entity reference nodes.
* src/mlview-tree-editor2.c: added read only support fo
entity ref nodes. Also did a bit of refactoring here.
* tests/test2.xml: added a test case for the entity ref
nodes.
2003-12-22 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c:
(xmlSetEntityNodeName) take care we can not give entity
A a name that belongs to entity B.
* src/mlview-xml-document.c:
(mlview_xml_document_set_entity_node_name) better handling
of error cases.
2003-12-21 Dodji Seketeli <dodji@gnome.org>
* src/mlview-attrs-editor.c: added an #include <libxml/hash.h> here.
* src/mlview-tree-editor2.c:
(handle_nt_picker_ok_button_clicked_to_add_child),
(handle_nt_picker_ok_button_clicked_to_insert_sibling_node)
(mlview_tree_editor2_edit_xml_entity_decl_node):
use mlview_xml_document_set_entity_node_name() to set
entity node name, not, mlview_xml_document_set_node_name()
because entity nodes are special. Editing their name requires
special considerations. Basically, this makes the core of
entity addition/edition work now.
* src/mlview-utils.[ch]:
(xmlSetEntityNodeName): added this as the low level function
to edit an entity's name. Take care to update the entities
dictionary accordingly.
* src/mlview-xml-document.[ch]:
(mlview_xml_document_set_entity_node_name): added this
public api to allow entity name editing.
2003-12-21 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app.c: added a new "create an internal subset"
menu item in the "action" menu.
* src/mlview-icon-tree.c: added support for internal subset
node editing here. Also made a bit of refactoring here.
* src/mlview-node-type-picker.c: add support for the 4
entity declaration types. Did some refactoring here too.
* src/mlview-tree-editor2.[ch]: added support to add/edit
internal subset nodes and also allow an internal subset
node can have entity declaration nodes as children nodes.
* src/mlview-tree-view.[ch]: allow support for internal subset
node creation.
* src/mlview-xml-document.[ch]:
(mlview_xml_document_create_internal_subset): added this
to create internal subset node.
2003-12-19 Dodji Seketeli <dodji@gnome.org>
* src/mlview-icon-tree.c:
(build_tree_model_from_xml_tree): make entity decl nodes editable.
(node_cell_edited_cb): plug the entity decl nodes edition capabilities.
* src/mlview-tree-editor2.c:
(node_cell_editor_cb):factorize the entity decl edition,
put it in a reusable function and use this function here.
(mlview_tree_editor2_edit_xml_entity_decl_node): new function
that contains factorize code to edit entity decl node.
2003-12-18 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c:
(entity_node_public_id_changed_cb)
(entity_node_system_id_changed_cb)
(entity_node_content_changed_cb):
new callbacks for entity to handle entity nodes editing
events.
(node_cell_edited_cb): plug everything to make
entity nodes editing work.
(mlview_tree_editor2_external_general_parsed_entity_to_string)
(mlview_tree_editor2_external_general_unparsed_entity_to_string)
(mlview_tree_editor2_external_parameter_entity_to_string):
heavily debugged these functions.
(mlview_tree_editor2_connect_to_doc): connect to entity nodes
editing signals.
* src/mlview-utils.c:
(mlview_utils_parse_char_ref)
(mlview_utils_parse_internal_general_entity)
(mlview_utils_parse_internal_parameter_entity):
A lot of debugging here too ...
* src/mlview-xml-document.[ch]:
(mlview_xml_document_set_entity_content)
(mlview_xml_document_set_entity_public_id)
(mlview_xml_document_set_entity_system_id):
added these new entity node editing functions.
2003-12-18 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c:
(build_tree_model_from_xml_tree): enable editing of
entity declaration nodes, at least for testing purposes.
(node_cell_edited_cb): started to plug the new entity
declaration parsing helpers functions here.
* src/mlview-utils.c: random debugging here to make the
new entity declaration parsing helper function basically
work.
2003-12-17 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.[ch]:
(mlview_utils_parse_external_general_unparsed_entity),
(mlview_utils_parse_internal_parameter_entity),
(mlview_utils_parse_external_parameter_entity):
More helper functions for the read/write support of
the entity declaration nodes.
2003-12-17 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c:
(node_cell_edited_cb): prepare the read/write support
of entity declaration nodes.
* src/mlview-utils.[ch]:
(mlview_utils_parse_entity_ref)
(mlview_utils_parse_char_ref)
(mlview_utils_parse_pe_ref)
(mlview_utils_parse_entity_value)
(mlview_utils_parse_internal_general_entity)
(mlview_utils_parse_external_general_parsed_entity):
added these helper functions for the read/write support
of entity declaration nodes.
2003-12-15 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c:
(mlview_utils_parse_external_id): fixed a small bug
in the external id parser.
* src/mlview-xml-document.c:
(mlview_xml_document_set_dtd_node_system_id)
(mlview_xml_document_set_dtd_node_public_id): added
these two new methods.
* src/mlview-tree-editor2.c:
(node_cell_edited_cb): better doctype node
editing support based on the enhancements above.
2003-12-14 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c:
(mlview_utils_parse_external_id)
(mlview_utils_is_pubidchar): added these helper functions
for the DOCTYPE node editing support.
(mlview_utils_parse_doctype_decl): continued this for
the read/write support of DOCTYPE nodes.
* src/mlview-tree-editor2.c:
(node_cell_edited_cb) started to add an experimental
doctype node editing support.
2003-12-10 Dodji Seketeli <dodji@gnome.org>
================== 0.6.2 release =================
2003-12-10 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c: applied http://bugzilla.gnome.org/showattachment.cgi?attach_id=22273
from Paolo Borelli. This HIGifies/beautifies the "new root element name"
dialog that appears when the user creates a new document.
While at it, removed the isolat1 to utf8 conversion
I was doing on the element name. There is no need for this
on GTK2.
* src/mlview-xslt-utils.c:
(mlview_xslt_utils_transform_document): fixed a smallish
parsing error against gcc-2.96.
2003-12-09 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.[ch],src/mlview-tree-view.[ch]:
partly applied
http://bugzilla.gnome.org/showattachment.cgi?attach_id=21940 .
Only applied the part that fixes the critical error message
and the guint to GType fix. Thanks to Paolo Borelli for this
patch.
* configure.in: docs/release-notes-template.xhtml,docs/release-notes-template.xml,
docs/release-notes-template.txt: updated this for 0.6.2
* Makefile.am,mlview-mdk.spec.in:
fixed rpm generation stuffs.
2003-12-02 Dodji Seketeli <dodji@gnome.org>
* configure.in: added eel as a new dependency.
* schemas/mlview.schemas: applied the gconf-colour
patch sent by Nicolas Centa. This make the colours
of the xml nodes configurable and stored as gconf keys.
Augmented this patch to support entities nodes colours.
* src/mlview-app-context.[ch]: modified this in the spirit
of the gconf-colour patch to support the xml nodes colours
as gconf keys. Also made this use eel gconf helpers.
Refactored the layout of the struct MlViewAppSettings.
* src/mlview-editor.c: reported the struct MlViewAppSettings
changes.
* src/mlview-icon-tree.c: added read only
support of entities nodes. Refactored this a bit.
* src/mlview-node-type-picker.c,src/mlview-parsing-utils.c:
reported the struct MlViewAppSettings changes.
* src/mlview-tree-editor2.[ch]: refactored this a bit. Make sure
the private data stay in the private part of MlViewTreeEditor.
Added support of read only entity nodes.
* src/mlview-utils.[ch]: some refactoring here concerning the
entities node support.
2003-11-29 Dodji Seketeli <dodji@gnome.org>
* tests/test2.xml: updated this to test external parameter
entities.
* src/mlview-utils.[ch]:
(mlview_utils_external_general_unparsed_entity_to_string)
(mlview_utils_internal_parameter_entity_to_string)
(mlview_utils_external_parameter_entity_to_string):
added these helper functions for the read only support
of entities.
* src/mlview-tree-editor2.c:
(node_to_string_tag): went forward in coding the read only
support for the different types of entities.
2003-11-27 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.[ch]:
(mlview_utils_internal_general_entity_to_string):
(mlview_utils_external_general_parsed_entity_to_string):
Added these two helper functions to for the support of
entities.
* src/mlview-tree-editor2.c:
(node_to_string_tag): added (read only) support for internal general
entities and external parsed entities.
(build_tree_model_from_xml_tree): added the type "ENTITY Declaration Node"
2003-11-27 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c:
(mlview_editor_dispose): fixed a nasty memory management
bug in the destroy process of the MlViewEditor class.
(mlview_editor_close_xml_document_interactive): second
attempt to close http://bugzilla.gnome.org/show_bug.cgi?id=127678 .
Thanks to Paolo Borelli for being dense on this.
2003-11-26 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app.c: pushed the new button at the left of
the toolbar to comply with HIG.
* src/mlview-tree-editor2.c:
(node_to_string_tag): went a bit forward in the (read only)
support of entities.
* tests/test2.xml: added this test file for entities related
development purposes.
2003-11-26 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c:
(mlview_utils_parse_element_name): fixed a stupid parsing
bug here.
2003-11-26 Dodji Seketeli <dodji@gnome.org>
* configure.in: reset my devel environment ;)
* src/mlview-editor.c:
(mlview_editor_load_xml_file): fixed a long time small
bug here in the notebook tab switching process.
(mlview_editor_add_xml_document_view): make sure to
set the newly added notebook tab as the current active
one. This fixes http://bugzilla.gnome.org/show_bug.cgi?id=127704 .
(mlview_editor_create_new_xml_document): check here
that the root element name entered by the user is
a well formed element name. If not, popup an error message
and cancel the new document creation process.
This partially fixes http://bugzilla.gnome.org/show_bug.cgi?id=127922 .
* src/mlview-view-adapter.c:
(build_name_edition_dialog): fix a silly error that
was preventing the dialog of the "set new name to view"
feature to show up correctly.
2003-11-25 Dodji Seketeli <dodji@gnome.org>
* AUTHORS: updated this to add Paolo Borelli and
Stephane Bonhomme.
* configure.in,pixmaps/Makefile.in,src/Makefile.am,
src/mlview-app.c,src/mlview-editor.[ch],
src/mlview-xslt-utils.[ch]: applied a patch from
Stephane Bonhomme that adds the initial of xslt in MlView.
2003-11-24 Dodji Seketeli <dodji@gnome.org>
* src/main.c,src/mlview-app-context.[ch],src/mlview-app.[ch],
src/mlview-attribute-picker.c,src/mlview-attrs-editor.c,
src/mlview-editor.c,src/mlview-icon-tree.c,src/mlview-node-type-picker.c,
src/mlview-node-type-picker.c,src/mlview-parsing-utils.c,
src/mlview-preferences.c,src/mlview-tree-editor2.c,
src/mlview-utils.[ch],src/mlview-view-adapter.c:
applied patches http://bugzilla.gnome.org/showattachment.cgi?attach_id=21759
and the first trivial patch from
paolo borelli<pborelli@katamail.com> to remove the
"quit" menu item from the toolbar.
* src/main.c:
(mlview_editor_close_xml_document_interactive): fixed
the critical message emited when user clicks on "close"
and where no doc is opened.
* src/mlview-icon-tree.c:
(node_to_string_tag) fixed a stupid memory
management bug I have introduced.
* src/mlview-tree-editor2.c:
(node_to_string_tag): fixed another stupid management bug
I have pushed in.
* tests/test.xml: pushed a non regression test in here.
2003-11-23 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c:
(mlview_editor_confirm_close): fixed a smallish bug here.
(mlview_editor_close_xml_document_interactive):
* src/mlview-icon-tree.c,src/mlview-ns-editor.c,
src/mlview-tree-editor2.c: Fixed compilation errors that
occur on gcc-2.9x by my fault. This fixes
http://bugzilla.gnome.org/show_bug.cgi?id=127720 .
Thanks to Mike Castle<dalgoda@ix.netcom.com> who spotted
this and provided a patch.
2003-11-23 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c: applied a patch from Paolo Borelli <pborelli@katamail.com>.
This fixes http://bugzilla.gnome.org/show_bug.cgi?id=127678 and
Improves the ugly close confirmation dialog we had.
2003-11-23 Dodji Seketeli <dodji@gnome.org>
* src/mlview-icon-tree.c,src/mlview-tree-editor2.c:
(node_to_string_ta): second attempt to escape
all the predefined entities in markup strings to be given
to pango. This should fix http://bugzilla.gnome.org/show_bug.cgi?id=127697 .
thanks to Happypeng who sent a fix: http://bugzilla.gnome.org/showattachment.cgi?attach_id=21705.
I have modified the fix to make consider more cases.
2003-11-23 Christian Neumair <chris@gnome-de.org>
* configure.in: Added German (de) to ALL_LINGUAS.
2003-11-22 Dodji Seketeli <dodji@gnome.org>
* src/mlview-icon-tree.c,src/mlview-tree-editor2.c,
src/mlview-utils.c: started to add the support of doc type
decls.
2003-11-21 Dodji Seketeli <dodji@gnome.org>
========= 0.6.1 release =====================
2003-11-21 Dodji Seketeli <dodji@gnome.org>
* pixmaps/*: added the png to be added (oops forgot to add'em for the previous patch).
and remove those that are to be removed.
2003-11-20 Dodji <dodji@gnome.org>
* pixmaps/Makefile.am:
* src/mlview-icon-tree.c:
* src/mlview-icon-tree.h:
applied a patch from Nicolas Centa <happypeng@free.fr> that
gives better names to the icons used by mlview. That should
ease the task of people willing to do some artwork for the project.
I have added some error handling messages in case we don't
find the icons at load time.
2003-11-20 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c:
(mlview_utils_escape_angle_brackets_in_str): rename this function
into mlview_utils_escape_predef_entities_in_str()
(mlview_utils_escape_predef_entities_in_str): make this function
escaped all the predefined entities (<,>,&).
* src/mlview-icon-tree.c:
(build_xml_attrs_list_str):
make this use mlview_utils_escape_predef_entities_in_str() .
* src/mlview-tree-editor2.c:
(node_to_string_tag): make this use
mlview_utils_escape_predef_entities_in_str() .
2003-11-19 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c:
(mlview_utils_escape_angle_brackets_in_str): added this new function
to escape the angle brackets found in a given string.
* src/mlview-icon-tree.c:
(node_to_string_tag): make sure we escape the angle bracket
found in strings so that pango and gmarkup don't cry at label's
text markup parsing time.
* src/mlview-tree-editor2.c:
(node_to_string_tag),
(mlview_tree_editor2_build_attrs_list_str):
very same comment as for the above entry.
These three entries fix bug http://bugzilla.gnome.org/show_bug.cgi?id=127388 .
2003-11-19 Dodji Seketeli <dodji@gnome.org>
* docs/release-notes-template.xml: updated this.
2003-11-18 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app.c:
(close_application): new function to re factor the mlview application
closing workflow.
(delete_event_cb): added this callback that is called when user
clicks on the on close button of the window. This uses the
new close_application() function
(exit_cb): made this use close_application().
* mlview_editor_dispose: fixed a long time memory management
crashing bug here.
* mlview_editor_save_and_close_xml_document:
Ask the user if she want to overwrite a given file only
when it's strictly necessary.
* src/mlview-file-descriptor.c:
(mlview_file_descriptor_set_file_path): a quick hack that replaces
a freed memory read by a leak.
* src/mlview-parsing-utils.c: fixed an mlview critical error here.
* src/mlview-xml-document.c:
(document_changed_cb): update the last doc modification time
each time the document is modified.
More generally, went throughout this file to make sure we emit
the "document-changed" each time the document *is* changed.
The modifications done here fix http://bugzilla.gnome.org/show_bug.cgi?id=127131 .
2003-11-16 Dodji Seketeli <dodji@gnome.org>
* mlview-mdk.spec.in: fixed a smallish bug here.
* AUTHORS: updated this to add Baptiste Mille-Mathias.
* src/mlview-tree-editor2.c:
(mlview_tree_editor2_build_attrs_list_str): fixed
a crasher that occured at document load time.
* docs/mdk-rpm-howto.txt: added this howto copied from
http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo .
* configure.in,mlview-mdk.spec.in,
po/POTFILES.in,schemas/Makefile.am: Huge cleanup and lot
of packaging fixes.
2003-11-14 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c:
(mlview_xml_document_add_child_node),
(mlview_xml_document_insert_prev_sibling_node),
(mlview_xml_document_insert_next_sibling_node):
When you add a node using a libxml2 routine,
work with the node returned by libxml2's routine and not
the initial node !!
This fixes http://bugzilla.gnome.org/show_bug.cgi?id=127019 .
Thanks to Samuel Mounie for reporting this bug !!
* src/mlview-tree-editor2.c:
(nodeset_selected_cb): visualy update the xml node each
time it is selected.
(mlview_tree_editor2_update_child_node_added),
(mlview_tree_editor2_update_node_pasted),
(mlview_tree_editor2_update_sibling_node_inserted): when
we are trying to upated an added node that already
existed (when we merge two adjacent xml text nodes for ex)
select that node. That will also update it.
* src/mlview-icon-tree.c,:
(update_visual_node): fixed the critical error message
that was displayed here.
* src/mlview-tree-editor2.c:
(mlview_tree_editor2_disconnect_from_doc):
do not forget to
unregister the callback associated to the "node-selected" signal
emited by the document object model.
Thanks to Stephane Bonhomme who filled the bug.
* src/mlview-node-editor.c:
(mlview_node_editor_disconnect_from_doc): do not forget to
unregister the callback associated to the "node-selected" signal
emited by the document object model.
Thanks to Stephane Bonhomme who filled the bug.
* README: Baptiste Mille-Mathias updated this.
* src/Makefile.am: removed all call to pkg-config and handle
libs and compile flags in a less insane manner.
* configure.in: modified the configure to fine test the availability
of gnome libs.
* pixmaps/Makefile.am: added icons sent by Baptiste Mille-Mathias.
2003-11-13 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c,src/mlview-view-adapter.c:
updated api documentation.
* src/mlview-tree-view.[ch]: updated apidoc and fixed a small typo.
2003-11-13 Dodji Seketeli <dodji@gnome.org>
* src/mlview-parsing-utils.c: updated api documentation.
* src/mlview-ns-editor.[ch]: fixed a smallish typo here and
updated api document.
* src/mlview-node-editor.c:
(mlview_node_editor_disconnect_from_doc)
make sure to call the mlview_ns_editor_disconnect_from_doc() here.
2003-11-11 Dodji Seketeli <dodji@gnome.org>
* src/mlview-node-type-picker.c: updated api documentation.
* src/mlview-file-selection.c,src/mlview-icon-tree.c,
src/mlview-iview.c,src/mlview-node-editor.c,src/mlview-node-type-picker.c:
Updated api documentation.
* src/mlview-app-context.c,src/mlview-attribute-picker.c,
src/mlview-attrs-editor.c,src/mlview-editor.c,
src/mlview-node-editor.[hc],src/mlview-node-type-picker.[ch],
src/mlview-ns-editor.[ch],src/mlview-parsing-utils.[ch],
src/mlview-preferences.[ch],src/mlview-tree-editor2.[ch],
src/mlview-tree-view.[ch],src/mlview-view-adapter.[ch]:
Updated api documentation.
2003-11-09 Dodji Seketeli <dodji@gnome.org>
* src/mlview-action.h,src/mlview-icon-tree.[ch],
src/mlview-iview.[hc]: updated documentation.
* src/Makefile.am: removed the mlview-global-settings.[ch]
files from the distribution.
* src/mlview-app-context.c,src/mlview-editor.c,
src/mlview-parsing-utils.c,src/mlview-tree-editor2.c,
src/mlview-xml-document.c:
updates this to reflect the the removal of
mlview-global-settings.h.
* src/mlview-app.c: reflect the removal of
mlview-global-settings.h and unplugged the non working
settings widget code.
* src/mlview-action.h,src/mlview-app.h,
src/mlview-file-selection.c,src/mlview-file-selection.h,
src/mlview-xml-document.c: updated api documentation
2003-11-08 Dodji Seketeli <dodji@gnome.org>
* docs/release-notes-template.txt:
generated a txt version of docs/release-notes-template.xml.
* docs/release-notes-template.xml,docs/release-notes-template.xhtml:
started to update this for the coming release.
* src/mlview-tree-editor2.c:
(mlview_tree_editor2_get_node_type_picker):
fix a small bug.
(mlview_tree_editor2_update_child_node_added):
(mlview_tree_editor2_update_sibling_node_inserted):
make sure to propagate the "node-selected" signal when
a node is add to the tree and selected.
This fixes http://bugzilla.gnome.org/show_bug.cgi?id=126483 .
* src/mlview-file-descriptor.c:
(mlview_file_descriptor_set_file_path): fixed a memory
management bug here.
This fixes bug http://bugzilla.gnome.org/show_bug.cgi?id=126486 .
2003-11-06 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c:
(mlview_xml_document_remove_attribute): fixed a crash prone memory
management bug here.
* src/mlview-node-editor.c:
(mlview_node_editor_content_changed_cb): modified this to
let the "focus-out-event" progate through the widget hierachy.
This fixes a crasher.
2003-11-05 Dodji Seketeli <dodji@gnome.org>
* src/mlview-file-descriptor.c: heavily modified this
class to support file paths that are not valid URIs.
In that case, MlViewFileDescriptor stores the file path and
relies on it for file manipulations. URIs are used only when
the file path given in input can be parsed as a valid URI.
This fixes bug http://bugzilla.gnome.org/show_bug.cgi?id=121251 .
2003-11-04 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c:
(mlview_xml_document_open): when mlview_parsing_utlis_load_xml_file()
fails, properly return NULL instead of using g_return_val_if_fail().
* src/mlview-utils.c:
(mlview_utils_display_error_dialog): cleaned this up.
Use a GtkMessageDialog properly instead of what I was poorly using
before. This fixes http://bugzilla.gnome.org/show_bug.cgi?id=125982.
* src/mlview-attrs-editor.c: include the libxml/parser.h header
instead of just the libxml/hash.h. This fixes a compilation
error that occurs against libxml2 >= 2.6.
* src/mlview-app-context.c:
(mlview_app_context_bufferize_error): did some cleanups here.
2003-11-02 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c:
(mlview_xml_document_insert_next_sibling_node):
build required attribute list for xml element nodes only.
* src/mlview-tree-editor2.c:
(nodeset_selected_cb)
(mlview_tree_editor2_select_node):
An other attempt to make the "node-selected" signal based
node selection mecanism work. This fixes
http://bugzilla.gnome.org/show_bug.cgi?id=125995.
* src/mlview-node-type-picker.c:
(mlview_node_type_picker_build_element_name_choice_list):
build completion list for xml element nodes only.
* src/mlview-node-editor.c:
(mlview_node_editor_build_xml_comment_node_view)
(mlview_node_editor_build_xml_cdata_section_node_view)
(mlview_node_editor_build_xml_pi_node_view):
Connect the rigth widget to the "focus-out-event" signal.
This fixes http://bugzilla.gnome.org/show_bug.cgi?id=125996.
* src/mlview-icon-tree.c: indented this correctly.
* src/mlview-editor.c:
(mlview_editor_create_new_xml_document): build completion
list for xml element nodes only.
(mlview_editor_close_xml_document_interactive):
cancel the view closing process if the user closes the
dialog window.
2003-11-01 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c:
(mlview_utils_parse_pi): added this to
parse processing instruction nodes.
(mlview_utils_parse_comment): added this parse
comment nodes.
* src/mlview-tree-editor2.c:
(node_to_string_tag): fixed comments and
processing node representation.
(build_tree_model_from_xml_tree,node_cell_edited_cb):
make PI and comment node editable directly
on the tree.
This entry fixes
http://bugzilla.gnome.org/show_bug.cgi?id=125473 and does
far more.
2003-10-31 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c:
(mlview_tree_editor2_update_child_node_added ):
select the node after having updated it. this fixes
some critical error messages.
(mlview_tree_editor2_select_node): change the signature
and behaviour of this function to help avoid useless
loops that was occuring during the node selection process.
(nodeset_selected_cb,xml_doc_searched_node_found_cb):
avoid useless numerous loops
that was occuring during the node selection process.
also made sure to avoid leaks in case of exception.
* src/mlview-node-type-picker.c: revisited the
dialog stuffs and made some cleanups.
Fixed bug http://bugzilla.gnome.org/show_bug.cgi?id=125447.
2003-10-30 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c,src/mlview-tree-view.c,
src/mlview-utils.c,src/mlview-view-adapter.c,
src/mlview-xml-document.c:
revisited and cleaned up all the instances of GtkDialog.
This also fixes bug
http://bugzilla.gnome.org/show_bug.cgi?id=124891 .
2003-10-30 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c :
(mlview_xml_document_associate_dtd):
fixed bug http://bugzilla.gnome.org/show_bug.cgi?id=124986
2003-10-28 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-view.c:
(tree_selected_cb) don't use the C++ reserved 'this' keyword.
* src/mlview-node-editor.c:
(mlview_node_editor_name_changed_cb) make this return FALSE
to fix a crasher.
* src/mlview-app-context.c:
(mlview_app_context_get_settings) init the newly allocated memory.
2003-10-27 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c:
(mlview_xml_document_insert_next_sibling_node)
fixed a crasher here.
* src/mlview-icon-tree.c, src/mlview-tree-editor2.[ch]:
applied a patch from Nicolas Centa<happypeng@free.fr>:
fixes some bugs in the node folding/unfolding, and
in the signal connection process of mlview-icon-tree.c.
Modified the patch a bit to fix some compilation warnings
and to add licensing information where needed.
* src/mlview-file-descriptor.c: some light cleanups.
2003-10-26 Sebastien Bacher <seb128@debian.org>
* debian/*:
Added a debian/ dir to the CVS.
2003-10-26 Dodji Seketeli <dodji@gnome.org>
* pixmaps/folder_violet_open.png,src/mlview-icon-tree.[ch],
Makefile.am:
applied a patch from Nicolas Centa<happypeng@free.fr>
that supplies two icons for the folding/unfolding of elements.
* src/mlview-app.c: updated the about dialog to
add Nicolas Centa<happypeng@free.fr> in the credit box.
* schemas/Makefile.am: fixed a typo which consequence
was that schema file got installed in /gconf/blah
not in /etc/gconf/blah.
* pixmaps/Makefile.am, pixmaps/control-center2.png:
removed the control-center2.png file
which landed in pixmaps/ by error.
* Makefile.am: reference mlview-mdk.spec.in, not
mlview.spec.in .
* configure.in: bumpped version number to 0.6.1-pre1
* COPYRIGHT: added this file.
2003-10-26 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-view.c: applied a patch from
happypeng<happypeng@free.fr> that fixes the behaviour
of the edition widgets when the main window is re-scaled.
Modified the patch a bit to enable the shrinking
of the element name completion panel.
2003-10-26 Dodji Seketeli <dodji@gnome.org>
* pixmaps/Makefile.am, pixmaps/blockdevice.png, pixmaps/folder_violet.png,
pixmaps/misc_doc.png, pixmaps/txt.png, pixmaps/unknown.png,
src/Makefile.am, src/mlview-icon-tree.c, src/mlview-icon-tree.h,
src/mlview-tree-editor2.c, src/mlview-tree-editor2.h,
src/mlview-tree-view.c: applied a patch from
nicolas centa<happypeng@free.fr> that adds a new fancy
tree editor widget to the default editing view.
2003-10-26 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.[ch]: added an
mlview_xml_document_select_node() which does nothing
but emitting the "node-selected" signal. The views are
now responsible to connect to this signal and update
themselves to reflect this new state.
* src/mlview-tree-view.c: (mlview_tree_view_new)
at the end of the construction of the view,
select the xml doc node.
* src/mlview-tree-editor2.c: make this widget sensible
to the "node-selected" signal now emitted by the
MlViewXMLDocument class.
* src/mlview-node-editor.c:
(xml_doc_node_changed_cb): added this controller
to take the "node-selected" signal now emitted by the
MlViewXMLDocument class.
(mlview_node_editor_connect_to_doc): connect to the
"node-selected" signal now emitted by the
MlViewXMLDocument class.
2003-10-24 Dodji Seketeli <dodji@gnome.org>
* ui/mlview-dtd-choice.glade: revamped this a bit.
* ui/Makefile.am: added mlview-dtd-choice-dtd-not-resolved.glade .
file.
* src/mlview-xml-document.c: tiny cleanup.
* src/mlview-parsing-utils.[ch]: cleaned this code up.
(mlview_parsing_utils_ask_for_DTD_change_and_validation):
heavily debugged this function to make the external DTD
subset resolution work properly (at least the nominal cases).
2003-10-24 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c:
(build_tree_view_from_xml_doc) :
fixed bug http://bugzilla.gnome.org/show_bug.cgi?id=125241 .
* src/mlview-parsing-utils.c: applied a patch
from Nicolas Centa<happypeng@free.fr> to fix a crash
that when opening a non existing file.
* src/mlview-app-context.[ch],src/mlview-app.c,
src/mlview-editor.c,src/mlview-tree-editor2.[ch],
src/mlview-xml-document.c:
remove the dead old settings management code.
2003-10-22 Dodji Seketeli <dodji@gnome.org>
* src/mlview-editor.c, src/mlview-node-type-picker.c,
src/mlview-parsing-utils.c,src/mlview-xml-document.c:
We are now based on gconf only for settings management :)
2003-10-21 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c: applied a patch from
Nicolas Centa<happypeng@free.fr> that adds syntaxic
coloration to the tree.
* src/mlview-parsing-utils.c: more settings management
code replacement work.
2003-10-21 Dodji Seketeli <dodji@gnome.org>
* src/mlview-node-editor.c, src/mlview-tree-view.c:
applied a patch from Nicolas Centa<happypeng@free.fr>
which provides the infrastructure to have several
tree editor widgets in the current MlViewTreeView
editing view.
2003-10-21 Dodji Seketeli <dodji@gnome.org>
* schemas/Makefile.am: use $(GCONFTOOL) instead of gconftool.
* configure.in: added tests for gconf2 >= 2.4.0
2003-10-20 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c:
(mlview_tree_editor2_edit_xml_doc):
fixed bug http://bugzilla.gnome.org/show_bug.cgi?id=124898 .
* src/mlview-parsing-utils.c: started to go throughout
the code and replace any reference to the old settings
management code and replace it by the new api.
* src/mlview-app-context.c: went forward in the
coding of the gconf based settings management api.
added.
(mlview_app_context_load_gconf_settings ()): added this
to bulk load the gconf settings and populate the
struct MlViewAppSettings.
(mlview_app_context_get_settings ()): make sure to
call the mlview_app_context_load_gconf_settings() at
init time.
* schemas/mlview.schemas: added the "validation-is-on" key
to the gconf schemas.
2003-10-19 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app-context.[ch]: defined an
MlViewAppSettings data structure that holds the
application settings. These settings are kept uptodate
via a gconf based mecanism. The application can then
access this read-only settings data structure from the
application context. The basics are in place.
* entities-catalog/gconf/gconf.dtd: added the
gconf dtd in the distribution for testing purposes.
This helps because I use mlview to edit gconf schemas :)
* Makefile.am,configure.in,
schemas/Makefile.am,schemas/mlview.schemas:
added an initial trivial gconf schema in the
distribution. This is the starting point of the
rewrite of the settings management of mlview based
on gconf.
* src/*.[ch]: cleaned up the header file
included, removing the old gnome.h and replacing it
by more suitable header files.
* src/Makefile.am: removed dead code and (re)define the
ENABLE_NLS macro to resurect the i18n.
2003-10-18 Dodji Seketeli <dodji@gnome.org>
* src/mlview-attrs-editor.c:
(mlview_attrs_editor_insert_attribute ()) bugfix: add
an association "row reference"/xmlAttr * when adding
a new xmlAttr into the editor.
2003-10-18 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.[ch]:
(mlview_utils_tree_path_string_to_iter) added
this helper function.
* src/mlview-ns-editor.c:
(mlview_ns_editor_clear) fixed a cut'n paste silly bug.
* src/mlview-attrs-editor.c: more debuging made this widget work.
2003-10-16 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c:
(xml_doc_node_attribute_removed_cb) fixed a typo
that was preventing this function to complete correctly.
* src/mlview-attrs-editor.c: heavy debugging of the
new attribute editor widget ...
* src/mlview-xml-document.[ch]: added a "node-attribute-added"
signal and made the mlview_xml_document_set_attribute() emit
when necessary.
* src/mlview-attrs-editor.[ch]:
went forward in modifying this widget to make behave
like the MlViewNSEditor.
2003-10-14 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c:
(mlview_tree_editor2_update_sibling_node_inserted)
When a node is inserted, expand it before selecting it.
* src/mlview-node-editor.c:
(mlview_node_editor_name_changed_cb ()),
(mlview_node_editor_build_xml_doc_node_view()):
made sure the we set the new text node content
only when the editing widget looses focus. This was
an annoying bug.
* src/mlview-editor.c:
(mlview_editor_add_xml_document_view ()):
resised the tree view a bit.
* src/mlview-attrs-editor.c: started to make this
look and behave like the ns editor. A rather big rewritte
will happen here.
* short-term-todo.xml: udpated this ... so many things to do :-\
* src/mlview-tree-editor2.c:
(xml_doc_node_namespace_removed_cb ()):
fixed a bug that prevented this to work.
* src/mlview-ns-editor.c:
(ns_uri_cell_edited_cb ()): fixed a bug here.
Added the ability to remove a namespace where the
uri cell is empty.
(mlview_ns_editor_update_ns_removed()) made this work.
2003-10-12 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c:
(xml_doc_searched_node_found_cb) fixed the typo
that broke the "search node" feature.
* src/mlview-app.c:
(search_cb) put the right action.name here so that
the view knows what we are talking about.
* long-term-todo.xml, short-term-todo.xml:
added this two todo files in docbook format.
* TODO: removed this file.
* docs/mlview-internals/src/contextual-menu-design.xml:
added this draft of the new contextual menu design.
* src/mlview-utils.[ch]:
(mlview_utils_gtk_tree_view_expand_row_to_depth2)
new method added.
* src/mlview-tree-view.c:
fixed a small bug due to a bad returned valued typing.
* src/mlview-tree-editor2.c:
(mlview_tree_editor2_update_child_node_added ())
(mlview_tree_editor2_update_sibling_node_inserted ())
When a new node is added, expand its subtree to the leaves
and select it.
(mlview_tree_editor2_update_node_cut ())
Now the title of start tag column of the treeview is
properly set to the uri of the entity being edited.
* src/mlview-node-editor.c:
(mlview_node_editor_content_changed_cb ()) changed
this to make it called only when the node textview looses
the focus. This was a really annoying bug.
2003-10-11 Dodji Seketeli <dodji@gnome.org>
* src/mlview-file-descriptor.[ch]: applied a patch
from Simon Barner<barner@gmx.de> that fixes compilation
error on BSD.
2003-10-11 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.[ch]:
(mlview_xml_document_set_ns ()):
new method added.
* src/mlview-tree-view.c:
(mlview_tree_view_dispose ()):
fixed two crashers here.
* src/mlview-tree-editor2.c:
(xml_doc_node_namespace_changed_cb ()):
fixed a bad assert typo here.
* src/mlview-ns-editor.c: added ns_prefix_cell_edited_cb()
and connect it to "edited" signal of the namespace
prefix cell. This enables proper edition of Ns prefix.
* src/mlview-node-editor.c:
Made sure to block signals when modifing the
GtkTextBuffer(s) that hold the content xml nodes.
This prevents from infinite loops.
* src/mlview-attrs-editor.c:
(mlview_attrs_editor_disconnect_from_doc ()): fixed
a bad assert here.
2003-10-09 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c:
(mlview_xml_document_create_ns ()) made this a bit
more reliable especially when the user wants to
add a namespace with an empty prefix.
* mlview-tree-view.c: basically debugged this. It
works a bit better now. Also provided dispose/finalize
methods in lieu of the former destroy method.
* src/mlview-tree-editor2.c:
(xml_doc_node_namespace_added_cb ()) fixed some typos
again <grin/>.
* src/mlview-ns-editor.c:
(mlview_ns_editor_build_gui ()) made sure to connect
the ns_uri_cell_edited_cb() to the "edited" signal emited
by the ns prefix cell renderer.
(mlview_ns_editor_edit_namespace ()) fixed a small typo.
* mlview_node_editor_connect_to_doc: fixed an annoying typo
here.
* src/mlview-node-editor.[hc]: made sure not to use
the private keyword for an identifier. Let's be cool
with C++ compilers and they'll be cool with us.
2003-10-07 Dodji Seketeli <dodji@gnome.org>
* src/mlview-ns-editor.c:
(mlview_ns_editor_edit_node_visible_namespaces ()):
make sure to call mview_ns_editor_clear() here.
(mlview_ns_editor_clear ()):
make sure to remove entries from the ns_row hash table at
widget clear time.
* src/mlview-editor.c: made sure to reset the right panel
proportions.
* src/mlview-xml-document.c: fixed some signal creation interface
problems. Made sure to emit the "node-changed" signal whenever
the node changes.
* src/mlview-utils.c: removed any reference to deprecated gtk1
widgets.
* src/mlview-tree-editor2.c: made this _truly_ MVC.
* src/mlview-ns-editor.c: went forward in this. Implemented the
new list widget concept proposed by Nicolas Centa.
* src/mlview-node-editor.c: transformed this into a native gtk2
widget. removed all the ifdefs that I put here during the porting.
* src/mlview-editor.c: replaced every reference to
the old MlViewXMLDocTreeView widget by references to the new
MlViewTreeView widget. Remove all hardcoded calls to edition actions
exposed by views. Now, MlViewEditor::execute_action() is just
a proxy to the MlViewIView::exectute_action() call.
* src/mlview-attrs-editor.c: made this truly MVC now. Now, this widget
directly connects to signal emitted by MlViewXMLDocument and updates
itselft independantly from its container widget.
* src/mlview-app.c: replaced the calls to the editing action methods
present in MlViewEditor by calls to the new
MlViewEditor::execute_action (MlViewAction *) ;
* src/Makefile.am: added
mlview-action.h, mlview-iview.[ch], mlview-view-adapter.[ch],
mlview-tree-view.[ch] to the project.
Removed mlview-tree-editor.[ch], mlview-xml-doc-tree-view.[ch],
mlview-xml-document-view.[ch] from the project.
* all tagged the project as STABLE_10_7_2003 just before
applying my huge patch that breaks everything.
2003-09-25 Dodji Seketeli <dodji@gnome.org>
* src/mlview-ns-editor.c:
(mlview_ns_editor_update_ns_removed) coded this.
* src/mlview-node-editor.c: integrated the new
MlViewNSEditor sketch here.
2003-09-25 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.[ch]: added
(mlview_xml_document_remove_ns) to remove namespaces.
* src/mlview-ns-editor.c: gone forward.
2003-09-24 Gael CHAMOULAUD (strider) <strider@gnome.org>
* src/mlview-xml-document.c: (mlview_xml_document_save):
Fixed BUG 119009
2003-09-23 Dodji Seketeli <dodji@gnome.org>
* src/mlview-ns-editor.c: fixed a small bug.
(mlview_ns_editor_edit_node_visible_namespaces) added this
new function.
* src/mlview-xml-document.[ch]: added
"node-namespace-added", "node-namespace-changed" and
"node-namespace" signals. Also added
mlview_xml_document_create_ns().
* src/mlview-ns-editor.[ch]: a _lot_ of bits pushed in this
toward the gtk2 rewrite.
* src/mlview-namespace-editor.c: cleaned up some signal
creation interfaces. Uses mlview-marshal.h.
* src/*.[ch]: removed copyright information from the
files and centralized it in the COPYRIGHT file. Updating
is much easier this way.
* Makefile.am: Added a COPYRIGHT file where all
the copyright information is centralized.
* AUTHORS: added Nicolas Centa here.
2003-09-20 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c: applied a patch from Nicolas Centa
to fix the glade file lookup path.
* src/main.c,src/mlview-app.c: applied a patch that fixes
the command line parsing, handles the program init much better
and fixes the toolbar rendering issues.
This patch was submited by Nicolas Centa.
2003-09-16 Dodji Seketeli <dodji@gnome.org>
* src/mlview-namespace-editor.[hc]: started to write
the interfaces of the future new gtk2 based namespace editor.
* src/Makefile.am: added the interfaces of the
new MlViewNSEditor code.
2003-09-16 Dodji Seketeli <dodji@gnome.org>
* src/mlview-node-editor.c: make the new native gtk+2
MlViewAttrsEditor widget the default attribute editor,
thus deprecating the MlViewAttributesList widget. woohoo :)
* src/mlview-attrs-editor.c:
(hash_table_free_row_ref): fixed the prototype of this
function which was wrong.
(row_selected_cb): sometimes, this function can be called
in such conditions that gtk_tree_selection_get_selected()
fails. Consider this as an error case, not an exception one.
get out silently.
(mlview_attrs_editor_remove_attribute): fixed a silly bug
here. Finally got this to work.
* configure.in: added the -ansi compiler option when
we are in the "Dodji environment".
* src/mlview-app.c: fixed some ansi C errors.
* src/main.c: fixed some ansi C errors.
* src/mlview-settings-builder.c: fixed some ansi C errors.
* src/mlview-tree-editor.c: fixed some ansi C errors.
2003-09-13 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c:
(mlview_xml_document_class_init):
Fixed a couple of signal creation code here. Most problems
were due to my calling of bad marshaling functions with
bad parameters.
(mlview_xml_document_set_attribute_name):
Emit the "node-attribute-name-changed" signal, not
the "file-path-changed" one.
* src/mlview-attrs-editor.[ch]: made this new
widget start to work so so.
2003-09-12 Dodji Seketeli <dodji@gnome.org>
* configure.in: added russian translation sent by Vitaly Lipatov<LAV@VL3143.spb.edu> .
2003-09-10 Dodji Seketeli <dodji@gnome.org>
* src/mlview-node-editor.[ch]: started to replace
the old gtk1 based MlViewAttributesList widget by
a new (not yet working) gtk2 based MlViewAttrsEditor.
This replacement is protected/enabled by the macro
WITH_ATTRS_EDITOR.
* src/mlview-attrs-editor.[ch]: fixed a stupid
compilation breakage <grin/>.
2003-09-10 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c:
(mlview_xml_document_class_init) fixed some bad signal
creation parameters, added a new "node-attribute-removed"
signal.
(mlview_xml_document_remove_attribute) this must emit
"node-attribute-removed" signal, not "node-attribute-name-changed".
* src/mlview-attrs-editor.[ch]: got this to compile for the
first time.
* src/Makefile.am: added src/mlview-attrs-editor.c to
compiled filed.
2003-09-08 Dodji Seketeli <dodji@gnome.org>
* src/mlview-attrs-editor.[ch]: added more code here to
for the re-write over gtk2.
* src/mlview-xml-document.[ch] :
changed the signature of mlview_xml_document_set_attribute() i.e,
make it return an xmlAttr * when upon successfull completion.
This is used by mlview-attrs-editor.c
2003-09-07 Dodji Seketeli <dodji@gnome.org>
* src/mlview-attrs-editor.[ch]:
(name_edit_entry_changed_cb, value_edit_entry_changed_cb):
rewrote these functions for gtk2 and better MVC compliance.
(mlview_attrs_editor_new, mlview_attrs_editor_set_editable):
rewrote this for for gtk2.
(mlview_attrs_editor_get_tree_view): added this.
2003-09-06 Dodji Seketeli <dodji@gnome.org>
* Makefile.am, mlview-mdk.spec.in: an even better rpm
packaging now. Created a particular spec file for mdk.
Another one is to come for redhat.
2003-09-06 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c: cleaned up the i18n init a bit.
* src/mlview-app.c, mlview-parsing-utils.c, src/mlview-preferences.c, src/mlview-tree-editor2.c:
use gnome_program_locate_file() to locate resources in $(datadir).
* src/mlview-app-context.c (mlview_app_context_set_window_icon):
use gnome_program_locate_file() to locate resources in $(datadir)
This is much cleaner than the way we used to handle this before.
* src/main.c: use gnome_program_init() instead of the
old gnome_init_with_popt_table().
* src/Makefile.am: cleanup.
* pixmaps/Makefile.am: standardized the distribution of pixmaps
and make them go in $(datadir)/pixmaps like the how the other
gnome applications do.
* mlview.desktop.in: created this file instead of generating
the mlview.desktop in a makefile. Thanks to Christophe Merlet
who spotted this.
This fixes http://bugzilla.gnome.org/show_bug.cgi?id=121485.
* configure.in, ui/Makefile.am: big cleanup. Support the usage
of the DESTDIR variable.
bug http://bugzilla.gnome.org/show_bug.cgi?id=121482.
* Makefile.am: big cleanup here. Handle the new
mlview.desktop file smoothly.
2003-09-04 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.[ch]:
added the emission of
the "attribute-value-changed" signal and cleanup
the prototype of the "attribute-name-changed" signal
callback. Made sure mlview_xml_document_set_attribute()
send both signals when it's relevant.
Coded the mlview_xml_document_set_attribute_name() and
make sure it sends the "attribute-name-changed" signal.
2003-09-04 Dodji Seketeli <dodji@gnome.org>
* mlview.spec.in: more cleanups and fixes.
* Makefile.am: fixed the rpm generation & add an entry to the
desktop menu.
2003-09-03 Dodji Seketeli <dodji@gnome.org>
* mlview.spec.in: cleanup and fixes.
* Makefile.am, configure.in: don't install all the crap that
is in entity-catalog anymore.
* src/mlview-xml-document.c: planing to add
mlview_xml_document_set_attribute_name() to support
the the writting of of mlview-attrs-editor.[ch].
* src/mlview-utils.h: just added a type fo enum MlViewStatus
* src/mlview-attrs-editor.[ch]: more bits pushed into this
toward the rewrite over gtk2.
2003-09-01 Metin Amiroff <metin@karegen.com>
configure.in: Added "az" in ALL_LINGUAS.
2003-09-01 Danilo Å egan <dsegan@gmx.net>
* configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
2003-08-31 Dodji Seketeli <dodji@gnome.org>
* src/mlview-attrs-editor.[ch]: initial import. The start
of the rewrite of the MlViewAttributesList widget over gtk2
* src/mlview-tree-editor2.c (mlview_tree_editor2_class_ini):
fixed some smallish typo.
* src/mlview-utils.c (mlview_utils_parse_reference):
fixed a smallish typo that made some compiler cry.
2003-08-30 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c (mlview_xml_document_set_node_content) :
added support of utf8 encoding here.
* src/mlview-tree-editor2.c: added support of "on tree edition"
for text nodes also.
* src/Makefile.am: replaced *.h by the real name of
each header file. This makes make distcheck happy.
Thank to Abel Cheung for spotting this.
* docs/mlview-internals/src/mlview-internals.xml: updated
this to test mlview a bit.
* configure.in bumped version name to 0.6.0
* src/mlview-xml-document.c:
(mlview_xml_document_synch_attributes): debuged this and made it work.
* src/mlview-utils.c:
(mlview_utils_parse_start_tag): debuged this function so that
it can actually parse a real xml start tag.
* src/mlview-tree-editor2.c (start_tag_cell_edited_cb):
made sure the code that enables edition of attributes is plugged.
2003-08-29 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c: added
mlview_xml_document_set_attribute(),
mlview_xml_document_remove_attribute(),
mlview_xml_document_synch_attributes() to help implement the
"in tree edition" feature.
* src/mlview-utils.c: mode helper function to support the
"in tree edition" feature.
* src/mlview-tree-editor2.c (start_tag_cell_edited_cb):
made this ready to call mlview_xml_document_synch_attributes ()
to update attributes.
* src/mlview-marshal.list: added a new VOID:POINTER,POINTER,POINTER
marshaller.
* src/mlview-attributes-list.[ch]: reindented this a bit.
removed any reference to the 'private' keywork to stay
ecological with respect to c++ compilers.
2003-08-28 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c: made the start tag parsing code work.
* src/mlview-tree-editor2.c: wired/enabled the
"edition in tree" functionality by default.
2003-08-27 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.[ch]: added the ability to edit
the element start tags directly in the tree.
I Basically just "wired" the process.
I Still have to make all this work.
* src/mlview-utils.[ch]: added more helper functions to support
the "on tree" edition of the element start tags. This is still
a design sketch.
2003-08-26 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.[ch]: started to write a bunch of helper functions
to support the "in tree edition" feature. Basically, these
functions are there to help parse the start tags the user edits.
Nothing is working yet, but the framework is coming along.
2003-08-23 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.c: revisited the search backend
code. Now, it seems fully functionnal.
* src/mlview-tree-editor2.c: some heavy bits pushed here
to provide an experimental support of drag'n drop.
* src/Makefile.am: moved here the definition of
PACKAGE_LOCALE_DIR and PACKAGE_DATA_DIR.
* config.h.in: removed PACKAGE_LOCALE_DIR, PACKAGE_DATA_DIR
define it on the compilation command line in src/Makefile.am
This was what has broken the i18n in the last days.
2003-08-19 Artur Flinta <aflinta@cvs.gnome.org>
* configure.in: Added "pl" to ALL_LINGUAS.
2003-08-17 Dodji Seketeli <dodji@gnome.org>
* ui/tree-view-find-dialog.glade: added a "prev" button
to allow "backward search".
* src/mlview-xml-document.c: pushed a lot of bits into this
to support the search functionality.
coded an mlview_xml_document_search2() function.
This support forward/backward progressive search directly
on the xml tree.
* src/mlview-xml-doc-tree-view.c: fixed some warnings here.
* src/mlview-utils.[ch]: added some string comparison
functions: mlview_utils_strstr(),
mlview_utils_strstr_ignore_case(),
mlview_utils_str_equals_ignore_case(),
mlview_utils_str_equals(). debugged the
mlview_utils_gtk_tree_view_expand_row_to_depth() .
* src/mlview-tree-editor2.c: wired the case insentive search.
* src/mlview-namespace-editor.c: fixed some compiler warnings.
* src/mlview-attributes-list.c: fixed some compiler warnings.
* src/mlview-app.c: moved the "search" entry
to the "edit" menu.
2003-08-15 Dodji Seketeli <dodji@gnome.org>
* ui/tree-view-find-dialog.glade: updated this to remove
support of the backward search for the moment.
* src/mlview-xml-document.c: added mlview_xml_document_search()
and its necessary helper function. This is is experimental
and need some serious enhancement to perform backward search
as well as descent progressive search.
* src/mlview-xml-doc-tree-view.c: naming cleanup was needed here.
Done. Added the searched_node_found_cb() callback to get
notified when MlViewXMLDocument finds a node that matches
the search criteria.
* src/mlview-tree-editor2.c: fixed the search calling sequence
Cleanup the search api somewhat. Removed support of
upward search as this is not yet supported by
MlViewXMLDocument. Added mlview_tree_editor2_select_node().
2003-08-14 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-document.[ch]: fixed some compiler warnings.
Moved the "search" related datatype here.
* src/mlview-tree-editor2.[ch]: pushed a lot of bits
into the new "search" coding task. Made a glade-2 based
search dialog, managed data gathering and object lifecycle.
* src/mlview-tree-editor.h: moved the types related to
"search" in src/mlview-xml-document.h
* src/mlview-preferences.c: removed a string from the list
of translatable strings.
* mlview_node_type_picker_set_title: fixed some compiler warnings.
* src/mlview-node-editor.c: fixed some compiler warnings.
* src/mlview-app.c: fixed some compiler warnings here.
* configure.in,src/Makefile.am,config.h.in:
removed the -D flags on the compilator commande line
and put them in the config.h.in -> config.h instead.
This makes a shorter command line and helps you figure
out which configure time option you have compiled with.
2003-08-12 Gaël CHAMOULAUD <strider@gnome.org>
* src/mlview-app.c: (display_about_dialog):
Fixes bugzilla bug #119709 [http://bugzilla.gnome.org/show_bug.cgi?id=119709]
- #119709: Please *don't* mark names and email addresses for translation. They
shouldn't be translated anyway, and just introduce clutter and an
unnecessary burden for translators. Additionally, having them marked for
translation introduces a danger of having them actually "translated" by
accident and/or misspelled. Thanks to Christian Rose <menthos@menthos.com>.
2003-08-11 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-doc-tree-view.c:
+ mlview_xml_doc_tree_view_cut_node(),
mlview_xml_doc_tree_view_copy_node(),
mlview_xml_doc_tree_view_paste_node_as_prev_sibling():
make these work.
* src/mlview-tree-editor2.c:
+nodeset_selected_cb(): handle the case when no node
is selected.
+mlview_tree_editor2_update_node_cut(): free the
instance of gtkrowreference whenever a node gets cut and
fixed an assert condition.
* src/mlview-app.c: fixed the copyrights date.
2003-08-10 Dodji Seketeli <dodji@gnome.org>
* src/mlview-app.c: changed
static void go_url_home_cb () into
static void go_url_home_cb (void) to fix some compiler
warnings.
* src/mlview-tree-editor2.c:
+ fixed the "insert sibling node" workflow
in build_tree_model_from_xml_tree()
+ removed the use of g_object_unref() to destroy the instance
of node type picker. Replaced it by gtk_widget_destroy().
This fixes some crashes I had.
* src/mlview-node-type-picker.c: added
mlview_node_type_picker_dispose() and
mlview_node_type_picker_finalize() for a more convenient
object destruction handling. Removed
mlview_node_type_picker_destroy().
2003-08-10 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* src/mlview-app.c: (go_url_home_cb): Added a link to go
directly on the mlview website (http://www.mlview.org)
2003-08-10 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* po/ChangeLog:
* po/ca.po:
* po/cs.po:
* po/es.po:
* po/fr.po:
* po/ja.po:
* po/ml.po:
* po/ms.po:
* po/nl.po:
* po/pt.po:
* po/pt_BR.po:
* po/sv.po:
* src/mlview-app.c: (display_about_dialog): Added a
small pixbuf for gnome-about widget and updated our email
<dodji@mlview.org> & <strider@mlview.org>
2003-08-09 Hasbullah Bin Pit <sebol@ikhlas.com>
* configure.in: Added 'ms' (Malay) to ALL_LINGUAS.
* po/ms.po: Added Malay translation.
2003-08-09 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c: fixed a crasher due
to a bad handling of the object destruction process.
This took adding proper mlview_tree_editor2_finalize()
and mlview_tree_editor2_dispose(). Also fixed
the leaks due to bad management of instances of
GtkTreePath .
* src/mlview-xml-doc-tree-view.[ch]: moved the
#define TREE_EDITOR2 to the .h file.
* src/mlview-tree-editor2.[ch]: heavy debugging.
fixed some crashers.
A lots of leaks remain due to improper management
of tree_path and rowreference.
2003-08-07 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-doc-tree-view.[ch]: some big changes here.
the porting over the MlViewTreeEditor2 widget compiles now.
I still have to debug this and make it work. The
ported widget is protected by #ifdef TREE_EDITOR2.
* src/mlview-tree-editor2.[ch]: added
mlview_tree_editor2_get_cur_sel_start().
2003-08-05 Dodji Seketeli <dodji@gnome.org>
* src/mlview-xml-doc-tree-view.c: started to migrate from
the use of MlViewTreeEditor to MlViewTreeEditor2.
This is protected by a #define for the time being.
Anyway, nothing is visible still :-\.
* src/mlview-tree-editor2.[ch]: documented the signal callbacks
and removed the useless ones.
* src/mlview-tree-editor.c: removed the useless signals.
2003-08-05 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* po/ca.po:
* po/cs.po:
* po/es.po:
* po/fr.po:
* po/ja.po:
* po/nl.po:
* po/pt.po:
* po/pt_BR.po:
* po/sv.po:
* src/mlview-app.c:
Fixes bugzilla bug #119008 [http://bugzilla.gnome.org/show_bug.cgi?id=119008]
- #119008: mlview msgid includes non-ASCII character breaking gettext
Unmarked "Copyright © 2002-2003 Dodji Seketeli, Gael Chamoulaud" string for translation
Thanks to Christian Rose <menthos@menthos.com>
2003-08-05 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* po/ca.po:
* po/cs.po:
* po/es.po:
* po/fr.po:
* po/ja.po:
* po/nl.po:
* po/pt.po:
* po/pt_BR.po:
* po/sv.po:
* ui/mlview-dtd-choice.glade:
* ui/mlview-preferences.glade:
Fixes bugzilla bug #119010 [http://bugzilla.gnome.org/show_bug.cgi?id=119010]
- #119010: Remove unnecessary markup from glade messages in mlview
Thanks to Christian Rose <menthos@menthos.com>
2003-08-05 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* po/ca.po:
* po/cs.po:
* po/es.po:
* po/fr.po:
* po/ja.po:
* po/nl.po:
* po/pt.po:
* po/pt_BR.po:
* po/sv.po:
* src/mlview-node-editor.c:
* src/mlview-settings-builder.c:
* src/mlview-xml-doc-tree-view.c:
* ui/mlview-preferences.glade:
Fixes bugzilla bug #119169 [http://bugzilla.gnome.org/show_bug.cgi?id=119169]
- #119169: Avoid trailing spaces in mlview messages
Thanks to Christian Rose <menthos@menthos.com>
2003-08-04 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* po/ca.po:
* po/cs.po:
* po/es.po:
* po/fr.po:
* po/ja.po:
* po/nl.po:
* po/pt.po:
* po/pt_BR.po:
* po/sv.po:
* src/mlview-attribute-picker.c:
* src/mlview-editor.c:
* src/mlview-parsing-utils.c:
* src/mlview-settings-builder.c:
* src/mlview-utils.c:
* src/mlview-xml-document.c:
* ui/mlview-dtd-choice.glade:
* ui/mlview-preferences.glade:
Fixes bugzilla bug #119011 and #119012
- #119011: Whitespace before punctuation in mlview messages
- #119012: Missing "file" in mlview message
2003-08-04 Dodji Seketeli <dodji@gnome.org>
* src/mlview-utils.c: coded a new
mlview_utils_gtk_tree_view_expand_row_to_depth() that
expands a row of a gtktreeview to a given depth.
* src/mlview-tree-editor2.c: more code toward
the MlViewTreeEditor rewrite.
* src/mlview-tree-editor.c: re-indented this a bit.
2003-08-03 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.[ch]:
ported/recoded a couple of functions for gtk2.
* src/mlview-tree-editor.c (mlview_tree_editor_set_root_element):
fixed a smallish harmless bug here.
* src/mlview-node-type-picker.c: fixed compiler warnings here.
* src/mlview-utils.c (mlview_utils_init_i18n):
fixed the i18 init bug that was breaking the utf8 strings.
The init is now calls bind_textdomain_codeset (PACKAGE, "UTF-8").
Thanks to Christophe Merlet<redfox@redfoxcenter.org> for spoting thing.
* src/mlview-app.c: removed the pixbuf from the about dialog
because it was too big. The about dialog now has a human size ;) This
has been reported by Christophe Merlet<redfox@redfoxcenter.org>
2003-08-02 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c: more code pushed into this.
* src/mlview-app.c, src/mlview-attributes-list.c,
src/mlview-editor.c, src/mlview-namespace-editor.c,
src/mlview-node-type-picker.c, src/mlview-parsing-utils.c,
src/mlview-preferences.c, src/mlview-tree-editor.c:
updated the calls to
mlview_app_context_set_window_icon() to comply with the new
prototype of this function.
* src/mlview-file-selection.c: fixed a gcc warning.
* mlview-indent: added this new indentation script that indents
the mlview sources the right way.
* src/*.[ch]: run the mlview-indent script on all the files.
they now follow the gnome coding style as specified at
http://developer.gnome.org/doc/guides/programming-guidelines/code-style.html.
* src/mlview-attribute-picker.c:applied a patch from Fabrice Plard
to fixed a crash due to an uninitialized variable.
* src/mlview-app-context.c (mlview_app_context_set_window_icon): applied
a patch from Fabrice Plard to fixe this and make it work under gnome2.
2003-08-01 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.[ch]: pushed more code into
the rewrite of the MlViewTreeEditor widget. I am still
damn far from the target, but thinks are coming along nicely.
* src/mlview-app-context.[ch]: make this properly
inherit GObject instead of GtkObject.
2003-07-31 GAEL CHAMOULAUD (strider) <strider@gnome.org>
* po/ca.po: update po files with new strings
* po/cs.po: update po files with new strings
* po/es.po: update po files with new strings
* po/fr.po: update po files with new strings
* po/ja.po: update po files with new strings
* po/nl.po: update po files with new strings
* po/pt.po: update po files with new strings
* po/pt_BR.po: update po files with new strings
* po/sv.po: update po files with new strings
2003-07-31 Dodji Seketeli <dodji@gnome.org>
* src/*.c: Applied a patch from Fabrice Plat <fabriceplat@yahoo.fr>
to replace all the GnomeDialog used in mlview by GtkDialog.
This is a very usefull patch as GnomeDialog is deprecated in gnome2.
Dodji.
2003-07-27 GAEL CHAMOULAUD (strider) <strider@gnome.org>
* src/mlview-parsing-utils.c: Used mlview_utils_glade_widget_is_unable method
* src/mlview-preferences.c: Used mlview_utils_glade_widget_is_unable method
* src/mlview-utils.c: Coded a new method (mlview_utils_glade_widget_is_unable):
* src/mlview-utils.h: Coded a new method (mlview_utils_glade_widget_is_unable):
2003-07-27 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* src/mlview-parsing-utils.c:
(mlview_parsing_utils_ask_for_DTD_change_and_validation): Used a new GtkDialog
widget for resolve external entity
* ui/mlview-dtd-choice.glade: added an other GtkDialog Widget
2003-07-27 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* src/mlview-parsing-utils.c:
(mlview_parsing_utils_ask_for_DTD_change_and_validation):
Changed the gnome-dialog (is deprecated) by a gtk-dialog with libglade
* src/mlview-preferences.c: small clean up
* ui/Makefile.am: Added a new glade file for dtd change
and validation dialog
* ui/mlview-preferences.glade: Added a new glade file for dtd change and
validation dialog
2003-07-27 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c:cleaned up the gtk1 signal
legacy and made it gtk2 compliant. Started to code
nodeset_selected_cb() function. Going toward the
coding of all the functions needed to have this widget
embedded into the MlViewXMlDocTreeView widget.
2003-07-26 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c: when forward in the rewrite
of this for gtk2 compliance. Started to think about
how to associate a treestore row to an xmlNode * at a
very low cost.
* src/mlview-parsing-utils.c: removed some useless/staled
function declarations/definitions.
* src/mlview-preferences.c: fixed some compile time
warnings
* src/mlview-attributes-list.c: fixed some compile time
warnings.
2003-07-26 Dodji Seketeli <dodji@gnome.org>
* src/mlview-tree-editor2.c: started this new widget which
is basically the port of mlview-tree-editor.c over gtk2.
It is pretty useless for the time being but we gona be able to
test it soon.
* src/mlview-tree-editor.c: some reindentation was needed here.
* src/Makefile.am: added the mlview-tree-editor2.c file
in the list of files to be compiled.
2003-07-21 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* src/mlview-app.c: (edit_settings_cb):
* src/mlview-preferences.c: (mlview_preferences_dialog_show): Fetched the mlview
context for the icon widget's settings.
* src/mlview-preferences.h:
* ui/mlview-preferences.glade: small clean up
2003-07-21 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* src/mlview-preferences.c: Made a few modification
2003-07-20 Gaël CHAMOULAUD (strider) <strider@gnome.org>
* Makefile.am:
* configure.in: added libglade checking
* src/Makefile.am:
* src/mlview-app.c: (edit_settings_cb):
* src/mlview-preferences.c: (column_set_func_pixbuf),
(mlview_preferences_unload_current_page),
(mlview_preferences_load_page),
(mlview_preferences_change_page_cb),
(mlview_preferences_icon_list),
(mlview_preferences_dialog_response_cb),
(mlview_preferences_dialog_show): a new settings interface made with libglade
* src/mlview-preferences.h:
* ui/Makefile.am:
* ui/mlview-preferences.glade:
2003-07-18 Dodji <dodji@gnome.org>
* src/mlview-app.c: removed the old buggy application settings
code/widget. Strider<strider@freespiders.org> is writing a new
settings widget.
* src/mlview-parsing-utils.c (load_xml_document_from_local_file ):
cleanup.
(mlview_external_entity_loader): if the external entity URI
hasn't been resolved through the normal catalog, try
to load the entity from the disk if it is a local URI.
Give libxml2 the correct parsing context it expects.
2003-07-13 dodji <dodji@gnome.org>
* src/mlview-editor.c: fixed bug http://bugzilla.gnome.org/show_bug.cgi?id=117152.
2003-07-11 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c: heavily revisited the loading
sequence of an xml document. Libxml2's sax userData field is used
by the sax handlers which build the DOM so there is no place left
for mlview to store it's context. I removed the ugly hack I did
before and replaced it by a global variable to store the mlview app
context. This is still ugly but less than the previous implementation.
This is still a work in progress.
* src/mlview-app-context.c, src/mlview-app.c: make sure MlViewAppContext correctly ihnerits
GObject and not GtkObject anymore. Remove all the call to the
GTK_OBJECT_XX macros on instances of MlViewAppContext.
* src/main.c: use mlview_utils_init()/mlview_utils_cleanup().
* src/mlview-utils.[ch]: added new
mlview_utils_init()/mlview_utils_cleanup()
to init/cleanup libxml catalog stuffs. In the future, these
functions will be the place to put global mlview init/cleanup stuffs.
2003-07-09 Dodji Seketeli
* src/Makefile.am: added the marshall.[ch] in the build system.
* all: made a lot gtk2 compilance and stability fixes.
2003-07-06 Dodji <dodji@gnome.org>
* src/mlview-editor.c: gnome2 port modifications.
Fixed some compiler warnings.
* all-files: merged gnome2-port branch into the HEAD.
fixed a lot of compiler warnings.
2003-06-22 Jordi Mallach <jordi@sindominio.net>
* configure.in (ALL_LINGUAS): Added "ca" (Catalan).
2003-06-01 Miloslav Trmac <mitr@volny.cz>
* configure.in: Added "cs" (Czech) to ALL_LINGUAS.
2003-04-17 Christian Rose <menthos@menthos.com>
* configure.in: Added "sv" to ALL_LINGUAS.
2003-04-16 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added "pt" (Portuguese) to ALL_LINGUAS.
2003-03-05 Gaël Chamoulaud <strider@freespiders.org>
* configure.in: fix a configure bug. Make sure to properly check
the libxml2 versions.
2003-06-28 Gaël Chamoulaud (strider) <strider@freespiders.org>
* pixmaps/Makefile.am: Added mlview-app-icon.png
and clean up Makefile.am
* src/mlview-app.c (display_about_dialog): fixed the display
of the mlview's logo. Tests if the about window is present.
2003-06-28 Gaël Chamoulaud (strider) <strider@freespiders.org>
* src/mlview-xml-doc-tree-view.c: Modified the main UI
2003-06-28 Gaël Chamoulaud (strider) <strider@freespiders.org>
* configure.in : Made a big cleanup.
2003-06-22 Gaël Chamoulaud (strider) <strider@freespiders.org>
* configure.in (ALL_LINGUAS): Added "ca" (Catalan)
Thanks to Jordim Mallach
=== gnome-mlview 0.5.0 ===
2003-06-15 Gaêl Chamoulaud (strider) <strider@freespiders.org>
* configure.in: bump version # to 0.5.O
2003-04-29 Evandro Fernandes Giovanini <evandrofg@ig.com.br>
* configure.in(ALL_LINGUAS): Added "pt_BR" (Brazilian
Portuguese).
2003-04-28 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
* configure.in: Added "es" to ALL_LINGUAS.
2003-04-17 Christian Rose <menthos@menthos.com>
* configure.in: Added "sv" to ALL_LINGUAS.
2003-04-16 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added "pt" (Portuguese) to ALL_LINGUAS.
2003-03-17 Gaël Chamoulaud <strider@freespiders.org>
* src/mlview-app.c
(g_menu_edit_tree): Added Stock button
(g_toolbar): Added a settings button on toolbar
2003-03-16 Gaël Chamoulaud <strider@freespiders.org>
* all-files: big cleanup
2003-03-13 Gaël Chamoulaud <strider@freespiders.org>
* src/mlview-app.c (display_about_dialog):
Modified method for translation
2003-03-09 Gaël Chamoulaud <strider@freespiders.org>
* src/mlview-file-selection.c (mlview_file_selection_mark_destroy):
change the interface of mlview_file_selection_mark_destroy ()
signal emitted by the GtkWidget MlviewFileSelection.
2003-02-22 Dodji <dodji@gnome.org>
* src/mlview-file-selection.c:
change the interface of mlview_file_selection_closed_callback ()
which is a callback to connect to the "delete-event"
signal emitted by the GtkWidget MlViewFileSelection.
Took also care to call gtk_widget_hide() to properly hide
the widget when the user clicks on the destroy cross of the
MlViewFileSelection window.
2003-02-14 Gaël Chamoulaud (Strider) <strider@freespiders.org>
* src/Makefile.am (LDADD): fix a Makefile bug !
2003-02-11 Gaël Chamoulaud (Strider) <strider@freespiders.org>
* configure.in: Fix the autoconf Warning
(AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"GETTEXT_PACKAGE",[fix]))
* accconfig.h: deprecated. It has been deleted !
2003-02-09 Dodji <dodji@gnome.org>
* all-files: first version of a gnome2 port by
strider <the_strider@freespiders.org>. Yeepy !!!.
2003-01-14 gettextize <bug-gnu-gettext@gnu.org>
* Makefile.am (SUBDIRS): Add m4.
(SUBDIRS): Remove intl.
(ACLOCAL_AMFLAGS): New variable.
(EXTRA_DIST): Add config.rpath.
* configure.in (AC_OUTPUT): Add m4/Makefile.
2002-12-27 dodji <dodji@gnome.org>
* configure.in: made a big cleanup. Made sure autoconf 2.5x must be
used. Refactored the version management and gnome libs checking.
* Makefile.am (EXTRA_DIST): added the mlview-internals.xml doc in the distro.
2002-12-17 dodji <dodji@gnome.org>
* configure.in (REQUIRED_MINOR): fixed a configure bug. Make sure to properly
check the libxml2 versions. The bug was reported by Gael Chamoulaud <the_strider@parinux.org>
2002-12-03 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c (load_xml_document_from_local_file):
applied the intial patch of Pierre Barbier de Reuille to support
gzipped loading and saving of gzipped files.
* configure.in: update to check the presence of zlib.
* src/Makefile.am (libmlview_la_LDFLAGS): updated the makefile
to make the versioning of the library comply with gun libtools rules.
* src/mlview-utils.c (mlview_utils_set_window_deco):
Transformed the "is window realized" assert into a simple test.
* src/mlview-editor.c (mlview_editor_close_xml_document_without_saving):
bugfix: handle correctly the NULLing of the current view pointer.
2002-11-16 dodji <dodji@gnome.org>
* src/mlview-editor.c (mlview_editor_remove_xml_document_view):
fixed an illegal read error thanks to valgrind.
2002-11-14 dodji <dodji@gnome.org>
* src/mlview-editor.c (mlview_editor_save_xml_document_as):
bugfix: when doing save as, update the reference to the new
file path and remove the reference to the old one.
* src/mlview-xml-document.c (mlview_xml_document_save):
bugfix: notify the save only if it succeeds.
* src/mlview-utils.c (mlview_utils_set_window_deco):
Added this function to set the icon of the windows of mlview.
I have to make sure this function is used everywhere it is needed.
* src/mlview-app-context.c (mlview_app_context_error):
made this function use the new mlview_utils_display_error_dialog()
instead of gnome_app_error().
* src/mlview-utils.c (mlview_utils_display_error_dialog):
added this function to wrap error messages in a GtkText.
That way, MlView won't display ultra long error message boxes
anymore. I still have to make sure this function is used
anywhere it is needed in the code.
2002-11-10 dodji <dodji@gnome.org>
* src/mlview-app-context.c (mlview_app_context_destroy):
fixed a memleak by destroying the global file selection widget.
* src/mlview-parsing-utils.c (mlview_parsing_utils_load_a_dtd):
* src/mlview-parsing-utils.c (load_xml_document_from_local_file):
* src/mlview-settings-management.c (mlview_settings_manager_load_settings_from_disk):
fixed memleaks by calling xmlCleanupParsrer each time we parse
a file.
* src/mlview-settings-builder.c: fixed a memleak.
2002-11-07 dodji <dodji@gnome.org>
* src/mlview-xml-document.c (mlview_xml_document_destroy):
fixed some memleaks.
2002-11-06 dodji <dodji@gnome.org>
* src/mlview-tree-editor.c (build_ctree_from_xml_tree):
fixed a stupid memory leak bug.
* configure.in: updated the version number. Made sure to
test the presence of libxml2 2.4.26
* Makefile.am (uninstall-local): made sure the uninstall does
not stop if the rm fails.
* src/mlview-attributes-list.c: fixed a mem leak bug.
2002-11-03 dodji <dodji@gnome.org>
* src/mlview-xml-document.c (mlview_xml_document_save):
Modified the signature and the behaviour of this function.
I've also removed the mlview_xml_document_save_as function.
Now, only mlview_xml_document_save() does the job
of saving the document. I have also provided this function
with facilities to warn the user on each attempt to overwrite
an existing file.
* src/mlview-editor.c (mlview_editor_save_xml_document_as):
The update of the view name is made here anymore. It is made
in mlview_xml_doc_tree_view_set_xml_document_path() instead.
2002-11-02 dodji <dodji@gnome.org>
* src/mlview-editor.c (mlview_editor_open_local_xml_document_interactive):
* src/mlview-editor.c (mlview_editor_save_xml_document_as_interactive):
* src/mlview-editor.c (mlview_editor_save_and_close_xml_document):
* src/mlview-editor.c (mlview_parsing_utils_let_user_choose_a_dtd):
strduped the result of gtk_file_selection_get_filename() to avoid side effects.
2002-10-31 dodji <dodji@gnome.org>
* src/mlview-editor.c (mlview_editor_create_new_xml_document):
started to fix a bug reported by Pierre-Paul Lavoie<ppl@nbnet.nb.ca>:
the children list of the root node was not automatically built so the
xmlValidGetValidElements() function called on the root element
was not working. This is due to how the xmlValidGetValidElements is
coded: if the current element node is not valid, it does not return
the list of it valid feasible elements.
2002-10-26 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c (mlview_parsing_utils_validate_dtd):
fixed a crash bug: replaced the call to xmlValidateDocument() by
xmlValidateDtd().
* src/mlview-parsing-utils.c (mlview_parsing_utils_build_attribute_value_set ):
fixed a crash bug: the attributes desc of the DTD hold a dangling pointer to
a "doc". So One must neve reference this pointer. To access the xml doc from
the attribute desc, one should instead use parent->doc instead. This is what
I have done.
2002-10-24 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c (custom_xmlSAXParseDTD): fixed a leak
and prevent a memory corruption. To prevent the memory corruption,
(the double free bug of the 2002-10-22) I have coded and used
the method mlview_parser_ctxt_update_real_context() .
2002-10-22 dodji <dodji@gnome.org>
* src/mlview-app-context.c (mlview_app_context_destroy): fixed a
memory leak.
* src/mlview-parsing-utils.c (custom_xmlSAXParseDTD): fixed a double
free bugs.
* src/mlview-tree-editor.c (node_to_start_tag): fixed some memory
pbs spotted by valgrind.
2002-09-18 dodji <dodji@gnome.org>
* src/mlview-node-editor.c: started to work on the following
feature: provide facility to choose the encoding of the saved
xml file. I have just started to code some few functions:
mlview_node_editor_get_available_encodings ()
mlview_node_editor_add_supported_encoding ()
mlview_node_editor_del_supported_encoding ()
mlview_node_editor_ref_available_encodings ()
mlview_node_editor_unref_available_encodings ()
I still have to go forward with this.
(mlview_node_editor_unref_available_encodings):
fixed another silly bug... humm... I am too tired this night.
It's time to go to bed.
* src/mlview-tree-editor.c (node_to_start_tag): fixed a silly bug.
2002-09-16 dodji <dodji@gnome.org>
* src/mlview-node-type-picker.c:
(mlview_node_type_picker_clear_node_type_choice_list):
Fixed a minor bug: made sure to block the signal emission before
clearing the node type picker. Also made sure to restore it
before returning.
* src/mlview-node-editor.c:
(mlview_node_editor_xml_element_node_view_edit_xml_node):
(mlview_node_editor_xml_text_node_view_edit_xml_node):
(mlview_node_editor_xml_comment_node_view_edit_xml_node):
(mlview_node_editor_xml_cdata_section_node_view_edit_xml_node):
(mlview_node_editor_xml_pi_node_view_edit_xml_node):
(mlview_node_editor_xml_pi_node_view_edit_xml_node):
(mlview_node_editor_name_changed_cb):
(mlview_node_editor_content_changed_cb):
made all these function isolat1 aware. I've just made
them use the isolat1 aware function of mlview-xml-document.c
and mlview-utils.c.
* src/mlview-xml-document.c :
modified the signature of the following functions to
be able to choose wether if they should emit signals or not:
mlview_xml_document_add_child_node (),
mlview_xml_document_cut_node (),
mlview_xml_document_insert_prev_sibling_node (),
mlview_xml_document_insert_next_sibling_node (),
mlview_xml_document_paste_node_as_child (),
mlview_xml_document_set_node_content (),
mlview_xml_document_set_node_name () .
Of course, modifying these functions implied modifying
all the code that was calling'em.
I've debugged the following isolatin1 aware functions:
mlview_xml_document_set_node_name (),
mlview_xml_document_node_get_name (),
mlview_xml_document_node_get_fqn_len_as_isolat1 (),
mlview_xml_document_node_get_fqn (),
mlview_xml_document_node_get_content (),
mlview_xml_document_set_node_content () .
I've modified these isolatin1 aware functions to make'em
much more easy to use:
mlview_xml_document_node_get_name (),
mlview_xml_document_node_get_fqn_len_as_isolat1 (),
mlview_xml_document_node_get_fqn (),
mlview_xml_document_node_get_content (),
* src/mlview-utils.c: modified all the iso latin1 functions
to provide them with better names, better signatures.
Oh, I've also somehow debugged'em. Here is
the list of these modified debugged functions:
mlview_utils_isolat1_str_len_as_utf8 (),
mlview_utils_utf8_str_len_as_isolat1 (),
mlview_utils_isolat1_str_to_utf8 (),
mlview_utils_utf8_str_to_isolat1 () .
2002-09-12 dodji <dodji@gnome.org>
* src/mlview-node-editor.c: added support of iso8859_1
viewing in node editior for
name and content viewing.
Still have to do the same thing for edition. I have not
tested anything yet.
2002-09-11 dodji <dodji@gnome.org>
* src/mlview-utils.c:
added the following functions to support iso8859_1 edition:
mlview_utils_iso_8859_1_str_len_as_utf8 (),
mlview_utils_utf8_str_len_as_iso8859_1 ().
* src/mlview-xml-document.c:
added more functions to support iso9959_1 char edition.
these functions are :
mlview_xml_document_node_get_fqn_len_as_iso8859_1 (),
mlview_xml_document_node_get_name (),
mlview_xml_document_node_get_fqn (), and
mlview_xml_document_node_get_content () .
* src/mlview-node-editor.c
(mlview_node_editor_xml_element_node_view_edit_xml_node) :
modified this function to make it support iso8859_1 char edition.
2002-09-10 dodji <dodji@gnome.org>
* src/mlview-utils.c (mlview_utils_translate_str_to_utf8):
debugged this function.
* src/mlview-xml-document.c (mlview_xml_document_set_node_content):
started to add support for
editing iso8859_1 caracter set.
* src/mlview-tree-editor.c (node_to_start_tag):
started to add support for
editing iso8859_1 caracter set.
2002-09-08 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c
(mlview_parsing_utils_build_graphical_attribute_value_set):
Applied a patch from Pierre Barbier de Reuille <pierre.barbierdereuille@wanadoo.fr>
to fix a silly pointer bug. Many thanks to Pierre :)
2002-08-30 dodji <dodji@gnome.org>
* Makefile.am:
applied patch from Gregory Leblanc <gleblanc@linuxweasel.com>
to fix broken
sym links at install time.
2002-08-24 dodji <dodji@gnome.org>
* po/ja.po:
updated po file graciously sent
by takeshi aihana <aihana@jcom.home.ne.jp>.
* src/Makefile.am:
applied patch from takeshi aihana <aihana@jcom.home.ne.jp>
to fix compile time error that occurs when both
libxml1 and libxml2 headers files
are installed on the system.
2002-08-22 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c (mlview_parsing_utils_validate_dtd):
* src/mlview-xml-document.c (mlview_xml_document_validate):
* src/mlview-parsing-utils.c
(mlview_custom_external_subset_sax_handler):
made a modif to fix bug #999.
This modif intends to take internal subset in account when triggering the validation.
2002-06-27 dodji <dodji@gnome.org>
* src/mlview-tree-editor.c
(mlview_tree_editor_add_child_node_interactive): fixed bug 729.
2002-06-26 dodji <dodji@gnome.org>
* src/mlview-editor.c: fixed bug 723.
* src/mlview-parsing-utils.c (load_xml_document_from_local_file): added indentation to the saved source.
2002-06-23 dodji <dodji@gnome.org>
* src/mlview-xml-document.c (mlview_xml_document_add_child_node): modified the signature of the this method to fix bug 727. Now, this
one can choose not to add required subtree even if validation is turned on.
2002-06-20 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c (mlview_parsing_utils_build_attribute_name_completion_list): added alphabetical sorting to
the attribute name completion list.
(build_required_element_content): debbuged this function. Added support of detection of infinite loop in the dtd tree... especially in the
OR declarations. Fixed some crashed that were related to this kind of infinite loops.
2002-06-20 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c (mlview_parsing_utils_build_element_name_completion_list): debugged this function (fixed bug 700) and made it use
the newly coded xmlValidGetValidElementsChildren () function. Added alphabetical sorting of the element names completion list.
* src/utils.c: added a the function xmlValidGetValidElementsChildren (). It does the job of xmlValidGetValidElements ()
when the element does not have any children and when we want to add children to it.
2002-06-18 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c (build_required_element_content): Fixed a bug. Seems to work better now. Still have to test it.
2002-06-18 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c (mlview_parsing_utils_build_required_children_tree): debugged this function.
seems to work on docbook doc now. Still have to test it.
2002-06-07 dodji <dodji@gnome.org>
* src/mlview-editor.c: added the "set-name" feature. I've tested it a bit. It still in a beta stage.
2002-06-06 dodji <dodji@gnome.org>
* src/mlview-xml-document.c: created calls to mlview_xml_document_set_node_content () and
mlview_xml_document_set_node_name ()
* src/mlview-node-editor.c: replaced the calls to xmlNodeSetContent () and xmlNodeSetName ()
by the corresponding calls to mlview_xml_document_set_...()
2002-05-27 dodji <dodji@gnome.org>
* src/mlview-xml-document.c: finished the code of the function mlview_xml_document_add_child_node (). It
works somehow now.
* src/mlview-parsing-utils.c:
=>coded the function mlview_parsing_utils_build_attribute_value_set () on the model of
mlview_attribute_picker_build_attribute_value_set (). Replaced all the calls to
mlview_attribute_picker_build_attribute_value_set () by calls to
mlview_parsing_utils_build_attribute_value_set ().
=>coded the function mlview_parsing_utils_build_required_attributes_list ().
=>finished the code of mlview_parsing_utils_build_required_children_tree () by integrating
the building of the attributes of each node added to the required children tree.
2002-05-12 dodji <dodji@gnome.org>
* src/mlview-tree-editor.c: completely removed the node clipboard of MlViewTreeEditor class. The node clipboard is now located in
the MlViewXMLDocument class.
2002-05-11 dodji <dodji@gnome.org>
* src/mlview-xml-doc-tree-view.c: revisited the following items of MlViewXMLDocTreeView:
=>made it inherit MlViewXMLView for future extensibility.
=>modified the creation of this object so that it is created from an MlViewXMLDocument. During the creation,
this view connects itself to the signals of the MlViewXMLDocument given in parameter. Still have to handle
the destruction of the view so that it disconnects from the MlViewXMLDocument signals.
=>provide the callbacks that handle the edition events fired by the MlViewXMLDocument objects
* src/mlview-tree-editor.c: started to rewrite the edition methods of this object so that they invoke
the edition methods of the MlViewXMLDocument class instead of the methods of the underlying libxml.
So far, i have written the methods associated to the followind edition actions:
"add-child-node", "insert-sibling-node", "cut", "paste-node-as-child", "paste-node-as-sibling".
* src/mlview-xml-document.c: this object is now an active xml DOM wrapper. It is nearly the heart of mlview now.
it contains edition methods that emit signal after each significant edition action. The views just have to
1)call the edition methods of this objects and not the methods of the underlying libxml.
2)connect to this object's edition signals and provide callbacks to update theirselves.
2002-03-24 dodji <dodji@gnome.org>
* Makefile.am: updated licence info + added mlview, gnome-mlview and gmlview as mlview binary names.
(Thanks to Nestor Diaz <nestordi@usuarios.retecal.es> for bug reports)
* src/main.c: have the i18n stuffs working now.
* src/mlview-editor.c: added support for the contextual menu.
* src/mlview-attribute-picker.c (mlview_attribute_picker_destroy): updated the destructor.
* src/mlview-settings-builder.c (mlview_settings_builder_destroy): updated the destruction function.
* src/mlview-parsing-utils.c (mlview_custom_external_subset_sax_handler): bug: When validation is on and the document has
no dtd associated, mlview produces an error message and does not load the dtd. Fixed.
2002-03-12 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c: provided this file with routines that support elements/attributes name completion.
2002-03-09 dodji <dodji@gnome.org>
* src/mlview-tree-editor.c: coded the "expand to node feature".
* src/mlview-xml-doc-tree-view.c: integrated the expand to node feature.
* src/mlview-xml-document.c: the doc does not hold the different views anymore. The views are now build from the document.
* src/mlview-xml-document-view.c: created this class to be the base class of the document views.
* src/mlview-editor.c: started a code cleanup. Now, the views are build from the document. Still have to transform the document
into an active gtkobject that can emit signals. The editor does not hold document anymore. It holds views intead. this is a preparation
for the multiview orientation of mlview. I want to be able to work on this feature progressively and smoothly across the releases ...
2002-03-02 dodji <dodji@gnome.org>
* src/mlview-node-type-picker.c: this widget is now capable of doing element names completion.
* src/mlview-settings-builder.c: another brand new widget component. Based on the mlview-settings-management.c framework, its job is
to centralize the building of the settings daialog, to enable these settings to be put inside a hash table. this hash table is then
passed to mlview-app-context.c component. As all the other components of mlview have accessed to instances of MlViewAppContext, they
all can accessed the settings. And that avoids using global variables for settings management.
* src/mlview-attribute-picker.c: pushed the code of this widget to a somewhat useable standpoint. It still in early alpha stage but it can
do some basic name completion jobs whenever validation is on .. hmmmh still have to give it the ability to detect that validation is on/off.
i started to use *+use the gtk_widget_set_sentive () func to set some button insensitive when they cannot be accessed. Still have to generalize that
to all the gui.
* src/mlview-attributes-list.c: renamed this widget from the former properties-list widget. Made it aware of the brand new MlViewAttributePicker widget.
* src/mlview-parsing-utils.c (mlview_custom_external_subset_sax_handler): cleaned up this function. Have now some clean basis of the work flow of
the loading of the xml document.
More generally, changed this file a lot since last entry. Can now pass the MlViewAppContext to the sax handler by inheriting the
xmlParserCtxt etc ...
Also overrides the error display routines of libxml more cleanly.
* src/mlview-editor.c (mlview_editor_load_xml_file): fixed a bug that caused the document to freeze when an attempt to load
the same document a second time without validation lead to WF errors.
2002-02-06 dodji <dodji@gnome.org>
* src/mlview-attribute-picker.c: Started to add support of attribute name completion. This widget is new.
* src/mlview-attributes-list.c: fixed a bug that freezed mlview whenever user enter a null string attribute name or value.
2002-01-27 dodji <dodji@gnome.org>
* Makefile.am: added the rpm target. Can now build rpms
2002-01-20 dodji <dodji@gnome.org>
* src/mlview-xml-document.c: fixed some few bugs that occured uppon cancel of some actions.
* src/mlview-parsing-utils.c: debugged the error reporting functions.
2002-01-18 dodji <dodji@gnome.org>
* src/mlview-parsing-utils.c: overloaded the error reporting function of libxml to display graphicaly the error reported by libxml at
xml doc parse time.
* src/mlview-app-context.c: added the messages display facilities.
2002-01-16 dodji <dodji@gnome.org>
* src/mlview-app-context.c: started to add status messaging. Wrapped some of the methods of GnomeAppBar so that
status reporting can be logged fo further analysis ... why not ?.
2002-01-13 dodji <dodji@gnome.org>
* src/mlview-xml-document.c: coded the validation on demand. Fixed a couple of bugs in the validation code that i started.
Still have to code an error and message reporting architecture. That is very important to report parsing and validation errors.
* src/mlview-file-selection.c: this widget is now useable and is used. It extends GtkFileSelection allowing users to
invoque a blocking run() method that will do all the interaction with the user before returning. The run() method returns
the number of the button clicked by the user.
2002-01-06 dodji <dodji@gnome.org>
* src/mlview-xml-document.c: started to add the validation to the xml file load sequence. Can now validate an xml file against
a local dtd. Still have to improve the user interface.
* src/mlview-editor.c: started to modify the way we handle fileselection sequence. The way it is done is too complicated today.
that is due to the way GtkFileSelection widget is designed. It requires callbacks connected to each buttons ... which is fine.
But what i would like is a behaviour like GnomeDialog one. I want to invoke a king of gtk_file_selection_run method which returns
when the user has selected one file. I can then retrieve the information i need from the widget. That would be better imho.
2002-01-03 dodji <dodji@gnome.org>
* src/mlview-tree-editor.c: made MlViewEditor aware of settings management by laying on the settings management framework.
still working for one setting exported by MlViewTreeEditor component.
* src/mlview-settings-management.c: added this file a couple of weeks ago. It contains the settings management framework functions. The
whole thing seems to work somehow... still have to debug settings uninstall functionality
* src/mlview-tree-editor.c: long since last changelog. Added support of settings. The initial expansion level of the xml tree
is now part of a settings set that contains ... only that setting. Have to debug settings entry destruction ...
2001-12-06 dodji <dodji@gnome.org>
* src/mlview-xml-document.c: put all the low level things related to xml parsing in the new file mlview-parsing-utils.c
* src/mlview-parsing-utils.c: put in this new file all the low level stuffs related to xml parsing. mlview-xml-document.c looks better now.
added support for saving the external subset definition during the first parse time so that one can load that external subset later.
2001-12-01 dodji <dodji@gnome.org>
* src/utils.c: coded the core functions for handling of auto scroll in GtkCList/GtkCTree based widgets
* src/mlview-tree-editor.c (mlview_tree_editor_get_data_from_find_dialog_and_perform_search): added support of Auto scroll when the "search" finds
a row that matches ...
* src/mlview-properties-list.c: added support of native scrolling.
* src/mlview-namespace-editor.c: added support for scrolling.
* src/mlview-node-editor.c: added native support of scrolling.
2001-11-28 dodji <dodji@gnome.org>
* src/mlview-node-editor.c (mlview_node_editor_set_left_right_percentage): added the functionality to set the proportion of the paned widgets of the document. this function is the one that actually does the job.
* src/mlview-xml-document.c: added the functionality to set the proportion of the paned widgets of the document.
2001-11-28 dodji seketeli <dodji@gnome.org>
* src/mlview-xml-doc-tree-view.c: added the functionality to set the proportion of the paned widgets.
* src/mlview-editor.c: added the functionality to set the proportion of the paned widgets.
* src/mlview-tree-editor.c: added some basic search functionality.
2001-11-17 dodji seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c: started to code the helper functions that will provide the search facilites.
2001-11-13 dodji seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c (attributes_list_to_string): added support of namespaces in attributes representation.
2001-11-13 dodji seketeli <dodji@gnome.org>
* src/mlview-properties-list.c: added support of namespaces in attributes edition.
2001-11-12 dodji seketeli <dodji@gnome.org>
* src/mlview-node-editor.c (mlview_node_editor_name_changed_cb): added support of namespace prefix edition. First version.
i think i will put the new code into a function. That will look better.
2001-11-11 dodji seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c (mlview_tree_editor_insert_prev_sibling_node_interactive): uses the features of MlViewNodeTypePicker to
make its entry fields grab the focus. Also sets it title to reflect the type of node addition the user is performing.
2001-11-11 dodji seketeli <dodji@gnome.org>
* src/mlview-node-type-picker.c: added support to set the focus to the text entry and to set the ok button as default button. Also added
support to set the title of the picker.
2001-11-11 dodji seketeli <dodji@gnome.org>
* src/mlview-editor.c (mlview_editor_create_new_xml_document): the node name grabs the focus and the ok button is now the default button.
2001-11-10 dodji seketeli <dodji@gnome.org>
* src/mlview-namespace-editor.c: can now add/remove namespace defs safely.
2001-11-10 dodji seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c: now, the node type picker is build only once and then cache to boost the speed of subsquent calls to it.
* src/mlview-namespace-editor.c: removed the "show all namespace" and "show local" buttons and associated buttons.
2001-11-10 dodji seketeli <dodji@gnome.org>
* src/utils.c (xmlUnlinkNsDef): fixed a bug. Could not remove a namespace if it was not first ns of the ns list.
2001-11-10 dodji seketeli <dodji@gnome.org>
* src/utils.c (xmlUnlinkNs): fixed a bug. Could not remove a namespace if it was not first ns of the ns list.
2001-11-07 dodji seketeli <dodji@gnome.org>
* src/utils.c (xmlUnlinkNsDef): added this method. first implem. Not tested.
* src/mlview-namespace-editor.c (mlview_namespace_editor_remove_namespace_def): the method mlview_namespace_editor_remove_namespace()
has been renamed to this one and revisited though not tested yet.
2001-11-07 dodji seketeli <dodji@gnome.org>
* src/mlview-namespace-editor.c (remove_namespace_button_clicked_cb):
first implem of this method. Not tested yet.
2001-11-06 dodji seketeli <dodji@gnome.org>
* src/mlview-namespace-editor.c (add_namespace_button_clicked_cb):
revisited this function and made it much more legible now. Coded the helper for it.
(mlview_namespace_editor_add_namespace): coded the first version of this function.
it works ...
(mlview_namespace_editor_ask_namespace_to_user_and_add_it): this function now uses mlview_namespace_editor_add_namespace.
it is more legible.
2001-11-06 dodji seketeli <dodji@gnome.org>
* src/mlview-namespace-editor.c (mlview_namespace_editor_remove_namespace):
just coded a first version of this function. Not tested. I just have to go to bed.
2001-11-05 dodji seketeli <dodji@gnome.org>
* src/mlview-namespace-editor.c (add_namespace_button_clicked_cb):
just coded a first version of this function. Not tested. I just have to go to bed.
2001-11-04 dodji seketeli <dodji@gnome.org>
* src/mlview-namespace-editor.c: went forward in namespace edition. Now, the namespace can be modified.
The user can modify only the ns defined on the current node.
2001-11-03 dodji seketeli <dodji@gnome.org>
* src/mlview-namespace-editor.c: started to add add support for namespace edition.
this widget can now view (only) all the namespaces visibles by a given node.
2001-10-28 dodji seketeli <dodji@gnome.org>
* src/mlview-node-editor.c (mlview_node_editor_xml_doc_node_view_edit_xml_node):
created this function to edit xml document nodes using a dedicated view. This adds basic support of edition of
xml doc node. For the time being, the edition of xml node only allows viewing. To be able to properly edit a doc node,
there is a little more code to write. Look at this function as a starting point.
2001-10-27 dodji seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c (build_ctree_from_xml_doc):
enable the presence of comments, and pis. before and after the root element node.
* src/mlview-node-editor.c (mlview_node_editor_edit_xml_node):
rewrote this function so that, it only calls the edit method of the right view. this makes this central function looks better.
2001-10-23 dodji seketeli <dodji@gnome.org>
* src/mlview-node-type-picker.c: now, wen creating a node (add child or insert sibling node), the
MlViewNodeTypePicker also asks for the node name of node content. Seems to work. Still have to test it.
2001-10-23 dodji seketeli <dodji@gnome.org>
* src/mlview-editor.c (mlview_editor_create_new_xml_document): now, when creating a new document, a dialog asks the name of the root element. Seems
to work. Have to test it.
2001-10-23 dodji seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c (nt_picker_ok_button_clicked_to_add_child_cb): now, wen creating a node (add child or insert sibling node), the
MlViewNodeTypePicker also asks for the node name of node content. In tree editor, get also the node name or content to set the newly created node.
Seems to work. Still have to test it.
2001-10-18 dodji seketeli <dodji@gnome.org>
* src/mlview-xml-document.c (mlview_xml_document_paste_node_as_child): added the "paste node as child feature"
* src/mlview-app.c (paste_node_as_child_cb): added the "paste node as child" feature.
* src/mlview-xml-doc-tree-view.c (mlview_xml_doc_tree_view_paste_node_as_child): added the "paste node as child" feature. Works.
2001-10-18 dodji seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c: debugged the paste node functionality. The clipboard now contains xmlNodePtr's and not GtkCTreeNode* anymore.
fixed a bug in the mlview_tree_editor_get_node_from_clipboard() method that was not returning the good node.
2001-10-17 dodji seketeli <dodji@gnome.org>
* src/mlview-node-editor.c : actually added the view to edito pi nodes. Works.
2001-10-17 dodji seketeli <dodji@gnome.org>
* src/mlview-app.c (g_edition_toolbar): added an edition toobar to the main window.
2001-10-13 dodji seketeli <dodji@gnome.org>
* src/mlview-tree-editor.c: added support to display comment nodes and pi nodes.
2001-10-13 dodji seketeli <dodji@gnome.org>
* src/mlview-node-editor.c: defined the XMLPINodeView struct. Have to define the methods to edit an pi node thru it.
2001-10-12 dodji seketeli <dodji@gnome.org>
* src/mlview-file-descriptor.c: added functions to handle the last modif time of the in-memory xml file and also to determine
the update state of the in-memory xml file against the on-disk xml file.
2001-08-25 dodji seketeli <dodji@gnome.org>
* src/mlview-properties-list.c (mlview_properties_list_edit_xml_attributes): added the function
mlview_properties_list_edit_xml_attributes(), the add and remove attributes buttons in
mlview_properties_list_init(). So far, only the add button has it signal "clicked" connected to
a callback function (add_attribute_button_clicked_cb()) which calls the function
mlview_properties_list_edit_xml_attributes(). Also performed some minor bug fixes.
2001-08-18 dodji seketeli <dodji@gnome.org>
* all: this week, i put the project on the savannah.gnu.org server.
* COPYING: made a copy of the GPL text.
2001-06-09 Seketeli Dodji <dodji@gnome.org>
* mlvieweditor.[c|h]: initial version. Created a GtkWidget that makes an abstraction of an mlview editor
|