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
|
diff -Naur ../adabindx-0.7.2.orig/Local.conf ./Local.conf
--- ../adabindx-0.7.2.orig/Local.conf Sat Feb 9 14:48:55 2002
+++ ./Local.conf Thu Dec 26 13:36:40 2002
@@ -43,7 +43,7 @@
# Ada compiler (for gnat this is gcc, sometimes also called gnatgcc)
#ADA_COMP = gcc
-ADA_COMP = gnatgcc
+ADA_COMP = adagcc
# compilation flags (I like optimizing)
ADA_CFLAGS = -c -gnatnv -O3 -mpentium -malign-loops=2 -malign-jumps=2 -malign-functions=2
# special make command for Ada
diff -Naur ../adabindx-0.7.2.orig/Makefile ./Makefile
--- ../adabindx-0.7.2.orig/Makefile Sun Aug 26 14:46:05 2001
+++ ./Makefile Thu Dec 26 13:37:07 2002
@@ -21,6 +21,9 @@
(cd $$i; make all); \
done
+install:
+ make -C lib install
+
config: Local.conf utils/preprocess utils/islittleend
@cd lib; \
if test -f ../config ; \
diff -Naur ../adabindx-0.7.2.orig/examples/actions/Makefile ./examples/actions/Makefile
--- ../adabindx-0.7.2.orig/examples/actions/Makefile Mon Oct 6 23:26:35 1997
+++ ./examples/actions/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: actions
actions: actions.adb
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/clock/Makefile ./examples/clock/Makefile
--- ../adabindx-0.7.2.orig/examples/clock/Makefile Mon Oct 6 23:27:00 1997
+++ ./examples/clock/Makefile Thu Dec 26 13:36:40 2002
@@ -12,7 +12,7 @@
all: clock
clock: clock.adb clock_global.ads clock_global.adb fallback.ads
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(ADABINDX_LIBS)
fallback.ads: AdaClock.ad
../../utils/makefallb AdaClock.ad > $@
diff -Naur ../adabindx-0.7.2.orig/examples/dig_clock/Makefile ./examples/dig_clock/Makefile
--- ../adabindx-0.7.2.orig/examples/dig_clock/Makefile Sat Mar 2 13:49:14 2002
+++ ./examples/dig_clock/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: dig_clock
dig_clock: dig_clock.adb dig_clock_global.adb dig_clock_global.ads
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(XPM_LIB)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(XPM_LIB) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/display_info/Makefile ./examples/display_info/Makefile
--- ../adabindx-0.7.2.orig/examples/display_info/Makefile Mon Oct 6 23:27:26 1997
+++ ./examples/display_info/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: display_info
display_info: display_info.adb bubble_sort.adb
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(X_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(X_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/hello_world/Makefile ./examples/hello_world/Makefile
--- ../adabindx-0.7.2.orig/examples/hello_world/Makefile Fri Apr 3 23:20:32 1998
+++ ./examples/hello_world/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: hello_world
hello_world: hello_world.adb hello_world_global.ads hello_world_global.adb earth.ads
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(XMU_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(XMU_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/i18n/Makefile ./examples/i18n/Makefile
--- ../adabindx-0.7.2.orig/examples/i18n/Makefile Sun Feb 1 17:57:07 1998
+++ ./examples/i18n/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: i18n
i18n: i18n.adb
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/image/Makefile ./examples/image/Makefile
--- ../adabindx-0.7.2.orig/examples/image/Makefile Mon Oct 6 23:27:56 1997
+++ ./examples/image/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: image
image: common.ads image.adb image_global.adb image_global.ads motif_graphics.adb motif_graphics.ads
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/mandel/Makefile ./examples/mandel/Makefile
--- ../adabindx-0.7.2.orig/examples/mandel/Makefile Sun Feb 3 18:05:55 2002
+++ ./examples/mandel/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: mandel
mandel: mandel.adb mandel_global.ads mandel_global.adb fallback.ads
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/rotate_arrow/Makefile ./examples/rotate_arrow/Makefile
--- ../adabindx-0.7.2.orig/examples/rotate_arrow/Makefile Mon Oct 6 23:28:59 1997
+++ ./examples/rotate_arrow/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: rotate_arrow
rotate_arrow: rotate_arrow.adb
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/show_extensions/Makefile ./examples/show_extensions/Makefile
--- ../adabindx-0.7.2.orig/examples/show_extensions/Makefile Sat Feb 9 14:11:01 2002
+++ ./examples/show_extensions/Makefile Thu Dec 26 13:36:40 2002
@@ -12,7 +12,7 @@
all: show_extensions
show_extensions: show_extensions.adb
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I../generic -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XT_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I../generic -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XT_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/show_hosts/Makefile ./examples/show_hosts/Makefile
--- ../adabindx-0.7.2.orig/examples/show_hosts/Makefile Sat Oct 10 18:46:06 1998
+++ ./examples/show_hosts/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
SRCS = show_hosts.adb
all:
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $(SRCS) -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(X_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $(SRCS) -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(X_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/show_printers/Makefile ./examples/show_printers/Makefile
--- ../adabindx-0.7.2.orig/examples/show_printers/Makefile Sat Mar 2 14:14:39 2002
+++ ./examples/show_printers/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
SRCS = show_printers.adb
all: show_printers.adb
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $(SRCS) -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XP_LIB) $(XEXT_LIB) $(X_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $(SRCS) -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XP_LIB) $(XEXT_LIB) $(X_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/show_screen_saver/Makefile ./examples/show_screen_saver/Makefile
--- ../adabindx-0.7.2.orig/examples/show_screen_saver/Makefile Mon Oct 6 23:29:51 1997
+++ ./examples/show_screen_saver/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: show_screen_saver
show_screen_saver: show_screen_saver.adb
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XT_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XT_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/testpath/Makefile ./examples/testpath/Makefile
--- ../adabindx-0.7.2.orig/examples/testpath/Makefile Sun Feb 8 19:56:57 1998
+++ ./examples/testpath/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: testpath
testpath: testpath.adb
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XT_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XT_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/xau_test/Makefile ./examples/xau_test/Makefile
--- ../adabindx-0.7.2.orig/examples/xau_test/Makefile Sun Jan 10 19:52:00 1999
+++ ./examples/xau_test/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
SRCS = xau_test.adb
all:
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $(SRCS) -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XAU_LIBS) $(X_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $(SRCS) -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XAU_LIBS) $(X_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/xlib_rubik/Makefile ./examples/xlib_rubik/Makefile
--- ../adabindx-0.7.2.orig/examples/xlib_rubik/Makefile Mon Oct 6 23:30:05 1997
+++ ./examples/xlib_rubik/Makefile Thu Dec 26 13:36:40 2002
@@ -29,7 +29,7 @@
all: xlib_rubik
xlib_rubik: $(SOURCES)
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(X_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(X_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/xmmore/Makefile ./examples/xmmore/Makefile
--- ../adabindx-0.7.2.orig/examples/xmmore/Makefile Sun Jan 20 21:31:19 2002
+++ ./examples/xmmore/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: xmmore
xmmore: fallback.ads xmmore.adb xmmore_global.adb xmmore_global.ads
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XM_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/examples/xpminfo/Makefile ./examples/xpminfo/Makefile
--- ../adabindx-0.7.2.orig/examples/xpminfo/Makefile Mon Oct 6 23:30:33 1997
+++ ./examples/xpminfo/Makefile Thu Dec 26 13:36:40 2002
@@ -11,7 +11,7 @@
all: xpminfo
xpminfo: xpminfo.adb
- $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XPM_LIB) $(XT_LIBS)
+ $(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../../lib -I.. $@ -largs $(ADA_LINK_FLAGS) $(XLIB_DIR) $(XPM_LIB) $(XT_LIBS) $(ADABINDX_LIBS)
clean:
$(RM) *.ali *.o
diff -Naur ../adabindx-0.7.2.orig/lib/Makefile ./lib/Makefile
--- ../adabindx-0.7.2.orig/lib/Makefile Sun Aug 26 17:26:39 2001
+++ ./lib/Makefile Thu Dec 26 13:37:20 2002
@@ -67,6 +67,10 @@
# source solely for Motif2.0
XM20_BIND_SRC = xm_widgets-primitive-cs_text.adb
+# source for Motif2.2
+XM22_BIND_SRC = xm_widgets-manager-bulletin_board-column.adb \
+ xm_widgets-primitive-text-data_field.adb
+
XPM_BIND_SRC = xpm_lib.adb
X63_BIND_SRC = x_lib-extensions-print.adb
@@ -108,7 +112,7 @@
do \
$(ADA_MAKE) -c $(ADA_MAKE_FLAGS) $$i ;\
done
- @if test -n "$(IS_MOTIF21)" -o -n "$(IS_MOTIF20)" ; \
+ @if test -n "$(IS_OPENMOTIF22)" -o -n "$(IS_MOTIF21)" -o -n "$(IS_MOTIF20)" ; \
then \
for i in $(XM2X_BIND_SRC); \
do \
@@ -120,7 +124,14 @@
do \
$(ADA_MAKE) -c $(ADA_MAKE_FLAGS) $$i ;\
done; \
- fi \
+ fi; \
+ if test -n "$(IS_OPENMOTIF22)" ; \
+ then \
+ for i in $(XM22_BIND_SRC); \
+ do \
+ $(ADA_MAKE) -c $(ADA_MAKE_FLAGS) $$i ;\
+ done; \
+ fi; \
fi
@if test -n "$(HAS_XPM)" ; \
then \
@@ -129,12 +140,21 @@
$(ADA_MAKE) -c $(ADA_MAKE_FLAGS) $$i ;\
done \
fi
+ ar -r libadabindx.a *.o
i-cwstri.o: i-cwstri.ads i-cwstri.adb
$(ADA_COMP) $(ADA_CFLAGS) -gnatg i-cwstri.adb
i-csstli.o: i-csstli.ads i-csstli.adb
$(ADA_COMP) $(ADA_CFLAGS) -gnatg i-csstli.adb
+
+install: ../lib
+ rm -rf $(PREFIX)/lib/adabindx
+ rm -f $(PREFIX)/lib/libadabindx.a
+ mkdir $(PREFIX)/lib/adabindx
+ cp *.ad[sb] $(PREFIX)/lib/adabindx
+ cp libadabindx.a $(PREFIX)/lib
+ cp *.ali $(PREFIX)/lib/adabindx
clean:
diff -Naur ../adabindx-0.7.2.orig/lib/x_toolkit.ads ./lib/x_toolkit.ads
--- ../adabindx-0.7.2.orig/lib/x_toolkit.ads Sat Mar 2 12:17:16 2002
+++ ./lib/x_toolkit.ads Thu Dec 26 13:36:40 2002
@@ -1446,10 +1446,34 @@
Name : in Xt_N_Resource_String;
Value : in Xt_Accelerators);
+
+ ---------------------------------------------------------------------------
+ --| <Subprogram>
+ --| <Unit> Append_Get
+ --| <Purpose>
+ --| <Exceptions>
+ ---------------------------------------------------------------------------
+ procedure Append_Get (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Value : out Xt_Accelerators);
+ pragma Convention (C, Append_Get);
+
+
procedure Append_Set (List : in out Arg_List;
Name : in Xt_N_Resource_String;
Value : in Xt_Translations);
+
+ ---------------------------------------------------------------------------
+ --| <Subprogram>
+ --| <Unit> Append_Get
+ --| <Purpose>
+ --| <Exceptions>
+ ---------------------------------------------------------------------------
+ procedure Append_Get (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Value : out Xt_Translations);
+ pragma Convention (C, Append_Get);
function Xt_Parse_Translation_Table (Table : in String) return Xt_Translations;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_utilities-form.adb ./lib/xm_utilities-form.adb
--- ../adabindx-0.7.2.orig/lib/xm_utilities-form.adb Thu Jan 1 01:00:00 1970
+++ ./lib/xm_utilities-form.adb Thu Dec 26 13:36:40 2002
@@ -0,0 +1,69 @@
+-- 2002-10-07
+with Resource_Strings; use Resource_Strings;
+with X_Toolkit; use X_Toolkit;
+with Xm_Widgets.Manager.Bulletin_Board.Form;
+use Xm_Widgets.Manager.Bulletin_Board.Form;
+
+
+package body Xm_Utilities.Form is
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Set
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Append_Set (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Attachment : in Attachment_Type;
+ W : in Widget) is
+ begin
+ if Attachment /= Attach_Widget
+ and Attachment /= Attach_Opposite_Widget
+ then
+ raise Use_Error;
+ end if;
+
+ if Name = Xm_N_Top_Attachment then
+ Append_Set (List, Xm_N_Top_Widget, W);
+ elsif Name = Xm_N_Bottom_Attachment then
+ Append_Set (List, Xm_N_Bottom_Widget, W);
+ elsif Name = Xm_N_Left_Attachment then
+ Append_Set (List, Xm_N_Left_Widget, W);
+ elsif Name = Xm_N_Right_Attachment then
+ Append_Set (List, Xm_N_Right_Widget, W);
+ else
+ raise Use_Error;
+ end if;
+ Append_Set (List, Name, Attachment);
+ end Append_Set;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Set
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Append_Set (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Attachment : in Attachment_Type;
+ Position : in Integer) is
+ begin
+ if Attachment /= Attach_Position then
+ raise Use_Error;
+ end if;
+
+ if Name = Xm_N_Top_Attachment then
+ Append_Set (List, Xm_N_Top_Position, Position);
+ elsif Name = Xm_N_Bottom_Attachment then
+ Append_Set (List, Xm_N_Bottom_Position, Position);
+ elsif Name = Xm_N_Left_Attachment then
+ Append_Set (List, Xm_N_Left_Position, Position);
+ elsif Name = Xm_N_Right_Attachment then
+ Append_Set (List, Xm_N_Right_Position, Position);
+ else
+ raise Use_Error;
+ end if;
+ Append_Set (List, Name, Attachment);
+ end Append_Set;
+
+end Xm_Utilities.Form;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_utilities-form.ads ./lib/xm_utilities-form.ads
--- ../adabindx-0.7.2.orig/lib/xm_utilities-form.ads Thu Jan 1 01:00:00 1970
+++ ./lib/xm_utilities-form.ads Thu Dec 26 13:36:40 2002
@@ -0,0 +1,34 @@
+-- 2002-10-07
+with X_Toolkit;
+with Xm_Widgets.Manager.Bulletin_Board.Form;
+
+
+package Xm_Utilities.Form is
+
+ package Xm_Form renames Xm_Widgets.Manager.Bulletin_Board.Form;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Set
+ --! <Purpose>
+ --! <Exceptions>
+ ---------------------------------------------------------------------------
+ procedure Append_Set (List : in out X_Toolkit.Arg_List;
+ Name : in X_Toolkit.Xt_N_Resource_String;
+ Attachment : in Xm_Form.Attachment_Type;
+ W : in X_Toolkit.Widget);
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Set
+ --! <Purpose>
+ --! <Exceptions>
+ ---------------------------------------------------------------------------
+ procedure Append_Set (List : in out X_Toolkit.Arg_List;
+ Name : in X_Toolkit.Xt_N_Resource_String;
+ Attachment : in Xm_Form.Attachment_Type;
+ Position : in Integer);
+
+end Xm_Utilities.Form;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_utilities-list.adb ./lib/xm_utilities-list.adb
--- ../adabindx-0.7.2.orig/lib/xm_utilities-list.adb Thu Jan 1 01:00:00 1970
+++ ./lib/xm_utilities-list.adb Thu Dec 26 13:36:40 2002
@@ -0,0 +1,49 @@
+-- 2002-10-24
+with X_Toolkit; use X_Toolkit;
+with Xm_Widgets; use Xm_Widgets;
+with Xm_Widgets.Primitive.List; use Xm_Widgets.Primitive.List;
+
+
+package body Xm_Utilities.List is
+
+
+ procedure Format_List (Widgets : in Widget_List_Type;
+ String_Table : in Xm_String_Table) is
+ Argl : Arg_List;
+ Tab_List : Xm_Tab_List;
+ Render_Table : Xm_Render_Table;
+ Rendition_List : Xm_Rendition_Array (1 .. 1);
+ begin
+ Tab_List :=
+ Xm_String_Table_Propose_Tablist
+ (String_Table, Widgets (Widgets'First), Float (6.0), Relative);
+
+ Argl := Null_Arg_List;
+ Append_Get (Argl, Xm_N_Render_Table, Render_Table);
+ Xt_Get_Values (Widgets (Widgets'First), Argl);
+
+ Rendition_List (1) :=
+ Xm_Render_Table_Get_Rendition (Render_Table, Motif_Default_Locale);
+
+ Argl := Null_Arg_List;
+ Append_Set (Argl, Xm_N_Tab_List, Tab_List);
+ Xm_Rendition_Update (Rendition_List (1), Argl);
+
+ Render_Table :=
+ Xm_Render_Table_Add_Renditions
+ (Xm_Render_Table_Copy (Render_Table, Null_Xm_String_Tag_Array),
+ Rendition_List, Merge_Replace);
+
+ Argl := Null_Arg_List;
+ Append_Set (Argl, Xm_N_Render_Table, Render_Table);
+ for I in Widgets'Range loop
+ Xt_Set_Values (Widgets (I), Argl);
+ end loop;
+
+ Xm_Render_Table_Free (Render_Table);
+ Xm_Rendition_Free (Rendition_List (1));
+ Xm_Tab_List_Free (Tab_List);
+ end Format_List;
+
+
+end Xm_Utilities.List;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_utilities-list.ads ./lib/xm_utilities-list.ads
--- ../adabindx-0.7.2.orig/lib/xm_utilities-list.ads Thu Jan 1 01:00:00 1970
+++ ./lib/xm_utilities-list.ads Thu Dec 26 13:36:40 2002
@@ -0,0 +1,12 @@
+-- 2002-10-24
+with X_Toolkit;
+with Xm_Widgets;
+
+package Xm_Utilities.List is
+
+
+ procedure Format_List (Widgets : in X_Toolkit.Widget_List_Type;
+ String_Table : in Xm_Widgets.Xm_String_Table);
+
+
+end Xm_Utilities.List;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_utilities-protocols.adb ./lib/xm_utilities-protocols.adb
--- ../adabindx-0.7.2.orig/lib/xm_utilities-protocols.adb Thu Jan 1 01:00:00 1970
+++ ./lib/xm_utilities-protocols.adb Thu Dec 26 13:36:40 2002
@@ -0,0 +1,27 @@
+-- 2002-10-05
+with X_Toolkit; use X_Toolkit;
+with Xm_Widgets.Atom_Manager; use Xm_Widgets.Atom_Manager;
+with Xm_Widgets.Protocols; use Xm_Widgets.Protocols;
+
+
+package body Xm_Utilities.Protocols is
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Add_WM_Delete_Window_Callback
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Add_WM_Delete_Window_Callback
+ (Shell : in Widget;
+ Callback : in Xt_Callback_Proc;
+ Closure : in Xt_Pointer := Null_Xt_Pointer) is
+ begin
+ Xm_Add_WM_Protocol_Callback
+ (Shell,
+ Xm_Intern_Atom (Xt_Display_Of_Object (Shell),
+ "WM_DELETE_WINDOW", True),
+ Callback,
+ Closure);
+ end Add_WM_Delete_Window_Callback;
+
+end Xm_Utilities.Protocols;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_utilities-protocols.ads ./lib/xm_utilities-protocols.ads
--- ../adabindx-0.7.2.orig/lib/xm_utilities-protocols.ads Thu Jan 1 01:00:00 1970
+++ ./lib/xm_utilities-protocols.ads Thu Dec 26 13:36:40 2002
@@ -0,0 +1,18 @@
+-- 2002-10-05
+with X_Toolkit;
+
+
+package Xm_Utilities.Protocols is
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Add_WM_Delete_Window_Callback
+ --! <Purpose>
+ --! <Exceptions>
+ ---------------------------------------------------------------------------
+ procedure Add_WM_Delete_Window_Callback
+ (Shell : in X_Toolkit.Widget;
+ Callback : in X_Toolkit.Xt_Callback_Proc;
+ Closure : in X_Toolkit.Xt_Pointer := X_Toolkit.Null_Xt_Pointer);
+
+end Xm_Utilities.Protocols;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_utilities-strings.ads ./lib/xm_utilities-strings.ads
--- ../adabindx-0.7.2.orig/lib/xm_utilities-strings.ads Thu Jan 1 01:00:00 1970
+++ ./lib/xm_utilities-strings.ads Thu Dec 26 13:36:40 2002
@@ -0,0 +1,46 @@
+-- 2002-10-19
+with Xm_Widgets;
+
+
+package Xm_Utilities.Xm_Strings is
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append
+ --! <Purpose>
+ --! <Exceptions>
+ ---------------------------------------------------------------------------
+ procedure Append (Source : in out Xm_Widgets.Xm_String;
+ New_Item : in String);
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append
+ --! <Purpose>
+ --! <Exceptions>
+ ---------------------------------------------------------------------------
+ procedure Append (Source : in out Xm_Widgets.Xm_String;
+ New_Item : in Wide_String);
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Separator
+ --! <Purpose>
+ --! <Exceptions>
+ ---------------------------------------------------------------------------
+ procedure Append_Separator (Source : in out Xm_Widgets.Xm_String);
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Tab
+ --! <Purpose>
+ --! <Exceptions>
+ ---------------------------------------------------------------------------
+ procedure Append_Tab (Source : in out Xm_Widgets.Xm_String);
+
+
+end Xm_Utilities.Xm_Strings;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_utilities-xm_strings.adb ./lib/xm_utilities-xm_strings.adb
--- ../adabindx-0.7.2.orig/lib/xm_utilities-xm_strings.adb Thu Jan 1 01:00:00 1970
+++ ./lib/xm_utilities-xm_strings.adb Thu Dec 26 13:36:40 2002
@@ -0,0 +1,80 @@
+-- 2002-10-19
+with X_Toolkit; use X_Toolkit;
+with Xm_Widgets; use Xm_Widgets;
+
+
+package body Xm_Utilities.Xm_Strings is
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Append (Source : in out Xm_String;
+ New_Item : in String) is
+ Tmp : Xm_String;
+ begin
+ Tmp := Xm_String_Generate (New_Item);
+ if Source = Null_Xm_String then
+ Source := Tmp;
+ else
+ Source := Xm_String_Concat_And_Free (Source, Tmp);
+ end if;
+ end Append;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Append (Source : in out Xm_String;
+ New_Item : in Wide_String) is
+ Tmp : Xm_String;
+ begin
+ Tmp := Xm_String_Generate (New_Item);
+ if Source = Null_Xm_String then
+ Source := Tmp;
+ else
+ Source := Xm_String_Concat_And_Free (Source, Tmp);
+ end if;
+ end Append;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Separator
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Append_Separator (Source : in out Xm_String) is
+ Tmp : Xm_String;
+ begin
+ Tmp :=
+ Xm_String_Component_Create (Component_Separator, 0, Null_Xt_Pointer);
+ if Source = Null_Xm_String then
+ Source := Tmp;
+ else
+ Source := Xm_String_Concat_And_Free (Source, Tmp);
+ end if;
+ end Append_Separator;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Tab
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Append_Tab (Source : in out Xm_String) is
+ Tmp : Xm_String;
+ begin
+ Tmp := Xm_String_Component_Create (Component_Tab, 0, Null_Xt_Pointer);
+ if Source = Null_Xm_String then
+ Source := Tmp;
+ else
+ Source := Xm_String_Concat_And_Free (Source, Tmp);
+ end if;
+ end Append_Tab;
+
+
+end Xm_Utilities.Xm_Strings;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_utilities.ads ./lib/xm_utilities.ads
--- ../adabindx-0.7.2.orig/lib/xm_utilities.ads Thu Jan 1 01:00:00 1970
+++ ./lib/xm_utilities.ads Thu Dec 26 13:36:40 2002
@@ -0,0 +1,9 @@
+-- 2002-10-07
+
+package Xm_Utilities is
+
+ pragma Pure (Xm_Utilities);
+
+ Use_Error : exception;
+
+end Xm_Utilities;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-display.adb ./lib/xm_widgets-display.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-display.adb Sat Mar 2 12:17:14 2002
+++ ./lib/xm_widgets-display.adb Thu Dec 26 13:36:40 2002
@@ -43,7 +43,7 @@
with Ada.Unchecked_Conversion;
package body Xm_Widgets.Display is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Callback_Struct (Pointer : in Xt_Pointer)
return Xm_Drag_Start_Callback_Struct_Access is
function To_CS is
@@ -94,7 +94,7 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Drag_Protocol_Style_Type, Interfaces.C.unsigned_char);
@@ -121,7 +121,7 @@
pragma Inline (Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Enable_Btn1_Transfer_Type, Interfaces.C.unsigned_char);
@@ -172,6 +172,6 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Display;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-display.ads ./lib/xm_widgets-display.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-display.ads Sat Mar 2 12:17:14 2002
+++ ./lib/xm_widgets-display.ads Thu Dec 26 13:36:40 2002
@@ -44,7 +44,7 @@
package Xm_Widgets.Display is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
type Xm_Drag_Start_Callback_Struct is record
Reason : Callback_Reason;
Event : X_Lib.X_Event_Pointer;
@@ -80,7 +80,7 @@
function To_Callback_Struct (Pointer : in Xt_Pointer)
return Xm_Display_Callback_Struct_Access;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
@@ -95,7 +95,7 @@
--
-- resources
--
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Default_Button_Emphasis : constant Xt_N_Resource_String;
type Default_Button_Emphasis_Type is
@@ -110,7 +110,7 @@
Value : out Default_Button_Emphasis_Type);
pragma Convention (C, Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Default_Virtual_Bindings : constant Xt_N_Resource_String;
Xm_N_Drag_Initiator_Protocol_Style : constant Xt_N_Resource_String;
@@ -131,7 +131,7 @@
Value : out Drag_Protocol_Style_Type);
pragma Convention (C, Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Drag_Start_Callback : constant Xt_N_Resource_String;
Xm_N_Enable_Btn1_Transfer : constant Xt_N_Resource_String;
@@ -170,16 +170,16 @@
Xm_N_No_Font_Callback : constant Xt_N_Resource_String;
Xm_N_No_Rendition_Callback : constant Xt_N_Resource_String;
Xm_N_User_Data : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
private
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Default_Button_Emphasis_Type use
(External_Highlight => 0, Internal_Highlight => 1);
for Default_Button_Emphasis_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
for Drag_Protocol_Style_Type use
(None => 0, Drop_Only => 1,
@@ -188,30 +188,30 @@
Prefer_Receiver => 6);
for Drag_Protocol_Style_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Enable_Btn1_Transfer_Type use
(Off => 0, Button2_Adjust => 1, Button2_Transfer => 2);
for Enable_Btn1_Transfer_Type'Size use Interfaces.C.unsigned_char'Size;
for Enable_Warp_Type use (On => 0, Off => 1);
for Enable_Warp_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
pragma Import (C, Xm_Get_Xm_Display, "XmGetXmDisplay");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Default_Button_Emphasis : constant Xt_N_Resource_String :=
To_Resource_String ("defaultButtonEmphasis");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Default_Virtual_Bindings : constant Xt_N_Resource_String :=
To_Resource_String ("defaultVirtualBindings");
Xm_N_Drag_Initiator_Protocol_Style : constant Xt_N_Resource_String :=
To_Resource_String ("dragInitiatorProtocolStyle");
Xm_N_Drag_Receiver_Protocol_Style : constant Xt_N_Resource_String :=
To_Resource_String ("dragReceiverProtocolStyle");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Drag_Start_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("dragStartCallback");
Xm_N_Enable_Btn1_Transfer : constant Xt_N_Resource_String :=
@@ -238,6 +238,6 @@
To_Resource_String ("noRenditionCallback");
Xm_N_User_Data : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_User_Data;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Display;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-bulletin_board-column.adb ./lib/xm_widgets-manager-bulletin_board-column.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-bulletin_board-column.adb Thu Jan 1 01:00:00 1970
+++ ./lib/xm_widgets-manager-bulletin_board-column.adb Thu Dec 26 13:36:40 2002
@@ -0,0 +1,143 @@
+-------------------------------------------------------------------------------
+-- --
+-- Ada Interface to the X Window System and Motif(tm)/Lesstif --
+-- Copyright (c) 1996-2002 Hans-Frieder Vogt --
+-- This file also copyright (c) 2002 Vadim Godunko --
+-- --
+-- Adabindx is free software; you can redistribute it and/or modify it --
+-- under the terms of the GNU General Public License as published by the --
+-- Free Software Foundation; either version 2 of the License, or (at your --
+-- option) any later version. --
+-- --
+-- This program is distributed in the hope that it will be useful, but --
+-- WITHOUT ANY WARRANTY; without even the implied warranty of --
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
+-- See the GNU General Public License for more details. --
+-- --
+-- You should have received a copy of the GNU General Public License --
+-- along with this program; if not, write to the --
+-- Free Software Foundation, Inc., --
+-- 59 Temple Place - Suite 330, --
+-- Boston, MA 02111-1307, USA. --
+-- --
+-- As a special exception, if other files instantiate generics from this --
+-- unit, or you link this unit with other files to produce an executable, --
+-- this unit does not by itself cause the resulting executable to be --
+-- covered by the GNU General Public License. This exception does not --
+-- however invalidate any other reasons why the executable file might be --
+-- covered by the GNU General Public License. --
+-- --
+-- X Window System is copyrighted by the X Consortium --
+-- Motif(tm) is copyrighted by the Open Software Foundation, Inc. --
+-- and by The Open Group --
+-- --
+-- --
+-------------------------------------------------------------------------------
+
+-------------------------------------------------------------------------------
+--
+-- HISTORY:
+-- 2002-10-20 Vadim Godunko: first definition of this file
+--
+-------------------------------------------------------------------------------
+with Ada.Unchecked_Conversion;
+
+with X_Toolkit.Internal;
+
+
+package body Xm_Widgets.Manager.Bulletin_Board.Column is
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Get
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Append_Get (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Value : out Distribution) is
+ begin
+ Append_Set (List, Name, Value'Address);
+ end Append_Get;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Get
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Append_Get (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Value : out Fill_Style) is
+ begin
+ Append_Set (List, Name, Value'Address);
+ end Append_Get;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Set
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Append_Set (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Value : in Distribution) is
+ function To_Integer is
+ new Ada.Unchecked_Conversion (Distribution,
+ Interfaces.C.unsigned_char);
+ begin
+ Append_Set (List, Name, To_Integer (Value));
+ end Append_Set;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Append_Set
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Append_Set (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Value : in Fill_Style) is
+ function To_Integer is
+ new Ada.Unchecked_Conversion (Fill_Style,
+ Interfaces.C.unsigned_char);
+ begin
+ Append_Set (List, Name, To_Integer (Value));
+ end Append_Set;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Create_Column
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ function Xm_Create_Column (Parent : in Widget;
+ Name : in String;
+ Arglist : in Arg_List := Null_Arg_List)
+ return Widget
+ is
+ function XmCreateColumn (Parent : in Widget;
+ Name : in Interfaces.C.char_array;
+ Args : in X_Toolkit.Internal.Arg_Rec_Access;
+ Count : in Cardinal)
+ return Widget;
+ pragma Import (C, XmCreateColumn, "XmCreateColumn");
+ begin
+ return XmCreateColumn (Parent, Interfaces.C.To_C (Name),
+ X_Toolkit.Internal.Hook (Arglist),
+ Cardinal (Length (Arglist)));
+ end Xm_Create_Column;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Is_Column
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ function Xm_Is_Column (W : in Widget) return Boolean is
+ begin
+ return Xt_Is_Subclass (W, Xm_Column_Widget_Class);
+ end Xm_Is_Column;
+
+
+end Xm_Widgets.Manager.Bulletin_Board.Column;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-bulletin_board-column.ads ./lib/xm_widgets-manager-bulletin_board-column.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-bulletin_board-column.ads Thu Jan 1 01:00:00 1970
+++ ./lib/xm_widgets-manager-bulletin_board-column.ads Thu Dec 26 13:36:40 2002
@@ -0,0 +1,170 @@
+-------------------------------------------------------------------------------
+-- --
+-- Ada Interface to the X Window System and Motif(tm)/Lesstif --
+-- Copyright (c) 1996-2002 Hans-Frieder Vogt --
+-- This file also copyright (c) 2002 Vadim Godunko --
+-- --
+-- Adabindx is free software; you can redistribute it and/or modify it --
+-- under the terms of the GNU General Public License as published by the --
+-- Free Software Foundation; either version 2 of the License, or (at your --
+-- option) any later version. --
+-- --
+-- This program is distributed in the hope that it will be useful, but --
+-- WITHOUT ANY WARRANTY; without even the implied warranty of --
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
+-- See the GNU General Public License for more details. --
+-- --
+-- You should have received a copy of the GNU General Public License --
+-- along with this program; if not, write to the --
+-- Free Software Foundation, Inc., --
+-- 59 Temple Place - Suite 330, --
+-- Boston, MA 02111-1307, USA. --
+-- --
+-- As a special exception, if other files instantiate generics from this --
+-- unit, or you link this unit with other files to produce an executable, --
+-- this unit does not by itself cause the resulting executable to be --
+-- covered by the GNU General Public License. This exception does not --
+-- however invalidate any other reasons why the executable file might be --
+-- covered by the GNU General Public License. --
+-- --
+-- X Window System is copyrighted by the X Consortium --
+-- Motif(tm) is copyrighted by the Open Software Foundation, Inc. --
+-- and by The Open Group --
+-- --
+-- --
+-------------------------------------------------------------------------------
+
+-------------------------------------------------------------------------------
+--
+-- HISTORY:
+-- 2002-10-20 Vadim Godunko: first definition of this file
+--
+-------------------------------------------------------------------------------
+
+package Xm_Widgets.Manager.Bulletin_Board.Column is
+
+-- UseOpenMotif2.2
+
+ Xm_Column_Widget_Class : constant Widget_Class;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Is_Column
+ --! <Purpose>
+ --! <Exceptions>
+ ---------------------------------------------------------------------------
+ function Xm_Is_Column (W : in Widget) return Boolean;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Create_Column
+ --! <Purpose>
+ --! <Exceptions>
+ ---------------------------------------------------------------------------
+ function Xm_Create_Column (Parent : in Widget;
+ Name : in String;
+ Arglist : in Arg_List := Null_Arg_List)
+ return Widget;
+
+-- currently not implemented
+-- function Xm_Column_Get_Child_Label () return Widget;
+
+
+ Xm_N_Default_Entry_Label_Alignment : constant Xt_N_Resource_String;
+ Xm_N_Default_Entry_Label_Font_List : constant Xt_N_Resource_String;
+ Xm_N_Default_Fill_Style : constant Xt_N_Resource_String;
+ Xm_N_Distribution : constant Xt_N_Resource_String;
+
+ type Distribution is (Spread, Tight);
+
+ procedure Append_Set (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Value : in Distribution);
+
+ procedure Append_Get (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Value : out Distribution);
+ pragma Convention (C, Append_Get);
+
+ Xm_N_Item_Spacing : constant Xt_N_Resource_String;
+ Xm_N_Label_Spacing : constant Xt_N_Resource_String;
+ Xm_N_Orientation : constant Xt_N_Resource_String;
+
+ -- constraint resources
+
+ Xm_N_Entry_Label_Alignment : constant Xt_N_Resource_String;
+ Xm_N_Entry_Label_Font_List : constant Xt_N_Resource_String;
+ Xm_N_Entry_Label_Pixmap : constant Xt_N_Resource_String;
+ Xm_N_Entry_Label_String : constant Xt_N_Resource_String;
+ Xm_N_Entry_Label_Type : constant Xt_N_Resource_String;
+ Xm_N_Fill_Style : constant Xt_N_Resource_String;
+
+ type Fill_Style is (Unspecified, Flush, Ragged);
+
+ procedure Append_Set (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Value : in Fill_Style);
+
+ procedure Append_Get (List : in out Arg_List;
+ Name : in Xt_N_Resource_String;
+ Value : out Fill_Style);
+ pragma Convention (C, Append_Get);
+
+ Xm_N_Show_Entry_Label : constant Xt_N_Resource_String;
+ Xm_N_Stretchable : constant Xt_N_Resource_String;
+
+
+private
+
+ for Distribution use (Spread => 0, Tight => 1);
+ for Distribution'Size use Interfaces.C.unsigned_char'Size;
+
+ for Fill_Style use (Unspecified => 0, Flush => 1, Ragged => 2);
+ for Fill_Style'Size use Interfaces.C.unsigned_char'Size;
+
+ c_const_Xm_Column_Widget_Class : Widget_Class;
+ pragma Import (C, c_const_Xm_Column_Widget_Class, "xmColumnWidgetClass");
+
+ Xm_Column_Widget_Class : constant Widget_Class :=
+ c_const_Xm_Column_Widget_Class;
+
+
+ Xm_N_Default_Entry_Label_Alignment : constant Xt_N_Resource_String :=
+ To_Resource_String("defaultEntryLabelAlignment");
+ Xm_N_Default_Entry_Label_Font_List : constant Xt_N_Resource_String :=
+ To_Resource_String("defaultEntryLabelFontList");
+ Xm_N_Default_Fill_Style : constant Xt_N_Resource_String :=
+ To_Resource_String("defaultFillStyle");
+ Xm_N_Distribution : constant Xt_N_Resource_String :=
+ To_Resource_String("distribution");
+ Xm_N_Item_Spacing : constant Xt_N_Resource_String :=
+ To_Resource_String("itemSpacing");
+ Xm_N_Label_Spacing : constant Xt_N_Resource_String :=
+ To_Resource_String("labelSpacing");
+ Xm_N_Orientation : constant Xt_N_Resource_String :=
+ X_Toolkit.Xt_N_Orientation;
+
+ -- constraint resources
+
+ Xm_N_Entry_Label_Alignment : constant Xt_N_Resource_String :=
+ To_Resource_String("entryLabelAlignment");
+ Xm_N_Entry_Label_Font_List : constant Xt_N_Resource_String :=
+ To_Resource_String("entryLabelFontList");
+ Xm_N_Entry_Label_Pixmap : constant Xt_N_Resource_String :=
+ To_Resource_String("entryLabelPixmap");
+ Xm_N_Entry_Label_String : constant Xt_N_Resource_String :=
+ To_Resource_String("entryLabelString");
+ Xm_N_Entry_Label_Type : constant Xt_N_Resource_String :=
+ To_Resource_String("entryLabelType");
+ Xm_N_Fill_Style : constant Xt_N_Resource_String :=
+ To_Resource_String("fillStyle");
+ Xm_N_Show_Entry_Label : constant Xt_N_Resource_String :=
+ To_Resource_String("showEntryLabel");
+ Xm_N_Stretchable : constant Xt_N_Resource_String :=
+ To_Resource_String("stretchable");
+
+-- EndOpenMotif2.2
+
+end Xm_Widgets.Manager.Bulletin_Board.Column;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-bulletin_board-selection_box-file_selection_box.adb ./lib/xm_widgets-manager-bulletin_board-selection_box-file_selection_box.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-bulletin_board-selection_box-file_selection_box.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-bulletin_board-selection_box-file_selection_box.adb Thu Dec 26 13:36:40 2002
@@ -138,7 +138,7 @@
pragma Inline (Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Filter_Style_Type, Interfaces.C.unsigned_char);
@@ -164,7 +164,7 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
@@ -193,7 +193,7 @@
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Path_Mode_Type, Interfaces.C.unsigned_char);
@@ -219,7 +219,7 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Xm_Qualify_Proc, Integer);
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-bulletin_board-selection_box-file_selection_box.ads ./lib/xm_widgets-manager-bulletin_board-selection_box-file_selection_box.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-bulletin_board-selection_box-file_selection_box.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-bulletin_board-selection_box-file_selection_box.ads Thu Dec 26 13:36:40 2002
@@ -170,7 +170,7 @@
pragma Convention (C, Append_Get);
Xm_N_Dir_Spec : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Dir_Text_Label_String : constant Xt_N_Resource_String;
Xm_N_Filter_Label_String : constant Xt_N_Resource_String;
Xm_N_Filter_Style : constant Xt_N_Resource_String;
@@ -187,7 +187,7 @@
pragma Convention (C, Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_File_List_Items : constant Xt_N_Resource_String;
Xm_N_File_List_Item_Count : constant Xt_N_Resource_String;
Xm_N_File_List_Label_String : constant Xt_N_Resource_String;
@@ -207,7 +207,7 @@
Xm_N_List_Updated : constant Xt_N_Resource_String;
Xm_N_No_Match_String : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Path_Mode : constant Xt_N_Resource_String;
type Path_Mode_Type is (Mode_Full, Mode_Relative);
@@ -221,7 +221,7 @@
Value : out Path_Mode_Type);
pragma Convention (C, Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Pattern : constant Xt_N_Resource_String;
Xm_N_Qualify_Search_Data_Proc : constant Xt_N_Resource_String;
@@ -284,16 +284,16 @@
Xm_Widgets.Manager.Bulletin_Board.Selection_Box.Text_Field_Name;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Filter_Style_Type use (Filter_None => 0, Filter_Hidden_Files => 1);
for Filter_Style_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
for File_Type_Mask use (Directory => 0, Regular => 1, Any_Type => 2);
for File_Type_Mask'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Path_Mode_Type use (Mode_Full => 0, Mode_Relative => 1);
for Path_Mode_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
pragma Import (C, Xm_File_Selection_Box_Get_Child, "XmFileSelectionBoxGetChild");
pragma Import (C, Xm_File_Selection_Do_Search, "XmFileSelectionDoSearch");
@@ -327,14 +327,14 @@
:= To_Resource_String ("dirSearchProc");
Xm_N_Dir_Spec : constant Xt_N_Resource_String
:= To_Resource_String ("dirSpec");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Dir_Text_Label_String : constant Xt_N_Resource_String
:= To_Resource_String ("dirTextLabelString");
Xm_N_Filter_Label_String : constant Xt_N_Resource_String
:= To_Resource_String ("filterLabelString");
Xm_N_Filter_Style : constant Xt_N_Resource_String
:= To_Resource_String ("filterStyle");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_File_List_Items : constant Xt_N_Resource_String
:= To_Resource_String ("fileListItems");
Xm_N_File_List_Item_Count : constant Xt_N_Resource_String
@@ -349,10 +349,10 @@
:= To_Resource_String ("listUpdated");
Xm_N_No_Match_String : constant Xt_N_Resource_String
:= To_Resource_String ("noMatchString");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Path_Mode : constant Xt_N_Resource_String
:= To_Resource_String ("pathMode");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Pattern : constant Xt_N_Resource_String
:= To_Resource_String ("pattern");
Xm_N_Qualify_Search_Data_Proc : constant Xt_N_Resource_String
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-bulletin_board.ads ./lib/xm_widgets-manager-bulletin_board.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-bulletin_board.ads Sat Mar 2 12:17:14 2002
+++ ./lib/xm_widgets-manager-bulletin_board.ads Thu Dec 26 13:36:40 2002
@@ -69,9 +69,9 @@
Xm_N_Allow_Overlap : constant Xt_N_Resource_String;
Xm_N_Auto_Unmanage : constant Xt_N_Resource_String;
Xm_N_Button_Font_List : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Button_Render_Table : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Cancel_Button : constant Xt_N_Resource_String;
Xm_N_Default_Button : constant Xt_N_Resource_String;
@@ -95,9 +95,9 @@
Xm_N_Dialog_Title : constant Xt_N_Resource_String;
Xm_N_Focus_Callback : constant Xt_N_Resource_String;
Xm_N_Label_Font_List : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Label_Render_Table : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Map_Callback : constant Xt_N_Resource_String;
Xm_N_Margin_Height : constant Xt_N_Resource_String;
Xm_N_Margin_Width : constant Xt_N_Resource_String;
@@ -120,9 +120,9 @@
Xm_N_Text_Font_List : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Text_Render_Table : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Text_Translations : constant Xt_N_Resource_String;
--
@@ -160,10 +160,10 @@
:= To_Resource_String ("autoUnmanage");
Xm_N_Button_Font_List : constant Xt_N_Resource_String
:= To_Resource_String ("buttonFontList");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Button_Render_Table : constant Xt_N_Resource_String
:= To_Resource_String ("buttonRenderTable");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Cancel_Button : constant Xt_N_Resource_String
:= To_Resource_String ("cancelButton");
@@ -181,10 +181,10 @@
:= To_Resource_String ("focusCallback");
Xm_N_Label_Font_List : constant Xt_N_Resource_String
:= To_Resource_String ("labelFontList");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Label_Render_Table : constant Xt_N_Resource_String
:= To_Resource_String ("labelRenderTable");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Map_Callback : constant Xt_N_Resource_String
:= To_Resource_String ("mapCallback");
Xm_N_Margin_Height : constant Xt_N_Resource_String
@@ -200,10 +200,10 @@
Xm_N_Text_Font_List : constant Xt_N_Resource_String
:= To_Resource_String ("textFontList");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Text_Render_Table : constant Xt_N_Resource_String
:= To_Resource_String ("textRenderTable");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Text_Translations : constant Xt_N_Resource_String
:= To_Resource_String ("textTranslations");
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-combo_box.adb ./lib/xm_widgets-manager-combo_box.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-combo_box.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-combo_box.adb Thu Dec 26 13:36:40 2002
@@ -46,7 +46,7 @@
X_Toolkit.Internal;
package body Xm_Widgets.Manager.Combo_Box is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function Xm_Is_Combo_Box (W : in Widget) return Boolean is
begin
@@ -141,7 +141,7 @@
Cardinal (Length (Arglist)));
end Xm_Create_Drop_Down_List;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
procedure Xm_Combo_Box_Add_Item
(W : in Widget;
Item : in Xm_String;
@@ -157,7 +157,7 @@
XmComboBoxAddItem (W, Item, Pos, To_Xt_Boolean (Unique));
end Xm_Combo_Box_Add_Item;
pragma Inline (Xm_Combo_Box_Add_Item);
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
function To_Integer is
@@ -210,7 +210,7 @@
pragma Inline (Append_Get);
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Position_Mode_Type, Interfaces.C.unsigned_char);
@@ -233,8 +233,8 @@
Value => Value'Address);
end Append_Get;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Combo_Box;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-combo_box.ads ./lib/xm_widgets-manager-combo_box.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-combo_box.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-combo_box.ads Thu Dec 26 13:36:40 2002
@@ -46,7 +46,7 @@
package Xm_Widgets.Manager.Combo_Box is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
--
@@ -99,7 +99,7 @@
procedure Xm_Combo_Box_Update (W : in Widget);
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
procedure Xm_Combo_Box_Add_Item
(W : in Widget;
Item : in Xm_String;
@@ -117,7 +117,7 @@
procedure Xm_Combo_Box_Set_Item
(W : in Widget;
Item : in Xm_String);
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
--
@@ -126,9 +126,9 @@
Xm_N_Arrow_Size : constant Xt_N_Resource_String;
Xm_N_Arrow_Spacing : constant Xt_N_Resource_String;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Columns : constant Xt_N_Resource_String;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Combo_Box_Type : constant Xt_N_Resource_String;
type Combo_Box_Type is (Combo_Box, Drop_Down_Combo_Box, Drop_Down_List);
@@ -144,11 +144,11 @@
Xm_N_Font_List : constant Xt_N_Resource_String;
Xm_N_Highlight_Thickness : constant Xt_N_Resource_String;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Item_Count : constant Xt_N_Resource_String;
Xm_N_Items : constant Xt_N_Resource_String;
Xm_N_List : constant Xt_N_Resource_String;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Margin_Height : constant Xt_N_Resource_String;
Xm_N_Margin_Width : constant Xt_N_Resource_String;
Xm_N_Match_Behavior : constant Xt_N_Resource_String;
@@ -164,7 +164,7 @@
Value : out Match_Behavior_Type);
pragma Convention (C, Append_Get);
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Position_Mode : constant Xt_N_Resource_String;
type Position_Mode_Type is (Zero_Based, One_Based);
@@ -178,17 +178,17 @@
Value : out Position_Mode_Type);
pragma Convention (C, Append_Get);
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Render_Table : constant Xt_N_Resource_String;
Xm_N_Selected_Item : constant Xt_N_Resource_String;
Xm_N_Selected_Position : constant Xt_N_Resource_String;
Xm_N_Selection_Callback : constant Xt_N_Resource_String;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Text_Field : constant Xt_N_Resource_String;
Xm_N_Visible_Item_Count : constant Xt_N_Resource_String;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
private
@@ -198,17 +198,17 @@
for Match_Behavior_Type use (None => 0, Quick_Navigate => 1, Invalid_Match_Behavior => 2);
for Match_Behavior_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
for Position_Mode_Type use (Zero_Based => 0, One_Based => 1);
for Position_Mode_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
pragma Import (C, Xm_Combo_Box_Update, "XmComboBoxUpdate");
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
pragma Import (C, Xm_Combo_Box_Delete_Pos, "XmComboBoxDeletePos");
pragma Import (C, Xm_Combo_Box_Select_Item, "XmComboBoxSelectItem");
pragma Import (C, Xm_Combo_Box_Set_Item, "XmComboBoxSetItem");
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
c_const_Xm_Combo_Box_Widget_Class : Widget_Class;
@@ -227,10 +227,10 @@
:= To_Resource_String ("arrowSize");
Xm_N_Arrow_Spacing : constant Xt_N_Resource_String
:= To_Resource_String ("arrowSpacing");
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Columns : constant Xt_N_Resource_String
:= To_Resource_String ("columns");
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Combo_Box_Type : constant Xt_N_Resource_String
:= To_Resource_String ("comboBoxType");
@@ -238,24 +238,24 @@
:= Xm_Widgets.Xm_N_Font_List;
Xm_N_Highlight_Thickness : constant Xt_N_Resource_String
:= To_Resource_String ("highlightThickness");
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Item_Count : constant Xt_N_Resource_String
:= To_Resource_String ("itemCount");
Xm_N_Items : constant Xt_N_Resource_String
:= To_Resource_String ("items");
Xm_N_List : constant Xt_N_Resource_String
:= To_Resource_String ("list");
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Margin_Height : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Margin_Height;
Xm_N_Margin_Width : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Margin_Width;
Xm_N_Match_Behavior : constant Xt_N_Resource_String
:= To_Resource_String ("matchBehavior");
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Position_Mode : constant Xt_N_Resource_String
:= To_Resource_String ("positionMode");
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Render_Table : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Render_Table;
@@ -266,13 +266,13 @@
Xm_N_Selection_Callback : constant Xt_N_Resource_String
:= To_Resource_String ("selectionCallback");
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Text_Field : constant Xt_N_Resource_String
:= To_Resource_String ("textField");
Xm_N_Visible_Item_Count : constant Xt_N_Resource_String
:= To_Resource_String ("visibleItemCount");
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Combo_Box;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-container.adb ./lib/xm_widgets-manager-container.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-container.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-container.adb Thu Dec 26 13:36:40 2002
@@ -45,7 +45,7 @@
X_Toolkit.Internal;
package body Xm_Widgets.Manager.Container is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function Xm_Is_Container (W : in Widget) return Boolean is
begin
@@ -571,6 +571,6 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Container;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-container.ads ./lib/xm_widgets-manager-container.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-container.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-container.ads Thu Dec 26 13:36:40 2002
@@ -42,7 +42,7 @@
package Xm_Widgets.Manager.Container is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
--
@@ -524,6 +524,6 @@
Xm_N_Position_Index : constant Xt_N_Resource_String
:= To_Resource_String ("positionIndex");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Container;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-drawing_area.ads ./lib/xm_widgets-manager-drawing_area.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-drawing_area.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-drawing_area.ads Thu Dec 26 13:36:40 2002
@@ -83,10 +83,10 @@
-- resource values
--
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Convert_Callback : constant Xt_N_Resource_String;
Xm_N_Destination_Callback : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Expose_Callback : constant Xt_N_Resource_String;
Xm_N_Input_Callback : constant Xt_N_Resource_String;
Xm_N_Margin_Height : constant Xt_N_Resource_String;
@@ -110,12 +110,12 @@
-- resource values
--
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Convert_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("convertCallback");
Xm_N_Destination_Callback : constant Xt_N_Resource_String :=
Xm_Widgets.Xm_N_Destination_Callback;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Expose_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("exposeCallback");
Xm_N_Input_Callback : constant Xt_N_Resource_String :=
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-frame.adb ./lib/xm_widgets-manager-frame.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-frame.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-frame.adb Thu Dec 26 13:36:40 2002
@@ -99,7 +99,7 @@
end Append_Get;
pragma Inline (Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Vertical_Alignment, Interfaces.C.unsigned_char);
@@ -123,7 +123,7 @@
Value => Value'Address);
end Append_Get;
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-frame.ads ./lib/xm_widgets-manager-frame.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-frame.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-frame.ads Thu Dec 26 13:36:40 2002
@@ -90,7 +90,7 @@
Xm_N_Child_Horizontal_Spacing : constant Xt_N_Resource_String;
Xm_N_Child_Vertical_Alignment : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
type Vertical_Alignment is (Alignment_Baseline_Top,
Alignment_Center,
Alignment_Baseline_Bottom,
@@ -110,7 +110,7 @@
-- replacement for Xm_N_Child_Type
Xm_N_Frame_Child_Type : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
type Frame_Child_Type is
(Generic_Child, Workarea_Child, Title_Child);
@@ -134,7 +134,7 @@
(Generic_Child => 0, Workarea_Child => 1, Title_Child => 2);
for Frame_Child_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Vertical_Alignment use (Alignment_Baseline_Top => 0,
Alignment_Center => 1,
Alignment_Baseline_Bottom => 2,
@@ -145,7 +145,7 @@
Alignment_Widget_Bottom;
Alignment_Child_Bottom : constant Vertical_Alignment :=
Alignment_Widget_Top;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
c_const_Xm_Frame_Widget_Class : Widget_Class;
@@ -179,10 +179,10 @@
To_Resource_String ("childHorizontalSpacing");
Xm_N_Child_Vertical_Alignment : constant Xt_N_Resource_String :=
To_Resource_String ("childVerticalAlignment");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- replacement for Xm_N_Child_Type
Xm_N_Frame_Child_Type : constant Xt_N_Resource_String :=
To_Resource_String ("frameChildType");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Frame;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-notebook.adb ./lib/xm_widgets-manager-notebook.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-notebook.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-notebook.adb Thu Dec 26 13:36:40 2002
@@ -45,7 +45,7 @@
X_Toolkit.Internal;
package body Xm_Widgets.Manager.Notebook is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Callback_Struct (Pointer : in Xt_Pointer)
return Xm_Notebook_Callback_Struct_Access is
@@ -170,6 +170,6 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Notebook;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-notebook.ads ./lib/xm_widgets-manager-notebook.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-notebook.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-notebook.ads Thu Dec 26 13:36:40 2002
@@ -42,7 +42,7 @@
package Xm_Widgets.Manager.Notebook is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
--
@@ -247,6 +247,6 @@
Xm_N_Notebook_Child_Type : constant Xt_N_Resource_String
:= To_Resource_String ("notebookChildType");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Notebook;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-paned_window.ads ./lib/xm_widgets-manager-paned_window.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-paned_window.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-paned_window.ads Thu Dec 26 13:36:40 2002
@@ -62,12 +62,12 @@
Xm_N_Margin_Height : constant Xt_N_Resource_String;
Xm_N_Margin_Width : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- use Xm_Widgets.Orientation_Type for this
--
Xm_N_Orientation : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Refigure_Mode : constant Xt_N_Resource_String;
Xm_N_Sash_Height : constant Xt_N_Resource_String;
Xm_N_Sash_Indent : constant Xt_N_Resource_String;
@@ -106,9 +106,9 @@
:= Xm_Widgets.Xm_N_Margin_Height;
Xm_N_Margin_Width : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Margin_Width;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Orientation : constant Xt_N_Resource_String := X_Toolkit.Xt_N_Orientation;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Refigure_Mode : constant Xt_N_Resource_String := To_Resource_String ("refigureMode");
Xm_N_Sash_Height : constant Xt_N_Resource_String := To_Resource_String ("sashHeight");
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-row_column.adb ./lib/xm_widgets-manager-row_column.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-row_column.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-row_column.adb Thu Dec 26 13:36:40 2002
@@ -319,7 +319,7 @@
pragma Inline (Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Tear_Off_Model_Type, Interfaces.C.unsigned_char);
@@ -345,7 +345,7 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Row_Column;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-row_column.ads ./lib/xm_widgets-manager-row_column.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-row_column.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-row_column.ads Thu Dec 26 13:36:40 2002
@@ -205,11 +205,11 @@
-- for Ease of usage, we define here nevertheless a different type,
-- consistent with Motif 2.0+
--
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
type Popup_Type is (Disabled, Keyboard, Automatic, Automatic_Recursive);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! type Popup_Type is (Disabled, Keyboard);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
procedure Append_Set (List : in out Arg_List;
Name : in Xt_N_Resource_String;
@@ -236,7 +236,7 @@
pragma Convention (C, Append_Get);
Xm_N_Sub_Menu_ID : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Tear_Off_Menu_Activate_Callback : constant Xt_N_Resource_String;
Xm_N_Tear_Off_Menu_Deactivate_Callback : constant Xt_N_Resource_String;
Xm_N_Tear_Off_Model : constant Xt_N_Resource_String;
@@ -254,7 +254,7 @@
Xm_N_Tear_Off_Title : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Unmap_Callback : constant Xt_N_Resource_String;
Xm_N_Which_Button : constant Xt_N_Resource_String;
@@ -271,21 +271,21 @@
for Packing_Type use (No_Packing => 0, Pack_Tight => 1, Pack_Column => 2, Pack_None => 3);
for Packing_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Popup_Type use (Disabled => 0, Keyboard => 1, Automatic => 2, Automatic_Recursive => 3);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! for Popup_Type use (Disabled => 0, Keyboard => 1);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
for Popup_Type'Size use Interfaces.C.unsigned'Size;
for Row_Column_Type use (Work_Area => 0, Menu_Bar => 1, Menu_Pulldown => 2,
Menu_Popup => 3, Menu_Option => 4);
for Row_Column_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Tear_Off_Model_Type use (Tear_Off_Enabled => 0, Tear_Off_Disabled => 1);
for Tear_Off_Model_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
pragma Import (C, Xm_Menu_Position, "XmMenuPosition");
pragma Import (C, Xm_Option_Label_Gadget, "XmOptionLabelGadget");
@@ -376,7 +376,7 @@
Xm_N_Sub_Menu_ID : constant Xt_N_Resource_String
:= To_Resource_String ("subMenuId");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Tear_Off_Menu_Activate_Callback : constant Xt_N_Resource_String
:= To_Resource_String ("tearOffMenuActivateCallback");
Xm_N_Tear_Off_Menu_Deactivate_Callback : constant Xt_N_Resource_String
@@ -386,7 +386,7 @@
Xm_N_Tear_Off_Title : constant Xt_N_Resource_String
:= To_Resource_String ("tearOffTitle");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Unmap_Callback : constant Xt_N_Resource_String
:= To_Resource_String ("unmapCallback");
Xm_N_Which_Button : constant Xt_N_Resource_String
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-scale.ads ./lib/xm_widgets-manager-scale.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-scale.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-scale.ads Thu Dec 26 13:36:40 2002
@@ -102,14 +102,14 @@
--
package SB renames Xm_Widgets.Primitive.Scroll_Bar;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Convert_Callback : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Decimal_Points : constant Xt_N_Resource_String;
Xm_N_Drag_Callback : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Editable : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Font_List : constant Xt_N_Resource_String;
Xm_N_Highlight_On_Enter : constant Xt_N_Resource_String;
Xm_N_Highlight_Thickness : constant Xt_N_Resource_String;
@@ -134,13 +134,13 @@
renames SB.Append_Get;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Render_Table : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Scale_Height : constant Xt_N_Resource_String;
Xm_N_Scale_Multiple : constant Xt_N_Resource_String;
Xm_N_Scale_Width : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Show_Arrows : constant Xt_N_Resource_String;
subtype Show_Arrows_Type is SB.Show_Arrows_Type;
@@ -154,7 +154,7 @@
Value : out SB.Show_Arrows_Type)
renames SB.Append_Get;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Show_Value : constant Xt_N_Resource_String;
@@ -170,7 +170,7 @@
Value : out Show_Value_Type);
pragma Convention (C, Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Slider_Mark : constant Xt_N_Resource_String;
subtype Slider_Mark_Type is SB.Slider_Mark_Type;
@@ -215,7 +215,7 @@
Value : out SB.Sliding_Mode_Type)
renames SB.Append_Get;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Title_String : constant Xt_N_Resource_String;
Xm_N_Value : constant Xt_N_Resource_String;
@@ -244,18 +244,18 @@
-- resource values
--
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Convert_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("convertCallback");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Decimal_Points : constant Xt_N_Resource_String :=
To_Resource_String ("decimalPoints");
Xm_N_Drag_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("dragCallback");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Editable : constant Xt_N_Resource_String :=
To_Resource_String ("editable");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Font_List : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Font_List;
Xm_N_Highlight_On_Enter : constant Xt_N_Resource_String :=
@@ -272,32 +272,32 @@
Xm_N_Processing_Direction : constant Xt_N_Resource_String :=
To_Resource_String ("processingDirection");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Render_Table : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Render_Table;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Scale_Height : constant Xt_N_Resource_String :=
To_Resource_String ("scaleHeight");
Xm_N_Scale_Multiple : constant Xt_N_Resource_String :=
To_Resource_String ("scaleMultiple");
Xm_N_Scale_Width : constant Xt_N_Resource_String :=
To_Resource_String ("scaleWidth");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Show_Arrows : constant Xt_N_Resource_String :=
To_Resource_String ("showArrows");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Show_Value : constant Xt_N_Resource_String :=
To_Resource_String ("showValue");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Slider_Mark : constant Xt_N_Resource_String :=
To_Resource_String ("sliderMark");
Xm_N_Slider_Visual : constant Xt_N_Resource_String :=
To_Resource_String ("sliderVisual");
Xm_N_Sliding_Mode : constant Xt_N_Resource_String :=
To_Resource_String ("slidingMode");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Title_String : constant Xt_N_Resource_String :=
To_Resource_String ("titleString");
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-scrolled_window-main_window.ads ./lib/xm_widgets-manager-scrolled_window-main_window.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-scrolled_window-main_window.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-scrolled_window-main_window.ads Thu Dec 26 13:36:40 2002
@@ -109,7 +109,7 @@
Xm_N_Message_Window : constant Xt_N_Resource_String;
Xm_N_Show_Separator : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- extension of the contraint resource "child type" for children of
-- scrolled window widget class
@@ -118,7 +118,7 @@
Separator : constant Scrolled_Window_Child_Type;
Message_Window : constant Scrolled_Window_Child_Type;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
private
@@ -161,11 +161,11 @@
Xm_N_Show_Separator : constant Xt_N_Resource_String :=
To_Resource_String ("showSeparator");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Menu_Bar : constant Scrolled_Window_Child_Type := 1;
Command_Window : constant Scrolled_Window_Child_Type := 4;
Separator : constant Scrolled_Window_Child_Type := 5;
Message_Window : constant Scrolled_Window_Child_Type := 6;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Scrolled_Window.Main_Window;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-scrolled_window.adb ./lib/xm_widgets-manager-scrolled_window.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-scrolled_window.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-scrolled_window.adb Thu Dec 26 13:36:40 2002
@@ -89,7 +89,7 @@
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Auto_Drag_Model_Type, Interfaces.C.unsigned_char);
@@ -113,7 +113,7 @@
Value => Value'Address);
end Append_Get;
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
@@ -216,7 +216,7 @@
pragma Inline (Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
procedure Append_Set (List : in out Arg_List;
Name : in Xt_N_Resource_String;
Value : in Scrolled_Window_Child_Type) is
@@ -239,6 +239,6 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Scrolled_Window;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-scrolled_window.ads ./lib/xm_widgets-manager-scrolled_window.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-scrolled_window.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-scrolled_window.ads Thu Dec 26 13:36:40 2002
@@ -97,7 +97,7 @@
-- resource values
--
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Auto_Drag_Model : constant Xt_N_Resource_String;
-- for Xm_N_Auto_Drag_Model
@@ -114,7 +114,7 @@
Value : out Auto_Drag_Model_Type);
pragma Convention (C, Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Clip_Window : constant Xt_N_Resource_String;
Xm_N_Horizontal_Scroll_Bar : constant Xt_N_Resource_String;
@@ -184,7 +184,7 @@
Xm_N_Work_Window : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- constraint resource for the children
Xm_N_Scrolled_Window_Child_Type : constant Xt_N_Resource_String;
@@ -207,14 +207,14 @@
Value : out Scrolled_Window_Child_Type);
pragma Convention (C, Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
private
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Auto_Drag_Model_Type use (Enabled => 0, Disabled => 1);
for Auto_Drag_Model_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
for Scroll_Bar_Display_Policy_Type use (Static => 0, As_Needed => 1);
for Scroll_Bar_Display_Policy_Type'Size use Interfaces.C.unsigned_char'Size;
@@ -237,7 +237,7 @@
(Variable_Visual => 0, Constant_Visual => 1, Resize_If_Possible => 2);
for Visual_Policy_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
type Scrolled_Window_Child_Type is new Natural range 0 .. 11;
Work_Area : constant Scrolled_Window_Child_Type := 0;
Hor_Scrollbar : constant Scrolled_Window_Child_Type := 2;
@@ -247,7 +247,7 @@
No_Scroll : constant Scrolled_Window_Child_Type := 9;
Clip_Window : constant Scrolled_Window_Child_Type := 10;
Generic_Child : constant Scrolled_Window_Child_Type := 11;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
pragma Import (C, Xm_Scroll_Visible, "XmScrollVisible");
pragma Import (C, Xm_Scrolled_Window_Set_Areas, "XmScrolledWindowSetAreas");
@@ -266,9 +266,9 @@
-- resource values
--
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Auto_Drag_Model : constant Xt_N_Resource_String := To_Resource_String ("autoDragModel");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Clip_Window : constant Xt_N_Resource_String := To_Resource_String ("clipWindow");
Xm_N_Horizontal_Scroll_Bar : constant Xt_N_Resource_String := To_Resource_String ("horizontalScrollBar");
@@ -287,9 +287,9 @@
Xm_N_Work_Window : constant Xt_N_Resource_String := To_Resource_String ("workWindow");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- constraint resource for the children
Xm_N_Scrolled_Window_Child_Type : constant Xt_N_Resource_String := To_Resource_String ("scrolledWindowChildType");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Scrolled_Window;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-spin_box-simple.adb ./lib/xm_widgets-manager-spin_box-simple.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-spin_box-simple.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-spin_box-simple.adb Thu Dec 26 13:36:40 2002
@@ -48,7 +48,7 @@
package body Xm_Widgets.Manager.Spin_Box.Simple is
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
function To_Callback_Struct (Pointer : in Xt_Pointer)
return Xm_Simple_Spin_Box_Callback_Struct_Access is
@@ -93,6 +93,6 @@
Cardinal (Length (Arglist)));
end Xm_Create_Simple_Spin_Box;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Spin_Box.Simple;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-spin_box-simple.ads ./lib/xm_widgets-manager-spin_box-simple.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-spin_box-simple.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-spin_box-simple.ads Thu Dec 26 13:36:40 2002
@@ -48,7 +48,7 @@
package Xm_Widgets.Manager.Spin_Box.Simple is
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_Simple_Spin_Box_Widget_Class : constant Widget_Class;
@@ -137,6 +137,6 @@
pragma Import (C, Xm_Simple_Spin_Box_Delete_Pos, "XmSimpleSpinBoxDeletePos");
pragma Import (C, Xm_Simple_Spin_Box_Set_Item, "XmSimpleSpinBoxSetItem");
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Spin_Box.Simple;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-spin_box.adb ./lib/xm_widgets-manager-spin_box.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-spin_box.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-spin_box.adb Thu Dec 26 13:36:40 2002
@@ -53,7 +53,7 @@
X_Toolkit.Internal;
package body Xm_Widgets.Manager.Spin_Box is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Callback_Struct (Pointer : in Xt_Pointer)
@@ -142,7 +142,7 @@
pragma Inline (Append_Get);
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Arrow_Orientation, Interfaces.C.signed_char);
@@ -167,7 +167,7 @@
Value => Value'Address);
end Append_Get;
pragma Inline (Append_Get);
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
function To_Integer is
@@ -245,6 +245,6 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Spin_Box;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager-spin_box.ads ./lib/xm_widgets-manager-spin_box.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager-spin_box.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-manager-spin_box.ads Thu Dec 26 13:36:40 2002
@@ -51,7 +51,7 @@
package Xm_Widgets.Manager.Spin_Box is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_Spin_Box_Widget_Class : constant Widget_Class;
@@ -123,7 +123,7 @@
pragma Convention (C, Append_Get);
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
-- specifies whether arrows point horizontally or vertically
-- if Arrows_Vertical, then
-- the decrement arrow points downwards, the increment arrow upwards
@@ -142,7 +142,7 @@
Name : in Xt_N_Resource_String;
Value : out Arrow_Orientation);
pragma Convention (C, Append_Get);
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Arrow_Size : constant Xt_N_Resource_String;
Xm_N_Default_Arrow_Sensitivity : constant Xt_N_Resource_String;
@@ -238,10 +238,10 @@
Arrows_Flat_End => 3, Arrows_Flat_Beginning => 4);
for Arrow_Layout_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
for Arrow_Orientation use (Arrows_Vertical => 0, Arrows_Horizontal => 1);
for Arrow_Orientation'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
for Position_Type use (Index => 0, Value => 1);
for Position_Type'Size use Interfaces.C.unsigned_char'Size;
@@ -265,10 +265,10 @@
Xm_N_Arrow_Layout : constant Xt_N_Resource_String :=
To_Resource_String ("arrowLayout");
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Arrow_Orientation : constant Xt_N_Resource_String :=
To_Resource_String ("arrowOrientation");
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Arrow_Size : constant Xt_N_Resource_String :=
To_Resource_String ("arrowSize");
Xm_N_Default_Arrow_Sensitivity : constant Xt_N_Resource_String :=
@@ -319,6 +319,6 @@
Xm_N_Wrap : constant Xt_N_Resource_String :=
To_Resource_String ("wrap");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Manager.Spin_Box;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-manager.ads ./lib/xm_widgets-manager.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-manager.ads Sat Mar 2 12:17:14 2002
+++ ./lib/xm_widgets-manager.ads Thu Dec 26 13:36:40 2002
@@ -66,9 +66,9 @@
Xm_N_Highlight_Color : constant Xt_N_Resource_String;
Xm_N_Highlight_Pixmap : constant Xt_N_Resource_String;
Xm_N_Initial_Focus : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Layout_Direction : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Navigation_Type : constant Xt_N_Resource_String;
@@ -85,9 +85,9 @@
pragma Convention (C, Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Popup_Handler_Callback : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Shadow_Thickness : constant Xt_N_Resource_String;
Xm_N_String_Direction : constant Xt_N_Resource_String;
Xm_N_Top_Shadow_Color : constant Xt_N_Resource_String;
@@ -148,18 +148,18 @@
To_Resource_String ("highlightPixmap");
Xm_N_Initial_Focus : constant Xt_N_Resource_String :=
To_Resource_String ("initialFocus");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Layout_Direction : constant Xt_N_Resource_String :=
To_Resource_String ("layoutDirection");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Navigation_Type : constant Xt_N_Resource_String :=
To_Resource_String ("navigationType");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Popup_Handler_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("popupHandlerCallback");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Shadow_Thickness : constant Xt_N_Resource_String :=
To_Resource_String ("shadowThickness");
Xm_N_String_Direction : constant Xt_N_Resource_String :=
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-arrow_button.ads ./lib/xm_widgets-primitive-arrow_button.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-arrow_button.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-arrow_button.ads Thu Dec 26 13:36:40 2002
@@ -100,9 +100,9 @@
pragma Convention (C, Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Detail_Shadow_Thickness : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Disarm_Callback : constant Xt_N_Resource_String;
Xm_N_Multi_Click : constant Xt_N_Resource_String;
@@ -136,10 +136,10 @@
Xm_N_Arrow_Direction : constant Xt_N_Resource_String :=
To_Resource_String ("arrowDirection");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Detail_Shadow_Thickness : constant Xt_N_Resource_String :=
Xm_Widgets.Xm_N_Detail_Shadow_Thickness;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Disarm_Callback : constant Xt_N_Resource_String :=
Xm_Widgets.Primitive.Xm_N_Disarm_Callback;
Xm_N_Multi_Click : constant Xt_N_Resource_String :=
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-icon.adb ./lib/xm_widgets-primitive-icon.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-icon.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-icon.adb Thu Dec 26 13:36:40 2002
@@ -45,7 +45,7 @@
X_Toolkit.Internal;
package body Xm_Widgets.Primitive.Icon is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function Xm_Is_Icon_Gadget (W : in Widget) return Boolean is
@@ -124,6 +124,6 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Primitive.Icon;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-icon.ads ./lib/xm_widgets-primitive-icon.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-icon.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-icon.ads Thu Dec 26 13:36:40 2002
@@ -42,7 +42,7 @@
package Xm_Widgets.Primitive.Icon is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_Icon_Gadget_Class : constant Widget_Class;
@@ -62,27 +62,27 @@
-- resource values
--
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
-- use a value of Xm_Widgets.Alignment
--
Xm_N_Alignment : constant Xt_N_Resource_String;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Detail : constant Xt_N_Resource_String;
Xm_N_Detail_Count : constant Xt_N_Resource_String;
Xm_N_Font_List : constant Xt_N_Resource_String;
Xm_N_Label_String : constant Xt_N_Resource_String;
Xm_N_Large_Icon_Mask : constant Xt_N_Resource_String;
Xm_N_Large_Icon_Pixmap : constant Xt_N_Resource_String;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Margin_Height : constant Xt_N_Resource_String;
Xm_N_Margin_Width : constant Xt_N_Resource_String;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Render_Table : constant Xt_N_Resource_String;
Xm_N_Small_Icon_Mask : constant Xt_N_Resource_String;
Xm_N_Small_Icon_Pixmap : constant Xt_N_Resource_String;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Spacing : constant Xt_N_Resource_String;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_View_Type : constant Xt_N_Resource_String;
@@ -132,10 +132,10 @@
-- resource values
--
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Alignment : constant Xt_N_Resource_String :=
Xm_Widgets.Primitive.Xm_N_Alignment;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Detail : constant Xt_N_Resource_String :=
To_Resource_String ("detail");
Xm_N_Detail_Count : constant Xt_N_Resource_String :=
@@ -148,12 +148,12 @@
To_Resource_String ("largeIconMask");
Xm_N_Large_Icon_Pixmap : constant Xt_N_Resource_String :=
To_Resource_String ("largeIconPixmap");
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Margin_Height : constant Xt_N_Resource_String :=
Xm_Widgets.Xm_N_Margin_Height;
Xm_N_Margin_Width : constant Xt_N_Resource_String :=
Xm_Widgets.Xm_N_Margin_Width;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Render_Table : constant Xt_N_Resource_String :=
Xm_Widgets.Xm_N_Render_Table;
Xm_N_Small_Icon_Mask : constant Xt_N_Resource_String :=
@@ -161,10 +161,10 @@
Xm_N_Small_Icon_Pixmap : constant Xt_N_Resource_String :=
To_Resource_String ("smallIconPixmap");
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Spacing : constant Xt_N_Resource_String :=
Xm_Widgets.Primitive.Xm_N_Spacing;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_View_Type : constant Xt_N_Resource_String :=
To_Resource_String ("viewType");
@@ -172,6 +172,6 @@
Xm_N_Visual_Emphasis : constant Xt_N_Resource_String :=
To_Resource_String ("visualEmphasis");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Primitive.Icon;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-label-toggle_button.adb ./lib/xm_widgets-primitive-label-toggle_button.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-label-toggle_button.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-label-toggle_button.adb Thu Dec 26 13:36:40 2002
@@ -168,7 +168,7 @@
end Xm_Toggle_Button_Set_State;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
procedure Xm_Toggle_Button_Set_Value
(W : in Widget;
State : in Set_Type;
@@ -200,7 +200,7 @@
raise Invalid_State_Error;
end if;
end Xm_Toggle_Button_Gadget_Set_Value;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
@@ -278,7 +278,7 @@
pragma Inline (Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Toggle_Mode_Type, Interfaces.C.unsigned_char);
@@ -304,6 +304,6 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Primitive.Label.Toggle_Button;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-label-toggle_button.ads ./lib/xm_widgets-primitive-label-toggle_button.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-label-toggle_button.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-label-toggle_button.ads Thu Dec 26 13:36:40 2002
@@ -55,11 +55,11 @@
-- The new definition is to use the type Set_Type, which is differently
-- defined for Motif 1.2 and Motif 2.0+
--
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
type Set_Type is (Unset, Set, Indeterminate);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! type Set_Type is (Unset, Set);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
type Xm_Toggle_Button_Callback_Struct is record
@@ -120,7 +120,7 @@
State : in Boolean;
Notify : in Boolean);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- if in two-states (On/Off) mode and Indeterminate is chosen, the exception
-- Invalid_State_Error is raised
--
@@ -135,7 +135,7 @@
(W : in Widget;
State : in Set_Type;
Notify : in Boolean);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
@@ -144,14 +144,14 @@
--
Xm_N_Arm_Callback : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Detail_Shadow_Thickness : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Disarm_Callback : constant Xt_N_Resource_String;
Xm_N_Fill_On_Select : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Indeterminate_Pixmap : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Indicator_On : constant Xt_N_Resource_String;
type Indicator_On_Type is (None, Fill,
@@ -170,11 +170,11 @@
Xm_N_Indicator_Size : constant Xt_N_Resource_String;
Xm_N_Indicator_Type : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
type Indicator_Type is (N_Of_Many, One_Of_Many, One_Of_Many_Round);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! type Indicator_Type is (N_Of_Many, One_Of_Many);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
procedure Append_Set (List : in out Arg_List;
Name : in Xt_N_Resource_String;
@@ -200,7 +200,7 @@
pragma Convention (C, Append_Get);
Xm_N_Spacing : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Toggle_Mode : constant Xt_N_Resource_String;
type Toggle_Mode_Type is (Toggle_Boolean, Toggle_Indeterminate);
@@ -215,19 +215,19 @@
pragma Convention (C, Append_Get);
Xm_N_Unselect_Color : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Value_Changed_Callback : constant Xt_N_Resource_String;
Xm_N_Visible_When_Off : constant Xt_N_Resource_String;
private
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Set_Type use (Unset => 0, Set => 1, Indeterminate => 2);
for Set_Type'Size use Interfaces.C.unsigned_char'Size;
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! for Set_Type use (Unset => 0, Set => 1);
--! for Set_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
XmINDICATOR_3D_BOX : constant := 16#01#;
XmINDICATOR_FLAT_BOX : constant := 16#02#;
@@ -242,17 +242,17 @@
Cross_Box => XmINDICATOR_CROSS_GLYPH + XmINDICATOR_3D_BOX);
for Indicator_On_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Indicator_Type use (N_Of_Many => 1, One_Of_Many => 2, One_Of_Many_Round => 3);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! for Indicator_Type use (N_Of_Many => 1, One_Of_Many => 2);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
for Indicator_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Toggle_Mode_Type use (Toggle_Boolean => 0, Toggle_Indeterminate => 1);
for Toggle_Mode_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
c_const_Xm_Toggle_Button_Widget_Class : Widget_Class;
@@ -274,18 +274,18 @@
Xm_N_Arm_Callback : constant Xt_N_Resource_String
:= Xm_Widgets.Primitive.Xm_N_Arm_Callback;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Detail_Shadow_Thickness : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Detail_Shadow_Thickness;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Disarm_Callback : constant Xt_N_Resource_String
:= Xm_Widgets.Primitive.Xm_N_Disarm_Callback;
Xm_N_Fill_On_Select : constant Xt_N_Resource_String :=
To_Resource_String ("fillOnSelect");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Indeterminate_Pixmap : constant Xt_N_Resource_String :=
To_Resource_String ("indeterminatePixmap");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Indicator_On : constant Xt_N_Resource_String :=
To_Resource_String ("indicatorOn");
@@ -305,13 +305,13 @@
Xm_N_Spacing : constant Xt_N_Resource_String :=
Xm_Widgets.Primitive.Xm_N_Spacing;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Toggle_Mode : constant Xt_N_Resource_String :=
To_Resource_String ("toggleMode");
Xm_N_Unselect_Color : constant Xt_N_Resource_String :=
To_Resource_String ("unselectColor");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Value_Changed_Callback : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Value_Changed_Callback;
Xm_N_Visible_When_Off : constant Xt_N_Resource_String :=
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-label.ads ./lib/xm_widgets-primitive-label.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-label.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-label.ads Thu Dec 26 13:36:40 2002
@@ -103,9 +103,9 @@
Xm_N_Mnemonic : constant Xt_N_Resource_String;
Xm_N_Mnemonic_Char_Set : constant Xt_N_Resource_String;
Xm_N_Recompute_Size : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Render_Table : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_String_Direction : constant Xt_N_Resource_String;
@@ -167,10 +167,10 @@
To_Resource_String ("mnemonicCharSet");
Xm_N_Recompute_Size : constant Xt_N_Resource_String :=
To_Resource_String ("recomputeSize");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Render_Table : constant Xt_N_Resource_String :=
Xm_Widgets.Xm_N_Render_Table;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_String_Direction : constant Xt_N_Resource_String :=
To_Resource_String ("stringDirection");
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-list.adb ./lib/xm_widgets-primitive-list.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-list.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-list.adb Thu Dec 26 13:36:40 2002
@@ -311,7 +311,7 @@
procedure Xm_List_Add_Item_Unselected
(W : in Widget;
Item : in Xm_String;
- Pos : in Integer) is
+ Pos : in Integer := 0) is
begin
XmListAddItemUnselected (W, Item, Pos);
end Xm_List_Add_Item_Unselected;
@@ -321,7 +321,7 @@
procedure Xm_List_Add_Items_Unselected
(W : in Widget;
Items : in Xm_String_List;
- Pos : in Integer) is
+ Pos : in Integer := 0) is
begin
XmListAddItemsUnselected (W, Items (Items'First)'Address, Integer(Items'Length), Pos);
end Xm_List_Add_Items_Unselected;
@@ -844,7 +844,7 @@
pragma Inline (Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Match_Behavior_Type, Interfaces.C.unsigned_char);
@@ -920,7 +920,7 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-list.ads ./lib/xm_widgets-primitive-list.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-list.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-list.ads Thu Dec 26 13:36:40 2002
@@ -55,11 +55,11 @@
type Selection_Type is
(Initial, Addition, Modification);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
type Auto_Selection_Type is
(Auto_Unset, Auto_Begin, Auto_Motion,
Auto_Cancel, Auto_No_Change, Auto_Change);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
type Xm_List_Callback_Struct is record
Reason : Callback_Reason;
@@ -71,9 +71,9 @@
Selected_Item_Count : Integer;
Selected_Item_Position : System.Address; -- preliminary, should be Integer_Array_Pointer_Type
Sel_Type : Selection_Type;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Auto_Sel_Type : Auto_Selection_Type;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end record;
pragma Convention (C, Xm_List_Callback_Struct);
@@ -138,12 +138,12 @@
procedure Xm_List_Add_Item_Unselected
(W : in Widget;
Item : in Xm_String;
- Pos : in Integer);
+ Pos : in Integer := 0);
procedure Xm_List_Add_Items_Unselected
(W : in Widget;
Items : in Xm_String_List;
- Pos : in Integer);
+ Pos : in Integer := 0);
-- -------------------------------------------------------------------------
@@ -412,9 +412,9 @@
Xm_N_Browse_Selection_Callback : constant Xt_N_Resource_String;
Xm_N_Default_Action_Callback : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Destination_Callback : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Double_Click_Interval : constant Xt_N_Resource_String;
Xm_N_Extended_Selection_Callback : constant Xt_N_Resource_String;
Xm_N_Font_List : constant Xt_N_Resource_String;
@@ -437,7 +437,7 @@
pragma Convention (C, Append_Get);
Xm_N_List_Spacing : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Match_Behavior : constant Xt_N_Resource_String;
type Match_Behavior_Type is
@@ -452,9 +452,9 @@
Value : out Match_Behavior_Type);
pragma Convention (C, Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Multiple_Selection_Callback : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Primary_Ownership : constant Xt_N_Resource_String;
type Primary_Ownership_Type is
@@ -470,7 +470,7 @@
pragma Convention (C, Append_Get);
Xm_N_Render_Table : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Scroll_Bar_Display_Policy : constant Xt_N_Resource_String;
subtype Scroll_Bar_Display_Policy_Type is
@@ -486,12 +486,12 @@
Value : out Scroll_Bar_Display_Policy_Type)
renames Xm_Widgets.Manager.Scrolled_Window.Append_Get;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Select_Color : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Selected_Item_Count : constant Xt_N_Resource_String;
Xm_N_Selected_Items : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Selected_Position_Count : constant Xt_N_Resource_String;
Xm_N_Selected_Positions : constant Xt_N_Resource_String;
Xm_N_Selection_Mode : constant Xt_N_Resource_String;
@@ -507,7 +507,7 @@
Value : out Selection_Mode_Type);
pragma Convention (C, Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Selection_Policy : constant Xt_N_Resource_String;
@@ -535,18 +535,18 @@
(Initial => 0, Addition => 1, Modification => 2);
for Selection_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Auto_Selection_Type use
(Auto_Unset => 0, Auto_Begin => 1, Auto_Motion => 2,
Auto_Cancel => 3, Auto_No_Change => 4, Auto_Change => 5);
for Auto_Selection_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
for List_Size_Policy_Type use
(Change_All => 0, Change_None => 1, Change_Width => 2, Change_Height => 3);
for List_Size_Policy_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Match_Behavior_Type use
(None => 0, Quick_Navigate => 1, Invalid_Match_Behavior => 2);
for Match_Behavior_Type'Size use Interfaces.C.unsigned_char'Size;
@@ -557,7 +557,7 @@
for Selection_Mode_Type use (Normal_Mode => 0, Add_Mode => 1);
for Selection_Mode_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
for Selection_Policy_Type use
(Single_Select => 0, Multiple_Select => 1, Extended_Select => 2, Browse_Select => 3);
@@ -590,10 +590,10 @@
:= To_Resource_String ("browseSelectionCallback");
Xm_N_Default_Action_Callback : constant Xt_N_Resource_String
:= To_Resource_String ("defaultActionCallback");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Destination_Callback : constant Xt_N_Resource_String :=
Xm_Widgets.Xm_N_Destination_Callback;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Double_Click_Interval : constant Xt_N_Resource_String
:= To_Resource_String ("doubleClickInterval");
Xm_N_Extended_Selection_Callback : constant Xt_N_Resource_String
@@ -613,32 +613,32 @@
Xm_N_List_Spacing : constant Xt_N_Resource_String
:= To_Resource_String ("listSpacing");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Match_Behavior : constant Xt_N_Resource_String
:= To_Resource_String ("matchBehavior");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Multiple_Selection_Callback : constant Xt_N_Resource_String
:= To_Resource_String ("multipleSelectionCallback");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Primary_Ownership : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Primary_Ownership;
Xm_N_Render_Table : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Render_Table;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Scroll_Bar_Display_Policy : constant Xt_N_Resource_String :=
Xm_Widgets.Manager.Scrolled_Window.Xm_N_Scroll_Bar_Display_Policy;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Select_Color : constant Xt_N_Resource_String
:= To_Resource_String ("selectColor");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Selected_Item_Count : constant Xt_N_Resource_String
:= To_Resource_String ("selectedItemCount");
Xm_N_Selected_Items : constant Xt_N_Resource_String
:= To_Resource_String ("selectedItems");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Selected_Position_Count : constant Xt_N_Resource_String
:= To_Resource_String ("selectedPositionCount");
Xm_N_Selected_Positions : constant Xt_N_Resource_String
@@ -646,7 +646,7 @@
Xm_N_Selection_Mode : constant Xt_N_Resource_String
:= To_Resource_String ("selectionMode");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Selection_Policy : constant Xt_N_Resource_String :=
Xm_Widgets.Xm_N_Selection_Policy;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-scroll_bar.adb ./lib/xm_widgets-primitive-scroll_bar.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-scroll_bar.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-scroll_bar.adb Thu Dec 26 13:36:40 2002
@@ -185,7 +185,7 @@
pragma Inline (Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Slider_Mark_Type, Interfaces.C.unsigned_char);
@@ -261,6 +261,6 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Primitive.Scroll_Bar;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-scroll_bar.ads ./lib/xm_widgets-primitive-scroll_bar.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-scroll_bar.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-scroll_bar.ads Thu Dec 26 13:36:40 2002
@@ -103,9 +103,9 @@
Xm_N_Decrement_Callback : constant Xt_N_Resource_String;
Xm_N_Drag_Callback : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Editable : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Increment : constant Xt_N_Resource_String;
Xm_N_Increment_Callback : constant Xt_N_Resource_String;
Xm_N_Initial_Delay : constant Xt_N_Resource_String;
@@ -149,7 +149,7 @@
Value : out Show_Arrows_Type);
pragma Convention (C, Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Slider_Mark : constant Xt_N_Resource_String;
type Slider_Mark_Type is (None, Etched_Line, Thumb_Mark, Round_Mark);
@@ -163,11 +163,11 @@
Value : out Slider_Mark_Type);
pragma Convention (C, Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Slider_Size : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Slider_Visual : constant Xt_N_Resource_String;
type Slider_Visual_Type is (Background_Color,
@@ -199,7 +199,7 @@
pragma Convention (C, Append_Get);
Xm_N_Snap_Back_Multiple : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_To_Bottom_Callback : constant Xt_N_Resource_String;
Xm_N_To_Top_Callback : constant Xt_N_Resource_String;
Xm_N_Through_Color : constant Xt_N_Resource_String;
@@ -217,7 +217,7 @@
for Show_Arrows_Type use (None => 0, Each_Side => 1, Max_Side => 2, Min_Side => 3);
for Show_Arrows_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Slider_Mark_Type use (None => 0, Etched_Line => 1, Thumb_Mark => 2, Round_Mark => 3);
for Slider_Mark_Type'Size use Interfaces.C.unsigned_char'Size;
@@ -229,7 +229,7 @@
Through_Color => 2,
Shadowed_Background => 3);
for Slider_Visual_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
c_const_Xm_Scroll_Bar_Widget_Class : Widget_Class;
@@ -249,10 +249,10 @@
To_Resource_String ("decrementCallback");
Xm_N_Drag_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("dragCallback");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Editable : constant Xt_N_Resource_String :=
To_Resource_String ("editable");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Increment : constant Xt_N_Resource_String :=
To_Resource_String ("increment");
Xm_N_Increment_Callback : constant Xt_N_Resource_String :=
@@ -280,16 +280,16 @@
Xm_N_Show_Arrows : constant Xt_N_Resource_String :=
To_Resource_String ("showArrows");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Slider_Mark : constant Xt_N_Resource_String :=
To_Resource_String ("sliderMark");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Slider_Size : constant Xt_N_Resource_String :=
To_Resource_String ("sliderSize");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Slider_Visual : constant Xt_N_Resource_String :=
To_Resource_String ("sliderVisual");
Xm_N_Sliding_Mode : constant Xt_N_Resource_String :=
@@ -297,7 +297,7 @@
Xm_N_Snap_Back_Multiple : constant Xt_N_Resource_String :=
To_Resource_String ("snapBackMultiple");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_To_Bottom_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("toBottomCallback");
Xm_N_To_Top_Callback : constant Xt_N_Resource_String :=
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-text-data_field.adb ./lib/xm_widgets-primitive-text-data_field.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-text-data_field.adb Thu Jan 1 01:00:00 1970
+++ ./lib/xm_widgets-primitive-text-data_field.adb Thu Dec 26 13:36:40 2002
@@ -0,0 +1,457 @@
+-------------------------------------------------------------------------------
+-- --
+-- Ada Interface to the X Window System and Motif(tm)/Lesstif --
+-- Copyright (c) 1996-2002 Hans-Frieder Vogt --
+-- This file also copyright (c) 2002 Vadim Godunko --
+-- --
+-- Adabindx is free software; you can redistribute it and/or modify it --
+-- under the terms of the GNU General Public License as published by the --
+-- Free Software Foundation; either version 2 of the License, or (at your --
+-- option) any later version. --
+-- --
+-- This program is distributed in the hope that it will be useful, but --
+-- WITHOUT ANY WARRANTY; without even the implied warranty of --
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
+-- See the GNU General Public License for more details. --
+-- --
+-- You should have received a copy of the GNU General Public License --
+-- along with this program; if not, write to the --
+-- Free Software Foundation, Inc., --
+-- 59 Temple Place - Suite 330, --
+-- Boston, MA 02111-1307, USA. --
+-- --
+-- As a special exception, if other files instantiate generics from this --
+-- unit, or you link this unit with other files to produce an executable, --
+-- this unit does not by itself cause the resulting executable to be --
+-- covered by the GNU General Public License. This exception does not --
+-- however invalidate any other reasons why the executable file might be --
+-- covered by the GNU General Public License. --
+-- --
+-- X Window System is copyrighted by the X Consortium --
+-- Motif(tm) is copyrighted by the Open Software Foundation, Inc. --
+-- and by The Open Group --
+-- --
+-- --
+-------------------------------------------------------------------------------
+
+-------------------------------------------------------------------------------
+--
+-- HISTORY:
+-- 2002-10-17 Vadim Godunko: first definition of this file
+--
+-------------------------------------------------------------------------------
+with Interfaces.C;
+with Interfaces.C.Strings;
+with Interfaces.C.Wstrings;
+
+with X_Toolkit.Internal;
+
+
+package body Xm_Widgets.Primitive.Text.Data_Field is
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> XtFree
+ --! <Purpose>
+ --! <Exceptions>
+ ---------------------------------------------------------------------------
+ procedure XtFree (Value : in Interfaces.C.Strings.chars_ptr);
+ procedure XtFree (Value : in Interfaces.C.Wstrings.wchars_ptr);
+ pragma Import (C, XtFree,"XtFree");
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Create_Data_Field
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ function Xm_Create_Data_Field (Parent : in Widget;
+ Name : in String;
+ Arglist : in Arg_List := Null_Arg_List)
+ return Widget is
+ function XmCreateDataField
+ (Parent : in Widget;
+ Name : in Interfaces.C.char_array;
+ Args : in X_Toolkit.Internal.Arg_Rec_Access;
+ Count : in Cardinal)
+ return Widget;
+ pragma Import (C, XmCreateDataField, "XmCreateDataField");
+ begin
+ return XmCreateDataField (Parent,
+ Interfaces.C.To_C (Name),
+ X_Toolkit.Internal.Hook (Arglist),
+ Cardinal (Length (Arglist)));
+ end Xm_Create_Data_Field;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Copy
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Copy (W : in Widget;
+ Clip_Time : in X_Lib.Server_Time) is
+ function XmDataFieldCopy (W : in Widget;
+ Clip_Time : in X_Lib.Server_Time)
+ return Xt_Boolean;
+ pragma Import (C, XmDataFieldCopy, "XmDataFieldCopy");
+ begin
+ if XmDataFieldCopy (W, Clip_Time) = Xt_Boolean'(False) then
+ raise Xm_Data_Field_Dont_Own_Primary_Selection;
+ end if;
+ end Xm_Data_Field_Copy;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Cut
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Cut (W : in Widget;
+ Clip_Time : in X_Lib.Server_Time) is
+ function XmDataFieldCut (W : in Widget;
+ Clip_Time : in X_Lib.Server_Time)
+ return Xt_Boolean;
+ pragma Import (C, XmDataFieldCut, "XmDataFieldCut");
+ begin
+ if XmDataFieldCut (W, Clip_Time) = Xt_Boolean'(False) then
+ raise Xm_Data_Field_Dont_Own_Primary_Selection;
+ end if;
+ end Xm_Data_Field_Cut;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Get_Add_Mode
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ function Xm_Data_Field_Get_Add_Mode (W : in Widget) return Boolean is
+ function XmDataFieldGetAddMode (W : in Widget) return Xt_Boolean;
+ pragma Import (C, XmDataFieldGetAddMode, "XmDataFieldGetAddMode");
+ begin
+ return XmDataFieldGetAddMode (W) /= Xt_Boolean'(False);
+ end Xm_Data_Field_Get_Add_Mode;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Get_Editable
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ function Xm_Data_Field_Get_Editable (W : in Widget) return Boolean is
+ function XmDataFieldGetEditable (W : in Widget) return Xt_Boolean;
+ pragma Import (C, XmDataFieldGetEditable, "XmDataFieldGetEditable");
+ begin
+ return XmDataFieldGetEditable (W) /= Xt_Boolean'(False);
+ end Xm_Data_Field_Get_Editable;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Get_Selection
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ function Xm_Data_Field_Get_Selection (W : in Widget) return String is
+ function XmDataFieldGetSelection (W : in Widget)
+ return Interfaces.C.Strings.chars_ptr;
+ pragma Import (C, XmDataFieldGetSelection, "XmDataFieldGetSelection");
+
+ X_S : Interfaces.C.Strings.chars_ptr;
+ begin
+ X_S := XmDataFieldGetSelection (W);
+ declare
+ Result : constant String := Interfaces.C.Strings.Value (X_S);
+ begin
+ XtFree (X_S);
+ return Result;
+ end;
+ end Xm_Data_Field_Get_Selection;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Get_Selection
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ function Xm_Data_Field_Get_Selection (W : in Widget) return Wide_String is
+ function XmDataFieldGetSelectionWcs (W : in Widget)
+ return Interfaces.C.Wstrings.wchars_ptr;
+ pragma Import (C, XmDataFieldGetSelectionWcs,
+ "XmDataFieldGetSelectionWcs");
+
+ X_S : Interfaces.C.Wstrings.wchars_ptr;
+ begin
+ X_S := XmDataFieldGetSelectionWcs (W);
+ declare
+ Result : constant Wide_String := Interfaces.C.Wstrings.Value (X_S);
+ begin
+ XtFree (X_S);
+ return Result;
+ end;
+ end Xm_Data_Field_Get_Selection;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Get_String
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ function Xm_Data_Field_Get_String (W : in Widget) return String is
+ function XmDataFieldGetString (W : in Widget)
+ return Interfaces.C.Strings.chars_ptr;
+ pragma Import (C, XmDataFieldGetString, "XmDataFieldGetString");
+
+ X_S : Interfaces.C.Strings.chars_ptr;
+ begin
+ X_S := XmDataFieldGetString (W);
+ declare
+ Result : constant String := Interfaces.C.Strings.Value (X_S);
+ begin
+ XtFree (X_S);
+ return Result;
+ end;
+ end Xm_Data_Field_Get_String;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Get_String
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ function Xm_Data_Field_Get_String (W : in Widget) return Wide_String is
+ function XmDataFieldGetStringWcs (W : in Widget)
+ return Interfaces.C.Wstrings.wchars_ptr;
+ pragma Import (C, XmDataFieldGetStringWcs, "XmDataFieldGetStringWcs");
+
+ X_S : Interfaces.C.Wstrings.wchars_ptr;
+ begin
+ X_S := XmDataFieldGetStringWcs (W);
+ declare
+ Result : constant Wide_String := Interfaces.C.Wstrings.Value (X_S);
+ begin
+ XtFree (X_S);
+ return Result;
+ end;
+ end Xm_Data_Field_Get_String;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Insert
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Insert (W : in Widget;
+ Position : in Xm_Text_Position;
+ Value : in String) is
+ procedure XmDataFieldInsert (W : in Widget;
+ Position : in Xm_Text_Position;
+ Value : in Interfaces.C.char_array);
+ pragma Import (C, XmDataFieldInsert, "XmDataFieldInsert");
+ begin
+ XmDataFieldInsert (W, Position, Interfaces.C.To_C (Value));
+ end Xm_Data_Field_Insert;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Insert
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Insert (W : in Widget;
+ Position : in Xm_Text_Position;
+ Value : in Wide_String) is
+ procedure XmDataFieldInsertWcs (W : in Widget;
+ Position : in Xm_Text_Position;
+ Value : in Interfaces.C.wchar_array);
+ pragma Import (C, XmDataFieldInsertWcs, "XmDataFieldInsertWcs");
+ begin
+ XmDataFieldInsertWcs (W, Position, Interfaces.C.To_C (Value));
+ end Xm_Data_Field_Insert;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Paste
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Paste (W : in Widget) is
+ function XmDataFieldPaste (W : in Widget) return Xt_Boolean;
+ pragma Import (C, XmDataFieldPaste, "XmDataFieldPaste");
+ begin
+ if XmDataFieldPaste (W) = Xt_Boolean'(False) then
+ raise Xm_Data_Field_Dont_Own_Primary_Selection;
+ end if;
+ end Xm_Data_Field_Paste;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Pos_To_XY
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Pos_To_XY (W : in Widget;
+ Position : in Xm_Text_Position;
+ X : out X_Lib.Position;
+ Y : out X_Lib.Position) is
+ function XmDataFieldPosToXY (W : in Widget;
+ Position : in Xm_Text_Position;
+ X : in System.Address;
+ Y : in System.Address)
+ return Xt_Boolean;
+ pragma Import (C, XmDataFieldPosToXY, "XmDataFieldPosToXY");
+ begin
+ if XmDataFieldPosToXY (W, Position, X'Address, Y'Address) =
+ Xt_Boolean'(False)
+ then
+ raise Xm_Data_Field_Not_In_Data_Field_Widget;
+ end if;
+ end Xm_Data_Field_Pos_To_XY;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Replace
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Replace (W : in Widget;
+ From_Position : in Xm_Text_Position;
+ To_Position : in Xm_Text_Position;
+ Value : in String) is
+ procedure XmDataFieldReplace
+ (W : in Widget;
+ From_Position : in Xm_Text_Position;
+ To_Position : in Xm_Text_Position;
+ Value : in Interfaces.C.char_array);
+ pragma Import (C, XmDataFieldReplace, "XmDataFieldReplace");
+ begin
+ XmDataFieldReplace (W, From_Position, To_Position,
+ Interfaces.C.To_C (Value));
+ end Xm_Data_Field_Replace;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Replace
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Replace (W : in Widget;
+ From_Position : in Xm_Text_Position;
+ To_Position : in Xm_Text_Position;
+ Value : in Wide_String) is
+ procedure XmDataFieldReplaceWcs
+ (W : in Widget;
+ From_Position : in Xm_Text_Position;
+ To_Position : in Xm_Text_Position;
+ Value : in Interfaces.C.wchar_array);
+ pragma Import (C, XmDataFieldReplaceWcs, "XmDataFieldReplaceWcs");
+ begin
+ XmDataFieldReplaceWcs (W, From_Position, To_Position,
+ Interfaces.C.To_C (Value));
+ end Xm_Data_Field_Replace;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Set_Add_Mode
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Set_Add_Mode (W : in Widget;
+ State : in Boolean) is
+ procedure XmDataFieldSetAddMode (W : in Widget;
+ State : in Xt_Boolean);
+ pragma Import (C, XmDataFieldSetAddMode, "XmDataFieldSetAddMode");
+ begin
+ XmDataFieldSetAddMode (W, To_Xt_Boolean (State));
+ end Xm_Data_Field_Set_Add_Mode;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Set_Editable
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Set_Editable (W : in Widget;
+ Editable : in Boolean) is
+ procedure XmDataFieldSetEditable (W : in Widget;
+ Editable : in Xt_Boolean);
+ pragma Import (C, XmDataFieldSetEditable, "XmDataFieldSetEditable");
+ begin
+ XmDataFieldSetEditable (W, To_Xt_Boolean (Editable));
+ end Xm_Data_Field_Set_Editable;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Set_String
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Set_String (W : in Widget;
+ Value : in String) is
+ procedure XmDataFieldSetString(W : in Widget;
+ Value : in Interfaces.C.char_array);
+ pragma Import (C, XmDataFieldSetString,"XmDataFieldSetString");
+ begin
+ XmDataFieldSetString (W, Interfaces.C.To_C (Value));
+ end Xm_Data_Field_Set_String;
+
+
+-- ---------------------------------------------------------------------------
+-- --! <Subprogram>
+-- --! <Unit> Xm_Data_Field_Set_String
+-- --! <Implementation_Notes>
+-- ---------------------------------------------------------------------------
+-- procedure Xm_Data_Field_Set_String (W : in Widget;
+-- Value : in Wide_String) is
+-- procedure XmDataFieldSetStringWcs (W : in Widget;
+ Value : in Interfaces.C.char_array);
+ pragma Import (C, XmDataFieldSetString,"XmDataFieldSetString");
+ begin
+ XmDataFieldSetString (W, Interfaces.C.To_C (Value));
+ end Xm_Data_Field_Set_String;
+
+
+-- ---------------------------------------------------------------------------
+-- --! <Subprogram>
+-- --! <Unit> Xm_Data_Field_Set_String
+-- --! <Implementation_Notes>
+-- ---------------------------------------------------------------------------
+-- procedure Xm_Data_Field_Set_String (W : in Widget;
+-- Value : in Wide_String) is
+-- procedure XmDataFieldSetStringWcs (W : in Widget;
+-- Value : in Interfaces.C.wchar_array);
+-- pragma Import (C, XmDataFieldSetStringWcs,"XmDataFieldSetStringWcs");
+-- begin
+---- UseGnat3.13p
+----! -- the GNAT 3.13p runtime (and possibly earlies ones as well) raise
+----! -- STORAGE_ERROR for Value with 'Length = 0
+----! -- This is a workaround to this problem
+----! --
+----! if Value'Length = 0 then
+----! declare
+----! Value_String : constant Interfaces.C.Wchar_Array (0 .. 0) :=
+----! (others => Interfaces.C.wide_nul);
+----! begin
+----! XmDataFieldSetStringWcs (W, Value_String);
+----! end;
+----! else
+----! XmDataFieldSetStringWcs (W, Interfaces.C.To_C (Value));
+----! end if;
+---- NotGnat3.13p
+-- XmDataFieldSetStringWcs (W, Interfaces.C.To_C (Value));
+---- EndGnat3.13p
+-- end Xm_Data_Field_Set_String;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Is_Data_Field
+ --! <Implementation_Notes>
+ ---------------------------------------------------------------------------
+ function Xm_Is_Data_Field (W : in Widget) return Boolean is
+ begin
+ return Xt_Is_Subclass (W, Xm_Data_Field_Widget_Class);
+ end Xm_Is_Data_Field;
+
+
+end Xm_Widgets.Primitive.Text.Data_Field;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-text-data_field.ads ./lib/xm_widgets-primitive-text-data_field.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-text-data_field.ads Thu Jan 1 01:00:00 1970
+++ ./lib/xm_widgets-primitive-text-data_field.ads Thu Dec 26 13:36:40 2002
@@ -0,0 +1,250 @@
+-------------------------------------------------------------------------------
+-- --
+-- Ada Interface to the X Window System and Motif(tm)/Lesstif --
+-- Copyright (c) 1996-2002 Hans-Frieder Vogt --
+-- This file also copyright (c) 2002 Vadim Godunko --
+-- --
+-- Adabindx is free software; you can redistribute it and/or modify it --
+-- under the terms of the GNU General Public License as published by the --
+-- Free Software Foundation; either version 2 of the License, or (at your --
+-- option) any later version. --
+-- --
+-- This program is distributed in the hope that it will be useful, but --
+-- WITHOUT ANY WARRANTY; without even the implied warranty of --
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
+-- See the GNU General Public License for more details. --
+-- --
+-- You should have received a copy of the GNU General Public License --
+-- along with this program; if not, write to the --
+-- Free Software Foundation, Inc., --
+-- 59 Temple Place - Suite 330, --
+-- Boston, MA 02111-1307, USA. --
+-- --
+-- As a special exception, if other files instantiate generics from this --
+-- unit, or you link this unit with other files to produce an executable, --
+-- this unit does not by itself cause the resulting executable to be --
+-- covered by the GNU General Public License. This exception does not --
+-- however invalidate any other reasons why the executable file might be --
+-- covered by the GNU General Public License. --
+-- --
+-- X Window System is copyrighted by the X Consortium --
+-- Motif(tm) is copyrighted by the Open Software Foundation, Inc. --
+-- and by The Open Group --
+-- --
+-- --
+-------------------------------------------------------------------------------
+
+-------------------------------------------------------------------------------
+--
+-- HISTORY:
+-- 2002-10-13 Vadim Godunko: first definition of this file
+--
+-------------------------------------------------------------------------------
+
+package Xm_Widgets.Primitive.Text.Data_Field is
+
+--UseOpenMotif2.2
+
+ Xm_Data_Field_Widget_Class : constant Widget_Class;
+
+ type Xm_Data_Field_Callback_Struct is record
+ W : Widget;
+ Text : X_Strings.X_String;
+ Doit : Boolean;
+ end record;
+ pragma Convention (C, Xm_Data_Field_Callback_Struct);
+
+ type Xm_Data_Field_Callback_Struct_Access is
+ access all Xm_Data_Field_Callback_Struct;
+
+
+ Xm_Data_Field_Dont_Own_Primary_Selection : exception;
+ Xm_Data_Field_Not_In_Data_Field_Widget : exception;
+
+
+ function Xm_Is_Data_Field (W : in Widget) return Boolean;
+
+ function Xm_Create_Data_Field (Parent : in Widget;
+ Name : in String;
+ Arglist : in Arg_List := Null_Arg_List)
+ return Widget;
+
+ procedure Xm_Data_Field_Set_String (W : in Widget;
+ Value : in String);
+
+ -- procedure Xm_Data_Field_Set_String (W : in Widget;
+ -- Value : in Wide_String);
+
+ function Xm_Data_Field_Get_String (W : in Widget) return String;
+
+ function Xm_Data_Field_Get_String (W : in Widget) return Wide_String;
+
+ -- Xm_Data_Field_Get_Substring
+ -- Xm_Data_Field_Get_Substring_Wcs
+
+ function Xm_Data_Field_Get_Last_Position (W : in Widget)
+ return Xm_Text_Position;
+
+ procedure Xm_Data_Field_Replace (W : in Widget;
+ From_Position : in Xm_Text_Position;
+ To_Position : in Xm_Text_Position;
+ Value : in String);
+
+ procedure Xm_Data_Field_Replace (W : in Widget;
+ From_Position : in Xm_Text_Position;
+ To_Position : in Xm_Text_Position;
+ Value : in Wide_String);
+
+ procedure Xm_Data_Field_Insert (W : in Widget;
+ Position : in Xm_Text_Position;
+ Value : in String);
+
+ procedure Xm_Data_Field_Insert (W : in Widget;
+ Position : in Xm_Text_Position;
+ Value : in Wide_String);
+
+ procedure Xm_Data_Field_Set_Add_Mode (W : in Widget;
+ State : in Boolean);
+
+ function Xm_Data_Field_Get_Add_Mode (W : in Widget) return Boolean;
+
+ procedure Xm_Data_Field_Set_Highlight (W : in Widget;
+ Left : in Xm_Text_Position;
+ Right : in Xm_Text_Position;
+ Mode : in Xm_Highlight_Mode);
+
+ function Xm_Data_Field_Get_Editable (W : in Widget) return Boolean;
+
+ procedure Xm_Data_Field_Set_Editable (W : in Widget;
+ Editable : in Boolean);
+
+ function Xm_Data_Field_Get_Max_Length (W : in Widget) return Integer;
+
+ procedure Xm_Data_Field_Set_Max_Length (W : in Widget;
+ Max_Length : in Integer);
+
+ function Xm_Data_Field_Get_Cursor_Position (W : in Widget)
+ return Xm_Text_Position;
+
+ function Xm_Data_Field_Get_Insertion_Position (W : in Widget)
+ return Xm_Text_Position;
+
+ procedure Xm_Data_Field_Set_Insertion_Position
+ (W : in Widget;
+ Position : in Xm_Text_Position);
+
+ function Xm_Data_Field_Get_Selection (W : in Widget) return String;
+
+ function Xm_Data_Field_Get_Selection (W : in Widget) return Wide_String;
+
+ procedure Xm_Data_Field_Set_Selection (W : in Widget;
+ First : in Xm_Text_Position;
+ Last : in Xm_Text_Position;
+ Time : in X_Lib.Server_Time);
+
+ procedure Xm_Data_Field_Get_Selection_Position
+ (W : in Widget;
+ Left : out Xm_Text_Position;
+ Right : out Xm_Text_Position);
+
+ function Xm_Data_Field_XY_To_Pos (W : in Widget;
+ X : in X_Lib.Position;
+ Y : in X_Lib.Position)
+ return Xm_Text_Position;
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Pos_To_XY
+ --! <Purpose>
+ --! <Exceptions>
+ --! Xm_Data_Field_Not_In_Data_Field_Widget - character position
+ --! not displayed in widget.
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Pos_To_XY (W : in Widget;
+ Position : in Xm_Text_Position;
+ X : out X_Lib.Position;
+ Y : out X_Lib.Position);
+
+
+ procedure Xm_Data_Field_Show_Position (W : in Widget;
+ Position : in Xm_Text_Position);
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Cut
+ --! <Purpose>
+ --! <Exceptions>
+ --! Xm_Data_Field_Donr_Own_Primary_Selection
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Cut (W : in Widget;
+ Clip_Time : in X_Lib.Server_Time);
+
+
+ ---------------------------------------------------------------------------
+ --! <Subprogram>
+ --! <Unit> Xm_Data_Field_Copy
+ --! <Purpose>
+ --! <Exceptions>
+ --! Xm_Data_Field_Donr_Own_Primary_Selection
+ ---------------------------------------------------------------------------
+ procedure Xm_Data_Field_Copy (W : in Widget;
+ Clip_Time : in X_Lib.Server_Time);
+
+
+ procedure Xm_Data_Field_Paste (W : in Widget);
+
+ function Xm_Data_Field_Get_Baseline (W : in Widget) return Integer;
+
+
+ Xm_N_Alignment : constant Xt_N_Resource_String;
+ Xm_N_Auto_Fill : constant Xt_N_Resource_String;
+ Xm_N_Picture : constant Xt_N_Resource_String;
+ Xm_N_Picture_Error_Callback : constant Xt_N_Resource_String;
+ Xm_N_Validate_Callback : constant Xt_N_Resource_String;
+
+
+private
+
+ c_const_Xm_Data_Field_Widget_Class : Widget_Class;
+ pragma Import (C, c_const_Xm_Data_Field_Widget_Class,
+ "xmDataFieldWidgetClass");
+
+ Xm_Data_Field_Widget_Class : constant Widget_Class :=
+ c_const_Xm_Data_Field_Widget_Class;
+
+
+ Xm_N_Alignment : constant Xt_N_Resource_String :=
+ Xm_Widgets.Primitive.Xm_N_Alignment;
+ Xm_N_Auto_Fill : constant Xt_N_Resource_String :=
+ To_Resource_String ("autoFill");
+ Xm_N_Picture : constant Xt_N_Resource_String :=
+ To_Resource_String ("picture");
+ Xm_N_Picture_Error_Callback : constant Xt_N_Resource_String :=
+ To_Resource_String ("pictureErrorCallback");
+ Xm_N_Validate_Callback : constant Xt_N_Resource_String :=
+ To_Resource_String ("validateCallback");
+
+
+ pragma Import (C, Xm_Data_Field_Get_Baseline,"XmDataFieldGetBaseline");
+ pragma Import (C, Xm_Data_Field_Get_Cursor_Position,
+ "XmDataFieldGetCursorPosition");
+ pragma Import (C, Xm_Data_Field_Get_Insertion_Position,
+ "XmDataFieldGetInsertionPosition");
+ pragma Import (C, Xm_Data_Field_Get_Last_Position,
+ "XmDataFieldGetLastPosition");
+ pragma Import (C, Xm_Data_Field_Get_Max_Length, "XmDataFieldGetMaxLength");
+ pragma Import (C, Xm_Data_Field_Get_Selection_Position,
+ "XmDataFieldGetSelectionPosition");
+ pragma Import (C, Xm_Data_Field_Set_Highlight, "XmDataFieldSetHighlight");
+ pragma Import (C, Xm_Data_Field_Set_Insertion_Position,
+ "XmDataFieldSetInsertionPosition");
+ pragma Import (C, Xm_Data_Field_Set_Max_Length, "XmDataFieldSetMaxLength");
+ pragma Import (C, Xm_Data_Field_Set_Selection, "XmDataFieldSetSelection");
+ pragma Import (C, Xm_Data_Field_Show_Position, "XmDataFieldShowPosition");
+ pragma Import (C, Xm_Data_Field_XY_To_Pos, "XmDataFieldXYToPos");
+
+--EndOpenMotif2.2
+
+end Xm_Widgets.Primitive.Text.Data_Field;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-text.adb ./lib/xm_widgets-primitive-text.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-text.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-text.adb Thu Dec 26 13:36:40 2002
@@ -494,7 +494,7 @@
function XmTextGetAddMode (W : in Widget) return Xt_Boolean;
pragma Import (C, XmTextGetAddMode, "XmTextGetAddMode");
begin
- return XmTextGetAddMode (W) = Xt_Boolean'(True);
+ return XmTextGetAddMode (W) /= Xt_Boolean'(False);
end Xm_Text_Get_Add_Mode;
@@ -502,7 +502,7 @@
function XmTextFieldGetAddMode (W : in Widget) return Xt_Boolean;
pragma Import (C, XmTextFieldGetAddMode, "XmTextFieldGetAddMode");
begin
- return XmTextFieldGetAddMode (W) = Xt_Boolean'(True);
+ return XmTextFieldGetAddMode (W) /= Xt_Boolean'(False);
end Xm_Text_Field_Get_Add_Mode;
-- EndLesstif
@@ -561,7 +561,7 @@
function XmTextGetEditable (W : in Widget) return Xt_Boolean;
pragma Import (C, XmTextGetEditable, "XmTextGetEditable");
begin
- return XmTextGetEditable (W) = Xt_Boolean'(True);
+ return XmTextGetEditable (W) /= Xt_Boolean'(False);
end Xm_Text_Get_Editable;
@@ -569,7 +569,7 @@
function XmTextFieldGetEditable (W : in Widget) return Xt_Boolean;
pragma Import (C, XmTextFieldGetEditable, "XmTextFieldGetEditable");
begin
- return XmTextFieldGetEditable (W) = Xt_Boolean'(True);
+ return XmTextFieldGetEditable (W) /= Xt_Boolean'(False);
end Xm_Text_Field_Get_Editable;
@@ -721,7 +721,7 @@
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
procedure Xm_Text_Copy_Link
(W : in Widget;
Clip_Time : in X_Lib.Server_Time) is
@@ -750,7 +750,7 @@
raise Xm_Text_Error_Dont_Own_Primary_Selection;
end if;
end Xm_Text_Field_Copy_Link;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
@@ -805,7 +805,7 @@
end Xm_Text_Field_Paste;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
procedure Xm_Text_Paste_Link (W : in Widget) is
function XmTextPasteLink (W : in Widget) return Xt_Boolean;
pragma Import (C, XmTextPasteLink, "XmTextPasteLink");
@@ -824,7 +824,7 @@
raise Xm_Text_Error_Dont_Own_Primary_Selection;
end if;
end Xm_Text_Field_Paste_Link;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-text.ads ./lib/xm_widgets-primitive-text.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive-text.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive-text.ads Thu Dec 26 13:36:40 2002
@@ -268,14 +268,14 @@
Clip_Time : in X_Lib.Server_Time);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
procedure Xm_Text_Copy_Link
(W : in Widget;
Clip_Time : in X_Lib.Server_Time);
procedure Xm_Text_Field_Copy_Link
(W : in Widget;
Clip_Time : in X_Lib.Server_Time);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
procedure Xm_Text_Cut
@@ -290,10 +290,10 @@
procedure Xm_Text_Field_Paste (W : in Widget);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
procedure Xm_Text_Paste_Link (W : in Widget);
procedure Xm_Text_Field_Paste_Link (W : in Widget);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
procedure Xm_Text_Clear_Selection
@@ -406,9 +406,9 @@
--
Xm_N_Cursor_Position_Visible : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Destination_Callback : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- for Xm_N_Editable use False or True
--
@@ -450,9 +450,9 @@
--
Xm_N_Top_Character : constant Xt_N_Resource_String;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Total_Lines : constant Xt_N_Resource_String;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Value : constant Xt_N_Resource_String;
Xm_N_Value_Changed_Callback : constant Xt_N_Resource_String;
@@ -480,9 +480,9 @@
Xm_N_Blink_Rate : constant Xt_N_Resource_String;
Xm_N_Columns : constant Xt_N_Resource_String;
Xm_N_Font_List : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Render_Table : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- for Xm_N_Resize_Height use False or True
--
@@ -578,10 +578,10 @@
To_Resource_String ("cursorPosition");
Xm_N_Cursor_Position_Visible : constant Xt_N_Resource_String :=
To_Resource_String ("cursorPositionVisible");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Destination_Callback : constant Xt_N_Resource_String :=
Xm_Widgets.Xm_N_Destination_Callback;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Editable : constant Xt_N_Resource_String :=
To_Resource_String ("editable");
Xm_N_Edit_Mode : constant Xt_N_Resource_String :=
@@ -611,10 +611,10 @@
To_Resource_String ("motionVerifyCallback");
Xm_N_Pending_Delete : constant Xt_N_Resource_String :=
To_Resource_String ("pendingDelete");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Render_Table : constant Xt_N_Resource_String :=
Xm_Widgets.Xm_N_Render_Table;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Resize_Height : constant Xt_N_Resource_String :=
To_Resource_String ("resizeHeight");
Xm_N_Resize_Width : constant Xt_N_Resource_String :=
@@ -639,10 +639,10 @@
To_Resource_String ("source");
Xm_N_Top_Character : constant Xt_N_Resource_String :=
To_Resource_String ("topCharacter");
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
Xm_N_Total_Lines : constant Xt_N_Resource_String :=
To_Resource_String ("totalLines");
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
Xm_N_Value : constant Xt_N_Resource_String :=
X_Toolkit.Xt_N_Value;
Xm_N_Value_Changed_Callback : constant Xt_N_Resource_String :=
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-primitive.ads ./lib/xm_widgets-primitive.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-primitive.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-primitive.ads Thu Dec 26 13:36:40 2002
@@ -38,6 +38,7 @@
-- HISTORY:
-- June 20, 1998 begin of history
-- 06 Aug 2001 Vadim Godunko: move Xm_Change_Color to Xm_Widgets
+-- 2002-03-22 Vadim Godunko: added resource Xm_N_Tool_Tip_String
--
-------------------------------------------------------------------------------
@@ -76,18 +77,18 @@
Xm_N_Bottom_Shadow_Color : constant Xt_N_Resource_String;
Xm_N_Bottom_Shadow_Pixmap : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Convert_Callback : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Foreground : constant Xt_N_Resource_String;
Xm_N_Help_Callback : constant Xt_N_Resource_String;
Xm_N_Highlight_Color : constant Xt_N_Resource_String;
Xm_N_Highlight_On_Enter : constant Xt_N_Resource_String;
Xm_N_Highlight_Pixmap : constant Xt_N_Resource_String;
Xm_N_Highlight_Thickness : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Layout_Direction : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Navigation_Type : constant Xt_N_Resource_String;
@@ -104,10 +105,13 @@
pragma Convention (C, Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Popup_Handler_Callback : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Shadow_Thickness : constant Xt_N_Resource_String;
+-- UseOpenMotif2.2
+ Xm_N_Tool_Tip_String : constant Xt_N_Resource_String;
+-- EndOpenMotif2.2
Xm_N_Top_Shadow_Color : constant Xt_N_Resource_String;
Xm_N_Top_Shadow_Pixmap : constant Xt_N_Resource_String;
Xm_N_Traversal_On : constant Xt_N_Resource_String;
@@ -161,10 +165,10 @@
To_Resource_String ("bottomShadowColor");
Xm_N_Bottom_Shadow_Pixmap : constant Xt_N_Resource_String :=
To_Resource_String ("bottomShadowPixmap");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Convert_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("convertCallback");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Foreground : constant Xt_N_Resource_String :=
To_Resource_String ("foreground");
Xm_N_Help_Callback : constant Xt_N_Resource_String :=
@@ -177,20 +181,24 @@
To_Resource_String ("highlightPixmap");
Xm_N_Highlight_Thickness : constant Xt_N_Resource_String :=
To_Resource_String ("highlightThickness");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Layout_Direction : constant Xt_N_Resource_String :=
To_Resource_String ("layoutDirection");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Navigation_Type : constant Xt_N_Resource_String :=
To_Resource_String ("navigationType");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Popup_Handler_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("popupHandlerCallback");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Shadow_Thickness : constant Xt_N_Resource_String :=
To_Resource_String ("shadowThickness");
+-- UseOpenMotif2.2
+ Xm_N_Tool_Tip_String : constant Xt_N_Resource_String :=
+ To_Resource_String ("toolTipString");
+-- EndOpenMotif2.2
Xm_N_Top_Shadow_Color : constant Xt_N_Resource_String :=
To_Resource_String ("topShadowColor");
Xm_N_Top_Shadow_Pixmap : constant Xt_N_Resource_String :=
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-print.adb ./lib/xm_widgets-print.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-print.adb Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-print.adb Thu Dec 26 13:36:40 2002
@@ -47,7 +47,7 @@
package body Xm_Widgets.Print is
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
function To_Callback_Struct (Pointer : in Xt_Pointer)
return Xm_Print_Shell_Callback_Struct_Access is
@@ -140,6 +140,6 @@
end if;
end Xm_Print_To_File;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
end Xm_Widgets.Print;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-print.ads ./lib/xm_widgets-print.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-print.ads Sat Mar 2 12:17:15 2002
+++ ./lib/xm_widgets-print.ads Thu Dec 26 13:36:40 2002
@@ -46,7 +46,7 @@
package Xm_Widgets.Print is
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
-- Xm_Print_Shell is a subclass of Xt_Application_Shell
--
@@ -167,6 +167,6 @@
pragma Import (C, Xm_Redisplay_Widget, "XmRedisplayWidget");
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
end Xm_Widgets.Print;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-screen.adb ./lib/xm_widgets-screen.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-screen.adb Sat Mar 2 12:17:16 2002
+++ ./lib/xm_widgets-screen.adb Thu Dec 26 13:36:40 2002
@@ -44,7 +44,7 @@
Interfaces.C;
package body Xm_Widgets.Screen is
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Bitmap_Conversion_Model_Type, Interfaces.C.unsigned_char);
@@ -68,7 +68,7 @@
Value => Value'Address);
end Append_Get;
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-screen.ads ./lib/xm_widgets-screen.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-screen.ads Sat Mar 2 12:17:16 2002
+++ ./lib/xm_widgets-screen.ads Thu Dec 26 13:36:40 2002
@@ -51,7 +51,7 @@
--
-- resources
--
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Bitmap_Conversion_Model : constant Xt_N_Resource_String;
type Bitmap_Conversion_Model_Type is (Match_Depth, Dynamic_Depth);
@@ -67,7 +67,7 @@
Xm_N_Color_Allocation_Proc : constant Xt_N_Resource_String;
Xm_N_Color_Calculation_Proc : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Dark_Threshold : constant Xt_N_Resource_String;
Xm_N_Default_Copy_Cursor_Icon : constant Xt_N_Resource_String;
Xm_N_Default_Invalid_Cursor_Icon : constant Xt_N_Resource_String;
@@ -79,9 +79,9 @@
Xm_N_Font : constant Xt_N_Resource_String;
Xm_N_Foreground_Threshold : constant Xt_N_Resource_String;
Xm_N_Horizontal_Font_Unit : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Insensitive_Stipple_Bitmap : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Light_Threshold : constant Xt_N_Resource_String;
Xm_N_Menu_Cursor : constant Xt_N_Resource_String;
Xm_N_Move_Opaque : constant Xt_N_Resource_String;
@@ -98,32 +98,32 @@
Value : out Unpost_Behavior_Type);
pragma Convention (C, Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Use_Color_Object : constant Xt_N_Resource_String;
Xm_N_User_Data : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Vertical_Font_Unit : constant Xt_N_Resource_String;
private
pragma Import (C, Xm_Get_Xm_Screen, "XmGetXmScreen");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Bitmap_Conversion_Model_Type use (Match_Depth => 0, Dynamic_Depth => 1);
for Bitmap_Conversion_Model_Type'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
for Unpost_Behavior_Type use (Unpost => 0, Unpost_And_Replay => 1);
for Unpost_Behavior_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Bitmap_Conversion_Model : constant Xt_N_Resource_String :=
To_Resource_String ("bitmapConversionModel");
Xm_N_Color_Allocation_Proc : constant Xt_N_Resource_String :=
To_Resource_String ("colorAllocationProc");
Xm_N_Color_Calculation_Proc : constant Xt_N_Resource_String :=
To_Resource_String ("colorCalculationProc");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Dark_Threshold : constant Xt_N_Resource_String :=
To_Resource_String ("darkThreshold");
Xm_N_Default_Copy_Cursor_Icon : constant Xt_N_Resource_String :=
@@ -146,10 +146,10 @@
To_Resource_String ("foregroundThreshold");
Xm_N_Horizontal_Font_Unit : constant Xt_N_Resource_String :=
To_Resource_String ("horizontalFontUnit");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Insensitive_Stipple_Bitmap : constant Xt_N_Resource_String :=
To_Resource_String ("insensitiveStippleBitmap");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Light_Threshold : constant Xt_N_Resource_String :=
To_Resource_String ("lightThreshold");
Xm_N_Menu_Cursor : constant Xt_N_Resource_String :=
@@ -158,12 +158,12 @@
To_Resource_String ("moveOpaque");
Xm_N_Unpost_Behavior : constant Xt_N_Resource_String :=
To_Resource_String ("unpostBehavior");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Use_Color_Object : constant Xt_N_Resource_String :=
To_Resource_String ("useColorObject");
Xm_N_User_Data : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_User_Data;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Vertical_Font_Unit : constant Xt_N_Resource_String :=
To_Resource_String ("verticalFontUnit");
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-shell.adb ./lib/xm_widgets-shell.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets-shell.adb Sat Mar 2 12:17:16 2002
+++ ./lib/xm_widgets-shell.adb Thu Dec 26 13:36:41 2002
@@ -68,13 +68,13 @@
pragma Inline (Xm_Is_Menu_Shell);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function Xm_Is_Grab_Shell (W : in Widget) return Boolean is
begin
return Xt_Is_Subclass (W, Xm_Grab_Shell_Widget_Class);
end Xm_Is_Grab_Shell;
pragma Inline (Xm_Is_Grab_Shell);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function Xm_Is_Vendor_Shell (W : in Widget) return Boolean is
@@ -121,7 +121,7 @@
pragma Inline (Xm_Create_Dialog_Shell);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
--
-- create Grab Shell
@@ -147,7 +147,7 @@
Cardinal (Length (Arglist)));
end Xm_Create_Grab_Shell;
pragma Inline (Xm_Create_Grab_Shell);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
@@ -278,7 +278,7 @@
pragma Inline (Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function To_Integer is
new Ada.Unchecked_Conversion (Input_Policy, Interfaces.C.unsigned_char);
@@ -304,7 +304,7 @@
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_Widgets.Shell;
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets-shell.ads ./lib/xm_widgets-shell.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets-shell.ads Sat Mar 2 12:17:16 2002
+++ ./lib/xm_widgets-shell.ads Thu Dec 26 13:36:41 2002
@@ -39,6 +39,8 @@
-- June 20, 1998 begin of history
-- July 07, 1998 HFVogt: changed type names to Initial_Window_State,
-- Audible_Warning_Kind
+-- 2002-03-22 Vadim Godunko: added resources Xm_N_Tool_Tip_Post_Delay,
+-- Xm_N_Tool_Tip_Post_Duration, Xm_N_Tool_Tip_Enable
--
-------------------------------------------------------------------------------
@@ -54,9 +56,9 @@
Xm_Dialog_Shell_Widget_Class : constant Widget_Class;
Xm_Drag_Over_Shell_Widget_Class : constant Widget_Class;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_Grab_Shell_Widget_Class : constant Widget_Class;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_Menu_Shell_Widget_Class : constant Widget_Class;
Xm_Vendor_Shell_Widget_Class : constant Widget_Class;
@@ -71,13 +73,13 @@
Arglist : in Arg_List := Null_Arg_List)
return Widget;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function Xm_Create_Grab_Shell
(Parent : in Widget;
Name : in String;
Arglist : in Arg_List := Null_Arg_List)
return Widget;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function Xm_Create_Menu_Shell
(Parent : in Widget;
@@ -89,9 +91,9 @@
function Xm_Is_Dialog_Shell (W : in Widget) return Boolean;
function Xm_Is_Drag_Over_Shell (W : in Widget) return Boolean;
function Xm_Is_Menu_Shell (W : in Widget) return Boolean;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
function Xm_Is_Grab_Shell (W : in Widget) return Boolean;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function Xm_Is_Vendor_Shell (W : in Widget) return Boolean;
function Xm_Is_Motif_WM_Running (Shell : in Widget) return Boolean;
@@ -121,15 +123,15 @@
-- Menu Shell
--
Xm_N_Button_Font_List : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Button_Render_Table : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Default_Font_List : constant Xt_N_Resource_String;
Xm_N_Label_Font_List : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Label_Render_Table : constant Xt_N_Resource_String;
Xm_N_Layout_Direction : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
@@ -216,7 +218,7 @@
pragma Convention (C, Append_Get);
Xm_N_Input_Method : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Input_Policy : constant Xt_N_Resource_String;
type Input_Policy is (Per_Shell, Per_Widget, Inherit_Policy);
@@ -230,7 +232,7 @@
Value : out Input_Policy);
pragma Convention (C, Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Keyboard_Focus_Policy : constant Xt_N_Resource_String;
@@ -256,9 +258,14 @@
Xm_N_Shell_Unit_Type : constant Xt_N_Resource_String;
Xm_N_Text_Font_List : constant Xt_N_Resource_String;
Xm_N_Text_Render_Table : constant Xt_N_Resource_String;
--- UseMotif2.0 Motif2.1
+-- UseOpenMotif2.2
+ Xm_N_Tool_Tip_Post_Delay : constant Xt_N_Resource_String;
+ Xm_N_Tool_Tip_Post_Duration : constant Xt_N_Resource_String;
+ Xm_N_Tool_Tip_Enable : constant Xt_N_Resource_String;
+-- EndOpenMotif2.2
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Unit_Type : constant Xt_N_Resource_String;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Use_Async_Geometry : constant Xt_N_Resource_String;
@@ -299,26 +306,26 @@
for Keyboard_Focus_Policy use (Explicit => 0, Pointer => 1);
for Keyboard_Focus_Policy'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Input_Policy use (Per_Shell => 0, Per_Widget => 1, Inherit_Policy => 255);
for Input_Policy'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- a workaround for gnat apparently not (yet) being able to import
-- constants
c_const_Xm_Dialog_Shell_Widget_Class : Widget_Class;
c_const_Xm_Drag_Over_Shell_Widget_Class : Widget_Class;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
c_const_Xm_Grab_Shell_Widget_Class : Widget_Class;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
c_const_Xm_Menu_Shell_Widget_Class : Widget_Class;
c_const_Xm_Vendor_Shell_Widget_Class : Widget_Class;
pragma Import (C, c_const_Xm_Dialog_Shell_Widget_Class, "xmDialogShellWidgetClass");
pragma Import (C, c_const_Xm_Drag_Over_Shell_Widget_Class, "xmDragOverShellWidgetClass");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
pragma Import (C, c_const_Xm_Grab_Shell_Widget_Class, "xmGrabShellWidgetClass");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
pragma Import (C, c_const_Xm_Menu_Shell_Widget_Class, "xmMenuShellWidgetClass");
pragma Import (C, c_const_Xm_Vendor_Shell_Widget_Class, "vendorShellWidgetClass");
@@ -326,10 +333,10 @@
c_const_Xm_Dialog_Shell_Widget_Class;
Xm_Drag_Over_Shell_Widget_Class : constant Widget_Class :=
c_const_Xm_Drag_Over_Shell_Widget_Class;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_Grab_Shell_Widget_Class : constant Widget_Class :=
c_const_Xm_Grab_Shell_Widget_Class;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_Menu_Shell_Widget_Class : constant Widget_Class :=
c_const_Xm_Menu_Shell_Widget_Class;
Xm_Vendor_Shell_Widget_Class : constant Widget_Class :=
@@ -371,20 +378,20 @@
--
Xm_N_Button_Font_List : constant Xt_N_Resource_String
:= To_Resource_String ("buttonFontList");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Button_Render_Table : constant Xt_N_Resource_String
:= To_Resource_String ("buttonRenderTable");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Default_Font_List : constant Xt_N_Resource_String
:= To_Resource_String ("defaultFontList");
Xm_N_Label_Font_List : constant Xt_N_Resource_String
:= To_Resource_String ("labelFontList");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Label_Render_Table : constant Xt_N_Resource_String
:= To_Resource_String ("labelRenderTable");
Xm_N_Layout_Direction : constant Xt_N_Resource_String
:= To_Resource_String ("layoutDirection");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
@@ -464,11 +471,11 @@
Xm_N_Input_Method : constant Xt_N_Resource_String
:= To_Resource_String ("inputMethod");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Input_Policy : constant Xt_N_Resource_String
:= To_Resource_String ("inputPolicy");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- Xm_N_Label_Font_List : constant Xt_N_Resource_String := To_Resource_String ("labelFontList");
-- Xm_N_Label_Render_Table : constant Xt_N_Resource_String := To_Resource_String ("labelRenderTable");
@@ -489,10 +496,18 @@
:= To_Resource_String ("textFontList");
Xm_N_Text_Render_Table : constant Xt_N_Resource_String
:= To_Resource_String ("textRenderTable");
--- UseMotif2.0 Motif2.1
+-- UseOpenMotif2.2
+ Xm_N_Tool_Tip_Post_Delay : constant Xt_N_Resource_String :=
+ To_Resource_String ("toolTipPostDelay");
+ Xm_N_Tool_Tip_Post_Duration : constant Xt_N_Resource_String :=
+ To_Resource_String ("toolTipPostDuration");
+ Xm_N_Tool_Tip_Enable : constant Xt_N_Resource_String :=
+ To_Resource_String ("toolTipEnable");
+-- EndOpenMotif2.2
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Unit_Type : constant Xt_N_Resource_String
:= Xm_Widgets.Xm_N_Unit_Type;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Use_Async_Geometry : constant Xt_N_Resource_String
:= To_Resource_String ("useAsyncGeometry");
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets.adb ./lib/xm_widgets.adb
--- ../adabindx-0.7.2.orig/lib/xm_widgets.adb Sat Mar 2 12:22:57 2002
+++ ./lib/xm_widgets.adb Thu Dec 26 13:36:41 2002
@@ -230,7 +230,7 @@
end Xm_Get_Pixmap_By_Depth;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
function Xm_Get_Scaled_Pixmap
(Wid : in Widget;
Image_Name : in String;
@@ -256,7 +256,7 @@
Foreground, Background, Depth,
Interfaces.C.double (Scaling_Ratio));
end Xm_Get_Scaled_Pixmap;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
procedure Xm_Destroy_Pixmap
(Screen : in X_Lib.Screen_Pointer;
@@ -277,7 +277,7 @@
new Ada.Unchecked_Conversion (Unit_Type, Interfaces.C.unsigned_char);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- ----------------------------------------------------------------------------
--
-- T A B
@@ -785,7 +785,7 @@
end loop;
end Xm_Parse_Table_Free;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
--
@@ -801,7 +801,7 @@
pragma Inline (Xm_Font_List_Free);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- ----------------------------------------------------------------------------
--
-- X M _ S T R I N G
@@ -824,8 +824,8 @@
function Xm_String_Generate
(Text : in String;
- Font_Or_Locale : in Xm_String_Tag;
- Rendition_Tag : in Xm_String_Tag)
+ Font_Or_Locale : in Xm_String_Tag := Null_String_Tag;
+ Rendition_Tag : in Xm_String_Tag := Null_String_Tag)
return Xm_String is
Text_String : constant Interfaces.C.Char_Array
@@ -841,8 +841,8 @@
function Xm_String_Generate
(Text : in Wide_String;
- Font_Or_Locale : in Xm_String_Tag;
- Rendition_Tag : in Xm_String_Tag)
+ Font_Or_Locale : in Xm_String_Tag := Null_String_Tag;
+ Rendition_Tag : in Xm_String_Tag := Null_String_Tag)
return Xm_String is
W_String : constant Interfaces.C.Wchar_Array
:= Interfaces.C.To_C (Text, Append_Nul => True);
@@ -941,7 +941,7 @@
Wide_S : Interfaces.C.Wstrings.wchars_ptr;
begin
Wide_S := XmStringUnparse (Str, Tag, Tag_Type,
- Multibyte_Text,
+ Widechar_Text,
Parse_Table'Address,
X_Toolkit.Cardinal (Parse_Table'Length),
Parse_Model);
@@ -954,7 +954,7 @@
end Xm_String_Unparse;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- ----------------------------------------------------------------------------
--
@@ -1236,7 +1236,7 @@
end Xm_String_Empty;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
--
-- Xm_String_Is_Void
@@ -1247,7 +1247,7 @@
begin
return XmStringIsVoid (Str) = Xt_Boolean'(True);
end Xm_String_Is_Void;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
@@ -1304,11 +1304,11 @@
procedure Xm_String_Draw
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1320,11 +1320,11 @@
procedure XmStringDraw
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1335,24 +1335,24 @@
Clip : in System.Address);
pragma Import (C, XmStringDraw, "XmStringDraw");
begin
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
XmStringDraw (Display, W, Render_Table, Str, GC, X, Y, Width,
Align, Lay_Dir, Clip'Address);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! XmStringDraw (Display, W, Fontlist, Str, GC, X, Y, Width,
--! Align, Lay_Dir, Clip'Address);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_String_Draw;
procedure Xm_String_Draw
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1363,11 +1363,11 @@
procedure XmStringDraw
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1378,13 +1378,13 @@
Clip : in System.Address);
pragma Import (C, XmStringDraw, "XmStringDraw");
begin
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
XmStringDraw (Display, W, Render_Table, Str, GC, X, Y, Width,
Align, Lay_Dir, System.Null_Address);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! XmStringDraw (Display, W, Fontlist, Str, GC, X, Y, Width,
--! Align, Lay_Dir, System.Null_Address);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_String_Draw;
@@ -1392,11 +1392,11 @@
procedure Xm_String_Draw_Image
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1408,11 +1408,11 @@
procedure XmStringDrawImage
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1423,24 +1423,24 @@
Clip : in System.Address);
pragma Import (C, XmStringDrawImage, "XmStringDrawImage");
begin
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
XmStringDrawImage (Display, W, Render_Table, Str, GC, X, Y, Width,
Align, Lay_Dir, Clip'Address);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! XmStringDrawImage (Display, W, Fontlist, Str, GC, X, Y, Width,
--! Align, Lay_Dir, Clip'Address);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_String_Draw_Image;
procedure Xm_String_Draw_Image
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1451,11 +1451,11 @@
procedure XmStringDrawImage
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1466,13 +1466,13 @@
Clip : in System.Address);
pragma Import (C, XmStringDrawImage, "XmStringDrawImage");
begin
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
XmStringDrawImage (Display, W, Render_Table, Str, GC, X, Y, Width,
Align, Lay_Dir, System.Null_Address);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! XmStringDrawImage (Display, W, Fontlist, Str, GC, X, Y, Width,
--! Align, Lay_Dir, System.Null_Address);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_String_Draw_Image;
@@ -1480,11 +1480,11 @@
procedure Xm_String_Draw_Underline
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1497,11 +1497,11 @@
procedure XmStringDrawUnderline
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1513,24 +1513,24 @@
Underline : in Xm_String);
pragma Import (C, XmStringDrawUnderline, "XmStringDrawUnderline");
begin
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
XmStringDrawUnderline (Display, W, Render_Table, Str, GC, X, Y, Width,
Align, Lay_Dir, Clip'Address, Underline);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! XmStringDrawUnderline (Display, W, Fontlist, Str, GC, X, Y, Width,
--! Align, Lay_Dir, Clip'Address, Underline);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_String_Draw_Underline;
procedure Xm_String_Draw_Underline
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1542,11 +1542,11 @@
procedure XmStringDrawUnderline
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1558,13 +1558,13 @@
Underline : in Xm_String);
pragma Import (C, XmStringDrawUnderline, "XmStringDrawUnderline");
begin
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
XmStringDrawUnderline (Display, W, Render_Table, Str, GC, X, Y, Width,
Align, Lay_Dir, System.Null_Address, Underline);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! XmStringDrawUnderline (Display, W, Fontlist, Str, GC, X, Y, Width,
--! Align, Lay_Dir, System.Null_Address, Underline);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
end Xm_String_Draw_Underline;
@@ -1705,7 +1705,7 @@
function To_Integer is
new Ada.Unchecked_Conversion (Orientation_Type, Interfaces.C.unsigned_char);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- if unsuccessful, raise Xm_Error_Conversion_Failed
--
@@ -1747,7 +1747,7 @@
end if;
end Xm_Convert_String_To_Units;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
--
@@ -1855,7 +1855,7 @@
end Append_Get;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
procedure Append_Set (List : in out Arg_List;
Name : in Xt_N_Resource_String;
Value : in Xm_Render_Table) is
@@ -1876,7 +1876,7 @@
Value => Value'Address);
end Append_Get;
pragma Inline (Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
function To_Int is
diff -Naur ../adabindx-0.7.2.orig/lib/xm_widgets.ads ./lib/xm_widgets.ads
--- ../adabindx-0.7.2.orig/lib/xm_widgets.ads Sat Mar 2 12:20:31 2002
+++ ./lib/xm_widgets.ads Thu Dec 26 13:36:41 2002
@@ -105,7 +105,7 @@
Component_Direction : constant Xm_String_Component_Type := 3;
Component_Separator : constant Xm_String_Component_Type := 4;
Component_Locale_Text : constant Xm_String_Component_Type := 5;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Component_Locale : constant Xm_String_Component_Type := 6;
Component_Widechar_Text : constant Xm_String_Component_Type := 7;
Component_Layout_Push : constant Xm_String_Component_Type := 8;
@@ -113,7 +113,7 @@
Component_Rendition_Begin : constant Xm_String_Component_Type := 10;
Component_Rendition_End : constant Xm_String_Component_Type := 11;
Component_Tab : constant Xm_String_Component_Type := 12;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- Elements 13 to 126 are reserved
Component_End : constant Xm_String_Component_Type := 126;
Component_User_Begin : constant Xm_String_Component_Type := 128;
@@ -181,6 +181,8 @@
Motif_Default_Locale : constant Xm_String_Tag
:= X_Strings.To_X_String ("_MOTIF_DEFAULT_LOCALE");
+ Xm_Fontlist_Default_Tag : constant Xm_String_Tag
+ := X_Strings.To_X_String ("FONTLIST_DEFAULT_TAG_STRING");
type Xm_String_Tag_Array is array (Natural range <>) of Xm_String_Tag;
@@ -281,23 +283,23 @@
--
-- Merge Mode
--
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
type Xm_Merge_Mode is (Skip, Merge_Replace, Merge_Old,
Merge_New, Duplicate);
for Xm_Merge_Mode use (Skip => 0, Merge_Replace => 1, Merge_Old => 2,
Merge_New => 3, Duplicate => 4);
--- NotMotif2.1
+-- NotMotif2.1 OpenMotif2.2
--! type Xm_Merge_Mode is (Skip, Replace, Merge_Old,
--! Merge_New, Duplicate);
--! for Xm_Merge_Mode use (Skip => 0, Replace => 1, Merge_Old => 2,
--! Merge_New => 3, Duplicate => 4);
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
for Xm_Merge_Mode'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
-- for compatibility with M*tif versions < 2.1
--
Replace : constant Xm_Merge_Mode := Merge_Replace;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
--
@@ -437,17 +439,17 @@
type Xm_String_Ptr is access Xm_String;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
type Unit_Type is (Pixels, Centi_Millimeters,
Milli_Inches, Centi_Points,
Centi_Font_Units, Inches,
Centimeters, Millimeters,
Points, Font_Units);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! type Unit_Type is (Pixels, Centi_Millimeters,
--! Milli_Inches, Centi_Points,
--! Centi_Font_Units);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
type Orientation_Type is (No_Orientation, Vertical, Horizontal);
@@ -514,7 +516,7 @@
Depth : in X_Lib.Color_Depth)
return X_Lib.Pixmap_ID;
--- UseMotif2.1
+-- UseMotif2.1 OpenMotif2.2
function Xm_Get_Scaled_Pixmap
(Wid : in Widget;
Image_Name : in String;
@@ -523,7 +525,7 @@
Depth : in X_Lib.Color_Depth;
Scaling_Ratio : in Long_Float)
return X_Lib.Pixmap_ID;
--- EndMotif2.1
+-- EndMotif2.1 OpenMotif2.2
-- remove the given pixmap from the pixmap cache
@@ -533,7 +535,7 @@
Pixmap : in X_Lib.Pixmap_ID);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- ----------------------------------------------------------------------------
--
-- T A B
@@ -808,7 +810,7 @@
procedure Xm_Parse_Table_Free (Parse_Table : in out Xm_Parse_Table);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- ----------------------------------------------------------------------------
@@ -855,7 +857,7 @@
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
-- ----------------------------------------------------------------------------
--
-- X M _ S T R I N G
@@ -877,14 +879,14 @@
--
function Xm_String_Generate
(Text : in String;
- Font_Or_Locale : in Xm_String_Tag;
- Rendition_Tag : in Xm_String_Tag)
+ Font_Or_Locale : in Xm_String_Tag := Null_String_Tag;
+ Rendition_Tag : in Xm_String_Tag := Null_String_Tag)
return Xm_String;
function Xm_String_Generate
(Text : in Wide_String;
- Font_Or_Locale : in Xm_String_Tag;
- Rendition_Tag : in Xm_String_Tag)
+ Font_Or_Locale : in Xm_String_Tag := Null_String_Tag;
+ Rendition_Tag : in Xm_String_Tag := Null_String_Tag)
return Xm_String;
-- function Xm_String_Generate
@@ -947,7 +949,7 @@
--
function Xm_String_Is_Void (Str : in Xm_String) return Boolean;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- ----------------------------------------------------------------------------
--
@@ -1160,11 +1162,11 @@
-- Xm_String_Width
--
function Xm_String_Width
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
(Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! (Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String)
return X_Lib.Dimension;
@@ -1174,11 +1176,11 @@
-- Xm_String_Height
--
function Xm_String_Height
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
(Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! (Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String)
return X_Lib.Dimension;
@@ -1188,11 +1190,11 @@
-- Xm_String_Extent
--
procedure Xm_String_Extent
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
(Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! (Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
Width : out X_Lib.Dimension;
Height : out X_Lib.Dimension);
@@ -1203,11 +1205,11 @@
-- Xm_String_Baseline
--
function Xm_String_Baseline
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
(Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! (Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String)
return X_Lib.Dimension;
@@ -1219,11 +1221,11 @@
procedure Xm_String_Draw
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1236,11 +1238,11 @@
procedure Xm_String_Draw
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1257,11 +1259,11 @@
procedure Xm_String_Draw_Image
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1274,11 +1276,11 @@
procedure Xm_String_Draw_Image
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1295,11 +1297,11 @@
procedure Xm_String_Draw_Underline
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1313,11 +1315,11 @@
procedure Xm_String_Draw_Underline
(Display : in X_Lib.Display_Pointer;
W : in X_Lib.Window_ID;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Render_Table : in Xm_Render_Table; -- NEW in Motif 2.0
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! Fontlist : in Xm_Font_List; -- Motif 1.2
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Str : in Xm_String;
GC : in X_Lib.GC_Pointer;
X,
@@ -1457,7 +1459,7 @@
Xm_Error_Invalid_Callback_Reason : exception;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_Error_Conversion_Failed : exception;
-- if unsuccessful, raise Xm_Error_Conversion_Failed
@@ -1468,7 +1470,7 @@
Orientation : in Orientation_Type;
To_Unit : in Unit_Type)
return Integer;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
-- -------------------------------------------------------------------------
@@ -1559,7 +1561,7 @@
pragma Convention (C, Append_Get);
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
procedure Append_Set (List : in out Arg_List;
Name : in Xt_N_Resource_String;
Value : in Xm_Render_Table);
@@ -1569,7 +1571,7 @@
Value : out Xm_Render_Table);
pragma Convention (C, Append_Get);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
procedure Append_Set (List : in out Arg_List;
Name : in Xt_N_Resource_String;
@@ -1658,7 +1660,7 @@
for Xm_Text_Scan_Type'Size use Interfaces.C.unsigned_char'Size;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
type Xm_Tab is new System.Address;
Null_Tab : constant Xm_Tab := Xm_Tab (System.Null_Address);
@@ -1693,7 +1695,7 @@
Output_Both => 4);
for Xm_Parse_Model'Size use Interfaces.C.unsigned_char'Size;
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
type Xm_Font_List is new System.Address;
Null_Font_List : constant Xm_Font_List := Xm_Font_List (System.Null_Address);
@@ -1747,17 +1749,17 @@
return Callback_Struct_Access;
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
for Unit_Type use (Pixels => 0, Centi_Millimeters => 1,
Milli_Inches => 2, Centi_Points => 3,
Centi_Font_Units => 4, Inches => 5,
Centimeters => 6, Millimeters => 7,
Points => 8, Font_Units => 9);
--- NotMotif2.0 Motif2.1
+-- NotMotif2.0 Motif2.1 OpenMotif2.2
--! for Unit_Type use (Pixels => 0, Centi_Millimeters => 1,
--! Milli_Inches => 2, Centi_Points => 3,
--! Centi_Font_Units => 4);
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
for Unit_Type'Size use Interfaces.C.unsigned_char'Size;
for Orientation_Type use (No_Orientation => 0, Vertical => 1, Horizontal => 2);
@@ -1830,20 +1832,20 @@
-- End64Bit
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
pragma Import (C, Xm_Tab_Set_Value, "XmTabSetValue");
pragma Import (C, Xm_Tab_List_Tab_Copy, "XmTabListTabCopy");
pragma Import (C, Xm_Tab_List_Get_Tab, "XmTabListGetTab");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
pragma Import (C, Xm_Font_List_Add, "XmFontListAdd");
pragma Import (C, Xm_Font_List_Copy, "XmFontListCopy");
pragma Import (C, Xm_Font_List_Create, "XmFontListCreate");
pragma Import (C, Xm_String_Direction_Create, "XmStringDirectionCreate");
pragma Import (C, Xm_String_Peek_Next_Component,"XmStringPeekNextComponent");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
pragma Import (C, Xm_String_Put_Rendition, "XmStringPutRendition");
pragma Import (C, Xm_Render_Table_Get_Rendition, "XmRenderTableGetRendition");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
pragma Import (C, Xm_String_Copy, "XmStringCopy");
pragma Import (C, Xm_String_N_Copy, "XmStringNCopy");
pragma Import (C, Xm_String_Concat, "XmStringConcat");
@@ -1930,12 +1932,12 @@
--
-- resource strings of subpackages of xm_widgets
--
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Destination_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("destinationCallback");
Xm_N_Detail_Shadow_Thickness : constant Xt_N_Resource_String :=
To_Resource_String ("detailShadowThickness");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Font_List : constant Xt_N_Resource_String :=
To_Resource_String ("fontList");
Xm_N_Label_String : constant Xt_N_Resource_String :=
@@ -1946,12 +1948,12 @@
To_Resource_String ("marginWidth");
Xm_N_Modify_Verify_Callback : constant Xt_N_Resource_String :=
To_Resource_String ("modifyVerifyCallback");
--- UseMotif2.0 Motif2.1
+-- UseMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Primary_Ownership : constant Xt_N_Resource_String :=
To_Resource_String ("primaryOwnership");
Xm_N_Render_Table : constant Xt_N_Resource_String :=
To_Resource_String ("renderTable");
--- EndMotif2.0 Motif2.1
+-- EndMotif2.0 Motif2.1 OpenMotif2.2
Xm_N_Select_Color : constant Xt_N_Resource_String :=
To_Resource_String ("selectColor");
Xm_N_Selection_Policy : constant Xt_N_Resource_String :=
diff -Naur ../adabindx-0.7.2.orig/utils/Makefile ./utils/Makefile
--- ../adabindx-0.7.2.orig/utils/Makefile Mon Apr 27 00:40:57 1998
+++ ./utils/Makefile Thu Dec 26 13:36:41 2002
@@ -28,6 +28,10 @@
islittleend: islittleend.adb
$(ADA_MAKE) $(ADA_MAKE_FLAGS) -I../lib $@ -largs $(ADA_LINK_FLAGS)
+install:
+ cp makefallb $(PREFIX)/bin
+ cp xpm2axpm $(PREFIX)/bin
+
clean:
$(RM) *.ali *.o
|