1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112
|
=== gazpacho 0.7.2 ===
2007-07-29 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/__init__.py: 0.7.2 release
2007-07-01 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/bars.py (BarManager.add_action): Check
if the action exists before and remove it from the
group if it does, avoids a couple of warnings on gtk+ 2.10
2007-06-27 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/filewriter.py (XMLWriter._write_property):
Do not write context property attribute for gtkbuilder.
* gazpacho/app/debugwindow.py: Remove the Quit button
and add a Continue button instead, so we can continue
to use the application even if an error occurs since they
are usually not fatal.
2007-04-03 Mattias Karlsson <mattiask@svn.gnome.org>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/clipboard.py:
* gazpacho/command.py:
* gazpacho/gadget.py:
* gazpacho/interfaces.py:
* gazpacho/properties.py:
* gazpacho/referencecontainer.py:
* gazpacho/sizegroup.py:
* tests/test_properties.py:
* tests/test_sizegroup.py:
* tests/test_treeview.py: Introduced a new class called
ReferenceContainer which will be keep track of objects that are
referencing a gadget. Through this reference container it's
possible to remove and restore references when the gadget is
deleted or restored. Fixes #344010
2007-03-29 Mattias Karlsson <mattiask@svn.gnome.org>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/clipboard.py:
* gazpacho/command.py:
* gazpacho/gadget.py:
* gazpacho/widgetadaptor.py:
* gazpacho/widgets/base/bars.py:
* gazpacho/widgets/base/treeview.py:
* tests/test_treeview.py:
* tests/test_uim.py: Introduced a deleted property for the gadgets
and two new methods in the WidgetAdaptor for removing/restoring
data associated with the gadgets. Fixes #423925
2007-03-28 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py (get_child_pspec_from_name):
Conditionally usse gtype.list_child_properties on PyGTK 2.10,
avoids a deprecation warning.
2007-03-24 Mattias Karlsson <mattiask@svn.gnome.org>
* gazpacho/command.py:
* tests/test_treeview.py: Fixed a crash when redoing the deletion
of a widget with a tree view in it. Fixes #422259
2007-03-23 Mattias Karlsson <mattiask@svn.gnome.org>
* gazpacho/dndhandlers.py: Make sure drag and drop operates on the
correct widgets. These widgets are not always the widgets that
receives the dnd events. Fixes #405778
2007-03-21 Mattias Karlsson <mattiask@svn.gnome.org>
* gazpacho/sizegroup.py:
* tests/test_sizegroup.py: Clear the sizegroup property when
widgets are removed from a sizegroup. Fixes #361009
=== gazpacho 0.7.1 ===
2007-03-17 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/properties.py (PropRegistry._override_simple_internal): do not
change the parent proptype when overriding a widget subclass. Make the
test suite runs again without errors.
2007-03-01 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/stockicons.py (create_stock_icon): small refactoring to be
able to create stock icons from other places (e.g. Plugins)
2007-02-24 Lorenzo Gil Sanchez <lgs@sicem.biz>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* examples/uimanager.glade:
* gazpacho/widgets/base/bars.py:
* gazpacho/widgets/base/menueditor/widgets.py:
Use DefaultActions instead of default for the default action group,
makes it possible to load interfaces created in gazpacho 0.6.x again.
Fixes #381195 (Mike Auty)
2007-02-23 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/project.py (Project._read_from_loader): Don't crash when
opening a glade file which has sizegroups without widgets.
Reported by Fabio Morbec
2007-02-23 Daniel Nylander <po@danielnylander.se>
* po/sv.po: Added Swedish translation.
2007-02-23 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/propertyeditor.py: Fix for #410930
2007-02-22 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/app/preferences.py:
* gazpacho/plugins.py (PluginManager.show_plugin_preferences): show
plugin preferences dialog in case there is one.
* gazpacho/properties.py: add a description attribute which defaults
to the pspec.blurb
* gazpacho/propertyeditor.py: show the property's description as a
tooltip for its label
* plugins/hello/hello.plugin:
* glade/preferences.glade:
* gazpacho/app/preferences.py: Implement the About button with an
AboutDialog that show the Plugin Information
2007-02-20 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/filewriter.py (XMLWriter._write_properties): assign the
right value to the 'comment' variable
2007-02-15 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/propertyeditor.py (EditorPropertyText.external_set):
Implement, so CustomPropertyType.notify() works.
2007-02-15 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/uimanager.py (GazpachoUIM.update_ui): we have to remove the
old widget from the project before setting the new widget. Otherwise
the Gadget get disconected from the old_widget and the project can not
remove it anymore.
* tests/test_uim.py: updated a test to exercise the previous change.
* gazpacho/uieditor.py (AddToolitemDialog.__init__): don't allow to
select an empty action
* gazpacho/uieditor.py (ChooseActionDialog.__init__): remove some
stuff that our base class already does for us
* gazpacho/uieditor.py (ChooseActionDialog.__init__): cleanup a small
mess with the way the actions were added to the combo
* gazpacho/widgets/base/treeview.py: we forgot to add the
parenthesis to make the method call!
2007-02-14 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgets/base/button.py (CommandSetButtonContents.execute):
re-setup the button if its child changes.
* gazpacho/dndhandlers.py (WidgetDnDHandler._on_widget__drag_data_received): double check if there is an adaptor before creating the widget.
Fixes #407828
2007-02-12 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgets/base/menueditor/widgets.py: Backwards compatibility
with GTK+ 2.6.x and below
* gazpacho/widgets/base/menueditor/widgets.py: When pressing Escape
while creating a menu, remove the menu
* gazpacho/app/app.py (Application._update_open_projects): use hash()
instead of id() to identify a project. Fixes #357486
2007-01-17 Mattias Karlsson <enkidude@gmail.com>
* gazpacho/app/app.py: Added keyboard bindings for recent files in
the File menu. Fixes #397112
2006-11-30 Mattias Karlsson <enkidude@gmail.com>
* gazpacho/main.py: Added a --version command line option
=== gazpacho 0.7.0 ===
2006-11-26 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgets/base/menueditor/__init__.py:
* gazpacho/widgets/base/menueditor/contextmenu.py:
* gazpacho/widgets/base/menueditor/gtkutils.py:
* gazpacho/widgets/base/menueditor/widgets.py: New menu editor that
allow the user to edit a menu bar in-place
* gazpacho/widgets/base/bars.py: change MenuBar adaptor to use the
new menu editor
* gazpacho/uimanager.py (GazpachoUIM.load_widget): when loading a
widget get the new merge_id by adding its ui string manually
* gazpacho/uimanager.py (GazpachoUIM.update_ui)
* gazpacho/uieditor.py (CommandUpdateUIDefinitions): add an extra
option to allow updating UI definition without updating the widget
2006-11-25 Lorenzo Gil Sanchez <lgs@sicem.biz>
* doc/how_to_customize_ui.txt: small howto explaining how to customize
Gazpacho UI
* tests/common.py: monkey patch catalog.py so no ui customization is
accidentally done during the execution of the test suite
* tests/test_customui.py: tests for the new custom ui feature
* gazpacho/catalog.py: allow the user to customize the palette and
the widget properties using a special file called custom.ui
* gazpacho/palette.py (Palette.__init__): customize the palette using
the custom.ui file (if found)
* gazpacho/properties.py: allow several calls to
prop_registry.override_simple. Allow custom defaults for properties
2006-10-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/gazpacholoader.py (GazpachoObjectBuilder.__init__): Ignore the
domain in the .glade file inside gazpacho itself
* gazpacho/loader/loader.py: Add a ignore_domain keyword parameter, which
does not send the string to gettext but otherwise behaves the same.
2006-10-08 Mattias Karlsson <enkidude@gmail.com>
* gazpacho/dndhandlers.py: Make sure we don't crash when dragging
radio buttons (or any other widget with object properties) between
projects. Fixes #324106
2006-10-08 Mattias Karlsson <enkidude@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/clipboard.py:
* gazpacho/filewriter.py:
* gazpacho/gadget.py:
* tests/test_properties.py:
When serializing widgets it's now possible to clear references to
external widgets (i.e. widgets not part of the
serialization). Fixes a crash when copying a label with a mnemonic
widget. #354051
2006-09-19 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/filewriter.py (XMLWriter.serialize_node): only save the
node if it actually exists
2006-09-14 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/properties.py : removed 'disabled' attribute since it is
redundant with the 'enabled' one.
* gazpacho/widgets/base/treeview.py: Use enabled=False instead of
disabled=True
2006-09-03 Mattias Karlsson <enkidude@gmail.com>
* gazpacho/dndhandlers.py:
Fixed a crash when dragging widgets between Gazpacho
instances. Fixes #354053
2006-08-22 Mattias Karlsson <enkidude@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/properties.py:
* tests/test_table.py:
It's now possible to save empty flag-properties (such as
x/y-options in GtkTable). This makes sure we don't restore default
values when these properties are empty. Added a test for this as
well.
2006-08-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/annotator.py (_calculate_window_offset): Fix a crash when
putting pasting a textview into a scrolledwindow.
2006-08-17 Rafael Villar Burke <pachi@rvburke.com>
* po/fr.po: Update french translation (new file
sent by Bob Mauchin)
2006-08-14 Ronaldo Maia <romaia@async.com.br>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/properties.py:
* gazpacho/propertyeditor.py:
* gazpacho/widgets/base/base.py:
Make the properties be sorted in a stable manner again.
2006-08-13 Mattias Karlsson <enkidude@gmail.com>
* gazpacho/uieditor.py: It's now possible to undo the editing of
ui definitions. Fixes #332903
2006-07-20 Ronaldo Maia <romaia@async.com.br>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/properties.py:
* gazpacho/propertyeditor.py:
* gazpacho/widgets/base/table.py:
Add a PropertySetError exception which prevents the interface
to be updated to reflect the values.
Make it impossible to increase the size of the table by modifying
the packing properties.
2006-07-20 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/table.py:
Update colspan/rowspan when the other attributes changes too.
2006-07-19 Ronaldo Maia <romaia@async.com.br>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* CONTRIBUTORS:
* gazpacho/properties.py:
* gazpacho/propertyeditor.py:
* gazpacho/widgets/base/table.py:
Add support for property priorities, so we can put some intresting ones
in the top.
2006-07-19 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/popup.py (Popup._table_insert):
Add context menu items for table operations, fixes #305297
* gazpacho/widgets/base/table.py (RowSpan._update_value): Mark all
commands as nested here.
* gazpacho/commandmanager.py (CommandManager.execute): Add a big hack
to avoid adding commands to the stack under certain situations
* gazpacho/widgets/base/table.py: Make the proxied properties use the command
manager to update the real properties so undo/redo works.
* gazpacho/command.py (ContainerCommand): Add
* gazpacho/popup.py:
* gazpacho/properties.py:
* gazpacho/propertyeditor.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/base/box.py:
* gazpacho/widgets/base/table.py:
Add support for property notifications, fixes #347952.
2006-07-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/placeholder.py:
* gazpacho/popup.py:
* gazpacho/widgets/base/box.py:
Rename and move the box commands to where they belong, update callsites.
2006-07-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/table.py: Add x-pos/y-pos/colspan/rowspan and
hide old *-attach properties. Should make it easier to edit a table, and
also more robust, fixes #326672.
* gazpacho/main.py (debug_hook): Add an excepthook which prints the backtrace
and runs pdb when running in debug mode.
* gazpacho/widgets/base/table.py: Remove dialog, always set it to 3x3.
* gazpacho/__init__.py: Add kiwi to svn:externals so you don't
need a separate kiwi checkout to run gazpacho uninstalled
2006-07-12 Johan Dahlin <jdahlin@async.com.br>
* tests/test_properties.py (PropTypeTest.testFloat):
* gazpacho/properties.py (BaseFloatType.save):
Fix #326723 and add a testcase
* gazpacho/filewriter.py (XMLWriter._write_placeholder_properties):
Rename prop variables to pspec to reflect their content.
Use gobject.type_is_a instead of ==, so it actually works for subtypes,
fixes #326722
2006-06-30 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gadget.py: Added two signals related to signal edition so
plugins can listen to this changes and do stuff related
2006-06-21 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/propertyeditor.py (EditorPropertyNumeric._internal_load):
Set default float value to 0 instead of raising a ValueError,
fixes #345586
* gazpacho/model.py (ModelEditorDialog.set_gadget): Create a model
if a model does not exist, fixes #345578
* gazpacho/widgets/base/treeview.py: Make it possible
to load a treeview without a model attached.
* tests/glade/treeview-nomodel.glade: Add a test
2006-06-15 Lorenzo Gil Sanchez <lgs@sicem.biz>
* plugins/*
* glade/preferences.glade:
* tests/test_plugins.py:
* gazpacho/main.py:
* gazpacho/interfaces.py:
* gazpacho/config.py:
* gazpacho/__init__.py:
* gazpacho/app/bars.py:
* gazpacho/app/preferences.py:
* gazpacho/app/app.py:
* gazpacho/plugins.py: Plugins support
2006-06-14 Mattias Karlsson <enkidude@gmail.com>
* gazpacho/dndhandlers.py: It shouldn't be allowd to drag and drop
widgets onto their children. Fixes #344682.
2006-06-12 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/uimanager.py (GazpachoUIM.update_ui): Update the project
with the new widgets too.
* gazpacho/filewriter.py (XMLWriter._write_ui_manager):
Assert that all GtkMenus and GtkToolbars has a gadget here.
2006-06-10 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/custom.py:
* gazpacho/widgets/base/button.py:
* tests/glade/dialog.glade:
Add GtkWidget::response-id but only use/override it in GtkButton,
fixes parts of #330652
2006-06-10 Mattias Karlsson <enkidude@gmail.com>
* gazpacho/actioneditor.py: Fixed a crash when removing an action
group (regression from the command refactoring)
2006-06-06 Mattias Karlsson <enkidude@gmail.com>
* gazpacho/propertyeditor.py: The object properties should use a
ComboBox as editor not a ComboBoxEntry.
2006-06-06 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/filewriter.py:
* gazpacho/library.py: Implement the <require> saving on the glade
files. The 'library' attribute of the catalog is used for that.
2006-06-05 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py (AccessorCommand.__init__): New simple command
* gazpacho/app/app.py: Use AccessorCommand to support undo for setting
the translation domain in a project.
2006-06-05 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/editor.py:
* gazpacho/model.py:
* gazpacho/propertyeditor.py:
* gazpacho/uieditor.py:
Rename editor to propertyeditor
2006-06-05 Lorenzo Gil Sanchez <lgs@sicem.biz>
* tests/test_radiobuttons.py
* tests/test_command.py
* tests/test_sizegroup.py
* tests/test_box.py
* tests/test_uim.py
* tests/test_scrolledwindow.py
* tests/test_widgets.py
* tests/test_button.py
* tests/test_widget.py
* tests/test_actioneditor.py
* tests/test_treeview.py:
* gazpacho/dndhandlers.py:
* gazpacho/signaleditor.py:
* gazpacho/gapi.py:
* gazpacho/placeholder.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/fixed.py:
* gazpacho/widgets/base/treeview.py:
* gazpacho/widgets/base/box.py:
* gazpacho/clipboard.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/editor.py:
* gazpacho/actioneditor.py:
* gazpacho/command.py:
* gazpacho/commandmanager.py:
* gazpacho/project.py:
* gazpacho/popup.py:
* gazpacho/app/app.py:
* gazpacho/app/uimstate.py: Merged the commands refactor branch changes
r2392:r2440 into the trunk
2006-06-04 Johan Dahlin <johan@gnome.org>
* gazpacho/gadget.py (Gadget.__init__): Do not subclass GObject, it's
not longer necessary.
* gazpacho/sizegroupeditor.py: Connect on notify::name on the widget
instead of the gadget
* gazpacho/bugreportdialog.py:
* gazpacho/debugwindow.py:
* gazpacho/uimstate.py: Move to gazpacho/app
* gazpacho/app/app.py:
* gazpacho/project.py:
* tests/common.py:
* tests/test_application.py:
* tests/test_dialog.py:
* tests/test_project.py:
* tests/test_saveproperties.py:
Clean up Project constructor, move out loader loading to separate
functions. Move project counter to app. Update tests and call sites.
Remove a duplicated test.
2006-05-31 Johan Dahlin <johan@gnome.org>
* gazpacho/catalog.py:
* gazpacho/library.py:
* gazpacho/widgetadaptor.py:
Move widgetadaptor.setup to a constructor
2006-05-31 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/annotator.py:
* gazpacho/app/app.py:
* gazpacho/clipboard.py:
* gazpacho/command.py:
* gazpacho/commandmanager.py:
* gazpacho/dndhandlers.py:
* gazpacho/editor.py:
* gazpacho/filewriter.py:
* gazpacho/gadget.py:
* gazpacho/popup.py:
* gazpacho/project.py:
* gazpacho/signaleditor.py:
* gazpacho/sizegroup.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/uimstate.py:
* gazpacho/util.py:
* gazpacho/widget.py:
* gazpacho/widgetadaptor.py:
* gazpacho/widgets/base/bars.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/base/box.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/dialog.py:
* gazpacho/widgets/base/fixed.py:
* gazpacho/widgets/base/notebook.py:
* gazpacho/widgets/base/table.py:
* gazpacho/widgets/base/treeview.py:
* gazpacho/widgetview.py:
* tests/common.py:
* tests/test_bars.py:
* tests/test_command.py:
* tests/test_treeviewcolumn.py:
* tests/test_uim.py:
* tests/test_widget.py:
* tests/test_widgets.py:
Rename gazpacho.widget to gazpacho.gadget
2006-05-31 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/commandmanager.py:
* gazpacho/project.py:
* gazpacho/widget.py:
* gazpacho/uimstate.py: move delete_selection from command_manager
to project since it's just an utility function related to a project's
selection
* gazpacho/widget.py (Gadget.from_xml): load models before
loading widgets since they are dependencies
* gazpacho/command.py: don't call get_model on the adaptor
unless we know it is a TreeView
* gazpacho/filewriter.py (XMLWriter.serialize_node): when
serializing a TreeView serialize also its model
* gazpacho/widgetadaptor.py: remove the get_model method. It was
a bad idea since the WidgetAdaptor should be as general as possible
* gazpacho/widgets/base/treeview.py: rename add_model to create_model
and implements the method get_model of the WidgetAdaptor
* gazpacho/command.py: add and remove models as dependencies when
adding and removing treeviews. Makes undo/redo works again
* gazpacho/model.py: now the model manager knows how to add and remove
models. This is used in [add|remove]_widget_dependencies in command.py
* gazpacho/widgetadaptor.py (WidgetAdaptor.get_model): method to
get the model for those widgets that make sense (e.g. TreeViews)
* tests/glade/treeview.glade: add a model to this file
* tests/test_widgets.py (SKIPPED): skip GtkTreeView until we fix
the clipboard support. Also add some spaces to make pylint happier
* gazpacho/loader/loader.py (ObjectBuilder._apply_delayed_properties):
rename widget to object since that error also makes sense for models
* gazpacho/loader/custom.py: set the model of the treeview when
we read the 'model' property. Also saves the name of the model
* gazpacho/widgets/base/treeview.py: support for loading TreeView
Gadgets from TreeView widgets. Same for columns
* gazpacho/project.py: support for saving and loading models. Also
fixed an argument in the GazpachoButtonAdapter subclass
* gazpacho/filewriter.py: support for saving models to disk
* gazpacho/model.py: support for loading models from disk
2006-05-30 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/commandmanager.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/base/custom.py:
* tests/glade/custom.glade:
* tests/test_glade.py:
* tests/test_saveproperties.py:
2006-05-30 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/stockicons.py:
* gazpacho/editor.py:
* gazpacho/widgets/base/image.py:
Add StockIconDialog, EditorPropertyStock and use them for GtkImage::stock
2006-05-30 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/loader.py: support for ListStores
* gazpacho/loader/custom.py: adapter for ListStore and split of the
method _valuefromstring so _valuefromstringsimpletypes can be reused
* tests/test_loader.py: tests for the ListStore and the method
_valuefromstringsimpletypes
2006-05-30 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py:
* gazpacho/properties.py:
* gazpacho/widgets/base/image.py:
Add an image specific editor, and use it for GtkImage::file
2006-05-30 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py:
* gazpacho/properties.py:
* gazpacho/widgets/base/bars.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/treeview.py:
Rename PropType.editor to PropType.custom_editor
2006-05-29 Lorenzo Gil Sanchez <lgs@sicem.biz>
* tests/glade/treeview.glade:
* tests/test_loader.py: more tests to exercise the new features
* gazpacho/loader/loader.py:
* gazpacho/loader/custom.py: add support for loading <attributes>
* gazpacho/widgets/base/treeview.py: support for loading treeviews with
columns and renderers. We still lack support for loading models
* gazpacho/filewriter.py: support for saving cell renderers again
2006-05-29 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/filewriter.py:
Refactor all xml serializing code to filewriter.py,
Get rid of gazpacho.loader.tags completely.
* gazpacho/loader/loader.py:
* gazpacho/project.py:
* gazpacho/widgets/base/base.py:
* tests/glade/sizegroup_gtkbuilder.glade:
Add support for sizegroups in the gtkbuilder way, add tests.
2006-05-29 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py (_get_catalog_dirs): Reorganize loading a little
bit, document, comment. Fixes 343283 (Alceste Scalas)
2006-05-30 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/tags.py: new tag for the layout of renderers
* gazpacho/widgets/base/treeview.py: generate new names for each
renderer
* gazpacho/filewriter.py: save the cell renderers with its layout
* tests/test_treeview.py: test to exercise the keeping of data in the
model
* gazpacho/model.py: keep the data when updating the model because of
column changes
* tests/test_treeview.py: tests that exercise the columns - model
synchronization
* gazpacho/model.py:
* gazpacho/widgets/base/treeview.py: full support for columns - model
synchronization including the tricky case of changing a column layout
2006-05-28 Danny Milosavljevic <danny_milo@yahoo.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/stockicons.py (StockIconList._populate_icons): Sort stock icons,
fixes #340837
2006-05-28 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py (EditorPropertyFlags.__init__): Set the value
column to editable, fixes #342381.
2006-05-27 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/model.py: model data edition finished and general improvements
in this code. Still lacks undo/red integration and serialization.
* gazpacho/util.py (create_image_only_button)
(create_scrolled_window): useful functions that can be reused in several
places (specially in dialogs)
* gazpacho/widgets/base/treeview.py: keep synchronized treeview columns
and model columns
* tests/test_treeviewcolumn.py:
* tests/test_treeview.py: some tests for the model integration work
2006-05-25 Mattias Karlsson <enkidude@gmail.com>
* gazpacho/uimstate.py: Disable cut, copy and delete menu/toobar
items when internal children are selected.
2006-05-25 Mattias Karlsson <enkidude@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/button.py:
* tests/test_radiobuttons.py: It's now possible to undo radio
button group changes that result in the button not being part of
any grop. Fixes "342302
* gazpacho/app/app.py: Make sure preview works in conjunction with
sizegroups. Fixes #332224.
2006-05-24 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/filewriter.py:
* gazpacho/gaction.py:
* gazpacho/loader/loader.py:
* gazpacho/loader/tags.py:
* gazpacho/project.py:
* gazpacho/uim.py:
* tests/glade/uimanager_gtkbuilder.glade:
* tests/test_uim.py:
Add some infrastructure for gtkbuilder support, and a test.
Based on work by Henrique Romano
2006-05-24 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgets/base/treeview.py: this is the file where most of
the action is going on. A couple of editors and complex adaptors are
needed to handle wild TreeViews
* tests/test_treeviewcolumn.py: some tests for the new passenger
* catalogs/base.xml: inclusion of GtkTreeViewColumn
* gazpacho/loader/custom.py (TreeViewColumnAdapter.construct): save
the name of the column when loading
* gazpacho/editor.py (Editor._create_property_pages): allow non
widgets to be edited (e.g. GtkTreeViewColumn)
* gazpacho/filewriter.py: cell renderers saving
* gazpacho/command.py:
* gazpacho/commandmanager.py: commands for columns
* gazpacho/popup.py:
* gazpacho/uimstate.py: call column specific commands for cut and
paste. This should probably be abstracted out any time soon
* gazpacho/widgetview.py (WidgetTreeView._add_children):
* gazpacho/project.py (Project.remove_widget): delegate the children
fetch to the adaptor whenever it's possible
2006-05-22 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/project.py (Project.set_new_widget_name): allow objects to
have a name, not just widgets
(Project.add_widget): use Gadget.get_children because it's more
general
* gazpacho/widgetview.py (WidgetTreeView._populate_model_real):
delegate the fetch of the children to the Gadget (which may use the
adaptor get_children function if it exists). This is a more general
approach (e.g. it works for TreeViewColumns)
2006-05-19 Mattias Karlsson <enkidude@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/button.py:
* tests/test_radiobuttons.py: Fixed a crash when undoing radio
button group changes. The group property is now updated when
renaming widgets in the group. Fixes #336911.
2006-05-18 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgets/base/table.py: inherit the dialog from BaseDialog
for an unified look'n'feel of gazpacho dialogs
* gazpacho/commandmanager.py (CommandManager.create): watch out if the
user cancels the widget creation
* gazpacho/widgetadaptor.py: new exception to tag the cancellation of
a widget creation by the user
* gazpacho/widgets/base/table.py: allow the user to cancel the creation
of the table
2006-05-17 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py (Gadget._find_deepest_child_at_position): only
look for mapped widgets. Fix #332626. Patch by Mattias Karlsson
* tests/test_uim.py (UIMTest.testCutPaste): run the cut/paste cycle
10 times to make sure it *works*. Also remove the skip attribute.
* gazpacho/uim.py (GazpachoUIM.reset): add a comment to show what the
_loaded_uis dict is for and don't add UIs to it except in the loading
phase
* gazpacho/widget.py (Gadget.from_xml): load the uimanager of the
current project. Fixes #337273
2006-05-16 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/commandmanager.py: don't use two costants when you can
use True/False for the same purpose
* gazpacho/command.py (FlipFlopCommandMixin): mixin to refactor those
commands that follow a standard pattern of two states.
* gazpacho/editor.py:
(PropertyEditorDialog.__init__): no need to set HIG border values since
the BaseDialog already does that
* gazpacho/i18n.py:
* gazpacho/app/app.py:
* gazpacho/app/dialogs.py:
* gazpacho/bugreportdialog.py:
* gazpacho/uimstate.py:
* gazpacho/popup.py:
* gazpacho/project.py:
* gazpacho/commandmanager.py:
* gazpacho/command.py:
* gazpacho/debugwindow.py:
* gazpacho/widget.py:
* gazpacho/uieditor.py:
* gazpacho/main.py:
* gazpacho/actioneditor.py:
* gazpacho/editor.py:
* gazpacho/uim.py:
* gazpacho/properties.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/palette.py:
* gazpacho/clipboard.py:
* gazpacho/loader/proxy.py:
* gazpacho/loader/compat.py:
* gazpacho/base/base.py:
* gazpacho/base/button.py:
* gazpacho/base/bars.py:
* gazpacho/base/table.py:
* gazpacho/signaleditor: centralize gettext stuff
* po/gl.po:
* po/fr.po:
* po/es.po: updated translations by Rafael Villar. Fixes #341427,
#341426 and #341425
2006-05-15 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/command.py (CommandSetButtonContents._clear_button): call
to remove_hidden_widget when clearing a button.
* gazpacho/project.py (Project.remove_hidden_widget): add a simetric
function to add_hidden_widget for undo purposes. Also, make these two
functions recursive.
* gazpacho/util.py (get_all_children): New function to get all children
of a container, even the internal ones.
* gazpacho/widgets/base/base.py (ContainerAdaptor.get_children):
* gazpacho/widget.py (load_gadget_from_widget)
(Gadget._find_deepest_child_at_position):
* gazpacho/widgetview.py (WidgetTreeView._populate_model_real)
(WidgetTreeView._add_children):
* gazpacho/widgetadaptor.py (WidgetAdaptor.load)
(WidgetAdaptor.get_children): Use util.get_all_children to iterate
through the children of a container. Fixes #315529
* gazpacho/app/app.py (Application._set_workspace_title): don't mark
the workspace title as translatable. Patch by Rafael Villar Burke that
fixes #341428
2006-05-04 Johan Dahlin <jdahlin@async.com.br>
* setup.py (global_resources): Make gazpacho.desktop into a
template.
* gazpacho.desktop (Exec): Use $prefix and $datadir, requires
kiwi trunk
=== 0.6.6 ===
2006-05-03 Johan Dahlin <jdahlin@async.com.br>
* NEWS:
* gazpacho/__init__.py:
* po/ca.po:
* po/es.po:
* po/fi.po:
* po/fr.po:
* po/gazpacho.pot:
* po/gl.po:
* po/it.po:
* po/pt_BR.po:
* po/ru.po:
* po/zh_CN.po:
0.6.6
2006-05-03 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py:
* gazpacho/editor.py:
* gazpacho/project.py:
* gazpacho/widget.py:
Fix a couple of issues reported by pylint
2006-04-26 Mattias Karlsson <enkidude@gmail.com>
* gazpacho/widgetview.py: Make sure both the workspace and the
widget tree is updated when the last widget is removed from the
selection.
* gazpacho/widgetview.py: The project might not be set for the
widget tree when the content is modified. Fixes a crash when
creating a new project.
* gazpacho/app/app.py: Fixed a few remaining issues related to
showing/hiding the preview menu item.
2006-04-23 Mattias Karlsson <enkidude@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/notebook.py: Update page when
select widgets. Fixes #339635
2006-04-25 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py (Application._update_open_projects): Make
the Project property action insensitive if there are no open
projects, fixes #337094.
(Application): Only show preview if something is selected.
Fixes #330459
* gazpacho/dndhandlers.py (DnDHandler._set_drag_highlight):
Optimize _is_valid_drop_zone and do an additional ancestor check in
drag_data received. Also do a couple of renames.
* gazpacho/placeholder.py:
* gazpacho/widget.py:
Do not allow windows to be dragged or dropped upon.
2006-04-23 Mattias Karlsson <enkidude@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py (EditorPropertyName.__init__):
Use a KiwiEntry, fixes #333043
2006-04-23 Mattias Karlsson <enkidude@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py:
* tests/test_glade.py: Make sure it's possible to use all unicode
characters as invisible character for the gtk.Entry. This fixes a
crash in the loader. Fixes #338340
2006-04-19 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/loader.py (ExpatParser.parse_file): Add support
for gzip and bzip2 compressed files. Fixes async bug #2409
2006-04-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py (ActionAdapter.prop_set_stock_id):
Allow invalid stock icons to be set.
2006-04-07 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/debugwindow.py (DebugWindow.show_exception): Use the
topmost frame instead of the innermost, make bugzilla reports
be slightly more useful.
2006-04-06 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py: Make sure we show an error dialog
instead of crashing when loading an invalid glade file. Fixes
#334460.
2006-04-06 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/util.py (select_iter): don't scroll the TreeView if it is
not realized (avoids nasty warnings)
2006-04-03 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/signaleditor.py:
* gazpacho/widget.py: Signal handlers with underscores in their
names will now be loaded correctly. Fixes #334905 (reported by
Inigo Aldazabal Mensa)
* gazpacho/app/app.py: Use radio menu items in the project menu to
make it possible to see which project is the current one. Fixes
#336547
2006-04-03 Dave Cook <dave@davidcook.org>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py (ObjectBuilder.signal_autoconnect):
Ignore signals missing, like libglade. Fixes #336994
2006-04-03 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py (ActionAdapter.prop_set_stock_id):
Override and set the accelerator if a stock_id is specified.
Fixes #336979 (Patrick K. O'Brien)
2006-03-29 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/app/app.py: Remove closed projects from the project
menu.
2006-03-28 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py:
* gazpacho/uieditor.py: Store gadget references instead of widgets
since they usually don't change. Fixes #333018.
2006-03-27 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py:
* gazpacho/project.py:
* gazpacho/widget.py:
* gazpacho/widgetadaptor.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/notebook.py:
* tests/test_uim.py:
Renamed load_widget_from_widget to load_gadget_from_widget.
2006-03-27 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py: Make sure we handle all unicode characters
in the invisible character property. Fixes #335908.
* gazpacho/widget.py:
* gazpacho/widgets/base/dialog.py: Make sure some dialog related
properties are hidden both when creating a dialog from scratch and
loading it from file. Fixes #332225.
2006-03-21 Johan Dahlin <jdahlin@async.com.br>
* setup.py: Use kiwi.dist, to simplify installation.
2006-03-21 Scott Tai <scott.tw@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* setup.py (data_files): Install catalogs in $datadir/catalogs,
Fixes #335156
2006-03-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/filewriter.py:
* gazpacho/widget.py:
* gazpacho/widgetadaptor.py:
* gazpacho/widgets/base/base.py:
Add adaptor.get_children and use it while saving children.
Implement a get_children for widget and container.
2006-03-04 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/editor.py:
* gazpacho/app/app.py: Improve an API so you can refresh just a
property of the editor and you also can know which is the gadget
currently loaded.
2006-03-03 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgetview.py (WidgetTreeView._on_project_widget_name_changed):
Check if iter is None, workaround for bug #333034
i
2006-02-26 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/app/app.py: Fixed a crash that occurred when showing
the 'file could not be saved' dialog. Fixes #332607.
2006-02-24 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/properties.py: important PropRegistry refactor: child props
are stored in a different bag and now it should be possible to redefine
prop subclasses
* gazpacho/widget.py (Gadget.get_child_prop): new accesor for child
properties
* tests/test_properties.py:
* tests/test_table.py:
* gazpacho/widgets/base/table.py:
* gazpacho/editor.py:
* gazpacho/filewriter.py (XMLWriter._write_properties): use
get_child_prop if the prop is a child property
2006-02-23 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/project.py:
* gazpacho/uim.py: Fixed a regression where the project wasn't
updated correctly when the name of the widgets changed. Fixes
#329120 and #330180.
2006-02-22 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* catalogs/base.xml:
* gazpacho/widgets/base/base.py:
* tests/test_saveproperties.py: Set better default propery values
for a few widgets.
Label::xalign = 0
Frame::label = (widget name)
Frame::shadow-type = gtk.SHADOW_NONE
Expander::label = (widget name)
Expander::expanded = True
2006-02-20 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/widget.py: Containers are now valid drop targets when
dragging widgets. This makes it possible to drop widget onto
e.g. combo boxes.
2006-02-20 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/properties.py (PropRegistry.override_property): don't allow
to call override_property if the property already exists. You have to
use override_simple in that case.
* gazpacho/widgets/base/image.py: use override_simple for
GtkImage::file
* gazpacho/widgets/base/button.py: use override_simple for
GtkRadioButton::group
* gazpacho/widgets/base/base.py: remove a SizeGroupProp class
definition since there are two of them
* gazpacho/properties.py (PropMeta.new): make it possible to override
the 'readable' and 'writable' attributes by initializing them to None
and only setting them in new() if they are still None. Now it is
possible to use override_simple instead of override_property if we
just want to make a property writable/readable and it is not
writable/readable in GTK+
Also, for CustomProperty make it readable/writable by default (since
it provides get() and set() methods)
* gazpacho/widgets/base/base.py (ObjectDataProp.set): make it inherit
from BooleanType also so things keep working as before when the
multiple inheritance was done inside override_simple.
- Remove some whitespace
- Don't call override_simple without a reason just to make epydoc happy
Instead, use get_prop_type, which is much more transparent.
* gazpacho/properties.py (PropRegistry.override_simple): when creating
the base class for this property use single inheritance. This keep
things a lot simpler to debug. Also use the right PropType as base
instead of always using CustomProperty. Custom properties should be
used in override_property when we create a totally new property, not
when we are overriding a GTK+ one.
2006-02-15 Johan Dahlin <johan@gnome.org>
* tests/test_saveproperties.py (SavePropertiesTest.testSavePositionProperty): Update
test.
* catalogs/base.xml:
* gazpacho/widgets/base/base.py (LabelAdaptor.post_create):
* gazpacho/widgets/base/button.py (ButtonAdaptor.post_create):
Set label to name of the widget for label and button (subclasses)
2006-02-13 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/properties.py (PropRegistry.override_simple)
(PropRegistry._create_type_from_pspec): use the name of the property
(type_name) when creating the PropType. If we just use the pspec we
have problems overriding properties in widget subclasses. See bug
#330775
2006-02-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py:
* gazpacho/properties.py:
* gazpacho/widgets/base/dialog.py:
Disable some properties of internal children which are tied
to the current theme.
2006-02-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/app/bars.py:
Rework the code to list the open projects.
Add a project properties menu entry.
Add a dialog which allows you to modify the domain
2006-02-09 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/filewriter.py:
* gazpacho/loader/loader.py:
* gazpacho/loader/tags.py:
* gazpacho/project.py:
* tests/glade/domain.glade:
load and save domain properly from .glade files
2006-02-09 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py:
* gazpacho/app/app.py:
* gazpacho/command.py:
* gazpacho/context.py:
* gazpacho/interfaces.py:
* gazpacho/main.py:
* gazpacho/placeholder.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/widget.py:
* tests/common.py:
* tests/test_glade.py:
* tests/test_sizegroup.py:
* tests/utils.py:
Use kiwi.components, register the application window.
Remove app.window replace it with app.get_window
Requires r2495 of kiwi
2006-02-07 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py:
* gazpacho/annotator.py:
* gazpacho/catalog.py:
* gazpacho/gaction.py:
* gazpacho/placeholder.py:
* gazpacho/project.py:
* gazpacho/uieditor.py:
* gazpacho/uim.py:
* gazpacho/util.py:
* gazpacho/widget.py:
Move out a couple of functions of utils.
2006-02-06 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/box.py:
* tests/test_box.py:
When reducing the size of boxes placeholders are now removed
before widets. Fixes #329916.
2006-02-05 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/loader/loader.py:
* gazpacho/project.py:
Notify the user about unsupported widgets when loading a project.
2006-02-04 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/main.py:
* gazpacho/widgetadaptor.py:
* setup.py:
Make external libraries work aswell, fixes regression since
landing of #326848
2006-02-04 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/bars.py (MAIN_UI_STRING):
* gazpacho/app/app.py (Application._preview_cb):
Add a preview action.
2006-02-04 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py:
* gazpacho/app/bars.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/widgetview.py:
Refactoring the views so that they will reuse the 'Delete' actions
when handling the delete key press.
2006-02-04 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/uimstate.py:
* tests/test_sizegroup.py:
Refactoring the popup menus in the action and sizegroup views. They
are now created through the uimanager.
2006-02-03 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/placeholder.py:
* gazpacho/project.py:
* gazpacho/util.py:
* gazpacho/widget.py:
* tests/test_widgetselection.py:
Refactoring. Moved the circle_select method from util to
WidgetSelection and renamed it to just circle.
2006-02-03 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py (_parse_gazpacho_path): Use os.pathsep
instead of ':', to make it work in win32. Spotted by pobrien
2006-02-01 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/table.py (TableAdaptor.fill_empty): Fix
regression since r2124, it should be empty, since
ContainerAdapter now fills it automatically.
2006-02-01 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/commandmanager.py:
* gazpacho/placeholder.py:
* gazpacho/project.py:
* gazpacho/sizegroup.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/uimstate.py:
* gazpacho/widget.py:
* gazpacho/widgets/base/notebook.py:
* gazpacho/widgetview.py:
* tests/test_sizegroup.py:
* tests/test_widgetselection.py:
Added support for multiple selections. It's currently only useful
for adding widgets to sizegroups.
2006-02-01 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py:
* gazpacho/app/app.py:
* gazpacho/app/dialogs.py:
* gazpacho/catalog.py:
* gazpacho/commandmanager.py:
* gazpacho/dialogs.py:
* gazpacho/editor.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/uieditor.py:
Use kiwi.dialogs, remove dialogs. part of #326848
Requires kiwi r2322
2006-02-01 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py:
* gazpacho/dndhandlers.py:
* gazpacho/widget.py:
* tests/test_widget.py:
Move copy_widget into a method on gadget
2006-01-31 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/gaction.py (GAction.write): Mark short-label as translatable aswell.
So we can get translated toolitems aswell.
2006-01-30 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/app/bars.py:
* gazpacho/catalog.py:
* gazpacho/cursor.py:
* gazpacho/environ.py:
* gazpacho/main.py:
* gazpacho/palette.py:
* gazpacho/properties.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/widgetadaptor.py:
* setup.py:
* tests/common.py:
Use kiwi.environ, requires r2278 of kiwi
2006-01-30 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/stockicons.py (StockIconList._populate_icons): Do not
assume there will always be a - in the stock id. Fixes #329094
* gazpacho/catalog.py:
* gazpacho/environ.py:
* gazpacho/widgets/base/combobox.py:
Load libraries in order, remove insane amount of hacks in combobox.py
2006-01-29 Johan Dahlin <johan@gnome.org>
* catalogs/base.xml:
* gazpacho/catalog.py:
* gazpacho/library.py:
* gazpacho/widgetadaptor.py:
* gazpacho/widgetregistry.py:
* gazpacho/widgets/base/bars.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/base/box.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/combobox.py:
* gazpacho/widgets/base/statusbar.py:
* gazpacho/widgets/base/textview.py:
* gazpacho/widgets/base/window.py:
Register adaptors a bit saner way, if there's an adaptor for
the base class, use it instead of WidgetAdaptor. Remove
SimpleContainer and always create a placeholder in fill_empty and
override it when it's neccessary (bars, iconview, boxes)
2006-01-28 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/command.py:
* gazpacho/commandmanager.py:
* gazpacho/placeholder.py:
* gazpacho/popup.py:
* gazpacho/project.py:
* gazpacho/uimstate.py:
* gazpacho/util.py:
* gazpacho/widget.py:
* gazpacho/widgets/base/notebook.py:
* gazpacho/widgetview.py:
* tests/test_box.py:
* tests/test_radiobuttons.py:
* tests/test_widgetselection.py:
Refactoring. The widget selection code has been removed from
Project and a WidgetSelection class has been added.
2006-01-27 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py:
(EditorPropertyFlags.__init__): Rewrite using Kiwi List
* README:
* gazpacho/actioneditor.py:
* gazpacho/clipboard.py:
* gazpacho/editor.py:
* gazpacho/gaction.py:
* gazpacho/kiwiutils.py:
* gazpacho/main.py:
* gazpacho/palette.py:
* gazpacho/project.py:
* gazpacho/signaleditor.py:
* gazpacho/sizegroup.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/stockicons.py:
* gazpacho/widget.py:
* gazpacho/widgets/base/custom.py:
* tests/common.py:
Depend on kiwi 1.9.3 or higher, remove kiwiutils.
Partly fixes #326848
=== 0.6.5 ===
2006-01-27 Johan Dahlin <jdahlin@async.com.br>
* NEWS:
* doc/release-howto.txt:
* gazpacho/__init__.py:
* po/ca.po:
* po/es.po:
* po/fi.po:
* po/fr.po:
* po/gl.po:
* po/it.po:
* po/pt_BR.po:
* po/ru.po:
* po/zh_CN.po:
0.6.5
2006-01-26 Johan Dahlin <johan@gnome.org>
* gazpacho/app/app.py:
* gazpacho/command.py:
* gazpacho/project.py:
* gazpacho/widgets/base/window.py:
Add widgets to the workspace through signal callbacks.
Only show the window after adding it to the project.
2006-01-26 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/util.py (rebuild): Catch IOError exceptions in
sys.stdout.flush.
* gazpacho/command.py:
* gazpacho/commandmanager.py:
* tests/test_widget.py:
Set a new name in cut if the name is already taken.
Update paste command to return pasted widget.
Verify that copy/paste and cut/paste keeps/updates the names of
widgets properly.
2006-01-26 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py:
* gazpacho/project.py:
* gazpacho/widgets/base/button.py:
* tests/test_widget.py:
Fix 327849, do not always set the name in project.add_hidden_widget.
Add add the child of a button to the project when loading it.
2006-01-26 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/clipboard.py:
* gazpacho/command.py:
* gazpacho/commandmanager.py:
* gazpacho/context.py:
* gazpacho/dndhandlers.py:
* gazpacho/editor.py:
* gazpacho/filewriter.py:
* gazpacho/palette.py:
* gazpacho/placeholder.py:
* gazpacho/popup.py:
* gazpacho/project.py:
* gazpacho/properties.py:
* gazpacho/signaleditor.py:
* gazpacho/sizegroup.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/uieditor.py:
* gazpacho/uim.py:
* gazpacho/uimstate.py:
* gazpacho/util.py:
* gazpacho/widget.py:
* gazpacho/widgetadaptor.py:
* gazpacho/widgets/base/bars.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/base/box.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/dialog.py:
* gazpacho/widgets/base/fixed.py:
* gazpacho/widgets/base/image.py:
* gazpacho/widgets/base/notebook.py:
* gazpacho/widgets/base/spinbutton.py:
* gazpacho/widgets/base/table.py:
* gazpacho/widgets/base/window.py:
* gazpacho/widgetview.py:
* tests/common.py:
* tests/test_actioneditor.py:
* tests/test_application.py:
* tests/test_bars.py:
* tests/test_box.py:
* tests/test_button.py:
* tests/test_clipboard.py:
* tests/test_command.py:
* tests/test_label.py:
* tests/test_properties.py:
* tests/test_property.py:
* tests/test_radiobuttons.py:
* tests/test_saveproperties.py:
* tests/test_scrolledwindow.py:
* tests/test_sizegroup.py:
* tests/test_spinbutton.py:
* tests/test_table.py:
* tests/test_uim.py:
* tests/test_widget.py:
* tests/test_widgets.py:
* tests/test_window.py:
The big renaming. Widget -> Gadget.
Doc strings/comments still needs updating
2006-01-25 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/filewriter.py:
* gazpacho/properties.py:
Refactor property handling here.
(PropRegistry.get_writable_properties): New function, lists
all properties which we should write in a glade file
2006-01-24 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/clipboard.py:
* gazpacho/loader/custom.py:
* gazpacho/project.py:
* gazpacho/properties.py:
* gazpacho/uim.py:
* gazpacho/widget.py:
* gazpacho/widgetadaptor.py:
* gazpacho/widgets/base/bars.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/combobox.py:
* gazpacho/widgets/base/image.py:
* tests/test_uim.py:
Do not save the loader in the project. Just acquire data from
it and discard it after that. Move signal loading code
from widget into the project.
2006-01-24 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py:
* gazpacho/project.py:
* gazpacho/widget.py:
* gazpacho/widgetadaptor.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/dialog.py:
* gazpacho/widgets/base/notebook.py:
* tests/test_bars.py:
* tests/test_box.py:
* tests/test_button.py:
* tests/test_widget.py:
Start cleaning up naming. Remove old naming code from widget.py.
GWidget.name is now just a proxy for GtkWidget::name. Do all
the name logic inside the project.
2006-01-22 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
Make get_adapter() about 30% faster by saving a reference to the
row and passing in a name (to avoid calling gobject.type_name)
2006-01-22 Johan Dahlin <johan@gnome.org>
* gazpacho/filewriter.py (XMLWriter._write_properties): Don't sort
properties until we know they're going to be written. 5% improvement
of testsuite and 10% updating pachi.glade.
* gazpacho/editor.py:
Cache editor properties for each type. Can probably be made
a bit more efficient. Makes the test suite go faster and will
probably make the application a bit snappier too.
2006-01-21 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/app/bars.py:
* gazpacho/config.py: Update the recent project list when saving a
project as well as opening it. When opening a project that is
already in the list it is moved to the top. It's also possible to
store more recent project entries than are displayed in the menu.
Fixes #326668.
2006-01-21 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py: Clear the selection after deleting a
placeholder. Fixes #318601.
2006-01-21 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py: Make sure the widget is selected after drag
and drop. Fixes #326010.
2006-01-20 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/widget.py:
* tests/test_widget.py: Update the name of the gtk_widget as well
as the gazpacho widget when copying. Fixes #327973.
2006-01-21 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/bars.py Do not always invalidate the whole
cache, instead add and remove stuff from it as needed.
2006-01-18 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py:
* tests/test_command.py: Don't destroy the placeholder when it's
deleted. We need it for undo/redo. Fixes #327115.
2006-01-19 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/main.py (launch): Add a --show option, to preview the
constructed interface
2006-01-15 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/project.py:
* gazpacho/widget.py:
* tests/test_widget.py:
* tests/test_widgets.py:
Do not load internal widgets when we're opening the project.
Also set the name unconditionally in guess_name.
Enable to skipped tests.
2006-01-17 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py (ObjectBuilder._find_internal_child):
Set the real name of the widget
* tests/test_loader.py (InternalChildTest.testDialog):
Add test for this
* gazpacho/command.py:
* gazpacho/commandmanager.py:
* gazpacho/filewriter.py:
* gazpacho/project.py:
* gazpacho/util.py:
* gazpacho/widgets/base/button.py:
* tests/test_button.py:
Set unique child names for all "hidden" widgets, eg images in
GtkButtons.
2006-01-17 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/editor.py:
* gazpacho/project.py:
* gazpacho/uim.py:
* gazpacho/widgetview.py:
* tests/test_button.py:
Store project widgets in a hash table instead of a list.
Make it private and update callsites.
2006-01-15 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py:
* gazpacho/commandmanager.py:
* gazpacho/dndhandlers.py:
* gazpacho/widget.py: It's now possible to do dnd extend/append
from the palette.
2006-01-15 Gustavo J. A. M. Carneiro <gjc@gnome.org>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/library.py (PythonLibrary._get_adaptor_class): Fallback
to using a generic adaptor if the library doesn't provide one.
(PythonLibrary.__init__): Don't require a 'root_library' symbol
from the library, which is not even used anywhere.
Fixes #327071
2006-01-15 Johan Dahlin <johan@gnome.org>
* gazpacho/app/app.py:
* gazpacho/app/bars.py:
* gazpacho/project.py:
* gazpacho/widgetadaptor.py:
* gazpacho/widgets/base/window.py:
* gazpacho/widgetview.py:
* gazpacho/workspace.py:
* tools/pylint.sh:
Add a workspace widget based on Havoc Penningtons proof of concept.
Disable it by default since there are still some issues.
Fixes bug #326989
2006-01-15 Johan Dahlin <johan@gnome.org>
* gazpacho/widgets/base/dialog.py (DialogAdaptor): Cleanups,
inherit from WindowAdapter and create placeholders in fill_empty.
2006-01-14 Gustavo J. A. M. Carneiro <gjc@gnome.org>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/library.py (PythonLibrary.__init__): Remove requirement
for unused root_library module attribute. Really use
library_name, if not empty, fallback to use name as before
otherwise. Try to load standalone <library_name> if loading
gazpacho.widgets.<library_name> fails.
(PythonLibrary._get_adaptor_class): 'return' after 'raise' is
redundant, remove.
* gazpacho/widgetadaptor.py (create_pixbuf): Don't try to load
pixbuf when the file path is None.
Fixes #316574
2006-01-14 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widget.py (Widget.create_gtk_widget):
* gazpacho/widgetadaptor.py (WidgetAdaptor.create):
Add widgetadapter.create()
* gazpacho/app/bars.py (MAIN_UI_STRING): Remove delete, not really
necessary as a toolbar icon.
(BarManager.build_interfaces): Hide text in toolbar, only display
icons, saves space.
2006-01-13 Johan Dahlin <jdahlin@async.com.br>
* pixmaps/both.png:
* gazpacho/app/app.py:
* gazpacho/constants.py:
* gazpacho/uimstate.py:
Make both.png transparent and use it as a stock icon
for adding a stock icon.
2006-01-13 Johan Dahlin <jdahlin@async.com.br>
* po/es.po:
* po/gl.po:
Updated spanish and galician translation (Rafael Villar Burke)
* gazpacho/uim.py:
* gazpacho/widgets/base/bars.py:
Do not translate actions, fixes #318528
2006-01-12 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/loader.py:
* gazpacho/widgets/base/base.py:
* tests/glade/button.glade:
* tests/glade/combobox.glade:
* tests/glade/custom.glade:
* tests/glade/dialog.glade:
* tests/glade/notebook.glade:
* tests/glade/radiobutton.glade:
* tests/glade/scrolledwindow.glade:
* tests/glade/sizegroup.glade:
* tests/glade/spinbutton.glade:
* tests/glade/table.glade:
* tests/glade/uimanager.glade:
* tests/test_loader.py:
* tests/test_saveproperties.py:
* tests/test_widgets.py:
Make widgets visible by default. Fixes #326724
Update all tests (whew!)
2006-01-12 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/signaleditor.py:
(SignalEditor._treeview_row_activated_cb): Add signal-activated signal
for Ali. Fix a minor bug too.
* gazpacho/filewriter.py:
* gazpacho/loader/tags.py:
* gazpacho/signaleditor.py:
* gazpacho/widget.py:
Add object support to the signal editor. Fixes #311649
2006-01-12 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/filewriter.py:
* gazpacho/signaleditor.py:
* gazpacho/widget.py:
* tests/test_command.py:
* tools/pylint.sh:
Refactor model usage in signaleditor. Make widget.signals private.
2006-01-12 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py:
* gazpacho/uim.py:
* tests/glade/uimanager-windowless.glade:
* tests/glade/uimanager.glade:
* tests/test_loader.py:
* tests/test_uim.py:
Do not recreate UIManager widgets, use more information
from the loader, such as merge_id. Add tests for this and rename
the old test. Fixes #315625
2006-01-11 Johan Dahlin <johan@gnome.org>
* gazpacho/filewriter.py:
* gazpacho/gaction.py:
* gazpacho/loader/tags.py:
* gazpacho/project.py:
* gazpacho/uim.py:
* tests/glade/uimanager.glade:
* tests/test_uim.glade:
* tests/uimanager-example.glade:
Save actions even if there are no widgets. Fixes #314098.
Add a new glade test for this.
Make the name of the uimanager persistent.
Save actions using <widget> instead of <object>
2006-01-11 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/commandmanager.py:
* gazpacho/filewriter.py:
* gazpacho/loader/compat.py:
* gazpacho/loader/custom.py:
* gazpacho/loader/proxy.py:
* gazpacho/palette.py:
* gazpacho/properties.py:
* gazpacho/signaleditor.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/uieditor.py:
* gazpacho/uim.py:
* gazpacho/uimstate.py:
* gazpacho/util.py:
* gazpacho/widget.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/dialog.py:
* gazpacho/widgets/base/image.py:
* gazpacho/widgetview.py:
Pylint fixes for indentation, tabs, multiple statements on the same
line, word wraps.
2006-01-10 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py (load_widget_from_gtk_widget): the loader is not
used in this function
(Widget.setup_internal_widget): save the name in the internal widget so
when it is selected the 'name' property is shown correctly.
=== gazpacho 0.6.4 ===
2005-12-12 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/notebook.py (NPagesProp.load): Override load,
fixes notebook problem seen in #320527
2005-01-09 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/uimstate.py (WidgetUIMState._update_sizegroup_actions):
Fix for #326105, also filter out Placeholders. Modified patch
by Mattias
2006-01-06 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/clipboard.py: Make sure the clipboard sends the
'selection-changed' signal when a widget has been added even if
the clipboard dialog isn't visible. Fixes #326027.
2006-01-06 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/commandmanager.py:
* gazpacho/popup.py: Make sure that the undo/redo text for
inserting a placeholder in a box is correct. Fixes #326043.
2006-01-07 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/bugreportdialog.py (get_revision): Catch IOError and check in
.svn/entries instead of just entries. Fixes #326048
2006-01-06 Ross Burton <ross@burtonini.net>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* catalogs/base.xml: Add GtkFontButton and GtkFileChooserButton.
Fixes #317901
2006-01-05 Johan Dahlin <jdahlin@async.com.br>
* tests/test_loader.py (InternalChildTest.testDialog): Re-enable, fixes
#325851
* tests/test_widgets.py (SKIPPED): enable scrolled window test
* tests/test_glade.py (SKIPPED): enable dialog test
* gazpacho/project.py (Project.open): Load internal children
* gazpacho/widget.py (Widget.guess_name): Only set name if it's unset.
* gazpacho/properties.py (PropRegistry._create_type_from_pspec):
Set maximum and minimum of they're found in the pspec.
Fixes #304392.
=== gazpacho 0.6.3 ===
2006-01-05 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/__init__.py (__version__): 0.6.3
* gazpacho/config.py (get_app_data_dir): win32 fixes for #322923
* gazpacho/cursor.py:
* gazpacho/gaction.py:
* gazpacho/project.py:
* gazpacho/widget.py:
Remove all staticmethod and replace them by classmethods.
Also use the class in a couple of places, to make subclassing
possible.
2006-01-05 Johan Dahlin <jdahlin@async.com.br>
* gazpacho.desktop (Categories): Add a ; to the end, fixes #322336
(Vincent Fretin)
* gazpacho/loader/loader.py:
* gazpacho/project.py:
* gazpacho/sizegroup.py:
Fix sizegroup loading, GSizeGroup expect widget wrappers and not
just widgets.
2006-01-05 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/dialogs.py (BaseDialog.__init__): If parent is specfied,
make sure its a gtk.Window subclass.
* gazpacho/editor.py (EditorPropertyText._show_i18n_dialog): Change
order of arguments. Fixes #325849.
2006-01-05 Mike Gratton <mike@vee.net>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py:
* gazpacho/command.py:
* gazpacho/commandmanager.py:
* gazpacho/gaction.py:
* gazpacho/uim.py:
Add is-important and short-label support in GActionEditor.
Fixes #325060
2006-01-05 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py (GActionDialog): Disable OK button
if we have a stock. And don't set stock id if it's None.
* gazpacho/stockicons.py (StockIconList._create_ui): set sensitivity of
preview to False by default. Fixes #325828
2006-01-04 Mattias Karlsson <matka134@student.liu.se>
* catalogs/base.xml: Removed support for GtkFixed. It was
quite broken and couldn't really be used anyway. See #167864.
2006-01-04 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/project.py:
* gazpacho/widgets/base/window.py:
* tests/glade/modal.glade:
Do never set the real modal property, fixes #313529
2006-01-04 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/filewriter.py:
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
* gazpacho/project.py:
* gazpacho/sizegroup.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/widgets/base/base.py:
* tests/glade/sizegroup.glade:
* tests/test_loader.py:
* tests/test_sizegroup.py:
Loader and writing support for SizeGroups. Add tests and
change the API slightly. Fixes the rest of #172717
2006-01-03 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/sizegroupeditor.py: Fixed a bug that made it impossible
to add widgets to any existing sizegroups except the first in the
combo box.
2006-01-04 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/table.py: Re-add table attachment properties.
Fixes #321953
2006-01-04 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/dialogs.py (BaseDialog.__init__): replace None by the empty
tuple for the default value of the buttons argument. This fixes a crash
when closing gazpacho without saving your changes.
2006-01-03 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/button.py (ButtonContentsEditor):
Use StockIconList here.
* gazpacho/stockicons.py: Refactor the stock icon code to its own
class.
* gazpacho/gaction.py:
Allow the user to set the icon to a custom (not registered) stock icon
id. Switch from using a GtkComboBox to a GtkComboBoxEntry with a
preview icon field.
2005-12-13 Mike Gratton <mike@vee.net>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/gaction.py (GAction.new): Use gtk.accelerator_name
to set the accelerator, fixes bug 323773
2005-12-13 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/app/bars.py:
* gazpacho/clipboard.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/uimstate.py:
* tests/test_sizegroup.py:
The menubar and toolbar will now have a more dynamic
behavior. Items will be added and removed depending on which view
is active. Furthermore, the behavior of the edit actions (cut,
copy, paste and delete) will also depend on the context the
operate in. For example, the delete button is now used to delete
actions and action groups when the action view is active. To
achieve this a new type of classes (called uim states) have been
introduced. Their purpose is to keep track of the state of the
ui-manager widgets and to add or remove ui-definitions when
needed.
2005-12-12 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py: It's no longer possible to add several
actions with the same name to an action group. Fixes #318351.
2005-12-09 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/notebook.py
(NotebookAdaptor._project_selection_changed_cb):
If a selected child wasn't visible, switch to the right page.
2005-12-07 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/placeholder.py (Placeholder will now
always be set, prevent bugs.
2005-12-06 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py (ObjectBuilder._attach_accel_groups):
Protect the accel group from being added twice.
2005-12-05 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py (Widget._find_deepest_child_at_position): recurse
into containers even when those containers are not GWidgets. Fix some
problems with internal widgets of custom made widget-libraries
2005-12-03 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/popup.py: Removed a reference to command_manager.app
since it insn't available anymore. Fixes #323051.
2005-11-24 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py (ObjectBuilder._attach_accel_groups):
New method: merge in accel groups for all toplevels where a widget
was constructed by a GtkUIManger. Makes keyboard accelerators work.
2005-11-22 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/app/bars.py:
* gazpacho/catalog.py:
* gazpacho/clipboard.py:
* gazpacho/dndhandlers.py:
* gazpacho/environ.py:
* gazpacho/kiwiutils.py:
* gazpacho/library.py:
* gazpacho/loader/custom.py:
* gazpacho/palette.py:
* gazpacho/properties.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/util.py:
* gazpacho/widgetadaptor.py:
* gazpacho/widgets/base/bars.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/table.py:
* tools/epyrun:
Add script to run epydoc. Update docstrings.
Add a couple of hacks: Fake all singletons.
2005-11-21 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py: Add a command alias called
remove-action-group, partly fixes bug 321937
2005-11-20 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/app/app.py:
Fixed a regression where the undo/redo actions weren't enabled
correctly.
2005-11-20 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/app/app.py:
Refactor so that the same code is used when changing projects and
closing the last project.
2005-11-20 Mattias Karlsson <matka134@student.liu.se>
* tests/test_sizegroup.py: Added a few more tests for the
SizeGroupView class.
2005-11-19 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/actioneditor.py:
* gazpacho/app/app.py:
* gazpacho/commandmanager.py:
* tests/test_actioneditor.py:
Fixed a couple of regressions related to the actioneditor. Also
added some simple tests to prevent them from occurring again.
2005-11-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py:
* gazpacho/app/app.py:
* gazpacho/command.py:
* gazpacho/dndhandlers.py:
* gazpacho/editor.py:
* gazpacho/placeholder.py:
* gazpacho/project.py:
* gazpacho/signaleditor.py:
* gazpacho/sizegroup.py:
* gazpacho/sizegroupeditor.py:
* gazpacho/widget.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/fixed.py:
* gazpacho/widgetview.py:
* tests/test_button.py:
* tests/test_command.py:
* tests/test_property.py:
* tests/test_scrolledwindow.py:
* tests/test_sizegroup.py:
* tests/test_widgets.py:
Move CommandManager to gazpacho.command_manager.
Add register command so we don't have to reference
the commands directly.
2005-11-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/__init__.py:
* gazpacho/app/app.py:
* gazpacho/bugreportdialog.py:
* setup.py:
Move __version__ from gazpacho.app.app to gazpacho.
Clean up imports in app
2005-11-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py (Application._add_recent_items): Make
it work again.
* gazpacho/app/bars.py (BarManager.set_action_prop)
(BarManager.set_action_props): New helper functions.
* gazpacho/app/app.py: Use them here.
2005-11-17 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/app.py:
* gazpacho/app/bars.py:
* tests/common.py:
* tests/test_application.py:
Start of UIManager refactoring
2005-11-17 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/app/__init__.py:
* gazpacho/application.py:
* gazpacho/main.py:
* setup.py:
Move application to app/app
2005-11-17 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py:
* gazpacho/properties.py:
Add UnsupportedProperty exception. Throw it when we can't
iterate flags or enums for which there are now bindings. This
happens when having a version mismatch between pygtk and gtk+.
Fixes #316196
2005-11-17 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/application.py:
* gazpacho/bugreportdialog.py:
* gazpacho/config.py:
* gazpacho/debugwindow.py:
Make bugname and bugmail persistent. Move config out of
application. Improve subject of bugmail
2005-11-10 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/application.py:
* gazpacho/command.py:
* gazpacho/project.py:
* gazpacho/sizegroup.py:
* gazpacho/sizegroupeditor.py:
* tests/test_sizegroup.py:
Added initial support for sizegroups.
2005-11-09 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/application.py:
* gazpacho/placeholder.py:
* gazpacho/popup.py:
* gazpacho/project.py:
Only placeholders that are part of a gtk.Box can be deleted. Fixes
#316532.
2005-11-09 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py (Editor.refresh):
Editor is part of the public API, so it'll be loaded by
applications and should not print deprecation warnings.
2005-11-09 Kalle Vahlman <zuh@iki.fi>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/application.py (Application):
Remove non-existing recent items, fixes #317896
2005-11-07 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/util.py:
* tests/test_button.py:
Fix 317079 (Undo/Redo for GtkButton)
2005-11-09 Johan Dahlin <jdahlin@async.com.br>
* tests/test_widgets.py (SKIPPED): Only disable GtkFileChooserDialog
test when we're not using 2.8.x
* gazpacho/loader/custom.py:
* tests/test_glade.py:
Fix #316062, by always setting image-file-name in the loader.
2005-11-07 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py: Make sure we remove ui definitions for
toolbars and menubars when their parents are removed. Fixes
#320798 (reported by Noe Misael Nieto Arroyo).
2005-10-31 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py: Refactor CommandCreateDelete and
CommandCutPaste to remove some duplicate code.
2005-10-09 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/popup.py: Only enable the paste item in the placeholder
popup menu if there is relevant content in the clipboard. Also,
both paste and delete will always be displayed in the popup but
disabled if they cannot be used. Fixes #318321 (reported by Rich
Larson)
2005-10-03 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py: Description for the DnD commands should be
translatable.
2005-10-03 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py (ObjectBuilder.signal_autoconnect):
Also catch TypeError, fixes #317807 (Zeeshan Ali)
2005-10-01 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py:
* tests/test_button.py:
Undoing/redoing button editing doesn't work correctly
(#317079). I've added a number of tests to verify this bug and
also fixed one of the issues. Still a couple of problems left.
2005-09-28 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py: Fixed a regression in the
CommandCreateDelete that was introduced recently. Fixes #317372
2005-09-27 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py:
Big rewrite of the CommandDragDrop. This will fix some issues with
doing DnD of toolbars and menubars. When using DnD to add a copy
of a widget the CommandCutPaste is reused instead of using a new
command. It also removes the old execute_drag method in the
CommandManager since it wasn't used and isn't really needed right
now. Fixes #314041.
2005-09-23 Johan Dahlin <johan@gnome.org>
* gazpacho/command.py:
* gazpacho/util.py:
* gazpacho/widgets/base/button.py:
Add support for icon size when not using a stock button.
Fixes #316980
2005-09-23 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/uieditor.py (UIEditor._on_add_clicked): Refactor.
(UIEditor._on_add_clicked): Always set a name, even for separators.
* gazpacho/properties.py (PropMeta.__repr__, PropRegistry.list):
Add disabled in the base class and do not list disabled properties.
2005-09-22 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/popup.py: Turn off mnemonics for menu items in the
popup menu since it will break for widgets having underscore in
their names. Fixes #316785 (Reported by Gustavo Carneiro).
2005-09-21 Johan Dahlin <johan@gnome.org>
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/image.py:
* tests/glade/button.glade:
Add back support for text less stock buttons. Add a test too.
Fixes #316885
2005-09-16 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/box.py (BoxSizeProp.set): Set minimum of
::spacing to 0
2005-09-15 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/application.py: Always show a confirmation dialog if
you're trying to open a glade file that is already loaded. Fixes
#316416.
2005-09-15 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py (CommandCreateDelete._create_execute): Clean up a
little bit. Make windows be centered on the application on window, and
also show them a little bit earlier.
* tests/test_gtkbutton.py:
* gazpacho/widgets/base/button.py (ButtonSave.testSaveStock):
Do not load internal children of buttons Fixes #316388
2005-09-15 Johan Dahlin <jdahlin@async.com.br>
* tests/glade/button.glade: Add a test for non stock images
* gazpacho/util.py (get_button_state): Take into account that
stock is set if the image cannot be loaded.
* gazpacho/widgets/base/button.py (ButtonAdaptor.save): Do not save
the widget if it's already loaded.
* gazpacho/widgets/base/image.py (StockProp.save): Only save stock
if we don't have the image-file-name data set.
(FileProp.load): Set the value from the glade file, since we
can't read.
* gazpacho/loader/custom.py (Adapter.get_raw_property): New function.
Accesses values parsed from the tree.
* gazpacho/loader/loader.py (ObjectBuilder._add_widget):
New utility function, to set gazpacho::object-id for all constructed
objects.
* gazpacho/widgets/base/combobox.py:
* gazpacho/properties.py (PropType.__init__): Move adapter
fetching from combobox to property constructor.
Also pass in the projects loader (if any).
* gazpacho/kiwiutils.py: add python 2.3 compatibility, thanks
to Lucas Gates for testing
* gazpacho/properties.py:
return the property type for debugging purposes
* gazpacho/widgets/base/base.py:
Ensure image.py is imported
* tests/test_gtkbutton.py:
Disable one test for now.
* tests/glade/button.glade:
Add 3 buttons, still missing stock no label and image without stock
2005-09-14 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/properties.py (PropRegistry.override_simple): Allow klasses
to specify if they are child properties.
(PropRegistry._list_child_properties): Don't fetch .__gtype__,
PyGTK does it for us
(PropMeta) much improved exceptions
* gazpacho/widgets/base/button.py (LabelAdaptor.save): Use
override_simple, since ::label already exists.
* gazpacho/properties.py (PropRegistry.override_simple):
Remove override_child, merge it with override_simple.
Change the semantics for override_simple a little bit, don't
call override_property.
2005-09-14 Johan Dahlin <johan@gnome.org>
* gazpacho/properties.py (PropRegistry): A couple of bug fixes,
mostly related to child properties. Added a few comments for
better understanding. Started to document PropType, added license
header.
2005-09-13 Johan Dahlin <jdahlin@async.com.br>
* tests/test_gtktable.py (GtkTableTest.testProperty)
(GtkTableTest.testAddChildren): Use .value instead of get/set
* gazpacho/editor.py (EditorPropertyNumeric._internal_load): Improve
exception handling.
* catalogs/base.xml: Disable GtkMessageDialog
* gazpacho/kiwiutils.py: AMD-64 fixes, thanks to
Gustavo for testing.
* tests/test_glade.py (SKIPPED): Enable table glade test.
* tests/test_gtktable.py (GtkTableTest.testProperty): Extend tests a little
* gazpacho/widgets/base/table.py (TableSize._remove_children): Clean up
Table::n-props/n-columns.
* gazpacho/loader/loader.py (ObjectBuilder._build_phase1): Also
add a reference to custom widgets, so we can reference them
in object properties like GtkLabel::mnemonic-widget.
Fixes #315982 (Ross Burton)
* gazpacho/unittest/test_loader.py (CustomTest.func): Add a test
2005-09-12 Zeeshan Ali <zeenix@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py: Be careful with the return value
from uim.get_ui. Fixes #316083
2005-09-12 Johan Dahlin <johan@gnome.org>
* gazpacho/properties.py (PropType.__init__): Rename _object to
object and make object a property, so we only need to update
prop.widget when the parent changes.
* gazpacho/editor.py (Editor._create_property_pages): Append
GtkWidget::name first of all properties to the first page.
2005-09-06 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/project.py:
A project will not be marked as changed when reverted (undo/redo)
to the state it was in the last time it was saved.
2005-09-06 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/properties.py:
* tests/test_property.py:
Always fetch the parent when setting child properties,
so we survive a parent reparenting. Fixes bug 314111
Tests were also added.
2005-09-09 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py (ToolButtonAdapter.prop_set_icon):
Check so filename exists (bug #315802) and create an image
properly (bug #313771)
* gazpacho/main.py: Do not load when using PyGTK 2.7.x
2005-09-09 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/window.py:
Add support for allow-grow, allow-shrink.
Fixes #315423 (Zeeshan Ali)
2005-09-09 Johan Dahlin <jdahlin@async.com.br>
* tests/glade/dialog.glade:
* tests/test_glade.py:
Add dialog test, skipped since it is not yet working
2005-09-08 Zeeshan Ali <zeenix@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py (ComboBoxAdapter): Handle ::active.
* tests/glade/combobox.glade: Add a test.
Fixes #315444
=== gazpacho 0.6.2 ===
2005-09-07 Lorenzo Gil Sanchez <lgs@sicem.biz>
* NEWS: updated for 0.6.2
* gazpacho/application.py (__version__): increase version number
2005-09-06 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py:
* gazpacho/widget.py:
* gazpacho/palette.py:
* gazpacho/constants.py:
* gazpacho/placeholder.py:
* gazpacho/dndhandlers.py: Big refactoring of the drag and drop
code. The dnd code from Widget and Placeholder have been moved to
special DnDHandler classes. In addition to this it's now possible
to drag a widget ontop of another widget and extend it, by either
creating a new box containing both the source and target widget or
by appending the source widget to the the parent box next to the
target.
2005-09-06 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py (DialogAdapter.get_internal_child_name)
(ColorSelectionDialogAdapter.get_internal_child_name): Correct
names, they are different from C structure names.
Fixes #315357 (Zeeshan Ali)
2005-09-01 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/placeholder.py: It should not be possible to drop a
widget onto one of its children. Fixes #314581.
2005-09-01 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/main.py (check_gtk): Add some extra checks and clean up
a bit
* gazpacho/application.py (SingleCloseConfirmationDialog.run):
New method, call show and call main.
2005-08-31 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/combobox.py (Items.load): Create a new
model if it does not already exist.
* gazpacho/loader/custom.py (ComboBoxAdapter.prop_set_items): Only set
the text column if it's not already set
* tests/glade/combobox.glade: Add test
* gazpacho/widgets/base/combobox.py: Add support for GtkComboBox::items,
2005-08-30 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/debugwindow.py: HIG fixes. Buttons should use header
capitalization.
2005-08-30 Johan Dahlin <johan@gnome.org>
* gazpacho/cairoannotator.py:
* gazpacho/gdkannotator.py:
* gazpacho/util.py:
* gazpacho/widget.py:
Merge annotator code into a single source file
2005-08-29 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/actioneditor.py: It's now possible to add accelerators
even if they conflict with the mnemonics in the dialog. Fixes
#312809.
* gazpacho/widget.py: It's no longer possible to drop a widget
onto itself (i.e. not a valid drop target). Fixes Bug 314621.
2005-08-26 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/palette.py (Palette._widget_table_create): Do not
enable DND for toplevel windows, fixes #314609
* catalogs/base.xml: Disable Popup menu until 311478 is resolved.
* gazpacho/bugreportdialog.py (BugReportDialog.__init__): Button order.
* gazpacho/widget.py (Widget._connect_signal_handlers): We don't
need to connect to signals for all children. Remove unused code.
* gazpacho/filewriter.py (XMLWriter._write_basic_information): If
name is set, write it to the file. We can now remove a custom hack.
2005-08-25 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/custom.py (TreeViewColumnAdapter.add): Work
around for PyGTK bug 314527, fixes #313384
2005-08-25 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/proxy.py (Proxy._connect_methods): Fix minor bug,
variant of patch by Harry Wright, fixes 314218
* gazpacho/filewriter.py:
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
* gazpacho/properties.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/base/box.py:
* gazpacho/widgets/base/notebook.py:
* tests/glade/focus.glade:
Add persistent property attribute, use it instead of
empty save methods in a few cases.
Add a qdata property base class to use in state which
is saved in qdata.
Ignore has-focus, only is-focus should be used.
Use qdata for has-focus and visible
Add a test case.
Fix a couple of loader bugs, add loader bugs warning when having
multiple selected widgets with is-focus set.
2005-08-25 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/base.py (VisibleProperty.get): If gazpacho::visible
is not set, initialize it from the real property value.
* tests/test_glade.py (SKIPPED): Enable notebook test
* tests/glade/notebook.glade: Remove page property
* gazpacho/widgets/base/notebook.py (Page.save):
Don't save GtkNotebook::page property, first page will always
be shown.
* gazpacho/widgets/base/base.py (IsFocus.set):
* gazpacho/loader/custom.py (WidgetAdapter.prop_set_is_focus):
Add support for GtkWidget::is-focus,
* tests/glade/table.glade:
* tests/glade/notebook.glade: Add tests, disabled for now
* gazpacho/widgets/base/notebook.py (NPagesProp.save): Don't save
* gazpacho/filewriter.py (XMLWriter.table_sort): Make children of
a GtkTable sorted in a stable order in the glade file.
2005-08-23 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/placeholder.py:
* gazpacho/widgets/base/custom.py:
No need to override signals on PyGTK 2.6+
Set minimum for int1/int2. Add some nicer
drawing code. Listen for changes to string1 and
update the text
2005-08-23 Johan Dahlin <jdahlin@async.com.br>
* catalogs/base.xml:
* gazpacho/widgets/base/base.py:
Fix basic support for EventBox, which is a container,
so move it to the container tab.
2005-08-23 Johan Dahlin <jdahlin@async.com.br>
* catalogs/base.xml:
* gazpacho/widgets/base/bars.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/base/box.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/combobox.py:
* gazpacho/widgets/base/fixed.py:
* gazpacho/widgets/base/image.py:
* gazpacho/widgets/base/statusbar.py:
* gazpacho/widgets/base/textview.py:
* gazpacho/widgets/base/treeview.py:
* gazpacho/widgets/base/window.py:
Split out most of the widgets left in base.py
2005-08-20 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/widgets/base/base.py:
* catalogs/base.xml:
Several container classes didn't have adaptors specified. The
implication of this was that they didn't have any placeholders
associated with them.
2005-08-22 Daniel Borgmann <daniel.borgmann@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/properties.py:
* gazpacho/widgets/base/base.py:
Splits the PropType init function into a _load function, for the
purpose of overriding it in BoxSizeProp. Also sets the
minimum value to 1. Replace .remove with gtk.Container.remove
2005-08-22 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/kiwiutils.py: Copied from kiwi, until we can depend on it
Include PyGTK 2.7.x fixes, by Gustavo Carneiro
* catalogs/base.xml:
* gazpacho/project.py:
* gazpacho/widgets/base/custom.py:
* tests/glade/custom.glade:
Add support for editing Custom widgets. Add test case
2005-08-22 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/unittest/test_loader.py (CustomTest.func):
* gazpacho/loader/loader.py (ObjectBuilder._create_custom):
If a function is specified, send in all arguments.
* gazpacho/editor.py: Use editor_name in label
* gazpacho/widgetadaptor.py: Allow type to be specified in the class
definition, instead of the xml file.
* gazpacho/widgetregistry.py: Document and use widget_adaptor.name
if specified
2005-08-22 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/library.py (registry_library): Move interfaces from here.
* gazpacho/interfaces.py: New file, for interfaces, just abstract
classes for now.
2005-08-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/properties.py:
* tests/glade/radiobutton.glade:
Add radiobutton test and an evil hack in PropType.__init__
2005-08-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/environ.py (Environment._parse_gazpacho_path):
Fix GAZPACHO_PATH to work with the new widget layout
2005-08-17 Johan Dahlin <johan@gnome.org>
* gazpacho/application.py: Always access self.window through a
property, should make it easier for subclassing.
Also refactor setting the title to a separate function, which
can be overriden by embedders. Based on patch by Ali Afshar,
fixes #313396
2005-08-17 Johan Dahlin <johan@gnome.org>
* gazpacho/widgets/base/base.py (TreeViewAdaptor.fill_empty):
Ignore GtkTreeView::headers-clickable
* README: Update requirements
* gazpacho/widgets/base/spinbutton.py (SpinAdjustmentType.__init__):
New file. Implement all adjustment properties, not syncing with
the editor control yet. Fixes #313686
* gazpacho/editor.py (PropertyEditorDialog)
(PropertyCustomEditor): Move from properties.py
* gazpacho/properties.py (PropRegistry.override_property): Set
owner_name.
(PropType.__repr__): print owner_name::name for consistency
(ProxiedProperty): New helper type
(ProxiedProperty.set):
* tests/glade/spinbutton.glade: New test glade file
* tests/test_glade.py (BaseTest._test_gladefile): Improve
* gazpacho/properties.py (PropMeta.new, PropRegistry._add_type): Do
not override label if there is an already set label.
2005-08-16 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widget.py (Widget._dnd_drag_begin_cb): Make DND of
Widgets to Placeholder work
* gazpacho/editor.py (Editor._needs_rebuild): Do not cache the
last property pages when switching between widgets which have
different child properties. Fixes #313439
(Editor): Remove _widget_properties cache, it doesn't seem to work
in all cases
* tests/test_gtkbox.py (GtkBoxTest.testExpand): Enable test
* gazpacho/properties.py (PropRegistry._list_child_properties):
Remove type_name argument it was unused. Update call sites.
* setup.py (InstallLib.install): Generate template in install_dir
instead of build_dir, fixes #313435
2005-08-15 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/main.py: Don't call bind_textdomain_charset as things appears
to work without it. Makes gazpacho start on python 2.3. Fixes #313573
2005-08-15 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/actioneditor.py: it's now possible to delete actions
and action groups using the keyboard. Fixes #313548
2005-08-15 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/application.py (Application.send_bugreport): compose the
body message here and not in the server. Added pygtk and gtk versions
2005-08-15 Johan Dahlin <jdahlin@async.com.br>
* catalogs/base.xml:
* gazpacho/widgets/base/__init__.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/dialog.py:
* gazpacho/widgets/base/notebook.py:
* gazpacho/widgets/base/table.py:
Remove __init__ hacks.
2005-08-15 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/base/__init__.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/base/button.py:
* gazpacho/widgets/base/dialog.py:
* gazpacho/widgets/base/notebook.py:
* gazpacho/widgets/base/table.py:
Split base to a few files
2005-08-15 Johan Dahlin <jdahlin@async.com.br>
* catalogs/base.xml:
* catalogs/glade-catalog.dtd:
* catalogs/gtk+.xml:
* gazpacho/__uninstalled__.py:
* gazpacho/catalog.py:
* gazpacho/environ.py:
* gazpacho/filewriter.py:
* gazpacho/library.py:
* gazpacho/widgets/__init__.py:
* gazpacho/widgets/base/__init__.py:
* gazpacho/widgets/base/base.py:
* gazpacho/widgets/gtk+.py:
* setup.py:
Rework widgets/ one more time. Loads from sys.path (gazpacho.widgets),
renamed to base.py, we cannot use gtk+.py since it's not valid in python and
gtk.py is already taken.
2005-08-15 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py:
* gazpacho/choice.py:
* gazpacho/loader/loader.py:
* gazpacho/widgets/gtk+.py:
Remove unused imports and some unused code.
2005-08-14 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/loader.py: Don't try to pack anything into
unsupported widgets. Fixes bug #313469
=== gazpacho 0.6.1 ===
2005-08-13 Johan Dahlin <jdahlin@async.com.br>
* NEWS:
* gazpacho/application.py:
0.6.0
2005-08-13 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/main.py:
* po/it.po:
* po/pt_BR.po:
Call bindtextdomain and convert it.po and pt_BR.po to UTF-8
2005-08-12 Johan Dahlin <jdahlin@async.com.br>
* glade/dummy.glade: Dummy file so installation will work from a disted tarball.
2005-08-13 Lorenzo Gil Sanchez <lgs@sicem.biz>
* 0.6.0 released
* NEWS: 0.6.0 release
* gazpacho/application.py: increase version number
2005-08-13 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/__uninstalled__.py (docs_dir):
* gazpacho/environ.py (Environment.__init__): added a docs_dir variable
* gazpacho/application.py (__version__): new about dialog
* setup.py: use the same version as in gazpacho.application
2005-08-13 Christopher Aillon <caillon@redhat.com>
Reviewed by: Johan Dahlin <johan@gnome.org>
* gazpacho/command.py:
Store the actions associated with an action group when deleting
the action group, so we can restore them during an Undo. Fixes
#172279
2005-08-12 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/gaction.py (GAction.write): Compare against translated label,
using the domain returned from stock_lookup. Strings returned by
stock_lookup are translated. Makes the testsuite pass when a locale is
set.
* gazpacho/config.py (BaseConfig.get_option): s/_filename/filename/,
efixes #313345
* gazpacho/filewriter.py (XMLWriter._write_property): Escape strings before
saving them as xml data. Really.
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
* gazpacho/widgets/gtk+.py:
Rework GtkWidget::visible, use the state from the loader, eg
gazpacho::visible. It now respect the value in the glade file,
even if the window is never shown.
2005-08-12 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/properties.py (PropType.__init__): For custom properties, do not
call .get() to get the initial value. Fixes #313325
* gazpacho/unittest/test_uim.glade: Update
* gazpacho/gaction.py (GAction.write): If stock, do not write
label or accelerator if they are the default ones.
Always write translate="yes" for labels. Fixes #313324
* gazpacho/widgets/gtk+.py (LabelAdaptor.is_translatable): Override,
only translate if we're not using a stock_id
* gazpacho/properties.py (PropType.is_translatable): New method, to be
able to change translation on a per property instance basis.
* gazpacho/uim.py (default_actions): Use default labels for cut
and save as, so we get translations from gtk+ for free.
2005-08-12 Christopher Aillon <caillon@redhat.com>
* examples/uimanager.glade:
* gazpacho/application.py:
* gazpacho/uim.py:
* gazpacho/unittest/test_uim.glade:
* gazpacho/unittest/uimanager-example.glade:
* po/ca.po:
* po/es.po:
* po/fi.po:
* po/fr.po:
* po/gl.po:
* po/it.po:
* po/pt_BR.po:
* po/ru.po:
* po/zh_CN.po:
Menu item should be "Save _As..." per HIG. Fixes #313299
2005-08-12 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgets/gtk+.py: simplyfied UIPropEditor thanks to the new
class PropertyCustomEditorWithDialog
* gazpacho/uieditor.py:
* gazpacho/editor.py: adapted to work with the new PropertyCustomEditor
* gazpacho/properties.py: added a custom editor that is just a button
that opens a dialog. Moved the PropertyEditorDialog class from
custompropertyeditor.py to here
* gazpacho/custompropertyeditor.py: removed
2005-08-11 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py (ExpatParser._start_glade_interface):
Add support for <glade-interface domain=""> to use as a domain
for translation.
(ObjectBuilder.__init__): Call textdomain() to get the default
domain if none was specified.
* gazpacho/cairoannotator.py:
* gazpacho/gdkannotator.py:
* gazpacho/library.py:
* gazpacho/palette.py:
* gazpacho/unittest/test_loader.py:
* gazpacho/util.py:
* gazpacho/widget.py:
Fix pyflakes warnings.
2005-08-11 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/constants.py:
* gazpacho/dndconstants.py:
* gazpacho/placeholder.py:
* gazpacho/widget.py:
Clean up some DND stuff, mostly style
* gazpacho/library.py (LibraryRegistry): Add a simple registry
(load_library): Change the API slightly
(registry_library): New API to register a library
Kill C stuff
* gazpacho/catalog.py (Catalog._parse_catalog): Update
2005-08-11 John (J5) Palmieri <johnp@martianrock.com>
reviewed by: Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/dndconstants.py:
* gazpacho/placeholder.py:
* gazpacho/palette.py:
* gazpacho/widget.py:
* gazpacho/command.py: added preliminary support for drag & drop. You
can drag widgets from the palette and drop them in a container. See
#313179
2005-08-11 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/editor.py (EditorPropertySpecial.__init__): fix error
message
* gazpacho/widgetadaptor.py (WidgetAdaptor.get_default_prop_value):
create the widgets using the library. Fix 3rd party widget libraries
* gazpacho/application.py (Application._construct_menu_and_toolbar):
remove short string for stock actions so we get translations for free.
Add stock icon for About item. Patch by Dan Williams. Fix #313173
2005-08-10 Christopher Aillon <caillon@gmail.com>
reviewed by: Johan Dahlin <johan@gnome.org>
* gazpacho/actioneditor.py:
Convert to int, gtk.accelerator_valid does not accept longs.
2005-08-10 Owen Taylor <otaylor@redhat.com>
Reviewed by: Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gdkannotator.py:
* gazpacho/cairoannotator.py:
* gazpacho/placeholder.py:
* gazpacho/application.py:
* gazpacho/widget.py:
* gazpacho/util.py: new feature: draw colored borders around boxes and
tables to show the structure of the layout
2005-08-11 Lorenzo Gil Sanchez <lgs@sicem.biz>
* tests/test_gtkbutton.py: reenabled all tests
* gazpacho/widgets/gtk+.py: several tweaks to make buttons work again
* gazpacho/properties.py (PropType.__init__):
* gazpacho/widget.py (Widget.__init__): added a flag to tell the
properties code not to touch the gtk properties under certain
circunstances (e.g. internal children or private children)
* gazpacho/command.py (CommandSetButtonContents._clear_button): clear
the label too
* gazpacho/filewriter.py (XMLWriter._write_widget): keep the gtk
properties before saving the widget.
2005-08-11 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/project.py
Make sure the undo/redo stack emits a changed signal even for
commands that can collapse . Fixes #313169.
2005-08-10 Owen Taylor <otaylor@redhat.com>
Reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/placeholder.py:
* gazpacho/util.py:
* gazpacho/widget.py:
Get rid of the multiply added idles by drawing the selection
nodes in ::event-after.
2005-08-10 Owen Taylor <otaylor@redhat.com>
Reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/util.py: Remove the special casing of GtkEntry and
GtkViewport in favor of more general ways to do things
Use widget.get_parent_window() to figure out the window
that widget.allocation is relative to.
Invalidates the right windows in add_nodes() remove_nodes()
to avoid needing the GtkEntry hack when drawing nodes.
2005-08-10 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgetclass.py
* gazpacho/filewriter.py
* gazpacho/command.py
* gazpacho/widget.py
* gazpacho/editor.py
* gazpacho/unittest/common.py
* gazpacho/unittest/test_clipboard.py
* gazpacho/unittest/test_loader.py
* gazpacho/properties.py
* gazpacho/widgettreeview.py
* gazpacho/palette.py
* gazpacho/clipboard.py
* gazpacho/application.py
* gazpacho/catalog.py
* gazpacho/widgetregistry.py
* gazpacho/cursor.py
* gazpacho/widgets/gtk+.py
* gazpacho/placeholder.py
* gazpacho/signaleditor.py: replace WidgetClass by WidgetAdaptor
* gazpacho/properties.py:
* gazpacho/widgetclass.py: moved get_default_prop_value and get_default
to the adaptor
* gazpacho/signaleditor.py (SignalEditor.load_widget): moved signal
list from widget class to widget adaptor
2005-08-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py:
* gazpacho/filewriter.py:
* gazpacho/properties.py:
* gazpacho/widget.py:
* gazpacho/widgetclass.py:
* gazpacho/widgets/gtk+.py:
Make packing properties work again. Default values should work
somewhat better now. We still can't load/save pachis big glade file.
Add some more docstrings
2005-08-10 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgets/gtk+.py (DialogAdaptor.post_create): add the main
placeholder here instead on fill_empty
* tests/test_saveproperties.py: added test for #313087
* gazpacho/widgets/gtk+.py: put the fill_empty method just in those
classes that need it
* catalogs/gtk+.xml: rearranged and formated in a more readable way
2005-08-10 Johan Dahlin <johan@gnome.org>
* catalogs/gtk+.xml:
* gazpacho/application.py:
* gazpacho/catalog.py:
* gazpacho/choice.py:
* gazpacho/clipboard.py:
* gazpacho/command.py:
* gazpacho/editor.py:
* gazpacho/filewriter.py:
* gazpacho/main.py:
* gazpacho/parameter.py:
* gazpacho/project.py:
* gazpacho/properties.py:
* gazpacho/property.py:
* gazpacho/propertyclass.py:
* gazpacho/uim.py:
* gazpacho/unittest/common.py:
* gazpacho/util.py:
* gazpacho/widget.py:
* gazpacho/widgetclass.py:
* gazpacho/widgets/gtk+.py:
* tests/test_gtkbars.py:
* tests/test_gtkbutton.py:
* tests/test_gtklabel.py:
* tests/test_gtkscrolledwindow.py:
* tests/test_gtktable.py:
* tests/test_gtkwindow.py:
* tests/test_saveproperties.py:
Landed properties-rewrite branch.
Known regressions:
Custom properties (eg GtkToolbar::ui) has a bad label.
Copy/Paste is not working in some situations.
No way to override child properties.
2005-08-09 Henrique Romano <henrique@async.com.br>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/uim.py: Load GtkAction::activate signals
from the glade, and display them in the action editing
dialog.
2005-08-09 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/application.py:
* gazpacho/widgetregistry.py:
* gazpacho/widgets/gtk+.py:
* gazpacho/palette.py:
* gazpacho/editor.py:
* gazpacho/widgetclass.py:
* gazpacho/filewriter.py:
* gazpacho/widget.py: moved library, name, type and tooltip attributes
to the adaptor. Moved the is_toplevel method too.
* gazpacho/cursor.py:
* gazpacho/clipboard.py:
* gazpacho/widgettreeview.py:
* gazpacho/palette.py:
* gazpacho/widget.py:
* gazpacho/widgetclass.py:
* gazpacho/unittest/test_clipboard.py: moved generic_name,
palette_name, pixbuf, icon and cursor attributes from WidgetClass to
WidgetAdaptor
2005-08-07 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py: Fixed some issues with adding
accelerator to an action using the Action Dialog. It's now
possible to have more than one modifer key. It's also possible to
remove an accelerator by pressing Delete or BackSpace. Furthermore
the normal context menu have been replaced with a menu containing
a single 'clear' item. Fixes bug #312606
2005-08-08 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgetclass.py (WidgetClass.__init__):
* gazpacho/palette.py (Palette._widget_table_create): use the
palette_name variable to decide whetever to put a widget in the palette
or not
* gazpacho/editor.py (Editor._get_property_classes):
* gazpacho/widgetclass.py (WidgetAdaptor.child_property_applies):
* gazpacho/widget.py (Widget._get_apply_packing_properties): add the
context parameter to child_property_applies. Fix a regression
* gazpacho/widgetclass.py: removed get_function_from_adaptor
2005-08-07 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgetclass.py: kill func_dict since we don't need it
anymore
* gazpacho/loader/tags.py: kill some unused tags
* gazpacho/widgets/gtk+.py:
* catalogs/gtk+.xml: fine tune some widget adaptors
* gazpacho/widgetclass.py (WidgetClass._merge_type): thanks to real
class inheritance we don't need to merge the virtual methods manually
* gazpacho/filewriter.py:
* gazpacho/widget.py: use the widget adaptor for replace_child,
post_create, fill_empty, save, load, button_press and motion_notify
calls
* gazpacho/widgetclass.py: kill self.child_property_applies since we
have it in the adaptor now
* gazpacho/editor.py (Editor._get_property_classes):
* gazpacho/widget.py (Widget._get_apply_packing_properties): use
the adaptor always.
* gazpacho/widgetclass.py: created a base widget adaptor with some
useful documentation
(WidgetClass.__init__): create a widget adaptor for all widgets if
they don't provide a custom one
* gazpacho/actioneditor.py (GActionDialog._load_widgets): handle None
values for the action attributes. Fix #312825. Thanks to Daniel Borgman
for reporting this bug
2005-08-04 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/glade-catalog.dtd: we don't allow <function> anymore inside
a <glade-widget-class>
* catalogs/gtk+.xml: clean up. Don't use functions, only adaptors for
classes. Need more cleaning in the properties battlefield.
* gazpacho/widgets/gtk+.py: add some class adaptors basically to
provide the fill_empty ignore functionality
* gazpacho/widgetclass.py: get the virtual functions from the adaptor
if this exists
* gazpacho/catalog.py (Catalog._parse_widget_class): don't load
functions since they are now obtained only from adaptors
* gazpacho/widgets/gtk+.py (FixedAdaptor): use relative coordinates
to the toplevel so we create the children in the right position
* gazpacho/widgets/gtk+.py:
* catalogs/gtk+.xml: kill all the legacy functions for classes (not for
properties yet)
* gazpacho/widgets/gtk+.py (FixedAdaptor.motion_notify): draw the icon
of the widget that is going to be added in the mouse cursor
* gazpacho/widget.py:
* gazpacho/widgetclass.py:
* catalogs/glade-catalog.dtd:
* catalogs/gtk+.xml: support for yet another virtual function:
motion_notify
2005-08-03 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml:
* gazpacho/widgets/gtk+.py:
(FixedAdaptor.on_expose_event): add a nice grid to the fixed background
* catalogs/gtk+.xml: proper support for GtkFixed
* gazpacho/widget.py:
* catalogs/glade-catalog.dtd:
* gazpacho/loader/tags.py:
* gazpacho/widgetclass.py: added a new virtual function:
button_release_function
* CONTRIBUTORS:
* AUTHORS: moved Johan from CONTRIBUTORS to AUTHORS
2005-08-02 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py:
* gazpacho/application.py:
Some action editor polish. It makes the action menu a bit more
sane, adds a context menu to the editor and so on.
2005-08-02 Daniel Borgmann <daniel.borgmann@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/gaction.py: Fix bug 311377
2005-07-24 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py: Make sure the action editor is updated when
undoing or redoing the editing of an action. Fixes Bug 311397.
2005-07-28 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py:
Use a common base class for info classes, add support
for translation
2005-07-27 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/tags.py (YES, NO): Lowercase.
* gazpacho/filewriter.py (XMLWriter._write_property):
intltool can only handle translatable="yes" so write a yes tag
instead of a true tag
2005-07-26 Johan Dahlin <johan@gnome.org>
* catalogs/gtk+.xml:
* gazpacho/command.py:
* gazpacho/filewriter.py:
* gazpacho/property.py:
* gazpacho/propertyclass.py:
* gazpacho/widget.py:
* gazpacho/widgets/gtk+.py:
Back out revision 1449 to 1454, they broke
packing properties. (Lorenzos changes from the 24th)
2005-07-25 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
* gazpacho/unittest/test_loader.py:
Add support for custom properties, add unittests too
2005-07-25 Johan Dahlin <johan@gnome.org>
* bin/gazpacho:
* gazpacho/main.py:
Add version checks for python and pygtk, add more (pedantic)
error checking.
2005-07-24 <lgs@sicem.biz>
* gazpacho/loader/custom.py (GObjectAdapter.set_properties): store the
list of changed properties so Widget.sync_properties_from_gtk can do
its job properly
2005-07-24 Johan Dahlin <johan@gnome.org>
* gazpacho/filewriter.py (XMLWriter._write_child): Do not write
position child property, we're always saving properties in the
correct order. Also skip <packing> if it doesn't have any children
2005-07-24 <lgs@sicem.biz>
* gazpacho/widget.py (Widget.sync_properties_from_gtk): use the list
gazpacho.changed_properties to know what properties were changed so we
can set them as dirty
* gazpacho/command.py (CommandSetButtonContents.execute): explicity say
what properties are changed in the internal gtk widgets
* catalogs/gtk+.xml: put more sane default values for some properties
* gazpacho/property.py: add a dirty flag and don't use the class
default value
* gazpacho/widgets/gtk+.py (ButtonContentsAdaptor.set_stock)
(ButtonContentsAdaptor.set_custom): set the dirty flag when changing
the button contents property
* gazpacho/widget.py (Widget.sync_properties_from_gtk): don't trust the
default value so do nothing with the enable attribute of the property
* gazpacho/filewriter.py (XMLWriter._write_property): only save dirty
properties
* gazpacho/widget.py (Widget.create_gtk_widget)
(Widget.set_custom_default_values):
* gazpacho/property.py (Property.__init__): Change the way properties
are created when creating a widget:
1. Create empty properties with no initial value
2. Copy the value from the gtk widget property to our property
3. If the property has a defined default, set it
* gazpacho/filewriter.py (XMLWriter._write_properties): check
write_property return value before adding the child node
* gazpacho/propertyclass.py (PropertyClass._update_from_pspec): kill
original_default and just save all the properties of the widget right
now. This will be fixed as soon as we have a dirty flag for properties.
* gazpacho/filewriter.py (XMLWriter._write_properties): with the new
loader we don't need to save the 'visible' property in a particular
order
2005-07-23 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/actioneditor.py
Fixed a bug where an exception was raise when deleting an action
in the action editor. Fixes Bug 311336.
2005-07-20 Jonathan Blandford <jrb@redhat.com>
reviewed by: Johan Dahlin <johan@gnome.org>
* gazpacho/__uninstalled__.py:
* gazpacho/environ.py:
* setup.py:
Add a glade_dir
2005-07-20 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/loader.py: Add support for accelerators
2005-07-20 <lgs@sicem.biz>
* catalogs/gtk+.xml: added support for IconView. Need a proper icon
since right now it just have a copy of the TreeView icon
* catalogs/gtk+.xml: re-enable use-underline for buttons
* gazpacho/command.py (CommandSetButtonContents.execute): don't try
to guess the best value for 'use-underline' since that property is
enabled again and the user will choose it for us
2005-07-20 Johan Dahlin <jdahlin@async.com.br>
* catalogs/glade-catalog.dtd:
* catalogs/gtk+.xml:
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
* gazpacho/loader/tags.py:
* gazpacho/widget.py:
* gazpacho/widgetclass.py:
* gazpacho/widgets/gtk+.py:
Rework internal children, remove function from the xml file and
use the new loaders adapters instead.
2005-07-20 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py (ObjectBuilder._find_internal_child)
(ObjectBuilder.get_internal_children): Save the internal children
* gazpacho/unittest/test_loader.py: Add tests, refactor them slightly
2005-07-19 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/clipboard.py
* gazpacho/application.py
We must pass the Application as a key-word argument to the
GazpachoObjectBuilder. Otherwise the placeholders it creates
wont behave correctly. Fixes Bug 310059.
2005-07-19 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py:
* gazpacho/unittest/test_loader.py:
Don't use a default placeholder, if we don't specify one
just ignore it. Update the unittest
2005-07-19 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py:
* gazpacho/unittest/test_loader.py:
Add basic support for GtkTreeView
2005-07-19 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
* gazpacho/project.py:
* gazpacho/uim.py:
* gazpacho/unittest/test_loader.py:
* gazpacho/widget.py:
* gazpacho/widgets/gtk+.py:
* tests/test_gtkwindow.py:
Great loader renaming
2005-07-18 Johan Dahlin <jdahlin@async.com.br>
* catalogs/gtk+.xml:
Enable GtkArrow, fixes #167383
* gazpacho/loader/custom.py:
Add support for GtkFontSelectionDialog and GtkColorSelectionDialog
fixes 167379 and 167380.
2005-07-18 Johan Dahlin <jdahlin@async.com.br>
* CONTRIBUTORS: Add Kalle Vahlman
2005-07-18 Kalle Vahlman <zuh@iki.fi>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/util.py:
Fix 172154, selecting entries in multiple entries
* gazpacho/application.py (register_stock_icons): Add a missing icon
stock icon, fixes #309471
2005-07-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widget.py (Widget.apply_properties):
Add patch from Mattias, fixes #309623
* gazpacho/unittest/test_uim.py:
* tests/test_gtkbutton.py:
* tests/test_gtkwindow.py:
Use gazpacho.project.GazpachoyObjectBuilder.
2005-07-18 Johan Dahlin <jdahlin@async.com.br>
* CONTRIBUTORS: Add Zeeshan Ali
2005-07-18 Zeeshan Ali <zeenix@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* examples/helloworld.py:
* examples/uimanager.py:
Update to new loader API, fixes bug 310753
2005-07-18 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/unittest/test_command.py
Added tests for add/remove/change signal commands.
* catalogs/gtk+.xml
Add default values for the label-xalign property for the Frame
widget to fix Bug 172439
2005-07-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/proxy.py (Proxy.__init__): Add root argument, fixes
#308836
2005-07-18 <lgs@sicem.biz>
* langadmin.py: added copyright and license information
2005-07-18 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/unittest/test_loader.py (NotebookTest.testTabProperty): Add unittest.
* gazpacho/loader/custom.py (ContainerAdapter._set_child_properties): Refactor, so
we can easily set properties from subclasses.
(OptionMenuAdapter.add, NotebookAdapter.add)
(ExpanderAdapter.add, MenuItemAdapter.add): Call _set_child_properties
(ExpanderAdapter.add, NotebookAdapter.add): Filter out custom properties,
so _set_child_properties can ignore them properly
* gazpacho/library.py (PythonLibrary.__init__): pedantic checking
* gazpacho/loader/custom.py (PythonWidgetAdapter): New adapter,
Uses klass() directly and does not instantiate objects using
gobject.new.
(IObjectAdapter): Start to describe interface used to construct
widgets.
* gazpacho/loader/loader.py (ObjectBuilder.register_adapter):
Do not register abstract adapters
2005-07-16 <lgs@sicem.biz>
* gazpacho/command.py (CommandSetButtonContents.execute):
* gazpacho/util.py (get_button_state): use the 'image-file-name'
instead of 'image-path' so the getter for the 'file' property of the
image works and this way the saver for the button when it contains
image works too. With GTK 2.8 this will go away since the 'file'
property is readable.
2005-07-15 <lgs@sicem.biz>
* tests/test_gtkbutton.py: some more tests and a little bit of
refactoring
2005-07-14 <lgs@sicem.biz>
* gazpacho/widgets/gtk+.py (ButtonAdaptor.save): create GazpachoWidgets
for those internal widgets that are part of Buttons
* gazpacho/filewriter.py (XMLWriter._write_child): remove the
"gazpacho::ignore" hack and don't save widgets that do not have a
Gazpacho Widget associated with them.
2005-07-13 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgets/gtk+.py (ButtonContentsAdaptor._create_stock_list):
Use constants, set search_column/search fixes #309626
Based on patch by Kalle Vahlman
2005-07-12 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <johan@gnome.org>
* gazpacho/gaction.py
Fix a simple bug that causes Gazpacho to crash when removing an
action. Fixes #310179
2005-07-11 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <johan@gnome.org>
* gazpacho/command.py:
* gazpacho/signaleditor.py:
This patch adds a command for changing the signal.
This makes the whole operation undoable. Fixes #308336
2005-07-11 Johan Dahlin <johan@gnome.org>
* gazpacho/widgets/gtk+.py (CommonBarsAdaptor.load):
Clean up properties, remove loader from load() function
2005-07-09 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml:
* catalogs/glade-catalog.dtd:
* gazpacho/loader/tags.py:
* gazpacho/catalog.py (Catalog._parse_property_editor):
* gazpacho/editor.py (EditorTable._append_item)
(EditorTable._attach_row):
* gazpacho/propertyclass.py (PropertyClass._set_default_values):
Add a 'wide' option for custom editors of properties so these editors
can span both columns of the TableEditor in the Editor notebook.
2005-07-06 Johan Dahlin <johan@gnome.org>
* gazpacho/__init__.py:
* gazpacho/application.py:
* gazpacho/catalog.py:
* gazpacho/cursor.py:
* gazpacho/environ.py:
* gazpacho/library.py:
* gazpacho/main.py:
* gazpacho/palette.py:
* gazpacho/widgetclass.py:
Kill gazpacho.path, Add gazpacho.environ which is a helper to load
resources from the filesystem.
2005-07-06 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/clipboard.py (ClipboardItem.__init__): Save the string
instead of the widget, fixes #309622
* bin/create_path_on_win32.py:
* gazpacho/__init__.py:
* gazpacho/catalog.py:
* gazpacho/main.py:
Remove win32 startup script, work around some minor pyflakes issues
We're now completely pyflakes clean
2005-07-06 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py:
* gazpacho/application.py:
* gazpacho/bugreportdialog.py:
* gazpacho/clipboard.py:
* gazpacho/command.py:
* gazpacho/debugwindow.py:
* gazpacho/dialogs.py:
* gazpacho/editor.py:
* gazpacho/loader/compat.py:
* gazpacho/loader/proxy.py:
* gazpacho/main.py:
* gazpacho/palette.py:
* gazpacho/popup.py:
* gazpacho/project.py:
* gazpacho/propertyclass.py:
* gazpacho/signaleditor.py:
* gazpacho/uieditor.py:
* gazpacho/uim.py:
* gazpacho/unittest/common.py:
* gazpacho/widget.py:
* gazpacho/widgets/gtk+.py:
* tests/utils.py:
Don't call gettext.install, import gettext in all files instead,
makes pyflakes work better, and is less hackish.
2005-07-06 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py (CommandSetButtonContents.execute): Use button
instead of button.gtk_widget, fixes #309621
* tests/test_gtkbutton.py (CreateSave.testNoStock): Add test
2005-07-05 Johan Dahlin <jdahlin@async.com.br>
* catalogs/gtk+.xml:
* gazpacho/__init__.py:
* gazpacho/__uninstalled__.py:
* gazpacho/catalog.py:
* gazpacho/gladegtk.py:
* gazpacho/library.py:
* gazpacho/widgets/gtk+.py:
* setup.py:
Rework module loading, main difference is to use
Renamed gladegtk.py to gtk+.py and moved it to
gazpacho/widgets.py. The library loader uses execfile instead of
__import__, which allows us to use a more flexible loading
mechanism
2005-07-03 Johan Dahlin <johan@gnome.org>
* catalogs/gtk+.xml:
* gazpacho/clipboard.py:
* gazpacho/command.py:
* gazpacho/filewriter.py:
* gazpacho/gladegtk.py:
* gazpacho/project.py:
* gazpacho/widget.py:
* tests/test_gtkbutton.py:
Rewrite most of button saving/loading code.
Add plenty of tests.
Remove unused ObjectGlue
Make construction setting of menubars/toolbars generic.
Break save interface slightly: remove document parameter.
2005-07-03 Johan Dahlin <johan@gnome.org>
* gazpacho/clipboard.py:
* gazpacho/gladegtk.py:
* gazpacho/project.py:
* gazpacho/unittest/test_uim.py:
* gazpacho/widget.py:
Tie a loader to a project. More work needs to be done in this
area.
2005-07-03 Johan Dahlin <johan@gnome.org>
* gazpacho/application.py:
Implement dump data
* gazpacho/filewriter.py:
(XMLWriter.serialize_widgets): Implement.
* gazpacho/project.py:
(Project.serialize): Implement
2005-07-03 Johan Dahlin <johan@gnome.org>
* gazpacho/property.py (Property.__init__): Make loading private
(Property.set): When setting avoid trigger a get
* gazpacho/main.py (launch): Don't use DebugWindow when running in
debug mode.
(main): Disable pdb.
2005-07-02 Rafael Villar Burke <pachi@mmn-arquitectos.com>
* po/gl.po
* po/es.po Fill up package name and version for the translation
* po/pt_BR Fill up metadata for the translation, such as author,
package name and version
2005-07-02 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/custom.py (WindowAdapter): Fix typos.
* gazpacho/loader/loader.py:
(ExpatParser._end_property): Protect ourselves against
non-standard agents.
* gazpacho/unittest/test_loader.py:
Add support for delayed properties, such as object properties
which references objects which are defined after the current
object. Add unittests
2005-07-01 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/custom.py (str2bool): handle 0 and 1
* gazpacho/loader/loader.py:
Use str2bool for all boolean operators
* gazpacho/unittest/test_loader.py:
Proper imports, add str2bool tests
Fixes #309314
2005-06-29 Johan Dahlin <jdahlin@async.com.br>
* bin/gazpacho: Generalize, use APPNAME, DIRNAME.
* gazpacho.nsi:
* langadmin.py:
* setup.py:
Rewrite startup script and installation script.
Remove nsi, it's not up to date anyway.
2005-06-29 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/popup.py (Popup.__init__): Add a check for it here.
* gazpacho/widget.py (Widget._button_press_event):
* gazpacho/widgettreeview.py (WidgetTreeView._button_press_cb):
Pass in command manager and not application to Popup
2005-06-28 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/loader.py (ObjectBuilder.__init__):
Add support for root.
* gazpacho/unittest/test_loader.py (SimpleLoaderTest.testRoot):
Test it
2005-06-27 Johan Dahlin <johan@gnome.org>
* gazpacho/application.py:
* gazpacho/catalog.py:
* gazpacho/unittest/common.py:
Allow us to filter out external catalogs, so the testsuite only
loads the gtk+ catalog
2005-06-27 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/loader.py (ObjectBuilder.signal_autoconnect):
Implement, based on patch by Alex Verstraeten.
* gazpacho/unittest/test_loader.py (SignalTest):
Write unittest with complete signal_autoconnect coverage
2005-06-26 Johan Dahlin <johan@gnome.org>
* gazpacho/filewriter.py:
* gazpacho/property.py:
* gazpacho/unittest/common.py:
* gazpacho/unittest/test_uim.glade:
* gazpacho/unittest/test_uim.py:
* gazpacho/util.py:
* gazpacho/widget.py:
Move the rest of the saving routines.
2005-06-26 Johan Dahlin <johan@gnome.org>
* gazpacho/clipboard.py:
* gazpacho/filewriter.py:
* gazpacho/gladegtk.py:
* gazpacho/project.py:
* gazpacho/unittest/test_clipboard.py:
* gazpacho/widget.py:
* tests/test_gtkwindow.py:
Move most of saving routines to filewriter.py
2005-06-26 Johan Dahlin <johan@gnome.org>
* gazpacho/application.py:
* gazpacho/editor.py:
* gazpacho/loader/proxy.py:
* gazpacho/main.py:
* gazpacho/property.py:
* gazpacho/util.py:
* gazpacho/widget.py:
* gazpacho/widgetclass.py:
* gazpacho/widgettreeview.py:
Remove almost all translations for prints
2005-06-26 Johan Dahlin <johan@gnome.org>
* gazpacho/catalog.py: Remove translation of all prints.
Add an extra warning for missing properties
* gazpacho/cursor.py:
* gazpacho/placeholder.py:
* gazpacho/widgetclass.py:
Clean up cursor handling a little bit
2005-06-26 Johan Dahlin <johan@gnome.org>
* gazpacho/widgetclass.py (WidgetClass._create_pixbuf):
If palette icon cannot be found, use a stock image
2005-06-25 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py:
Support placeholders
* gazpacho/application.py:
* gazpacho/custompropertyeditor.py:
* gazpacho/gladegtk.py:
* gazpacho/library.py:
* gazpacho/project.py:
* gazpacho/uim.py:
* gazpacho/unittest/test_uim.py:
* gazpacho/util.py:
* gazpacho/widget.py:
* gazpacho/widgettreeview.py:
Rename get_widget_from_gtk_widget to Widget.from_widget
2005-06-25 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py:
* gazpacho/gladegtk.py:
* gazpacho/project.py:
* gazpacho/util.py:
Kill all remaining direct widget imports
2005-06-25 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/clipboard.py:
* gazpacho/placeholder.py:
* gazpacho/popup.py:
* gazpacho/uieditor.py:
* gazpacho/widgettreeview.py:
Various minor cleanups
2005-06-25 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/actioneditor.py:
* gazpacho/application.py:
* gazpacho/clipboard.py:
* gazpacho/gaction.py:
* gazpacho/gladegtk.py:
* gazpacho/project.py:
* gazpacho/uim.py:
* gazpacho/unittest/test_uim.glade:
* gazpacho/unittest/test_uim.py:
* gazpacho/widget.py:
Use new objectbuilder, start of uimanager refactor,
Refactor action and actiongroups to be closer to gtk+ ones.
Move action ui classes to a separate file.
2005-06-25 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/main.py: Add cruel profiling support
* gazpacho/loader/loader.py (ObjectBuilder.getsignals)
(ObjectBuilder.getconstructor): New accessors
* gazpacho/catalog.py:
* gazpacho/choice.py:
* gazpacho/function.py:
* gazpacho/parameter.py:
Clean up catalog imports. Move function into catalog.
Move more xml parsing code into the catalog.
2005-06-24 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/application.py:
(Application.open_project): Add reload debug menu item
(Application._construct_menu_and_toolbar): Save project_action_group
so we don't need to search for it.
* gazpacho/config.py:
* gazpacho/dialogs.py:
Add configuration, remember last opened/saved directory, add
a list of recently opened projects. Fixes 172978
2005-06-24 Johan Dahlin <johan@gnome.org>
* gazpacho/command.py:
* gazpacho/gladegtk.py:
* gazpacho/unittest/common.py:
* gazpacho/unittest/test_uim.py:
* gazpacho/widget.py:
* tests/test_gtkbars.py:
Low hanging fruit cleanups in widget.py
2005-06-20 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/application.py:
* gazpacho/command.py:
* gazpacho/project.py:
* gazpacho/unittest/test_command.py:
Rewrite UndoRedoManager.
2005-06-23 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py (ActionAdapter.construct):
If the name is not set, set it here, as a construct property.
(ActionGroupAdapter.add): Use parent.get_property instead of get_data
2005-06-23 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py (ObjectBuilder._build_phase1): Add support
for translatable/context and comment properties.
* gazpacho/property.py (Property.read_i18n_data): Default value is
False, not None, fixes #308692
2005-06-22 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/loader.py (ObjectBuilder._findinternalchild):
Don't try to set properties on unsupported widgets.
* gazpacho/loader/custom.py (GObjectAdapter._getproperties):
Allow us to override normal properties.
(StatusbarAdapter.prop_set_has_resize_grip): Use str2bool
* catalogs/gtk+.xml: Add deprecated widgets Combo, OptionMenu and
H/VRuler so we can load old glade files containing them.
* gazpacho/widgettreeview.py (WidgetTreeView.remove_item): Check return
value, fixes #308682
* gazpacho/project.py (Project.new_widget_name): Fix regression
found by Dave Cook
* gazpacho/command.py (Command.__init__): Use description,
not _description.
* gazpacho/gladegtk.py (glade_gtk_box_set_size): Treat statusbars
differently, so we don't end up calling Gtkstatusbar.remove()
* gazpacho/project.py: Optimize get_widget_by_name, and widget_new_name,
it takes 95% less time to open gnome-jabber.glade now.
* gazpacho/widget.py (Widget.setup_widget): Revert last checkin
* gazpacho/widget.py (get_widget_from_gtk_widget): Use a hash instead of
set/get_data. Remove name descriptior. Cleanup setup_widget
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
Implement GtkAction::accelerator and GtkAction::callback
Also treat PyObjects as string values.
2005-06-20 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py: Remove description descriptor
2005-06-21 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
Refactor placeholder, allow placeholder as an argument to constructor.
GtkToolItem::tooltip support, FontSelectionDialog:font_selection.
* gazpacho/loader/custom.py:
(OptionMenuAdapter.add, OptionMenuAdapter.prop_set_history): Impl.
s/_builder/_build/ in a couple of places.
* gazpacho/loader/loader.py:
Add support for GtkWidget::tooltips, GtkWidget::has_default,
GtkWidget::has_focus, GtkMenuItem::set_use_stock.
(ObjectBuilder._ensure_accel, ObjectBuilder._set_toplevel): Implement,
basically copied from libglade.
2005-06-20 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
* gazpacho/unittest/test_loader.py:
Write unittests for loader, add a couple of public methods.
Caught a bug in ActionAdapter.
2005-06-20 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
Add support for internal_childs. Implement a basic findpixbuf.
Implement internal child ImageMenuItemAdapter.image
Add rudimentary support for UIManager
2005-06-20 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/command.py:
Mark project as changed when the signals are updated.
Fixes #302172
2005-06-20 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* catalogs/glade-catalog.dtd:
* gazpacho/catalog.py:
* gazpacho/palette.py:
* gazpacho/widgetclass.py:
Parse tooltips from catalog and use them in the palette.
Fixes #169592
2005-06-20 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* gazpacho/application.py:
* gazpacho/dialogs.py:
Improve Close/Save dialogs. Fixes #300767
2005-06-19 Johan Dahlin <johan@gnome.org>
* gazpacho/unittest/test_uim.glade:
* gazpacho/gaction.py: Save name tag, remove callback and replace
by a handler for the activate signal. Don't save the tooltip,
callback or accelerator unless it's strictly needed.
Update unittest to reflect changes.
2005-06-19 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py:
Print error messages when convertion failed.
Remove set_child_properties, add() handles packing properties now.
Fix a couple of bugs in untested adapters.
Fix parser to not recreate objects.
Send in id instead of klass to adapter.construct/get_properties
2005-06-17 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/application.py: A few more checks before trying to save
the file, Fixes #300767 (Mattias Karlsson)
2005-06-16 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/custom.py:
* gazpacho/loader/loader.py: Change Adapter interface somewhat,
Add support for all custom properties from libglade. Still
need to support build_children/add
2005-06-16 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/proxy.py (Proxy.__getattr__): Use get_widget()
instead of getattr(). Fixes 300772 (Travis Watkins)
2005-06-16 Mattias Karlsson <matka134@student.liu.se>
reviewed by: Johan Dahlin <johan@gnome.org>
* gazpacho/application.py:
* gazpacho/main.py:
* gazpacho/project.py:
* gazpacho/unittest/test_application.py:
Update the project title, to reflect the current open project.
Also add unittests for this. Fixes #169868
2005-06-16 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/: More work on new loader, add support for
custom properties and many other things.
2005-06-15 Johan Dahlin <jdahlin@async.com.br>
* po/fi.po: Add Finnish translation (Kalle Vahlman),
closes #307839
2005-06-14 Johan Dahlin <johan@gnome.org>
* gazpacho/application.py:
* gazpacho/catalog.py:
* gazpacho/debugwindow.py:
* gazpacho/dialogs.py:
* gazpacho/gladegtk.py:
* gazpacho/parameter.py:
* gazpacho/project.py:
* gazpacho/util.py:
* gazpacho/widget.py:
* gazpacho/widgettreeview.py:
Errors and unused imports found by pyflakes,
rearrange imports slightly aswell
2005-06-13 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/application.py (Application._construct_menu_and_toolbar):
Redo should use Shift-Ctrl-Z as shortcut. Mattias Karlsson #172172
* gazpacho/dialogs.py: Allow second argument to be a string or a widget.
2005-06-11 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/util.py (get_button_state): Check so we have two children before
trying to access the second one. Try a bit harder to get the
text and stock image from a glade file. Adjustment data is still not
converted properly.
* gazpacho/loader/widgettree.py (WidgetTree._parse_signal):
Replace _ with - in signals loaded from glade file, fixes #302305
* gazpacho/parameter.py (adjustment_new):
For unsigned types, set the default lower to 0, fixes #304393
* gazpacho/catalog.py:
* gazpacho/loader/widgettree.py:
Use util.get_pspec_by_name in two new places.
Ignore construct only properties until we rewrite the loader
2005-06-11 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py:
* tests/test_gtkwindow.py:
Fix optional properties, add a simple test (that
assumes GtkWindow::default-width/default-height are optional
and has a default of 0)
2005-06-11 Johan Dahlin <johan@gnome.org>
* gazpacho/application.py:
* gazpacho/catalog.py:
* gazpacho/loader/widgettree.py:
* gazpacho/property.py:
* gazpacho/unittest/common.py:
* gazpacho/util.py:
* tests/test_gtkbutton.py:
* tests/test_gtklabel.py:
* tests/test_gtktable.py:
* tests/test_gtkwindow.py:
* tests/test_saveproperties.py:
Fix GtkWindow::type save bug. Add a testcase.
Remove glade files in all test cases, don't ignore
tests/*.glade
Return dom document in WidgetTree.parse_from_file
In the Catalog, if the type cannot be found, set it
explicitly.
Save subclasses of enums and flags, not only the direct
types.
2005-06-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py:
* gazpacho/propertyclass.py:
* gazpacho/util.py:
* gazpacho/widgetclass.py:
Remove unused code, cleanup imports and move last
part of xml parsing from widgetclass.py into
catalog.py
2005-06-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py: Clean up and refactor parts of it
* gazpacho/propertyclass.py:
* gazpacho/util.py:
Move a big bunch of XML stuff from propertyclass to catalog, still
need plenty of cleanups.
2005-06-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py:
* gazpacho/function.py:
* gazpacho/propertyclass.py:
* gazpacho/widgetclass.py:
remove dependency of a widget class in PropertyClass.update_from_node
pass in name of parent (so we can resolve the gtype when needed) and the
library.
Same for function.override, use library or sent in object.
2005-06-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py:
* gazpacho/widgetclass.py:
Split up extend_by_node, move more xml parsing into
catalog.py
2005-06-10 Johan Dahlin <jdahlin@async.com.br>
* catalogs/glade-catalog.dtd: Update DTD to parse gtk+.xml
* catalogs/gtk+.xml: Small changes to match DTD
* gazpacho/catalog.py: Rearrange, add DTD docstrings
* gazpacho/widgetclass.py: Move back adaptor creation here
2005-06-10 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgetclass.py: Minor cleanups
* bin/gazpacho:
* gazpacho/catalog.py:
* gazpacho/dialogs.py:
* gazpacho/gladegtk.py:
* gazpacho/widgetclass.py:
* gazpacho/widgetregistry.py:
* setup.py:
Do more xml parsing in catalog, instead of doing it in the constructor
of the widget class. Move gtk+ pixmaps to resources/gtk+.
Add resources_dir to path.py
2005-06-09 Lorenzo Gil Sanchez <lgs@sicem.biz>
* examples/uimanager.glade: update example to
conform the new uimanager format. Fixes #300741
2005-06-09 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py: Refactor.
2005-06-09 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/application.py:
* gazpacho/dialogs.py:
Refactor dialogs, we have now have
info/error/warning/save/open/yesno/messagedialog dialogs.
Use them in the application.
2005-06-09 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py:
* gazpacho/dialogs.py:
Move error dialog to separate file. And clean up imports
2005-06-09 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/bugreportdialog.py:
* gazpacho/debugwindow.py:
* gazpacho/application.py: New feature: allow the user
to send a bug report if Gazpacho crashes
2005-06-08 Johan Dahlin <jdahlin@async.com.br>
* catalogs/gtk+.xml: Use True/False nothing else.
2005-06-07 Lorenzo Gil Sanchez <lgs@sicem.biz>
* pixmaps/plus.png
* gazpacho/widgetclass.py:
* gazpacho/placeholder.py:
* gazpacho/widgettreeview.py:
* gazpacho/cursor.py: patch by Tim Evans to add a cursor with the
icon of the widget class the user is adding. See bug #306336
2005-06-07 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/widgettree.py: Support gobject.TYPE_PYOBJECT
2005-06-06 Johan Dahlin <johan@gnome.org>
* gazpacho/choice.py (flags_to_string): Clean up, only print
real flags.
* doc/uieditor_ideas.txt: New document
2005-06-06 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/widgettree.py: some refactoring and object property
support.
* gazpacho/editor.py (EditorPropertyObject.load): Set the current value
of the property when loading.
* gazpacho/property.py: Basic support for saving object properties
* doc/object-properties.txt: New document
* catalogs/gtk+.xml: Remove disable for all object properties and
enable it for mnemonic-widget (the only one we're really interested in)
* gazpacho/property.py: Don't set a default value for disabled properties.
* gazpacho/propertyclass.py: Disable gobject properties by default
* gazpacho/widgetclass.py: Don't remove disabled properties, we need them
to be able to merge disabled widgets for parents.
2005-06-06 Lorenzo Gil Snchez <lgs@sicem.biz>
* testing gazpacho-commits@sicem.biz
2005-06-06 Johan Dahlin <jdahlin@async.com.br>
* tests/test_saveproperties.py
(SavePropertiesTest.testSaveProperties): Skip until #304539 is fixed.
2005-06-04 Lorenzo Gil Sanchez <lgs@sicem.biz>
* po/it.po: added Italian translation
2005-06-03 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgetclass.py (WidgetClass.__init__): Premature
optimzations are the root of *all* evil.
* catalogs/gtk+.xml: Disable GtkWindow::screen
* gazpacho/loader/compat.py:
* gazpacho/loader/widgettree.py:
* gazpacho/util.py:
s/_read_/_parse_/
2005-06-03 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/property.py: Also save objects as a string
2005-06-02 Johan Dahlin <johan@gnome.org>
* gazpacho/loader/widgettree.py (WidgetTree.load_from_file): Use
load_from_xml_document_instance so we share more code path with
load_from_stream
2005-06-02 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widgetclass.py: Simplify and optimize.
2005-06-02 Johan Dahlin <jdahlin@async.com.br>
Reverted Lorenzos patch for #305210.
2005-06-02 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/editor.py (EditorPropertyWidget): New editor
* gazpacho/propertyclass.py (get_type_from_spec):
* gazpacho/editor.py (EditorTable.append_items):
* gazpacho/widget.py (Widget.apply_properties): Do not ignore
GObject properties.
* catalogs/gtk+.xml: Disable GtkContainer::child, GtkChild::bin and
GtkWidget::parent.
* gazpacho/gladegtk.py:
* gazpacho/util.py:
* gazpacho/widgetclass.py:
Add a util.list_properties that filters out parent properties by
default. Use this in a couple of places.
2005-06-02 Johan Dahlin <jdahlin@async.com.br>
* catalogs/gtk+.xml: Move xalign and yalign from GtkLabel to GtkMisc
2005-05-31 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/debugwindow.py:
* gazpacho/main.py:
* gazpacho/application.py: improve the debug window so the user
has the choice to save its project and also to send a bug report. This
one is not finished
2005-05-30 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml: clean up some properties and defaults
* gazpacho/property.py: use a modified flag to decide whetever to
save a property or not
* gazpacho/widget.py: only use the defaults values provided in the
catalog, and do it only in widget creation time
* gazpacho/propertyclass.py: don't use defaults value in the property
class except for those defined in the catalog file
These changes should fix bugs #305210 and #304660
2005-05-26 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/unittest/common.py: install the _ function before
importing anything else
* gazpacho/gladegtk.py (ButtonContentsAdaptor.set_custom): fix typo
2005-05-25 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gladegtk.py (ButtonContentsAdaptor.set_custom)
(ButtonContentsAdaptor.set_stock): don't assume the widget is set
to the editor because there are some rare conditions where the
selection-changed signal of the stock listview could be emited
before the widget is set.
* gazpacho/widget.py:
* gazpacho/signaleditor.py: Fix #166952 to allow deleting signal handlers
from a widget. Patch from Mattias Karlsson.
* gazpacho/unittest/test_application.py: added a test to
validate_widget_names
2005-05-25 Richard Hult <richard@imendio.com>
* gazpacho/application.py (Application.validate_widget_names):
Don't include names that are None (internal children) in the name
uniqeness check. Fixes saving dialogs for example.
2005-05-23 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/command.py:
* gazpacho/application.py: let the user do whatever he/she wants
with the widget names but do a validation just before saving the
project. If the names are not valid refuse to save the project.
Fix bug #304529
2005-05-23 Richard Hult <richard@imendio.com>
* catalogs/gtk+.xml:
- Disable "has-separator" for GtkMessageDialog, it's not used in
GTK.
- Don't override the properties "default-width", "default-height"
and "modal" for the subclasses of GtkWindow, since it's already
taken care of in the base class.
- Disable "resize-mode" for GtkMessageDialog and GtkDialog to make
things consistent with GtkWindow.
2005-05-23 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gladegtk.py (ButtonContentsAdaptor.update_editor):
set the label entry sensitive when the button is a custom
button. Patch by Mikael Hallendal that fixes #304654
2005-05-20 Richard Hult <richard@imendio.com>
* gazpacho/propertyclass.py (PropertyClass.update_from_node):
Implement reading of booleans as default values, instead of just
treating them as a string.
2005-05-18 Lorenzo Gil Sanchez <lgs@sicem.biz>
* tests/test_saveproperties.py : added a test for bug #304539
by Hallski
* tests/test_gtkbutton.py (GtkButtonTest.testProperty): change the
test property from 'label' to 'relief' since we disabled the label
property for buttons
2005-05-17 Richard Hult <richard@imendio.com>
* gazpacho/debugwindow.py (show): Don't show the exception on
KeyboardInterrupt, just exit.
2005-04-28 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py (Widget.sync_properties_from_gtk): enable the
property when loading a glade file with optional properties that
are set
2005-04-20 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/uieditor.py : code clean by Pachi renaming some variables
to have better names
* po/zh_CN.po: added Chinesse translation. Patch by hashao
2005-04-12 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/widgettree.py:
* catalogs/gtk+.xml:
* gazpacho/command.py:
* gazpacho/util.py:
* gazpacho/editor.py:
* gazpacho/gladegtk.py: changes to make images on buttons working. There
is a new command, and a new way to place custom editors in the editor.
TODO: - fix other custom editors to follow the new system
- make labels on buttons translatables
- copy/cut/paste of buttons
2005-04-11 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/editor.py (EditorPropertyFlags.__init__): make editor flags
simpler and more usable by embeding the treeview in the properties
table
* 0.5.3 released
* gazpacho/catalog.py (load_all): don't catch general exceptions
* gazpacho/util.py (class_from_gtype.is_gobject_subclass): don't use
GtkPlug on win32
2005-04-09 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/command.py (CommandSetProperty.execute): checks that the
name property is unique and not empty
* gazpacho/application.py (Application.show_message.remove_msg): easy
way to show a message in the status bar
* gazpacho/editor.py (EditorProperty.set_property): don't try to load
the editor again if the value has not changed
2005-04-08 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/debugwindow.py (DebugWindow.show_exception): fix a bug when
the exception does not have any message. Also make the textview not
editable
* gazpacho/main.py (launch): install an exception hook to display errors
in a nice way
2005-04-08 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/debugwindow.py: For displaying an exception nicely, not
used yet
* bin/showcoverage: New script
2005-04-08 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gladegtk.py:
* catalogs/gtk+.xml: added fill-empty and replace-child custom functions
to Viewport and ScrolledWindow
* gazpacho/widget.py (Widget._event): return what the button press
event returns
2005-04-07 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/editor.py (EditorTable._create_item_label): right align
the labels and make the ClassName field a label instead of an
uneditable entry
* catalogs/gtk+.xml: set the text-column property of GtkComboEntry to
have a default value of 0
* gazpacho/property.py (Property.__init__): fix a bug about not using
a default value when it is 0
* gazpacho/widget.py (Widget._connect_signal_handlers): workaround the
bug http://bugzilla.gnome.org/show_bug.cgi?id=171125
* gazpacho/placeholder.py: make placeholder always as least 20x20 pixels
sized
* gazpacho/loader/compat.py:
* gazpacho/loader/widgettree.py: better support for deprecated widgets
(GtkCombo and old GtkToolbar)
* gazpacho/uim.py (GazpachoUIM._group_ui_definitions_by_name): only
copy the ui definitions of the widgets we got
* gazpacho/unittest/common.py (GazpachoTest.remove_child): another
convenience method
* tests/test_gtkbars.py (GtkBarsTest.testPastingTwoBars): test to
reproduce a bug that Johan found
* tests/test_gtkwindow.py:
* tests/test_gtktable.py:
* tests/test_gtklabel.py:
* tests/test_gtkbutton.py: updated tests
* gazpacho/unittest/common.py (GazpachoTest.add_child): added another
useful method
2005-04-06 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml: added fill empty function for scrolled windows
* gazpacho/gladegtk.py (glade_gtk_tree_view_pre_create): don't create
any column since they are not saved because are not supported and
if we copy and paste the treeview they are not there for that reason.
(glade_gtk_scrolled_window_fill_empty): added fill empty function
for scrolled windows. Fix #172266
* gazpacho/loader/widgettree.py (WidgetTree._build_GtkTreeView): when
creating a widgetree always create a model with it. This avoid several
problems later like bug #172264
* catalogs/gtk+.xml: removed InputDialog since it's confusing and
it does not make sense to have one of those in a glade file
* gazpacho/widgetclass.py (WidgetClass._merge): merge some more
functions we forgot to add. Fix #172420
* gazpacho/command.py (CommandCutPaste._execute_cut): don't create
the placeholder if it is already there. Fix #172605
* gazpacho/gladegtk.py (CommonBarsAdaptor.save):
* gazpacho/widget.py (Widget.get_as_xml_document):
* gazpacho/project.py (Project.write): changed the way the UIManager
is saved
* gazpacho/widget.py (Widget._button_press_event): avoid double and
triple clicks. Patch by Mattias that fix #167047
* catalogs/gtk+.xml: remove the widgets that are not supported
* gazpacho/loader/widgettree.py (WidgetTree._build_GtkMenuBar): added
a check to help debugging.
* bin/gazpacho: improvements for runing gazpacho in several modes.
Patch by Pachi that fix #171296
* gazpacho/catalog.py: fix reading the resource path and add some
docs. Patch from Pachi that fix #172566
* gazpacho/application.py (Application.__init__): load_all does not
need the application anymore
* gazpacho/gladegtk.py (MenuBarAdaptor.post_create): when creating
the initiail ui remove the heading \n. This make tests easier
* gazpacho/unittest/test_uim.py: improved tests to reflect the
changes on the uim
* gazpacho/unittest/common.py (GazpachoTest.create_gwidget): utility
function to create widgets easily
* gazpacho/uim.py (GazpachoUIM.update_widget_name): when changing
the widget name, change the property before updating the ui definitions
2005-04-06 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/command.py:
* gazpacho/widget.py:
* gazpacho/clipboard.py
* gazpacho/application.py: Some clipboard refactorization
(Clipboard.get_selected_widget): Now returns a gazpacho.Widget.
(Clipboard.get_selected_item): Now returns a ClipboardItem.
(Widget.get_as_xml_document) : New method. Moved the code that
converts a widget to an XML document from the Clipboard class to
the Widget class.
2005-04-06 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/uieditor.py (UIEditor._set_ui):
* gazpacho/gladegtk.py (BarNameAdaptor.set):
* gazpacho/uim.py (GazpachoUIM.update_ui): improve this function to
handle the substitution of the old gtk widget by the new one
2005-04-05 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/uieditor.py: small adaptations to make it work with the
new uimanager wrapper
* catalogs/gtk+.xml:
* gazpacho/gladegtk.py: remove the setter since this is a real fake
property now (no data inside)
* gazpacho/uim.py (GazpachoUIM.create): reset the state here
(GazpachoUIM.get_action_group): convenience function to get an action
group by its name
(GazpachoUIM.create_default_actions): don't create the default action
group if it is already there. Same with actions. Also, don't use the
command manager for adding these actions since it mess up the undo
stack
(GazpachoUIM._change_ui_definition): refactor this code to be able to
use it from several methods
(GazpachoUIM.save): added an extra parameter so we only save the info
about that widget
(GazpachoUIM.load): only add the action groups and actions if we don't
already have them. When we load a uimanager don't merge any of its
ui definitions until we load the widget that uses them. That's what
the self.loaded_uis is for
(GazpachoUIM.is_loading): with this function we can know if the we are
in the middle of a loading operation, which is useful when pasting
a widget.
(GazpachoUIM.remove_widget, GazpachoUIM.add_widget): convenience methods
for the commands that manipulate these kind of widgets
* gazpacho/gladegtk.py: remove the 'save' virtual method of UI property
since that information is now saved in the uimanager
(CommonBarsAdaptor.load): loading a menubar/toolbar is tricky
because we need to load the uimanager first and use the widget it
gives to us. Also we need to apply the old widget properties into the
new one.
* gazpacho/command.py: join CommandCut and CommandPaste. For these
commands and for CommandCreateDelete make some more stuff when the
widget is a toolbar/menubar like saving its ui definitions and removing
them from the uimanager
* gazpacho/loader/widgettree.py (WidgetTree._set_up_accel_groups): fix
a bug about adding accelgroups to a toolbar/menubar thinking that it
was a window
* gazpacho/application.py (Application._dump_data_cb): add a function
to make debugging easier
* gazpacho/clipboard.py (ClipboardWindow._row_activated_cb): print some
debug information when double click on a clipboard item
* gazpacho/util.py (write_xml): properly write CDATA sections
* gazpacho/propertyclass.py (get_type_from_spec): make this function
public since I need it from gladegtk.py
* gazpacho/project.py (Project.open): clear the uim before loading the
project. This avoid clearing the uim everytime we paste a
menubar/toolbar
2005-04-04 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/uieditor.py (UIEditor._create_xml_node):
* gazpacho/gladegtk.py (MenuBarAdaptor.post_create): don't give names
to separators since that is not needed anymore
* gazpacho/unittest/test_uim.py: added more tests to cover the
new methods
* catalogs/gtk+.xml: commnet the ui property of menubars and toolbars.
That's right, we can't edit them right now
* gazpacho/uim.py: added support for saving/loading the uim
* gazpacho/widget.py (load_child): don't assume that the gtk_widget
will be the same after loading the gwidget from it
* gazpacho/gladegtk.py: a lot of code has moved to GazpachoUIM
* gazpacho/project.py: delegate the loading and saving of the uim to
the GazpachoUIM. Remove the separator stuff since we don't need it
anymore
* gazpacho/loader/widgettree.py (WidgetTree._load_visible): convert the
value before setting the property.
Change the way we load uimanager, menubars and toolbars
* gazpacho/unittest/test_uim.py (UIMTest.testUpdateWidgetName): test
for the new method
* gazpacho/uim.py (GazpachoUIM.update_widget_name): method added
* gazpacho/gaction.py:
* gazpacho/project.py:
* gazpacho/unittest/test_uim.py:
* gazpacho/uim.py: full test coverage of uim.py
* gazpacho/widget.py (Widget.__gproperties__): don't translate the
name property
* gazpacho/gladegtk.py (CommonBarsAdaptor.post_create):
* gazpacho/project.py (Project.add_action_group): add mos of this
code to the GazpachoUIM
* gazpacho/application.py (Application.close_current_project): refactor
the close code so we can call it from the tests
* gazpacho/unittest/common.py: base class for gazpacho unittests
* gazpacho/unittest/test_uim.py: first unit test
* gazpacho/uim.py: wrapper around uim that simplify a lot of code
in a lot of places
2005-04-03 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/widget.py: Check for None, some widgets
does not have a gazpacho widgets attached
2005-04-02 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgetclass.py: support for custom loaders
* gazpacho/project.py (Project.open): first load the ui manager
and then load the rest of the widgets
* gazpacho/widget.py: refactor load_widget_from_gtk_widget so we can
reuse small parts from custom loaders
* gazpacho/propertyclass.py:
* gazpacho/gaction.py:
* gazpacho/choice.py:
* gazpacho/loader/widgettree.py:
* gazpacho/widgetclass.py:
* gazpacho/popup.py:
* gazpacho/signaleditor.py:
* gazpacho/command.py:
* gazpacho/uieditor.py: pychecker changes
* gazpacho/widget.py (Widget.write): fixed a small bug of yesterday
commit
(load_widget_from_gtk_widget): use a black list to avoid name clashes
2005-04-01 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py: remove clone functions and reuse setup_toplevel
* gazpacho/clipboard.py : remove todo comment since that task is
done
* gazpacho/project.py (Project.write_uimanager): make this function
public
(Project.write): call the custom saver of the widgets if they have one
* gazpacho/widgetclass.py (WidgetClass.__init__): support custom
saver with the self.custom_function attribute
* gazpacho/widget.py: refactor the writing code so we can reuse
small pieces of it from the custom savers
* gazpacho/gladegtk.py (CommonBarsAdaptor.save): custom saver
* catalogs/gtk+.xml: custom savers for menubars and toolbars
* gazpacho/clipboard.py (Clipboard.add_widget): add the requires tag
if necessary
Big change to make copy/cut/paste use an internal XML representation
of the widget instead of cloning widgets. This is because cloning
widgets turned out to be a pain in the ass with menubars and toolbars
and also because we will need XML serialization for templates anyway
* gazpacho/loader/widgettree.py (WidgetTree._build_child_object): dont
set any data for internal children
* gazpacho/widget.py: rename create_widget_from_gtk_widget to
load_widget_from_gtk_widget. This function now avoid name clashes
when loading a widget which is useful when this widget comes from the
clipboard. Also, it does not depends on the loader setting special
info for the internal child but automatically discover if a widget is
an internal child.
* gazpacho/gladegtk.py: nuke all the clone functions, write an adaptor
for the events and improve the get_internal_child function of the
dialog adaptor to return a tuple of internal names if not name was
provided
* gazpacho/command.py: separate commands for cut and paste to make
things a little bit easier to read. Maybe in the future we can merge
them again
* gazpacho/project.py: change the call to load the widgets from a file
and also some refactoring because of an import change
* gazpacho/clipboard.py: use XML to represent the widgets in the
clipboard
* gazpacho/application.py: changed the way it uses the clipboard
* gazpacho/property.py (Property.__init__): give more preference to
the default value defined in the catalog file than the default value
provided by the pspec
* gazpacho/widgetclass.py (WidgetClass.__init__): now the
get_internal_child virtual function can accept a None value for the
name parameter and in this case it just returns a tuple with the
valid internal names
* gazpacho/widgetclass.py (WidgetClass._extend_with_node)
* gazpacho/loader/tags.py:
* catalogs/gtk+.xml:
* catalogs/glade-catalog.dtd: we don't need the clone virtual function
anymore
By the way, menubars copy/cut/paste still does not work :-)
2005-03-31 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml: add a custom setter for the name property of
Toolbars and Menubars
* gazpacho/gladegtk.py (DialogAdaptor.clone): copy the properties for
the dialog
(BarNameAdaptor.set): fix menubar and toolbar renaming: #169734
* gazpacho/command.py (CommandManager.paste):
* gazpacho/widget.py (Widget.resolve_name_collisions): make
resolve_name_collisions a method of the widget class instead of a
function and make it work with internal children
* gazpacho/loader/widgettree.py: remove _() i18n strings since it make
more difficult to use from 3rd party programs that only want to use
the loader
* gazpacho/loader/tags.py:
* catalogs/glade-catalog.dtd:
* gazpacho/widgetclass.py: add a clone virtual function
* gazpacho/widget.py (clone_widget): rename copy_widget to
clone_widget and refactor it into sane pieces
* gazpacho/gladegtk.py: big refactor as a result of
from gazpacho import widget.
(DialogAdaptor.clone):
* catalogs/gtk+.xml: special clone function for dialogs
2005-03-30 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py (Widget._button_press_event): when to a
right click first select the widget and then popup the menu
* gazpacho/property.py (copy_property): new function to copy
a property
* gazpacho/command.py (CommandManager.paste): call
get_selected_widget_copy instead of get_selected_widget
* gazpacho/clipboard.py (Clipboard.get_selected_widget_copy): new
method that return a copy of the selected widget
(Clipboard.get_selected_widget): this method does not do a copy
anymore
* gazpacho/widget.py (Widget.setup_widget): always connect signal
handlers to the widget, not only when it is a toplevel
* gazpacho/application.py (Application._dnd_data_received_cb): add
dnd of widget files to Gazpacho. Fix #170472. Patch by Mattias
* gazpacho/widget.py (copy_widget): moved the previous code to
copy_widget since we copy the accel groups here
(Widget._button_press_event): return the opposite of the selected value
False in GTK event means we haven't finish handling this event.
* gazpacho/command.py (CommandCutPaste._execute_paste): make pasted
windows stay on top of the main window (set_transient_for)
2005-03-30 Mattias Karlsson <matka134@student.liu.se>
* gazpacho/application.py:
* gazpacho/clipboard.py:
* gazpacho/project.py:
* gazpacho/command.py:
* gazpacho/widget.py:
* gazpacho/popup.py (Popup._paste_cb):
Lots of fixes relating to Cut, Copy, Paste and the clipboard. To
name a few of the bugs that have been fixed: It's now possible to
paste a widget from the clipboard multiple times (#167381), it's
possible to undo cut/paste between different projects (#169659)
and it's possible to select items from the clipboard to paste.
Reviewed and slightly changed by lgs
2005-03-30 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/editor.py (EditorProperty._internal_load): fix #172096
* gazpacho/widget.py (Widget._button_press_event): fix a bug introduced
yesterday that makes this method always return true when clicking with
button 1.
2005-03-29 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gladegtk.py (_on_radio_button__toggled): don't run the code
twice just because the toggle signal is emited for the button that
was active before and for the button that is active now.
* gazpacho/application.py (Application.refresh_editor): added a public
refresh_editor method so custom plugin code can call it
clean the namespace a little bit by import os instead of from os import
path, ...
* gazpacho/gladegtk.py: when selecting a stock image use the stock
property of the button instead of creating a custom image
* gazpacho/widget.py (Widget.apply_properties): don't ignore enum
and flags properties. Should fix #169780
* gazpacho/placeholder.py (Placeholder.do_button_press_event): use the
placeholder's parent's project instead of the current one. Patch by
Mattias that fixes #170450
* gazpacho/project.py (Project.selection_set):
* gazpacho/widget.py (Widget._button_press_event): allow to select
an already selected widget in a different project. Patch by Mattias
that fixes #171635
2005-03-29 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/catalog.py (load_all): Fixes #172007 (Mattias Karlsson)
* gazpacho/loader/widgettree.py (WidgetTree.load_from_file)
(WidgetTree.load_from_stream): Improve exceptions, add filename
* gazpacho/loader/widgettree.py (WidgetTree): refactor to use
getattr _load_* and _build_* without a big hash table.
2005-03-29 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py (copy_widget): properly copy a widget and its
children (even when they are placeholders). Should fix #172012 and
#171476
(copy_widget): copy accelgroups when copying a toplevel. Patch by
Mattias. Fix #172021
2005-03-29 Johan Dahlin <jdahlin@async.com.br>
* gazpacho/loader/widgettree.py (WidgetTree._build_child_object):
Unbreak loading of dialogs.
(WidgetTree): delay setting of visibility until everything else is
done.
2005-03-29 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py (copy_widget): properly copy a widget and its
children (even when they are placeholders). Should fix #172012 and
#171476
patches by Mattias:
* gazpacho/application.py (Application._real_paste):
* gazpacho/command.py (CommandCopyCutPaste._execute_paste): allow to
paste toplevel widgets without selecting placeholders. Fix #167376 and
#171297
* gazpacho/application.py (Application._update_save_action):
* gazpacho/command.py (CommandManager.set_translatable_property)
* gazpacho/application.py (Application._update_save_action): update
the state of the save action depending of the project state. Fix
#170819
* gazpacho/loader/widgettree.py (WidgetTree._read_signal):
* gazpacho/widget.py (Widget.write): fix small bug about after
attribute of signals. Fix #170735
* gazpacho/main.py (launch): allow opening several projects from the
command line. Fix #170665
* gazpacho/widget.py (Widget._key_press):
* gazpacho/widgettreeview.py (WidgetTreeView._key_press_cb): allow to
delete using keypad delete. Fix #38843
* gazpacho/application.py (Application._confirm_open_project): use the
revert stock image. Fix #171879
* gazpacho/loader/widgettree.py (WidgetTree._build_button): fixed typo:
should fix #171729
* gazpacho/application.py (Application._construct_menu_and_toolbar):
don't remove the project menu when closing the last project. Instead
show an empty insensitive item. Fix #171962
* catalogs/gtk+.xml: make the expander expanded by default. Fix #171981
2005-03-29 Anders Carlsson <andersca@imendio.com>
* gazpacho/editor.py:
* gazpacho/library.py:
* gazpacho/loader/tags.py:
* gazpacho/loader/widgettree.py:
* gazpacho/project.py:
* gazpacho/propertyclass.py:
* gazpacho/widget.py:
Implement better support for loading
custom properties in C widgets, also make get_internal_child
work for C widgets.
2005-03-29 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/widgettree.py: add a callback to resolve the path
for image files
(WidgetTree.__init__): correctly initialize the path resolver
2005-03-23 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py (copy_widget): don't copy the name property when
copying a widget
(Widget.apply_properties): fix a bug about not copying the properties
when using a properties parameter in this method. Should fix #169780
2005-03-22 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/widgettree.py (WidgetTree._value_from_string):
return the raw string if there is not a known type. This let the
widget handle this in its own way
* gazpacho/clipboard.py: add documentation and remove unused methods
and imports. Patch by Rafael
* gazpacho/palette.py: add documentation and a small optimization.
Patch by Rafael
* gazpacho/widgetregistry.py (WidgetRegistry): add documentation.
Patch by Rafael
* gazpacho/util.py (get_property_value_from_string): fixed typo. Patch
by Mattias
* gazpacho/widget.py (replace_widget): fixed a bug about trying to
connect signal handlers to placeholders
* gazpacho/gladegtk.py (_image_icon_file_clicked): added support for
xpm images
(ImageSelector._on_file_button_clicked):
* gazpacho/util.py (class_from_gtype): removed a duplicated function
* gazpacho/gladegtk.py (_glade_gtk_paned_set_position): fixed a small
bug
* gazpacho/widget.py (Widget.setup_widget): delay the connection of
the signal handlers to the moment the widget is placed into a container
except for toplevel widgets for obvious reasons. This is done because
some widgets don't create all of their internal children until they
are added to a parent (e.g. ComboBox) and we need to connect these
signals to these children aswell.
2005-03-19 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gladegtk.py:
* catalogs/gtk+.xml: proper support for packing properties of GtkTable
* gazpacho/editor.py: refactor the load method of EditorProperty to
allow a custom setter method to forbid an invalid value. For example
if the user change a property value and then the setter discover that
it is not valid, it reverts the editor to the old value.
* gazpacho/widget.py: refactored the packing properties function to
reuse an auxiliar function
2005-03-18 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml: fixed toolbars by providing a custom save function
for the ui property
* gazpacho/catalog.py: make gtk+.xml mandatory since Gazpacho does
not make a lot of sense without it. Also, load it the first so
the other catalogs can benefit of gtk+ widgetclass already loaded.
This fixes a subtle problem hard to debug.
2005-03-17 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml:
* gazpacho/gladegtk.py (GroupAdaptor.__init__): we don't need anything
special for spinbuttons since alignment is part of the core now
2005-03-15 Anders Carlsson <andersca@imendio.com>
* gazpacho/editor.py:
* gazpacho/property.py:
* gazpacho/propertyclass.py:
* gazpacho/widgetclass.py: make adjustments part of the core and
support for subproperties
patch reviewed by lgs
2005-03-17 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gladegtk.py:
* catalogs/gtk+.xml: add support for images on buttons, images and
radio buttons
* gazpacho/editor.py (EditorTable.append_items): don't add properties
that are not editable and also only add properties of type object if
they provide a custom editor
* gazpacho/context.py (Context.get_project): added a method to get
the project since it's pretty common to need that
* gazpacho/widget.py (Widget.sync_properties_from_gtk): sync with
properties that are not readable but have a custom getter (like the
file property of GtkImage)
* gazpacho/loader/widgettree.py: added custom loaders for buttons (to
support images), file property of images and group property of radio
buttons
* gazpacho/loader/tags.py:
* catalogs/glade-catalog.dtd:
* gazpacho/propertyclass.py: add an 'editable' flag for the properties
that is useful if we don't want the property to appear in the editor
but still want it to be saved in the glade file. This is useful for
properties that are too hard for the user to understand. Usually we
have alternate fake properties, easier to understand that just set
the value of this hard properties.
2005-03-15 Anders Carlsson <andersca@imendio.com>
* gazpacho/catalog.py:
* gazpacho/library.py:
* gazpacho/loader/tags.py:
* gazpacho/project.py:
Add a "libglade-module" attribute to the catalog format
and use it to write the "requires" tags in the glade files
* gazpacho/property.py:
Don't write object types unless they have custom save functions
* gazpacho/widget.py: Rearrange code somewhat.
* gazpacho/editor.py:
Use the right order when calling update_editor.
* gazpacho/library.py:
Add support for proxies for C widgets.
2005-03-15 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml: add support for spinbuttons
* gazpacho/property.py (Property.write): allow a custom save function
to get the content of the property for saving. Now we don't need the
write_in_cdata function anymore.
* gazpacho/widget.py (Widget.write): allow to save properties that
are not gtk properties if they provide a custom save function. Don't
save the 'name' property since it is already in the 'id' attribute of
the widget tag. No special code for menubar or toolbars :-)
* gazpacho/gladegtk.py: several adaptors to support Adjustments and
a new save virtual method for UIAdaptor so we use this facility instead
of hardcoding that in Gazpacho
* gazpacho/loader/widgettree.py (WidgetTree._read_adjustment)
(WidgetTree._read_property): let the custom reader to convert the
string data to the right value. New property reader for Adjustments
* gazpacho/loader/tags.py: add a SAVE tag
* gazpacho/propertyclass.py: add a _save_function attribute so we
can override the default saving mechanism
2005-03-14 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/application.py: Better dialog to ask for unsaved projects
when quiting Gazpacho. Patch by Mattias Karlsson that fixes #170361
2005-03-14 Anders Carlsson <andersca@imendio.com>
* catalogs/glade-catalog.dtd:
* catalogs/gtk+.xml:
* gazpacho/catalog.py:
* gazpacho/loader/tags.py:
Add a "priority" attribute to each catalog and sort the
catalogs according to the priority value.
* gazpacho/library.py:
Add more callbacks for C widget libraries.
* gazpacho/propertyclass.py:
Handle enum types that haven't been registered with Python
more gracefully.
* gazpacho/widgettreeview.py:
Only set the widget icon pixbuf if there is one.
reviewed by lgs
2005-03-14 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/editor.py: manipulate the name property as any other
property and don't try to load editors for propertis with object type
* gazpacho/widget.py (Widget.create_gtk_widget): initialize the name
property when creating the widget.
* gazpacho/command.py (CommandSetProperty.execute): handle the name
property as a regular one using the CommandSetProperty. Wipe out the
CommandSetName.
* gazpacho/propertyclass.py (PropertyClass.__init__): allow properties
of type object and set translatable to false for the name property
* gazpacho/widgetclass.py (WidgetClass._list_properties): don't use
the user-data property.
(WidgetClass._update_properties_from_node): simplify this method
* gazpacho/application.py (Application._add_project): don't connect
to the widget-name-changed property of the project since updating the
editor does not make sense. The editor is the only way to change
the name of a widget, so after changing the name, it is already updated
reviewed several patches by Mattias:
* gazpacho/application.py: handle the situation when the user wants
to open an already opened project. Fix #169050
* gazpacho/editor.py:
* gazpacho/gaction.py: Add mnemonics to the widgets of the dialogs.
Fixes #170320
* gazpacho/command.py (CommandCreateDelete._delete_execute): only
set the default gtk packing properties for non toplevel widgets.
Fixes #170317
* catalogs/gtk+.xml: disable [column|row]-span-column properties in
ComboBox and ComboEntry since they are buggy in GTK+ 2.4
2005-03-12 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/application.py (Application._set_project): don't clear
the selection when swtiching project. Patch by Mattias. Fix #169613
(Application._close_cb): when switching between projects update
the undo/redo labels. Patch by Mattias. Fix #169690
(Application._update_edit_actions): set the sensitive property of the
cut/copy/paste/delete actions properly depending on the context.
Patch by Mattias, reviewed and slightly changed by Lorenzo. Fix #169831
(Application._project_save_as): fixed a typo (#169840)
* gazpacho/catalog.py: show a dialog telling the user if there were
errors while loading gazpacho. Slightly based on Mattias patch for
bug #169584
* gazpacho/application.py (Application._refresh_title)
(Application._project_changed_cb, Application._add_project):
* gazpacho/project.py (Project.set_changed): Draw an '*' on the window
title when the project has unsaved changed. Patch by Mattias Karlsson
that fix #169002 (reviewed by lgs)
* gazpacho/widget.py (Widget.set_default_gtk_packing_properties):
* gazpacho/command.py (CommandCreateDelete._delete_execute): when
removing a widget set the correct packing properties to the new
placeholder. This mean, copying the old_widget non default packing
properties, and for the default ones, use the real gtk defaults.
Fix #167464
2005-03-11 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/project.py (Project.write): fixed a bug about retrieving
the library module of a widgetclass before saving the widgets
2005-03-10 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/tags.py:
* catalogs/glade-catalog.dtd:
* catalogs/gtk+.xml: support a library-type tag with two possible
values so far: c and python
* gazpacho/widget.py: let the library create the object in the right
way
* gazpacho/function.py:
* gazpacho/propertyclass.py:
* gazpacho/catalog.py:
* gazpacho/widgetclass.py: delegate most of the functions that involve
importing modules and getting adaptors to the library object
* gazpacho/library.py: abstract the library concept so we can have
Python libraries and C libraries
* gazpacho/loader/widgettree.py (WidgetTree._add_requirement):
* gazpacho/widgetclass.py (WidgetClass.__init__): try to look for the
library in submodules too
patch from andersca reviewed by lgs
2005-03-07 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml: fix parameters for row-spacing and column-spacing
of GtkTable. Also try a new organization of the Palette (the one that
gjc suggested)
2005-03-05 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/glade-catalog.dtd:
* gazpacho/loader/tags.py:
* gazpacho/catalog.py (load_catalog):
* gazpacho/widgetclass.py (WidgetClass.__init__): added support to
load catalog resources by adding a tag to the DTD format.
2005-03-04 Lorenzo Gil Sanchez <lgs@sicem.biz>
The following is the list of changes made for andersca's big
patch about changing the way plugins work
* gazpacho/catalog.py (load_catalog): we don't call the init function
anymore since we don't need it
* gazpacho/gladegtk.py: lots of changes to add a context argument for
most of the functions. Also, group some of them in Adaptor classes.
This allow us to get rid of the global variables and also the
init function for this plugin. We are getting clean
* catalogs/glade-catalog.dtd: allow adaptor classes
* catalogs/gtk+.xml: make some classes actually use the adaptors
* gazpacho/editor.py (EditorPropertySpecial.__init__)
(EditorPropertySpecial.load): pass the context object to the create
and update functions
* gazpacho/function.py (override): create a function from an XML
node when the type is 'override'
* gazpacho/property.py:
* gazpacho/widget.py: pass the context of our project to the functions
that need it (plugin functions)
* gazpacho/loader/tags.py: new tag for 'adaptor-class'
* gazpacho/util.py (get_class_from_path): new function to get a class
given a path string like 'mod1.mod2.classA'
* gazpacho/propertyclass.py:
* gazpacho/widgetclass.py: allow to define an AdaptorClass that
override some of the virtual Widget/Property methods
* gazpacho/project.py (Project.__init__): create one context in
every project
* gazpacho/context.py (Context.create_placeholder): new class to hold
the public API of Gazpacho that we want to expose to plugins
* gazpacho/application.py (Application.get_current_context): new
method to return the context of the current project
here ends andersca's patch
* catalogs/gtk+.xml: make visible True by default. Also make -1 the
minimum value for width-request, height-request, default-width and
default-height properties.
* gazpacho/widget.py (Widget.sync_properties_from_gtk): slight refactor
and add doc string.
Removed sync_properties since it was an old version of
sync_properties_from_gtk and it was not being used.
(Widget.create_gtk_widget): don't call sync_properties after creating
the properties since they are supposed to be in sync and only the
ones with 'ignore' setter and getter has different values that the gtk
widget. Which is actually what we want.
2005-03-03 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml: don't allow border-width to be negative
* gazpacho/application.py (Application._add_project): fix #166962. Uses
a slightly different approach that the one used by the patch sent by
Mattias Karlsson.
* gazpacho/loader/widgettree.py: don't use localized messages here
since it's only for debugging
2005-03-03 Richard Hult <richard@imendio.com>
* gazpacho/editor.py (EditorPropertyText._show_i18n_dialog): Make
i18n metadata editing work again. Fix #167498
2005-03-02 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/util.py (class_from_gtype): saner version of the function
* gazpacho/loader/widgettree.py (WidgetTree._build_instance):
* gazpacho/widget.py (copy_widget, Widget.create_gtk_widget): get
the klass properly
* gazpacho/widgetclass.py (WidgetClass.__init__): save the module where
the widget gtk class is because we will need it to get the class from
the gtype
* gazpacho/util.py (class_from_gtype): new (ugly) function to get
the python class from a gtype.
* tests/utils.py (init_l10n): install _ in global namespace so we
can using everywhere
let's keep things easier and adjust the path if gazpacho is not found
* gazpacho/loader/widgettree.py (WidgetTree._build_instance): simplify
this function by creating the object using the gtype and gobject.new
* gazpacho/widget.py (copy_widget, Widget.create_gtk_widget): get the
widget class using gobject and the gtype, and then, create the widget
calling this class
* gazpacho/gladegtk.py:
* gazpacho/widgetclass.py: use gtype and gobject api for introspection
instead of using python introspection. This is better for plugins
* gazpacho/widgettreeview.py (WidgetTreeView._row_activated_cb): make
sure all the children are visible when double click on an widget
2005-03-01 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/uieditor.py: subclass from CustomPropertyEditor and get
some work done for free
* gazpacho/custompropertyeditor.py (CustomPropertyEditor._create_widgets):
general editor for editing custom properties
* gazpacho/application.py (Application.__init__): now the catalog code
need a reference to the application
* gazpacho/widgetclass.py (WidgetClass.__init__): put some fragile code
inside a try/except so we have better error reporting.
Also don't use gobject.type_name to register a widget since it returns
crap for libraries other than gtk (kiwi)
* gazpacho/catalog.py (load_catalog): check if the library has a init
function and if so, then call it with the application as the parameter
* gazpacho/gladegtk.py (init_function): define an init_function so we
can instrospect it at runtime and call it from the catalogs code
* gazpacho/main.py (launch): don't call gladegtk.py init function from
here since we don't want to do that for every plugin library
2005-02-28 Anders Carlsson <andersca@imendio.com>
* catalogs/glade-catalog.dtd: Update to new file format.
gtk+.xml now validates against this.
* catalogs/gtk+.xml: Update to new file format.
* gazpacho/editor.py: Rename the "load" function to "update"
since it updates an existing editor with a new widget.
* gazpacho/function.py: New file; a Function class that
can be called, acting differently depending on its type.
* gazpacho/gladegtk.py: Update for new file format.
* gazpacho/loader/tags.py: Update tags for new file format.
* gazpacho/util.py (xml_get_elements_one_level): New function
that searches for elements one level deep.
* gazpacho/catalog.py (load_catalog): Better error reporting.
Root node is always dom.documentElement.
* gazpacho/propertyclass.py (PropertyClass.update_from_node):
Set functions from <function> nodes.
* gazpacho/widgetclass.py (WidgetClass._extend_with_node):
Set functions from <function> nodes.
patch reviewed by Lorenzo
2005-02-24 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/main.py:
* gazpacho/loader/widgettree.py:
* gazpacho/loader/proxy.py:
* gazpacho/loader/compat.py:
* gazpacho/widgettreeview.py:
* gazpacho/widget.py:
* gazpacho/widgetclass.py:
* gazpacho/uieditor.py:
* gazpacho/signaleditor.py:
* gazpacho/property.py:
* gazpacho/propertyclass.py:
* gazpacho/project.py:
* gazpacho/popup.py:
* gazpacho/parameter.py:
* gazpacho/palette.py:
* gazpacho/gladegtk.py:
* gazpacho/gaction.py:
* gazpacho/editor.py:
* gazpacho/command.py:
* gazpacho/catalog.py:
* gazpacho/application.py: use gettext.install function to put the _
function in the builtint namespace so we don't need to import l10n.py
from everywhere anymore
* gazpacho/loader/widgettree.py (GladeParseError)
(WidgetTree.load_from_stream, WidgetTree.load_from_file)
(WidgetTree._read_xml_tree): raise GladeParseError with some errors
in the parsing stage
* gazpacho/application.py
(Application._update_sensitivity)
(Application._change_action_state): set some actions and the palette
sensitiviness depending on if we have projects opened or not. Should
fix #168164
(Application._project_save_as): don't append .glade to the filename
if it already have it. Fix #168170. Reported and fixed by Mattias
Karlsson
(Application.open_project): catch GladeParseError exceptions and show
an appropiate message. Fix #168409. Again Mattias Karlsson :-)
* gazpacho/application.py (Application._open_cb)
(Application._save): check for permission when saving a file. Fix
#168153. Reported and fixed by Mattias Karlsson
* CONTRIBUTORS:
* gazpacho/main.py (launch): check for permission before opening a file
Fix #168152. Patch by Mattias Karlsson reviewed by Lorenzo
* gazpacho/palette.py (Palette._widget_table_create):
* gazpacho/application.py (Application._application_window_create):
set a default size so we fit in 800x600
(Application._widget_tree_view_create)
(Application._gactions_view_create):
2005-02-23 Lorenzo Gil Sanchez <lgs@async.com.br>
* setup.py (else): fix a bug about not creating path.py when installing
2005-02-22 Lorenzo Gil Sanchez <lgs@sicem.biz>
* README : change license number from 2.1 to 2.0 to be consistent with
the rest of the source code
2005-02-21 Lorenzo Gil Sanchez <lgs@sicem.biz>
* NEWS:
* setup.py (gazp_pyc_files):
* gazpacho/application.py (Application._about_cb): 0.5.2 version
2005-02-18 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/application.py (Application._construct_menu_and_toolbar):
mark the Edit label as translatable
* gazpacho/loader/widgettree.py: add a task list and custom properties
loaders. This was needed for the 'has-default' prop since we need to
set it after the widget is inside a window
2005-02-17 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gladegtk.py (_glade_gtk_paned_set_position): set the
position of the bar to the middle of the pane
* gazpacho/editor.py (Editor.__init__): display an initial help
message telling the user to select a widget to edit its properties
* gazpacho/application.py (Application._application_window_create):
try just another layout. I think this is the most usable so far.
* catalogs/gtk+.xml: add parameters to xalign and yalign properties
* gazpacho/editor.py (EditorPropertyNumeric._create_input_numeric):
change the climbrate to a smaller value
* gazpacho/loader/widgettree.py (WidgetTree.load_widget_from_document_instance)
(WidgetTree._read_xml_tree): don't show the widgets explicitily
(WidgetTree.get_widget): new function to get a closer libglade API
* gazpacho/popup.py (Popup._find_parent_box_and_pos): fixed a typo
* gazpacho/widget.py (Widget._find_inside_container): don't set
data['found'] to None if coords is not valid because we may lose
previous found widgets. This bug was discovered when using Notebook
(Widget._find_inside_container): selection inside a Notebook is tricky:
we need to check that the widget is mapped and visible
2005-02-16 Johan Dahlin <johan@gnome.org>
* gazpacho/application.py: Set default response for save/save as
dialog to safe, so we can close by hitting enter.
2005-02-16 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/widgettree.py (WidgetTree._build_child_object):
handle internal children better. Should fix #166950
* gazpacho/widget.py (Widget._write_placeholder_properties): we have
to save the placeholder packing properties because otherwise the
container don't know where to put them
* gazpacho/command.py (CommandCreateDelete._create_execute): don't set
the visible property to True and let the user decide about this
* gazpacho/property.py (Property._internal_write):
* gazpacho/propertyclass.py (PropertyClass.__init__): use an extra
original_default property. This is useful when saving the property so
we only save it if it is different from original_default. Can't use
self.default for that because this attribute is sometimes overriden
in the catalogs file.
* gazpacho/property.py (Property.write): save the string readable
names of enum and flags
* gazpacho/choice.py (flags_to_string, enum_to_string): provide inverse
functions to enum_from_string and flag_from_string
* gazpacho/editor.py (EditorPropertyFlags._load_flags): refactor the
code to fix a bug when closing the flags dialog
* gazpacho/parameter.py (get_value, get_boolean): don't use
comprehension lists unless they are needed
* gazpacho/loader/widgettree.py:
* gazpacho/util.py:
* gazpacho/choice.py (enum_from_string, flag_from_string): move these
functions from util to choice
* gazpacho/loader/widgettree.py (WidgetTree._value_from_string): allows
to read enum/flags strings and not only integers
* gazpacho/util.py (get_enum_value_from_string)
(get_flag_value_from_string): function to get a enum/flag value from
a string
2005-02-15 Rafael Villar Burke <pachi@mmn-arquitectos.com>
* tests/test_gtklabel.py (readProperties): new test for GtkLabel
2005-02-15 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/editor.py (EditorPropertyEnum.load): bug of the month:
idx += 0
* gazpacho/property.py (Property.write): if the prop is of flag/enum
type convert it to int before saving
* gazpacho/widget.py (Widget.sync_packing_properties_from_gtk): when
loading a widget sync its packing properties with the gtkwidget
* gazpacho/loader/widgettree.py (WidgetTree._value_from_string): read
flags and enums, otherwise lots of important properties got lost
* tests/test_gtkbutton.py:
* tests/test_gtktable.py:
* tests/test_gtkwindow.py: changes because of the api changes
* gazpacho/widget.py: big refactor to handle the several scenarios
about creating a widget: normal widget creation, widget cloning,
internal widget creation and widget loading
* gazpacho/editor.py:
* gazpacho/uieditor.py:
* gazpacho/placeholder.py:
* gazpacho/gladegtk.py:
* gazpacho/command.py:
* gazpacho/util.py:
* gazpacho/project.py:
* gazpacho/application.py:
* gazpacho/popup.py:
* gazpacho/widgettreeview.py:
- change widget.widget to widget.gtk_widget
- change Widget.create_from_gtk_widget to create_widget_from_gtk_widget
- change Widget.get_from_gtk_widget to get_widget_from_gtk_widget
* gazpacho/widgetclass.py: change a tab for 4 spaces
* gazpacho/property.py:
* gazpacho/propertyclass.py: optimize by not using properties unless
they are needed
* gazpacho/loader/widgettree.py (WidgetTree._build_frame): special
loader for GtkFrame to handle the special label packing property
2005-02-14 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gladegtk.py (glade_gtk_table_post_create): set the
increments for the spin buttons. Fix #166961
* gazpacho/loader/compat.py (MenuBarConverter.build_menu_item): typo
fixed. Fix #167341 (Reported by Thomas Hinkle)
2005-02-13 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/application.py (Application._about_cb):
* setup.py:
* NEWS: 0.5.1 released
* gazpacho/loader/compat.py: support for toolbars. Big refactoring to
reuse most of the menubar code
* gazpacho/util.py (xml_child_widgets): new (high level) function to
get a list of children of a <child> node
* gazpacho/loader/widgettree.py: load the ui definitions from the
menubar and toolbar widgets and not from the uimanager
* gazpacho/loader/compat.py (MenuBarConverter.build_menu_bar): store
the merge_id in the menubar so the user can unmerge it later
* catalogs/gtk+.xml: make the ui property unstraslatable
* gazpacho/property.py (Property.write_in_cdata): new method to save
a property as CDATA section. Also, refactor the old write method
* gazpacho/widget.py (Widget.write): save the 'ui' property of
the toolbars and menubars
* gazpacho/gladegtk.py (glade_gtk_menu_bar_post_create): use unique
names for the separators
(glade_gtk_tool_bar_post_create): use unique names for the separator
and don't create a quit button as recommended in the HIG
* gazpacho/util.py (xml_find_node): new function to find a child node
inside a xml tree
* gazpacho/project.py: save the uidefinitions as widget properties and
not as a property of the uimanager object. This allows
merging/unmerging for the user
* gazpacho/application.py (Application._confirm_close_project): return
a close value when the user choose to save the project
2005-02-12 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gaction.py (get_gaction_from_gtk_action): fix a bug about
calling non existing set_property method of GAction
* gazpacho/loader/compat.py: new module to handle deprecated widgets
* gazpacho/loader/widgettree.py (WidgetTree._build_menu_bar_or_toolbar):
use a special loader when loading deprecated widgets as MenuBars
built with Glade-2.
Fix a bug about setting the name of a widget even when it was None
Warn the user that we loaded deprecated widgets so if he save the
file in Gazpacho it won't be compatible anymore with Glade-2
* README : updated to reflect GNOME migration
2005-02-11 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalogs/gtk+.xml: added GtkAlignment
added GtkComboEntry
* gazpacho/uieditor.py (UIEditor.__init__): avoid a duplicated call
to Dialog.__init__
(UIEditor._set_ui_property): remove debug information
* gazpacho/widget.py (Widget.__init__): if the gtk widget does not
have the property don't synchronize it. Fix a bug about not setting
the right value for the 'ui' property upon menu creation
* gazpacho/gladegtk.py (_get_new_widget_after_uimanager_change): save
the ui value into the property
2005-02-10 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/project.py (Project.write): don't write the require tag
for gtk+ only projects
* gazpacho/loader/widgettree.py (WidgetTree._build_instance)
(WidgetTree._add_requirement, WidgetTree._reset): don't use any prefix
and just assume that prefix is the same as the 'lib' attribute. I
convert them to lowercase so watch out for name conflicts
* gazpacho/project.py (Project.write): don't write prefix='Gtk' in
Glade files so libglade won't complain
2005-02-10 Marc Sabat Olive <marcsabat@gmail.com>
* po/ca.po: new translation
* CONTRIBUTORS: added marc
2005-02-05 Ross Burton <ross@burtonini.com>
* gazpacho/application.py (Application._construct_menu_and_toolbar):
remove quit button from the toolbar as the HIG recommends
* gazpacho/gaction.py (GActionsView.__init__): set the same shadow
to the action view as the other views
reviewed by lgs
0.5.0 Released
2005-02-04 Lorenzo Gil Sanchez <lgs@sicem.biz>
* NEWS: entry for 0.5.0
2005-02-04 Lorenzo Gil Sanchez <lgs@async.com.br>
* gazpacho/widgetclass.py (_list_properties): don't read the
'ellipsize' property of gtk.Label. This fix #128. More details in
pygtk bug #166312
2005-02-04 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/application.py (Application._about_cb):
* setup.py (gazp_pyc_files): changed version number
* gazpacho/loader/proxy.py (Proxy._signal_magicconnect): fixed some
bugs
* gazpacho/project.py: use a separator_counter so we don't repite the
separator name of a UI. Initializa this counter when loading a project
* gazpacho/uieditor.py: assign names to separators
- Implement on_up_clicked but hide the arrow buttons since not all of
them works
- put a Info label about the escape new feature since it is not obvious
* gazpacho/util.py (xml_clean_node): new function to clean a XML
subtree
(unselect_when_press_escape): new function to unselect a tree item when
pressing escape
2005-02-03 Lorenzo Gil Sanchez <lgs@sicem.biz>
* bin/create_path_on_win32.py:
* bin/gazpacho:
* gazpacho/widgettreeview.py:
* gazpacho/widgetclass.py:
* gazpacho/widget.py:
* gazpacho/util.py:
* gazpacho/signaleditor.py:
* gazpacho/propertyclass.py:
* gazpacho/property.py:
* gazpacho/project.py:
* gazpacho/popup.py:
* gazpacho/palette.py:
* gazpacho/main.py:
* gazpacho/loader/widgettree.py:
* gazpacho/l10n.py:
* gazpacho/gladegtk.py:
* gazpacho/gaction.py:
* gazpacho/editor.py:
* gazpacho/command.py:
* gazpacho/clipboard.py:
* gazpacho/choice.py:
* gazpacho/catalog.py:
* gazpacho/application.py: added copyright and license information
2004-02-03 Richard Hult <richard@imendio.com>
* gazpacho/widget.py (Widget.__init__): Don't sync properties that
are optional and optional default is False. Fixes default
width/height for windows for example.
2005-02-03 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gaction.py: provide functions to save the actions and
action groups aswell as functions for creating them from their
GTK+ twins
* gazpacho/widget.py (Widget.create_from_gtk_widget): don't try to
create the children of Menubars or Toolbars
- Rename _project by project and remove that property
* gazpacho/project.py (Project.__init__): new flag:
save_uimanager_in_glade_file that tell us if the UI definition of the
UIManager should be save in the .glade file or into a different file
(Project._write_uimanager): new function to save the UIManager with
its UI definition and the Action Groups
(Project._load_ui): load the UI by setting the right piece of UI into
the correct widget
(Project.save): save the UI definition in another file if this is
what we want
* gazpacho/loader/widgettree.py: big refactoring to support <object>
and <widget> and handle them like they are the same thing
* gazpacho/util.py (xml_create_string_prop_node): new function to
create properties with a string value
(xml_filter_nodes): moved function from loader.widgettree to here
(xml_read_raw_property): function for reading properties without type
conversion
* gazpacho/clipboard.py: use util.xml_filter_nodes instead of
WidgetTree.filter_nodes
2005-02-02 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/gaction.py (GAction.write, GActionGroup.write):
serialization code
* gazpacho/loader/tags.py: new tags for 'object' and 'filename'
* gazpacho/util.py (get_ui_path): new function to help when saving
the ui file
* gazpacho/project.py: save uimanager to another file and actions to
the glade file
* gazpacho/gladegtk.py:
* gazpacho/loader/widgettree.py:
* gazpacho/application.py:
* gazpacho/project.py: don't use properties unless it is necesary
* gazpacho/gladegtk.py (_create_default_actions):
* gazpacho/gaction.py (GAction.__init__): change defaults from None to
'' for tooltip, callback and accel.
* gazpacho/loader/widgettree.py (WidgetTree._read_xml_tree): don't
require self._app. We can load interfaces outside Gazpacho
* catalogs/gtk+.xml:
* gazpacho/gladegtk.py (_internal_menu_or_tool_bar_post_create)
(glade_gtk_tool_bar_post_create, glade_gtk_menu_bar_post_create):
create some default actions an items when creating an menubar or a
toolbar
* gazpacho/gaction.py: added support for the callback field of the
actions in the dialog.
(GActionGroup.get_action): new function to get an action by its name
* gazpacho/command.py:
* gazpacho/application.py: refactor the actions and group actions
callback so you can create them in a non interactive way by calling
the actions directly
Warning: save/load is probably broken after these changes. Many checks
would be also good. Right now it is quite easy to break things
* catalogs/gtk+.xml: changes in menubar and toolbar to use the
new uieditor.
* gazpacho/uieditor.py: new editor for the UI property of menubars and
toolbars. Not finished
* gazpacho/gladegtk.py: many changes to use the new UIEditor and the
new editor plugin system by Mikael
* gazpacho/gaction.py (GAction.__str__): improve doc strings
- Change GActionGroup to keep a GtkActionGroup object in sync with it
- Use util.select_iter for the ActionsView
- Draw the stock_id for the actions in the ActionsView if it exists and
the gtk-execute stock for the groups
* gazpacho/project.py (Project.add_action_group): create the UIManager
if it does not exist and attach this GtkActionGroup to it
(Project.remove_action_group): update the uimanager
- Rename ._uimanager to .uimanager
* gazpacho/editor.py (EditorPropertySpecial.__init__): raise some
exceptions if the functions are not found
* gazpacho/command.py (CommandEditAction.execute): tell the action
group that we updated the action so the uimanager is updated
* gazpacho/widgettreeview.py (WidgetTreeView.add_item)
(WidgetTreeView.selection_update)
(WidgetTreeView._button_press_cb): use the new select_iter function
- Removed _select_item method since select_iter substitutes it
* gazpacho/util.py (select_iter): function to select an element of a
textview
(unselect_when_clicked_on_empty_space): function to unselect everything
when the user clicks on an empty space of a treeview
2005-01-30 Richard Hult <richard@imendio.com>
* doc/how_to_add_widgets.txt: new useful document
2005-01-31 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/command.py (CommandManager.add_action)
(CommandManager.remove_action, CommandManager.edit_action)
(CommandManager.add_action_group)
(CommandManager.remove_action_group)
(CommandManager.edit_action_group): highlevel methods to manipulate
GActions and GActionGroups
(CommandAddRemoveAction.__init__, CommandEditAction.__init__)
(CommandAddRemoveActionGroup.__init__)
(CommandEditActionGroup.__init__): new commands for the actions
* gazpacho/gaction.py: new classes GAction and GActionGroup. A
GActionsView to view them and two dialogs to manipulate them.
* gazpacho/project.py: new signals to handle the actions
(Project.__init__): keep a list of actions groups in the project
(Project.add_action_group, Project.remove_action_group)
(Project._add_action_cb, Project._remove_action_cb)
(Project.change_action_name): methods and callbacks to handle
GActions and GActionGroups
* gazpacho/application.py (Application._gactions_view_create): creation
of the GActionsView
(Application._application_window_create): new experimental layout more
'horizontal' oriented
(Application._create_frame): new function used instead of
_create_expander. (_create_expander is deprecated now. I didn't remove
it just in case we switch back to the old layout)
(Application._construct_menu_and_toolbar): new actions for GActions :)
(Application._add_action_cb, Application._add_action_cb)
(Application._remove_action_cb): new callbacks to manipulate the
gactions and gactionsgroups.
* gazpacho/uimanagereditor.py:
* gazpacho/project.py (Project._write_action_group):
(Project.open): use GAction instead of GazpachoAction
* gazpacho/gaction.py: renamed action.py to gaction.py
* gazpacho/action.py: changed the class name to GAction
2005-01-31 Rafael Villar Burke <pachi@mmn-arquitectos.com>
* gazpacho.desktop: updated french and brazilian names
2005-01-31 Mikael Hallendal <micke@imendio.com>
* catalogs/gtk+.xml:
* gazpacho/loader/tags.py:
* gazpacho/propertyclass.py:
* gazpacho/widgetclass.py:
- Changed the argument visible to a tag called visibility-function
for consistency.
2005-01-31 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho.desktop: updated version from Pachi. Probably fix #127
2005-01-30 Mikael Hallendal <micke@imendio.com>
* catalogs/glade-catalog.dtd:
* gazpacho/loader/tags.py:
- Added editor, create-function and load-function
* catalogs/gtk+.xml:
- Added editor for icon and icon-size in GtkImage
* gazpacho/editor.py:
- Huge refactor of EditorProperty.
- All EditorProperties are now subclasses of EditorProperty
- Added ValueSetProxy which is a proxy for values from an Custom
Editor back to the EditorProperty.
* gazpacho/gladegtk.py:
- Added first attempt on better support for chosing the image and
image size. This will have to be better thought through (in libglade
as well).
* gazpacho/propertyclass.py:
- Read create-function and load-function for custom editors.
2005-01-30 Richard Hult <richard@imendio.com>
* gazpacho/popup.py (Popup._cut_cb, Popup._copy_cb)
(Popup._paste_cb): Don't use app.real_*(), use the command
directly since we need to perform the action on the widget
corresponding to the used submenu, not the widget that is selected
in the widget tree.
(Popup._create_menu): Only add a paste menu item for placeholders,
not other widgets.
* catalogs/gtk+.xml:
* gazpacho/gladegtk.py (glade_gtk_box_post_create): Remove the
dialog asking for the number of children, since this can now be
changed easily at any time.
* catalogs/gtk+.xml: Add test property for GtkTextView.
* gazpacho/gladegtk.py (glade_gtk_text_view_get_text)
(glade_gtk_text_view_set_text): Implement fake property for text
in GtkTextView.
2005-01-29 Richard Hult <richard@imendio.com>
* gazpacho/popup.py (Popup._find_parent_box_and_pos)
(Popup._create_menu, Popup._box_insert_after_cb): Add "insert
before/after" menu items for boxes.
(Popup.__init__): Keep the widget since it's needed for the insert
menu item.
(Popup.pop): Fix typo.
* gazpacho/command.py (CommandManager.box_insert_placeholder)
(CommandInsertPlaceholder.__init__): Add command for the above.
* gazpacho/widget.py (Widget._apply_properties): Use prop._value
instead of prop.value to get the default value instead of the
value on the actual widget, which will be unset. Fixes default
values for properties with custom set/get functions.
2005-01-29 Richard Hult <richard@imendio.com>
* gazpacho/editor.py (EditorTable._create_item_label): Set tooltip
for the property labels.
(Editor.__init__): Create tooltips object.
* gazpacho/gladegtk.py (glade_gtk_notebook_replace_child): Don't
set the label, it's already done in the insert_page call. Show the
page before trying to switch to it.
* gazpacho/widget.py (Widget._find_inside_container): Don't assume
that translate_coordinates succeed, fixes expection spew.
* gazpacho/gladegtk.py (glade_gtk_tree_view_pre_create): Setup two
columns so that the header properties can be previewed.
(glade_gtk_notebook_set_n_pages, glade_gtk_notebook_get_n_pages):
Use get_n_pages insted of counting the list of children.
* catalogs/gtk+.xml: Disable the resize-mode property for the
treeview, it's only a container as an implementation detail, not
for packing things inside so this property doesn't make sense
here.
- Add ignore fill-empty-function for notebook to make it not add
an extra page at creation time.
* gazpacho/widget.py (Widget.create_from_gtk_widget): Fix
indentation to move the widget name assignment out of the looping
over properties.
- Remove some debug output.
* gazpacho/propertyclass.py: Remove debug output.
2005-01-28 Richard Hult <richard@imendio.com>
* gazpacho/loader/widgettree.py (WidgetTree._read_xml_tree): Set
toplevel windows as transient for the main window when loading
files as well.
* gazpacho/command.py (CommandManager.delete_placeholder)
(CommandDeletePlaceholder): New command for deleting a
placeholder. This is only for GtkBox and subclasses for now.
* gazpacho/project.py (Project.delete_selection): Make it possible
to delete placeholders as well.
* gazpacho/popup.py (PlaceholderPopup._create_menu): Create a
delete menu item for placeholders. This is special-cased for
GtkBox and subclasses, since this only makes sense for those.
(PlaceholderPopup._delete_placeholder_cb): Handle it here.
* gazpacho/widget.py (Widget.__init__): The Property constructor
doesn't take a gtk.Widget, pass a gazpacho.Widget.
* gazpacho/property.py (Property.set): Get the value from
self._value instead of the getter that might call into a custom
setter, which will get the old value instead of the new one.
(Property.get_value): Use a custom get function if available,
fallback to the regular value.
* gazpacho/gladegtk.py (glade_gtk_widget_get_tooltip): Don't
assume that we always have data. For example, the first time we
get it, it can be None.
2005-01-28 Richard Hult <richard@imendio.com>
* gazpacho/application.py (Application._expander_activated)
(Application._application_window_create): When one of the
tree/editor expanders is collapsed, make the other one use all
available space.
2005-01-28 Rafael Villar Burke <pachi@mmn-arquitectos.com>
* po/es.po
* po/gl_ES.po: updated translations
2005-01-28 Lorenzo Gil Sanchez <lgs@sicem.biz>
* NEWS:
* RELEASES: post 0.4.0 changes
* gazpacho/application.py (Application._about_cb):
* setup.py: released 0.4.0
(data_files): fix for win32
* setup.py :
* bin/create_path_on_win32.py : win32 fixes
* setup.py: save the list of files installed on a special python file
called 'files.py' inside the gazpacho package.
* gazpacho/main.py (uninstall): add an uninstall option
* gazpacho/popup.py: make copy/cut/paste work from right button menu
2005-01-28 Mikael Hallendal <micke@imendio.com>
* gazpacho/gladegtk.py:
* gazpacho/util.py:
- Set entries in size of boxes and tables dialogs to activate default.
- Set default action to be OK.
2005-01-26 Mikael Hallendal <micke@imendio.com>
* catalogs/gtk+.xml: Added some packing defaults
* gazpacho/loader/tags.py:
- Added defines for the new tags (packing defaults)
* gazpacho/util.py (get_property_value_from_string):
- Added function to transform a string to a value based on
property value type.
- Refactored xml_get_property_boolean some to reuse code.
* gazpacho/widget.py:
- Set default packing values when packing widgets.
* gazpacho/widgetclass.py:
- Read the packing defaults from the catalog file
- Added function that recursively looks up a default packing value
by iterating through parents of container class until it finds
the id looked for or hits a base class that isn't a GtkContainer.
reviewed by lgs
2005-01-27 Richard Hult <richard@imendio.com>
* catalogs/gtk+.xml: Setup translatable parameters.
* gazpacho/editor.py (EditorProperty._show_i18n_dialog): Implement
i18n metadata editor dialog.
(EditorProperty._create_input_text): Add i18n button for
translatable string properties.
(EditorProperty._load_text): Get the entry/textview as first child
of the box.
* gazpacho/property.py (Property.__init__)
(Property.{get,set}_has_i18n_context)
(Property.{get,set}_i18n_comment)
(Property.{get,set}_is_translatable): Add i18n metadata.
(Property.write): Write i18n metadata.
* gazpacho/widget.py (Widget.create_from_gtk_widget): Get i18n
metadata for translatable string properties.
* gazpacho/loader/widgettree.py (WidgetTree._read_property): Read
any i18n metadata and set as object data so the wrappers can
access it when the wrapper widget tree is created.
* gazpacho/command.py (CommandManager.set_translatable_property)
(CommandSetTranslatableProperty): new command for setting i18n
metadata on string properties.
* gazpacho/util.py (gtk_widget_{get,set}_metadata): Add helper
functions that make setting/getting object data a bit more robust
and easier to read.
* gazpacho/propertyclass.py (PropertyClass._set_default_values):
Initialize translatable.
(PropertyClass.{get,set}_is_translatable): Add
getter/setter/property for translatable.
(PropertyClass.update_from_node): Read translatable parameter from
catalog.
* gazpacho/loader/tags.py: Add tags for glade file i18n metadata
and the translatable parameter for catalogs.
reviewed by lgs: There is a problem in the 'icon-name' property of
Windows and Images as it seems pygtk 2.4.0 doesn't have it. So gtk+.xml
is not modified as in the original patch
2005-01-27 Lorenzo Gil Sanchez <lgs@sicem.biz>
* remove xml directory and its files
* setup.py: don't generate xml_dir and don't copy xml files from the
xml directory when installing
* bin/gazpacho (localmode): don't generate xml_dir
* gazpacho/gladegtk.py (glade_gtk_tree_view_pre_create): create a
dummy model to avoid warnings
* catalogs/gtk+.xml: set ignore as fill-empty-function for treeview
2005-01-27 Richard Hult <richard@imendio.com>
* gazpacho/editor.py (EditorProperty._changed_text): Check
self.property.loading, not self.loading. Fixes weird behavior with
undo for string properties.
(Editor.load_widget_real)
(Editor.load_widget):
(Editor.refresh): Refactor the loading and implement refreshing
for the editor that reloads the properties.
* gazpacho/application.py (Application._undo_cb)
(Application._redo_cb): Refresh the editor.
* gazpacho/command.py (CommandCreateDelete._create_execute): Make
created toplevels transient for the editor window, makes window
management a lot more convenient. Only add the accel group to
toplevels when it's first created, fixes critical warning.
* catalogs/gtk+.xml: Fix type (ClibmRate->ClimbRate), set min
value to 1 instead of 0 for size of boxes and n_rows/cols of
tables.
* gazpacho/placeholder.py (Placeholder.do_button_press_event):
Select the parent when shift is pressed.
reviewed by lgs
2005-01-27 Mikael Hallendal <micke@imendio.com>
* gazpacho/widgetclass.py:
- Sort the property list so that properties defined in the catalog file
gets sorted first in order. This way it's possible to order the
properties so that they make sense on a widget basis.
* catalogs/gtk+.xml: Set GtkEntry width-chars property to be optional
and width to be 0 to be able to shrink.
* gazpacho/widget.py:
- Make sure that GazpachoWidget's property values are the same as
the ones the GtkWidget has by iterating through all properties and
set the GazpachoWidget Property value to the ones read from GtkWidget
patches reviewed by lgs
2005-01-27 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgetclass.py (WidgetClass.__init__): use get_by_type
instead of get_by_name. Otherwise it does not work.
* gazpacho/widgetregistry.py (WidgetRegistry.get_by_type): make
get_by_name accept default parameters
2005-01-27 Mikael Hallendal <micke@imendio.com>
* gazpacho/application.py:
- Corrected callback signature for widget_name_changed
* gazpacho/project.py:
- _widget_old_names uses widget as key and name as value, not the
other way around.
* gazpacho/widget.py:
- Notify when property 'name' is changed
* gazpacho/widgettreeview.py:
- Update the tree model when widget name changes
patch reviewed by lgs
2005-01-27 Johan Dahlin <johan@gnome.org>
* gazpacho/widget.py (copy_widget):
* gazpacho/catalog.py (WidgetGroup.load):
* gazpacho/main.py (dump_properties):
* gazpacho/gladegtk.py (glade_gtk_table_post_create):
* gazpacho/widgetclass.py (WidgetClass.__init__): use widget_registry
and remove the old get_by_name class method
* gazpacho/widgetregistry.py (WidgetRegistry.clean): more clean way
to handle widgets types
patch reviewed by lgs
2005-01-27 Lorenzo Gil Sanchez <lgs@sicem.biz>
* tests/test_gtkbutton.py
* tests/utils.py
* tests/test_gtktable.py
* tests/test_gtkwindow.py: fixed to work with recent Gazpacho changes
2005-01-27 Rafael Villar Burke <pachi@mmn-arquitectos.com>
* po/gl_ES.po:
* po/es.po: updated translations
2005-01-27 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py: several changes needed to implement the function
copy_widget. Most of them are hacks so first thing we need is a
redesign of Widget initialization stuff. It has to be far more flexible
because several modules create Widgets but they all have different
requirements.
* gazpacho/loader/widgettree.py: use the application when creating
placeholders
* gazpacho/command.py: implement copy/cut/paste
* gazpacho/util.py (draw_nodes_idle): use project.get_selection instead
of project.selection_get
* gazpacho/project.py: remove function selection_get since it does the
same as get_selection.
(Project.open): pass the application to the widgettree so placeholders
are created properly
* gazpacho/application.py: rewrite cut/copy/paste callbacks to use
the command_manager so these actions can be undoned. Provide accesors
for clipboard and clipboard view
* gazpacho/clipboard.py: lots of changes that simplifies the Clipboard:
now we don't put XML data on it but the widgets themselves. Also, new
ClipboardView class to have a view of the widgets in the clipboard
* gazpacho/widgettreeview.py (WidgetTreeView.selection_update): update
the project call from selection_get to get_selection
Remove ClipboardView and put it on clipboard.py since it seems it can
no inherit from WidgetTreeView
2005-01-25 Henrique Romano <henrique@async.com.br>
* po/pt_BR: first version of portuguese translation
2005-01-25 Lorenzo Gil Sanchez <lgs@sicem.biz>
* Change tabs to 4 spaces for indentation purposes
2005-01-25 Mikael Hallendal <micke@imendio.com>
* gazpacho/catalog.py:
- Load catalog files containing widget classes and/or widget groups.
A widget group is what used to be a catalog. The GladePalette has
been removed and instead all catalog files found in the catalogs
directory are loaded.
* gazpacho/loader/tags.py:
- Updated the catalog file format to be more .glade like and more
consistent. glade-widget-class instead of GladeWidgetClass etc.
* gazpacho/palette.py:
- Load groups instead of catalogs.
* gazpacho/propertyclass.py:
- Use tags-defines instead of strings directly.
* gazpacho/widgetclass.py:
- Load from an XML node given by catalog instead of a filename.
* setup.py:
- Install catalogs/gtk+.xml
* catalogs/gtk+.xml:
- The new Gtk+ catalog, this obsoletes all the .xml files in xml/
* catalogs/glade-catalog.dtd:
- DTD file for the new Catalog file format.
* patch revised by lgs
2005-01-25 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/clipboard.py (Clipboard.paste): fixed a bug
* gazpacho/widgettreeview.py : added an update_widgets so this view
is actually doing something
* gazpacho/application.py: changes to add a clipbard window
* gazpacho/widgettreeview.py: added a ClipboardView class to show the
contents of the Clipboard.
Changed the name from ProjectView to WidgetTreeView
2005-01-24 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/widgettree.py (WidgetTree.load_from_xml_document_instance): new way of loading widgets
(WidgetTree._value_from_string): make it work with '-1' integers like
* gazpacho/property.py (Property.write): save everything, including
properties with default values
* gazpacho/widget.py (Widget.create_from_gtk_widget):
* gazpacho/command.py (CommandCreateDelete._create_execute): add
the application window accel groups to new toplevel widgets
* gazpacho/util.py (write_xml): refactor some code to be more efficient
* gazpacho/application.py: implement cut/copy/paste using a new
Clipboard class
(Application.get_accel_groups): new function
2005-01-24 Rafael Villar Burke <pachi@mmn-arquitectos.com>
* po/es.po, po/gl_ES.po: spanish and gallego preliminary translations
2005-01-24 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/projectview.py: fix some things so when placeholders are
selected this view doesn't crash. It just show no widget selected
* gazpacho/placeholder.py (Placeholder.do_button_press_event): let the
user select placeholders
2005-01-22 Gustavo J. A. M. Carneiro <gjc@gnome.org>
* gazpacho/application.py (Application._quit_cb): Uncomment the
code that asks to save work before quitting.
(Application._confirm_close_project): Make it work for unnamed
projects too.
(Application._save_as_cb): split in two, main code goes to
_project_save_as.
(Application._project_save_as): Returns a boolean indicating if
save was successful.
* gazpacho/projectview.py (ProjectView._row_activated_cb): double click
on the widget tree show the selected widget (fix #125). Reviewed by lgs
2005-01-22 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/application.py: create separate debugging window and a menu
to show/hide them
* gazpacho/widget.py:
* gazpacho/placeholder.py:
* gazpacho/projectview.py: use the new popup system
* gazpacho/popup.py: hard refactoring to make it Object Oriented.
Also show the name of the widget the menu is popup over
* setup.py: changes needed after the rename of bin/gazpacho
* bin/gazpacho: renamed (again) bin/gazpacho.py to bin/gazpacho since
we don't need xgettext to parse that file and so .py it's not needed
anymore
* bin/gazpacho.py (localmode): we can't do translations here since
the path.py (needed by l10n.py) may not exist yet
* gazpacho/project.py (Project.remove_widget): fixed very little nasty
bug that was making redo not working properly (e.g. when you undo a
widget creation command you couldn't select it again)
2005-01-21 Lorenzo Gil Sanchez <lgs@sicem.biz>
* langadmin.py (LangAdmin.generate_mo_files): fixed a wrong error
message
* doc/how_undo_redo_works.txt: hey, today I had a documentation orgy!
* gazpacho/command.py:
* gazpacho/application.py: added a CommandStackView so we can debug
undo/redo easily
* gazpacho/command.py: more documentation
* gazpacho/projectview.py, gazpacho/application.py,
gazpacho/project.py, gazpacho/command.py, gazpacho/gladegtk.py,
gazpacho/placeholder.py, gazpacho/signaleditor.py, gazpacho/main.py,
gazpacho/editor.py: serious refactoring due the creation of a
CommandManager inside the application object to handle all the command
stuff. More changes will come soon.
Warning popup.py is broken right now because of these changes
* langadmin.py: make pychecker happier
* doc/module_dependencies.txt: more useful documentation
* gazpacho/widgetclass.py:
(WidgetClass._list_signals): don't use WidgetClassSignal anymore and
use a simple two elements tuple
* gazpacho/propertyclass.py:
(PropertyClass.update_from_node): fixed typo
* gazpacho/loader/widgettree.py:
* gazpacho/loader/proxy.py:
* gazpacho/widget.py:
* gazpacho/uimanagereditor.py:
* gazpacho/signaleditor.py:
* gazpacho/property.py:
* gazpacho/project.py:
* gazpacho/popup.py:
* gazpacho/parameter.py:
* gazpacho/main.py:
* gazpacho/gladegtk.py:
* gazpacho/editor.py:
* gazpacho/command.py:
* gazpacho/catalog.py:
* gazpacho/application.py:
* gazpacho/actioneditor.py:
* gazpacho/action.py: mark strings with _()
* po
* langadmin.py: added l10n support and the first po file (spanish)
* gazpacho/l10n.py: this module provides the _ function
* MANIFEST.in: distribute the po files, the tests, langadmin.py script
and some of the text files (CONTRIBUTORS, NEWS and RELEASES)
* setup.py: generate mo files and install them. Also changed the name
of gazpacho to gazpacho.py since xgettext must know it is a python
file. In installation time it is renamed to just gazpacho
* gazpacho/application.py: start to mark some strings
* xml/gtk-additional.xml: I forgot the Eventbox widget
2005-01-20 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/editor.py (EditorProperty._create_input): fix a bug about
not creating the button for special editors correctly
* gazpacho/widget.py (Widget._find_inside_container): fix a bug with
the selection code. Added some doc strings and clean things a little
bit
* gazpacho/placeholder.py (Placeholder.do_expose_event): add a comment
* doc/how_selection_works.txt: some useful documentation
* gazpacho/signaleditor.py: make it more pychecker friendly
* gazpacho/editor.py: use dictionaries for easy access to the loader
and creator methods for each property type. Also make it more pychecker
friendly
* gazpacho/property.py:
* gazpacho/loader/tags.py:
* gazpacho/propertyclass.py: changed UNICHAR to UINT and take care of
the special case of 'invisible-char' property
* tests/utils.py (init_gazpacho): changed to use the new application
class
* gazpacho/editor.py (EditorProperty.load)
(EditorProperty._create_input):
* gazpacho/property.py (Property.__init__, Property.set_value):
* gazpacho/widget.py (Widget._apply_properties):
* gazpacho/propertyclass.py (type2str)
(PropertyClass.update_from_node)
(PropertyClass._get_default_from_spec)
(PropertyClass._get_type_from_spec):
* gazpacho/widgetclass.py: use gobject.TYPE_* instead of our custom
types
2005-01-19 Lorenzo Gil Sanchez <lgs@sicem.biz>
* doc/classes.dia: improve the diagram adding some variables and
methods
* gazpacho/main.py (launch): use the new Application class and
set a reference to it in the modules that need so. Also don't create
a new project if we are loading an existing one
* gazpacho/placeholder.py (Placeholder): use a class variable called
app to have access to Gazpacho Application in the methods we need to
(basically to see the content of the add_class variable)
* gazpacho/gladegtk.py:
* gazpacho/command.py: use a global app variable (which is set during
initialization in main.py:launch()) when we needed access to the old
ProjectWindow instance.
* gazpacho/util.py: don't forget to import gobject if you are using
it (gobject.idle_add)
* gazpacho/projectview.py (ProjectView._motion_notify_cb): comment this
method since creating widgets in the projectview is not working right
now and we want to avoid the old ProjectWindow dependency
* gazpacho/widget.py: write some needed documentation
* gazpacho/util.py (queue_draw_nodes):
* gazpacho/actioneditor.py (ActionEditor.__init__): changed
gtk.idle_add for gobject.idle_add (avoid deprecated warning)
2005-01-19 Miguel hernandez <enlavin@gmail.com>
* bin/gazpacho (localmode): use raw strings (r"%s") for dir paths.
Reviewed by lgs
2005-01-16 Johan Dahlin <johan@gnome.org>
* gazpacho/projectview.py: Fix popup menu and select the current row
before selecting the widget.
2005-01-18 Lorenzo Gil Sanchez <lgs@sicem.biz>
* setup.py (scripts): add a .pyw version of launch-gazpacho for win32.
Should fix #97
* gazpacho/projectwindow.py (ProjectWindow._add_project): save the id
for the menu entry of the newly created project
(ProjectWindow._close_cb): when closing a project, destroy all its
widgets and also its entry in Gazpacho menu
* gazpacho/project.py (Project.__init__): added a property for the
UI id of this project in Gazpacho main menu
* gazpacho/widget.py (Widget.create_from_gtk_widget): sanity checks
when getting the class
* gazpacho/loader/widgettree.py (WidgetTree._value_from_string): check
if it is a Unichar (Gustavo)
(WidgetTree._build_child_widget): before adding a child to a parent
check if it is None
(WidgetTree._build_widget): when loading toolbars or menubars check
if they are old style ones and print a warning message in this case
* gazpacho/projectwindow.py (ProjectWindow._save_cb): fixed a bug with
Gustavo Noronha patch. Also improve the comments.
(ProjectWindow._save_as_cb): refactor some code so we avoid duplicates
blocks (_save_cb now calls _save_as_cb if the user needs to choose a
filename)
* bin/create_path_on_win32.py: post installation script to create the
path.py file on Windows
* RELEASES: don't forget to remove path.py
* MANIFEST.in: added create_path_on_win32.py
* setup.py (scripts): only write the path.py on Linux systems and
handle --prefix= and --prefix so we avoid stupid mistakes (Johan)
2005-01-17 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/projectwindow.py (ProjectWindow._about_cb):
* setup.py: released 0.3.2
2005-01-16 Johan Dahlin <johan@gnome.org>
* gazpacho/widget.py (Widget._find_inside_container):
widget.translate_coordinates can return an empty tuple, make sure
we can handle that case.
r
* gazpacho/uimanagereditor.py (UIManagerEditor._update_preview):
Check so it's a real widget before we continue.
* gazpacho/editor.py:
* gazpacho/palette.py:
* gazpacho/projectwindow.py:
* gazpacho/util.py:
* gazpacho/gladegtk.py:
* gazpacho/actioneditor.py:
* gazpacho/projectview.py:
* gazpacho/uimanagereditor.py:
* gazpacho/signaleditor.py: Take advantage of default values for
gtk.Box/gtk.TreeViewColumns constructors and pack_start/pack_end functions.
* gazpacho/projectview.py: Update selection in the tree view here
when we change the widget selection. Kiko noticed this a back while.
* gazpacho/editor.py (EditorTable._create_item_label): Set the
minimum width for a label.
* gazpacho/palette.py (Palette._widget_table_create): Clean up
* gazpacho/projectview.py (ProjectView._button_press_cb): Show
popup menu when right clicking on an item here. And rearrange the
logic a little bit.
* gazpacho/projectwindow.py
(ProjectWindow._project_window_create): set window icon.
* xml/gtk-base.xml:
* xml/Makefile.am:
* xml/gtkoptionmenu.xml:
* gazpacho.nsi: Remove all signs of OptionMenu, it's deprecated.
* xml/gtk-base.xml: Fix expanders palette_name
* xml/gtk-base.xml: Arrange things a little bit, VBox/HBox should
be higher up, since they are used a lot. Move down menubar/toolbar
a little bit too.
* gazpacho/signaleditor.py:
* gazpacho/editor.py:
* gazpacho/propertyclass.py:
* gazpacho/projectview.py:
* gazpacho/uimanagereditor.py: Clean up const definitions to make
them all fit on 79 character wide pages and use it consistently
* gazpacho/widgetclass.py: General cleanups
* bin/gazpacho:
* gazpacho/gladegtk.py: Remove some print output
* gazpacho/palette.py:
* gazpacho/project.py:
* gazpacho/action.py:
* gazpacho/uimanagereditor.py:
* gazpacho/widget.py:
* gazpacho/signaleditor.py:
* gazpacho/editor.py:
* gazpacho/projectview.py: Use real python types instead of
constants from the gobject module.
* gazpacho/palette.py:
* gazpacho/project.py:
* gazpacho/action.py:
* gazpacho/uimanagereditor.py:
* gazpacho/widget.py:
* gazpacho/signaleditor.py:
* gazpacho/editor.py:
* gazpacho/projectview.py: Use real python types instead of
constants from the gobject module.
* gazpacho/gladegtk.py: Make UIManager global, clean up imports.
* README:
* bin/gazpacho: Require 2.4.0 and document the requirement.
* gazpacho/editor.py:
* gazpacho/projetview.py:
* gazpacho/projetwindow.py: Clean up imports a tiny bit
2005-01-15 Lorenzo Gil <lgs@sicem.biz>
* big pepeightification from Johan
* applied patch from Johan that fix a lot of code ugliness detected by
pychecker
2004-12-13 Johan Dahlin <johan@gnome.org>
* gazpacho/widget.py: Clean up imports
2004-12-12 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/util.py (draw_nodes_idle): check if the internal window
exists before trying to draw the nodes. (John Ehresman)
* xml/gtk-base.xml: added gtkexpander support
* gazpacho/loader/widgettree.py (WidgetTree._reset): add 'gtk' module
to the initial module dictionary so glade files doesn't need to
explicit require it
2004-12-11 Lorenzo Gil Sanchez <lgs@sicem.biz>
* tests/test_gtktable.py: remove non used function from the import
2004-11-17 Lorenzo Gil Sanchez <lgs@sicem.biz>
* bin/gazpacho (localmode): fixed a bug about not finding the path.py
when running locally
2004-11-15 Lorenzo Gil Sanchez <lgs@sicem.biz>
* xml/gtktable.xml: remove the Default attribute for the n-rows and
n-columns properties they are different default values from gtk+ ones
* gazpacho/loader/widgettree.py (WidgetTree.get_actions): added a read
only property to get the actions
(WidgetTree._read_child_property): convert '_' to '-' for property
names
(WidgetTree._reset): store the actions in a dict for easy access
* gazpacho/property.py (Property.write): use the sax.utils escape
function to write properties with forbidden xml characters (<, &, ...)
* gazpacho/widget.py (Widget.__init__): propagate the interactive
flag to the pre and post create functions. I don't think we need it
for the fill_empty functions
* gazpacho/gladegtk.py: added interactive argument for a bunch of
pre_create and post_create functions
* gazpacho/command.py (create): added an 'interactive' argument so
we can create widgets from the tests without answering dialogs
2004-10-19 Lorenzo Gil Sanchez <lgs@sicem.biz>
* tests/test_gtkwindow.py: some refactoring to make the code easier
* tests/utils.py (init_gazpacho): added
don't use setup_gazpacho but do that stuff when importing utils.py
* gazpacho/projectwindow.py (ProjectWindow._set_project): remove the
(unused) first argument
2004-10-18 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/main.py (main): allow main to be called without arguments
* gazpacho/catalog.py (load_all): clear previous loaded classes
* gazpacho/widgetclass.py (WidgetClass.__init__): fixed error message
* gazpacho/palette.py (Palette.select_widget): added
* gazpacho/projectwindow.py (ProjectWindow.get_action): added
(ProjectWindow.get_current_project): added
* bin/gazpacho (currentdir): use an absolute path for the prefix
* tests/utils.py (setup_gazpacho): added to abstract some common
initialization code
* xml/gtkwindow.xml: disabled the type property since it is a construct
only property
* gazpacho/catalog.py (load_all): don't prepend 'xml' twice when
opening the catalogs. Should fix #114
2004-10-12 Johan Dahlin <johan@gnome.org>
* gazpacho/*.py: Fix pygtk imports
2004-10-12 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widgetclass.py (WidgetClass._list_properties): ignores
construct-only properties (jrb)
* gazpacho/projectview.py (ProjectView.__init__): fixes a shadow (jrb)
* xml/gtk-obsolete.xml: add FileSel (jrb)
* xml/gtk-dialogs.xml: use FileChooser instead of FileSel (jrb)
* bin/gazpacho (localmode): improve localmode (jrb)
* gazpacho/propertyclass.py: Johan explained me that 'import pygtk' is
only useful once (in the startup script) so I removed it here. Need to
be done in every gazpacho/*.py file
* gazpacho/catalog.py (load_all): allow catalogs to be optional and
don't scream it we can't find them (Johan)
* xml/glade-palette.xml: make gruppy-widgets.xml optional (Johan)
* gazpacho/projectwindow.py (ProjectWindow.open_project): renamed the
method _open to open_project so it is now public and can be used from
the main module
* gazpacho/propertyclass.py: fixed typo
* gazpacho/main.py: new file with command line args for Gazpacho and
much cleaner code estructure (Johan)
* bin/gazpacho: moved the main function to gazpacho/main.py (Johan)
* gazpacho/propertyclass.py: patch from Johan to optimize Gazpacho
startup by making 'id' not a property but a regular member.
2004-10-08 Johan Dahlin <johan@gnome.org>
* gazpacho/gladegtk.py: s/widget.Widget/widget/
2004-10-08 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/projectwindow.py (ProjectWindow._project_window_create):
commented out the calls to set the window icon as it seems to crash
with GTK+ 2.5.X
(ProjectWindow._about_cb): changed version number
2004-10-06 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/widgettree.py (WidgetTree._reset): create a emtpy
UIManager instead of initalizing it to None
* gazpacho/projectwindow.py (ProjectWindow.__init__): load the catalogs
here
* gazpacho/choice.py (list_new_from_spec, _enum_from_string): added
sanity checks to avoid init crashes
* bin/gazpacho (main): let the ProjectWindow to load the catalogs by
itself instead of loading them here
* tests/test_proxy.py: use refresh_gui from utils
* tests/utils.py: new file to put utility functions for all tests
2004-09-07 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/widgettree.py (WidgetTree._widget_iterator): added an
iterator to loop through the widgets
* gazpacho/loader/proxy.py: extend the magicconnect method to also
treat the actions. Add a property for the widgets iterator.
* README:
* bin/gazpacho:
* COPYING: changed license from GPL to LGPL
* gazpacho/loader/widgettree.py:
* gazpacho/uimanagereditor.py:
* gazpacho/action.py: put the GazpachoAction class in its own file
to drop some dependencies
* tests/test_proxy.py: first test for gazpacho
* gazpacho/loader/proxy.py: proxy class heavily inspired (aka copied)
from Kiwi Proxies
* gazpacho/loader/widgettree.py: make this class more flexible by
loading the glade file either from a file or a xml stream. Also
don't wait for the autoconnect call to set up the accel groups
2004-09-06 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/widgettree.py: removed the on_window1_destroy
example callback
* gazpacho/editor.py (EditorProperty._load_integer): set the enable
button with the value of the enabled flag
* gazpacho/property.py (Property.set_value): set the enabled flag
when setting a non default value for a property
* gazpacho/widget.py (Widget.write): write the visible property at the
end so other properties (default-width, default-height) work
* gazpacho/project.py (Project.open): better check to see if there
is an accelerator
* bin/gazpacho (prefix): prepend the prefix instead of append so
the local copy is searched first
* xml/gtktoolbar.xml: added ignore to the FillEmptyFunction
* xml/gtkmenubar.xml: fix typo
2004-08-04 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/widgettree.py: proper loading of Actions and also
adding the ui manager accelerator to the right window
* gazpacho/loader/tags.py (SIGNAL_HANDLER): new tag to store activate
signal handlers of Actions
* gazpacho/actioneditor.py (ActionEditor._on_accel_key_press): don't
use <control>+A but <control>A for accelerators
* gazpacho/uimanagereditor.py : initialize the properties of
GazpachoAction to None
(GazpachoAction.set_accelerator): added
* gazpacho/project.py (Project._write_action_group): fixed so all
GazpachoAction properties are saved
(Project.open): fixed so all GazpachoAction properties are loaded
* gazpacho/actioneditor.py (ActionEditor.__init__): added support for
editing tooltips
* gazpacho/editor.py (EditorProperty._load_enum)
(EditorProperty._changed_enum, EditorProperty._create_input_enum):
migrated OptionMenu to ComboBox
2004-08-03 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/widget.py (Widget.create_from_gtk_widget): make the value
transformation when setting a property from a gtk widget
* gazpacho/util.py (write_xml): stop smoking crack and end the xml tags
properly
* gazpacho/project.py (Project.open): check for the existence of the
ui manager and also fix a stupid bug in the loop that read the actions
* gazpacho/gladegtk.py (glade_gtk_menu_bar_post_create)
(glade_gtk_tool_bar_post_create, _add_element_to_ui_manager):
* xml/gtkmenubar.xml:
* xml/gtktoolbar.xml: added postcreate function
* gazpacho/projectwindow.py (ProjectWindow._save_cb): provides a
default filename and check if that file exists
(ProjectWindow._save_as_cb): idem
* gazpacho/util.py (write_xml): custom function to dump xml trees
* gazpacho/project.py (Project.save): use our own function to save
xml files so we get nicer output
* xml/gtkbutton.xml: deactivated the stock property since it is casuing
an exception
* gazpacho/project.py (Project.open): load the signals and check for
the existence of an uimanager in the widget tree
* gazpacho/widget.py (Widget.create_from_gtk_widget): load the signals
* gazpacho/signaleditor.py: use the new dictionary based signals
* gazpacho/widget.py: use the new dictionary based signals
* gazpacho/command.py (remove_signal):
(add_signal): use the new dictionary based signals
* gazpacho/project.py (Project.write): check if we really have an
ui manager before trying to save it
* gazpacho/loader/widgettree.py (WidgetTree.signal_autoconnect): added
signal_autoconnect and signal support in general
2004-08-02 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/uimanagereditor.py (UIManagerEditor._update_ui_manager):
* gazpacho/gladegtk.py (glade_gtk_menu_bar_edit): removed the 'ui'
section before copying the uimanager
* bin/gazpacho: removed the registry lookup since using the gladewin32
installer
* setup.py: changed the version number
* README: added a section about running Gazpacho
* gazpacho/uimanagereditor.py (UIManagerEditor._load_element): load
the action group for every element we load
* gazpacho/projectwindow.py (ProjectWindow._about_cb): changed the
version number
* gazpacho/project.py (Project.open): load the uimanager from the file
2004-07-30 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/loader/widgettree.py: support for UI Manager. Also loops
simplification with the use of the filter_nodes function
* gazpacho/loader/tags.py: added several tags for UI Manager support
* gazpacho/project.py (Project._write_action_group): support for saving
the UI Manager and its action groups
* gazpacho/uimanagereditor.py: change several things so we can set
the state with extra methods allowing to reuse the editor
* gazpacho/gladegtk.py (_uimanager_editor): create the ui manager
editor once and reuse it every time we edit a menubar or a toolbar
* gazpacho/uimanagereditor.py (ActionEditor.__init__): put the combo
in grid mode so it's easier to pick a stock icon
2004-07-29 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/uimanagereditor.py (UIManagerEditor._on_edited): fix the
"skippy" bug
* gazpacho/gladegtk.py (glade_gtk_menu_bar_edit): some trickery so we
don't loose our uimanager after destroying the dialog
* gazpacho/uimanagereditor.py : tons of changes and features added
2004-07-26 Lorenzo Gil Sanchez <lgs@sicem.biz>
* bin/gazpacho: don't need to set PYTHONPATH
* gazpacho/editor.py: when the property has an editor function create
a button that triggers that function, as the editor
* gazpacho/property.py (Property.set_value): handle the object types
* gazpacho/gladegtk.py (glade_gtk_menu_bar_edit): added
(glade_gtk_tool_bar_edit): added
* gazpacho/loader/tags.py: added a tag for EDITOR_FUNCTION
* gazpacho/propertyclass.py (PropertyClass._set_default_values): added
an editor function for the cases of properties which needs a special
editor widget
* gazpacho/project.py (Project.__init__): added a uimanager object with
its getter and setter methods
* gazpacho/projectwindow.py: make ProjectWindow a new style class so
we can have Python properties. Make the gtk window a property because
we needed when we open a dialog
* xml/gtkmenubar.xml: new property to have an ui manager editor button
* xml/gtktoolbar.xml: new property to have an ui manager editor button
* gazpacho/uimanagereditor.py : new file with three classes to
implement an UI Manager editor for toolbars and menubars
2004-07-21 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/editor.py (EditorProperty._load_flags)
(EditorProperty._flag_toggled, EditorProperty._show_flags_dialog):
thanks to Johan now we have flags introspection in pygtk so we can
support them in Gazpacho
(EditorProperty._show_flags_dialog): flags sorted as requested by Johan
* gazpacho/property.py (Property.set_value): include flags and enums
as supported types. Treat them like integers
* gazpacho/propertyclass.py: store the spec object in the PropertyClass
because we need it in the editor for instrospecting the flags
2004-07-20 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/editor.py (EditorProperty._changed_enum): import the command
module and get the value from the choice dictionary
(EditorProperty._load_enum): read the value from the dictionary
(EditorProperty._create_input_enum_item): read the name from the
dictionary
* gazpacho/signal.py (Signal.new_from_node): import fixed
* gazpacho/propertyclass.py: removed the _choice_list_new_from_spec
method and put it on choice.py
(PropertyClass.update_from_node): read the choices from the xml file
properly
* gazpacho/choice.py: don't use a class for a Choice but a dictionary.
Implement _enum_from_string, list_new_from_node and list_new_from_spec
now that we have Enum introspection support in PyGTK
* gazpacho/loader/widgettree.py: changed import from pyglade to
gazpacho (bug reported by enlavin)
* gazpacho/editor.py: eye candy fixes by Doug Quale. Also fixes in the
spinbuttons when displaying integers.
* gazpacho/widgetclass.py (WidgetClass._list_signals): order signal
list (patch by Doug Quale)
* gazpacho/projectwindow.py (ProjectWindow._about_cb): fixed version
number in about dialog as reported by enlavin
2004-07-19 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gazpacho/catalog.py (load_catalog): print the error so we know what
is happening
* gazpacho/projectview.py (ProjectView._button_press_cb): check if
get_path_at_pos is failing
* setup.py (f): we need to use raw strings for the path (Windows sucks)
* pyglade/editor.py (EditorTable.__init__): create the table_widget
with 1 row and 1 column by default to avoid a new gtk warning
* gazpacho.py: use the new imports
* pyglade/project.py: fixed a typo
* pyglade/command.py: moved the import projectwindow as pw to local
places to avoid import cycles
* setup.py: changed to reflect the package name changes and the path.py
changes.
* pyglade/widgetclass.py: use the new path variables
* pyglade/projectwindow.py:
* pyglade/palette.py:
* pyglade/catalog.py:
* pyglade/signaleditor.py: import pyglade.signal instead of gladesignal
* pyglade/loader/widgettree.py: don't use single level imports
* pyglade/util.py: don't use single level imports
* pyglade/property.py:
* pyglade/propertyclass.py:
* pyglade/projectview.py:
* pyglade/project.py:
* pyglade/popup.py:
* pyglade/placeholder.py:
* pyglade/parameter.py:
* pyglade/palette.py:
* pyglade/gladesignal.py:
* pyglade/gladegtk.py:
* pyglade/editor.py:
* pyglade/command.py:
* pyglade/choice.py:
* pyglade/catalog.py:
2004-07-14 Lorenzo Gil Sanchez <lgs@sicem.biz>
* src/placeholder.py (Placeholder.do_realize): there was a wrong tab
at self.window.set_user_data(self)
* src/widgetclass.py (WidgetClass.__init__): don't change sys.path and
do a proper __import__ instead
2004-07-13 Lorenzo Gil Sanchez <lgs@sicem.biz>
* setup.py: added license metadata and changed version number
* catalog.py: load the xml files from the xml directory, which
depends on the prefix choosen by the user
* palette.py: load the icons from the pixmap directory, which
depends on the prefix choosen by the user
* projectwindow.py: load the icons from the pixmap directory, which
depends on the prefix choosen by the user
* widgetclass.py: load the icons from the pixmap directory, which
depends on the prefix choosen by the user
2004-07-12 Lorenzo Gil Sanchez <lgs@sicem.biz>
* widget.py (Widget.create_from_gtk_widget): new function to load
widgets. It does basically the same that __init__ but with some
differences as the GtkWidget already exists. Also removed most of the
old functions to load the widgets in the pre-loader era
* property.py (Property.__init__): better value initialization: if the
widget has a non default value for this property don't override it
* gladegruppy.py (gruppy_form_post_create): use the real name of the
FormBody class, which is pretty ugly :(
* projectwindow.py (ProjectWindow._about_cb): fix the name of the about
image from gazpacho.jpg to gazpacho.png
* gladegtk.py: removed some prints
* widgetclass.py (WidgetClass.__init__): use the name returned by
gobject.type_name to index the class instead of the name we define in
the XML file
* project.py (Project.open): use the loader module to open a project
and make that method a staticmethod instead of a classmethod
* projectview.py (ProjectView._populate_model_real): fixed a type and
fixed a difficult bug about setting the parent iter only in a few cases
* loader/widgettree.py (WidgetTree._value_from_string): improved type
checking
(WidgetTree._build_child_widget): set a special data key when the child
is an internal widget
(WidgetTree._fill_from_node): set the name here instead of build_widget
so we get the name of internal children
2004-07-09 Lorenzo Gil Sanchez <lgs@sicem.biz>
* xml/gruform.xml: we need a get_internal_child function here
* xml/gruformbody.xml: simplified a little bit
* xml/gruppy-widgets.xml: added datablock and grid
* property.py: import tags from the 'loader' submodule
* gladegruppy.py: added lots of functions to handle forms and
datablocks
* placeholder.py (Placeholder.__init__): load the pixmap in a more
flexible way so we can subclass placeholder
* parameter.py: import tags from the 'loader' submodule
* catalog.py: import tags from the 'loader' submodule
* projectwindow.py: use Widget.get_from_gtk_widget instead of the old
function from util.py
* editor.py: import tags from the 'loader' submodule
* widget.py (Widget.get_from_gtk_widget): added this staticmethod
(Widget.get_parent): delegate this function to the util module
(Widget.replace): added a parent argument so we can handle situations
where old_widget is None
(Widget._get_glade_widgets): added aux method
* gladegtk.py (glade_gtk_container_replace_child): allow to replace
None for a new child. Changes in the use of
glade_widget_get_from_gtk_widget and the imports of placeholder
* command.py (CommandCreateDelete.__init__): extend this class so we
hold a reference to the parent of the widget we are creating
(CommandCreateDelete._create_execute): allows to create a widget even
if no placeholder has been selected (e.g. clicking on the Widget Tree)
* util.py: moved the glade_widget_get_from_gtk_widget function to the
Widget class.
(get_parent): modified so it can handle gwidgets that are children of
a non gwidget
(ask_for_number): moved this function from gladegtk.py to here so we
can reuse it
* propertyclass.py: import tags from the 'loader' submodule
* widgetclass.py: import tags from the 'loader' submodule
* project.py: changes because glade_widget_get_from_gtk_widget is not
in util anymore and tags is in the loader submodule
(Project.write): save the libraries needed by the widgets of the
project
* projectview.py (ProjectView.__init__): use the button-press-event
to add new widgets
(ProjectView._populate_model_real): load the children of non
GladeWidgets direct parents. Use Widget.get_from_gtk_widget instead
of importing it from util
(ProjectView._motion_notify_cb): set the cursor to the plus cursor if
we are adding a widget
(ProjectView._button_press_cb): use this callback to add a widget to
the clicked node or to select it depending on if we have a class
selected in the palette
(ProjectView._selection_changed_cb): we also need this old callback
to handle keyboard selection changes
* choice.py: import tag changed
2004-07-05 Lorenzo Gil Sanchez <lgs@sicem.biz>
* xml/gruppy-widgets.xml: add support to GruForm and GruFormBody
* gladegruppy.py (widget_prefix): add support to GruForm and
GruFormBody
* widget.py (Widget.get_parent): modified so we can handle widget
hierarchies where not every gtkwidget maps to a gwidget
* projectview.py (ProjectView._add_children): modified so we can handle
widget hierarchies where not every gtkwidget has a gwidget associated
2004-07-02 Lorenzo Gil Sanchez <lgs@sicem.biz>
* xml/gtkstatusbar.xml: setting ignore to the PostCreateFunction fix
statusbar bug reported by Inigo
* xml/gruppy-widgets.xml: added the Form
* gladegruppy.py: added the ignore function
* widget.py (Widget.__init__): extend the constructor to support
creation of internal widgets
* gladegtk.py (glade_gtk_dialog_post_create): create the internal
children
* projectview.py (ProjectView.add_item): check for the children of
the current widget to see if we need to add them.
* projectwindow.py (ProjectWindow._project_window_create): set the icon
file for the windows.
* tags.py: fixed typo in ChildPropertyApplies
* pixmaps/glade-3.png, pixmaps/gazpacho.jpg: removed
* pixmaps/gazpacho.png, pixmaps/gazpacho-icon.png: added
2004-07-01 Lorenzo Gil Sanchez <lgs@sicem.biz>
* catalog.py (load_all): don't crash if one catalog can not be loaded
* xml/glade-palette.xml: change the obsolte gtk+ widgets by the gruppy
widgets
* gladegtk.py (root_library): added to important variables:
root_library and widget_prefix
* widgetclass.py (WidgetClass.__init__): make the library loading more
generic by storing its name in the module of that library.
* projectwindow.py (ProjectWindow.refresh_undo_and_redo): implemented
(ProjectWindow._construct_menu_and_toolbar): put the undo and redo
actions in separate groups so we can set_sensitive() them.
2004-06-30 Lorenzo Gil Sanchez <lgs@sicem.biz>
* command.py: implemented the undo/redo logic
* projectwindow.py (ProjectWindow._undo_cb): implemented
(ProjectWindow._redo_cb): implemented
* editor.py: pep-8-ize all the file
* project.py (Project.__init__): properly initialize prev_redo_item.
Also added properties for undo_stack and prev_redo_item
* editor.py (Editor._load_packing_page): fix a couple of bugs
* README: more typos fixed
* projectview.py (ProjectView._key_press_cb): added
2004-06-28 Lorenzo Gil Sanchez <lgs@sicem.biz>
* property.py (Property.set_value): use ord() to convert the string
* widget.py (Widget._apply_properties): removed the try/except since
we were wrong not pygtk
* editor.py (EditorProperty._load_unichar): convert the value to a
string before putting it into the text entry
* projectwindow.py: lots of changes to put the main widgets all
together in the main window.
* projectview.py (ProjectView.__init__): hide the tree view headers
* xml/gtkcombobox.xml: added
* xml/gtk-base.xml: renamed GtkCombo to GtkComboBox and use an external
file to redefine some functions
* parameter.py (adjustment_new): take the default value into account
* gladegtk.py (glade_gtk_combo_box_pre_create): added
* propertyclass.py (PropertyClass.update_from_node): convert the
default value to its correct type
(PropertyClass._get_parameters_numeric): return [] and not None
* dependencies.py (download): improved the 'Downloading ...' message
by using \r to overwrite the current message
fixed the /bin/env to /usr/bin/env
(install_pygtk): add the path to the environment variables
* projectwindow.py (ProjectWindow._delete_cb): implemented
* widget.py (Widget._key_press): remove the widget if we press the
Delete key on a widget
* command.py (CommandCreateDelete._delete_execute): parent is not a
Widget attribute but fortunately we have get_parent()
* project.py (Project.delete_selection): implemented
* popup.py (delete_cb): implemented
2004-06-27 Lorenzo Gil Sanchez <lgs@sicem.biz>
* dependencies.py: utility script to build the dependencies
2004-06-25 Lorenzo Gil Sanchez <lgs@sicem.biz>
* widget.py (Widget.__init__): added a flag to not call the post
create and fill empty functions if we are creating the widget from a
XML node. Also changed the order of some sentences to avoid
dependency bugs between the properties
(Widget._apply_properties): implemented with some TODO items
(Widget._set_packing_properties): implemented
(Widget.write): only write the gtk properties, not the glade ones
(Widget._get_internal_child): implemented
(Widget._apply_property_from_node): added
(Widget._fill_from_node): added
(Widget._new_from_node): added
(Widget._new_child_from_node): added
(Widget.read): added
* pyglade.py (main): added a flag to run everything under the Python
debugger
* property.py (Property.set_value): comment the warning to get cleaner
output. Also don't call the set_property() in the set_value() method
but in the set() method. This way we don't initialize wrong values
when creating Properties.
(Property._set_property): avoid an error of pygtk about the
'invisible-char' of a GtkEntry
(Property.set): convert the value (with the set_value method) before
sending it to the widget
* gladegtk.py (glade_gtk_box_post_create): set the size properly
* command.py (CommandSetProperty.execute): set the property properly
* util.py: removed object_set_property
* propertyclass.py (PropertyClass.set_packing): added a setter
* gladesignal.py (Signal.new_from_node): added to deserialize signals
* widgetclass.py (WidgetClass._list_child_properties): remove the evil
try/except block since we want to know the exceptions that are bein
thrown
* project.py (Project.open): implemented with (_new_from_node)
* projectview.py (ProjectView._populate_model_real): only add the
widget if it h as a glade widget
* projectwindow.py (ProjectWindow._save_cb): fixed the call to
project.save
(ProjectWindow._open_cb): implemented (with _open)
* tags.py: added XML_TAG_PACKING and XML_TAG_INTERNAL_CHILD
2004-06-23 Lorenzo Gil Sanchez <lgs@sicem.biz>
* editor.py (EditorProperty._load_boolean): set the button state to
the value of the property
* property.py (Property.write): convert the value to string before
creating the text node
* widget.py (Widget._write_child): serialize the packing properties
(Widget.write): serialize the signals
* command.py (CommandCreateDelete._create_execute): always set the
visible property to true when creating a widget
* project.py (Project.save): actually writting to a file instead of
just dumping it to stdout
2004-06-22 Lorenzo Gil Sanchez <lgs@sicem.biz>
* choice.py: first support for choices but pygtk lacks some
functionality so far
* editor.py (EditorProperty._create_input): improve the error message
* property.py: changed the way we set the value of a property (fixing
several bugs in the way)
* gladegtk.py (glade_gtk_widget_set_tooltip): implemented
(glade_gtk_box_post_create): set the size with the new property style
* parameter.py (get_value): fixed a but accessing the value
(list_new_from_node): new function to load a list of parameters from an
xml node
* command.py (CommandSetProperty.execute): set the value with the new
property style
* propertyclass.py (PropertyClass.update_from_node): fixed some bugs
and added support for properties and choices (not finished). Also
added the utility function type2str
* widgetclass.py: added some useful debug messages
* tags.py: added a bunch of tags for the properties and choices
* widget.py (Widget.do_change_signal_handler): fixed several typos
* gladesignal.py: added. This file can't be name signal.py since there
is already a signal.py in the standard library
* widgetclass.py (WidgetClass._list_signals): fixed the signal creation
* widgetclasssignal.py : change the pass sentence for a more
meaningful one
* tags.py : added some tags for signals serialization
* widget.py (Widget.do_change_signal_handler): implemented the signal
adding/removing/changing stuff
* command.py (remove_signal): added the CommandAddRemoveSignal class
* signaleditor.py : implemented most of the signal handlers stuff
* editor.py (Editor._widget_name_changed): implemented
* projectview.py (ProjectView._find_iter): fixed a call to
self._model.iter_children()
* command.py : cleaned up the code and added a CommandSetName class
2004-06-21 Lorenzo Gil Sanchez <lgs@sicem.biz>
* projectview.py: implemented most of the stuff to have a functional
project list/tree view
* projectwindow.py: added widget tree. also pop-8-ize the file
* property.py (Property.write): implemented
* widget.py : implemented selection, popup menu and write methods
* propertyclass.py: removed the clone method
* widgetclass.py (WidgetClass._merge_properties): removed the calls to
PropertyClass.clone since we are using Python own shallow copy
* project.py (Project.save): 80% implemented
* popup.py: fixed widget_pop and implemented select_cb. Also pep-8-ize
all the file to make Johan glad
* tags.py: added some XML tags for saving
* projectwindow.py : save and save as implemented
* popup.py (select_cb): implemented
2004-06-18 Lorenzo Gil Sanchez <lgs@sicem.biz>
* util.py (queue_draw_nodes): draw nodes implemented and all the
internal functions needed for that. _can_draw_nodes is not finished
* placeholder.py (Placeholder.do_expose_event): call to
queue_draw_nodes
* gladegtk.py: added most of the functions. Not tested!!
(glade_gtk_table_set_n_common): forgot a comma
(glade_gtk_table_set_n_common): fixed some minor stupid mistakes
(glade_gtk_dialog_post_create): more stupid mistakes
2004-06-17 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gladegtk.py (glade_gtk_container_replace_child): handling the child
properties we fix the bug about adding a widget in the wrong
placeholder
* editor.py: added most of the changer and their connections in the
input makers
* property.py (Property.set_enabled): add a setter for enabled since
we use it from the Editor
* widgetclass.py (WidgetClass._list_properties): fixed bug that was
making properties goes to the wrong tab
2004-06-16 Lorenzo Gil Sanchez <lgs@sicem.biz>
* editor.py: added most of the loaders and the text changer
* property.py (Property._set_property): fixed a tiny bug that was
making me crazy. Remember: you need to differenciate between a gtk
widget and a (pyglade) widget. Also implemented the get_value accesor
* widget.py (Widget.__init__): moved the call to Gobject.__init__
* command.py: addded CommandSetProperty
* editor.py: only property loading and bug hunting left
* signaleditor.py: first steps to get a signal editor working
* property.py: inherit from object to get Python properties, added doc
and implemented the set method
* widget.py: added some error checking and most of the properties code
* gladegtk.py (glade_gtk_box_post_create): implemented, to set the
placeholders of a box. Also glade_gtk_box_get_size and *_set_size
* parameter.py: new class
* util.py (object_set_property): added
* propertyclass.py (PropertyClass._choice_list_new_from_spec): return
[] instead of None to fix a bug. Also added some accesors for
parameters, choices and packing
* tags.py: added more and more tags: FALSE, TRUE, YES, NO,
VISIBLE_LINES, ENUM_DATA_TAG, FLAGS_DATA_TAG, ...
2004-06-15 Lorenzo Gil Sanchez <lgs@sicem.biz>
* propertyclass.py: several bugs fixed
* widgetclass.py: several bugs fixed
* editor.py: first attempt to implement properties editing. So far the
general tab is filled with controls but several things are broken.
* pyglade.py: added two handy command flags to dump specs and glade
properties
* gladegtk.py : added a lot of stubs to avoid warnings
* util.py : added utility function xml_get_property_boolean and renamed
get_text_from_xml_node to xml_get_text_from_node. Also cleaned
has_nodes
* tags.py: added several tags
* projectwindow.py (ProjectWindow._quit_cb): commented the call to
confirm_close_project because it was being annoying
* util.py (has_nodes): fixed a bug that was making has_nodes work wrong
2004-06-14 Lorenzo Gil Sanchez <lgs@sicem.biz>
* gladegtk.py (_ask_for_number): added this function to ask for the
size of the boxes
* widget.py: fixed the typo with fill_emtpy_function, implemented the
important set_widget and get_parent methods, also added some event
handlers
* widgetclass.py: lots of changes: widget_class is a class field now,
and we actually use this cache, fixed a bug that was making
fill_empty_function to get lost on the way, implemented the merged
logic and added a dummy function _direct_children
* propertyclass.py (PropertyClass.__init__): changed the constructor
so we can create a propertyclass from another one (aka clone). Also
added a readonly property for 'is_modified'
* gladegtk.py: added several functions: ignore,
glade_gtk_container_replace_child and glade_gtk_container_fill_empty
* pyglade.py: use the project_window global from the projectwindow
module
* placeholder.py: moved the import pyglade to a local scope and
substitute it with import projectwindow
* command.py: moved the import projectwindow to a local scope to avoid
import cycles
(create): unselect the widget after creating it
* util.py (get_parent): changed the parameter name to improve code
readability
* project.py: changed the add_widget signal parameter from TYPE_POINTER
to TYPE_PYOBJECT
* tags.py (EVENT_HANDLER_CONNECTED): added
* projectwindow.py (ProjectWindow.get_palette): added a readonly
property for the palette. Also put the global project_window here
instead of in pyglade.py
* pyglade.py: added a check for PyGTK 2.3.93
* editor.py : added some dummy methods to avoid exceptions
* util.py : new functions: has_nodes, add_nodes and remove_nodes
* projectwindow.py : implement some more methods
* pyglade.py (project_window): put project_window as a global
2004-06-13 Lorenzo Gil Sanchez <lgs@sicem.biz>
* project.py: implement some more methods
* property.py (Property.__init__): removed the check for TYPE_OBJECT
since we don't support those properties
* widget.py (Widget.__init__): changed the order of the sentences
* cursor.py (set): fixed the number of arguments
* widgetclass.py : added some checks because we don't support
TYPE_OBJECT properties
* popup.py: added popup menues utility functions
* placeholder.py : class implemented
|