summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDChartAxisParams.cpp
blob: 70f448fd19281d4c406b523e4a006312832da33f (plain)
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
/*
   KDChart - a multi-platform charting engine
   */

/****************************************************************************
 ** Copyright (C) 2001-2003 Klarävdalens Datakonsult AB.  All rights reserved.
 **
 ** This file is part of the KDChart library.
 **
 ** This file may be distributed and/or modified under the terms of the
 ** GNU General Public License version 2 as published by the Free Software
 ** Foundation and appearing in the file LICENSE.GPL included in the
 ** packaging of this file.
 **
 ** Licensees holding valid commercial KDChart licenses may use this file in
 ** accordance with the KDChart Commercial License Agreement provided with
 ** the Software.
 **
 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 **
 ** See http://www.klaralvdalens-datakonsult.se/?page=products for
 **   information about KDChart Commercial License Agreements.
 **
 ** Contact [email protected] if any conditions of this
 ** licensing are not clear to you.
 **
 **********************************************************************/
#include <KDChartAxisParams.h>
#ifndef KDCHART_MASTER_CVS
#include "KDChartAxisParams.moc"
#endif


/**
  \class KDChartAxisParams KDChartAxisParams.h
  \brief access the chart axis parameters.

  To be used in combination with the axis access methods in
  class KDChartParams.


  \see KDChartParams.h
  \see KDChartParams.cpp

  Bundles all parameters of one axis including the type except the
  actual data displayed. Serializing an object of this type plus the
  data displayed is enough to be able to recreate the chart later.

*/





/**
  \c  enum KDChartAxisParams::Axistype { AxisTypeUnknown,
  AxisTypeEAST,
  AxisTypeNORTH,
  AxisUP };

  The axis type - the kind of the axis (x-, y- or z-axis).

  \li \c AxisTypeEAST axis of abscisses, the so-called \em X-axis.
  In world coordinates this is the EAST axis as used
  on topographical maps.
  This axis normally is assigned to the 1st dimension
  of the represented data, to change this use
  KDChartAxesPainter::setAxisAssignment().

  \li \c AxisTypeNORTH axis of ordinates, the so-called \em Y-axis.
  when are represented by the chart.
  In world coordinates this is the NORTH axis as used
  on topographical maps for 2-dimensional data,
  or the NORTH axis as used on bird's-eys views of
  buildings etc for 3-dimensional data, resp..
  This axis normally is assigned to the 2nd dimension
  of the represented data.

  \li \c AxisTypeUP axis of the 3rd dimension, the so-called \em Z-axis.
  In world coordinates this is the UP axis as used
  on bird's-eys views of buildings etc.
  This axis normally is assigned to the 3rd dimension
  of the represented data.

  The following picture shows the default positions of the
  different axes:
  \verbatim

  +-----------+
  /|           |
  n  +------------+                / |           |
  .  |            |               /  |           |
  NORTH, y .  |   2-dim.   |              /   |           |
  .  |            |             /    +-----------+
  .  |   chart    |            /    /           /  n
  .  |            |        n  +    /  3-dim.   /  .
  .  |            |        .  |   /           /  .  NORTH, y
  .  |            |  UP, z .  |  /  chart    /  .
  .  |            |        .  | /           /  .
  .  |            |        .  |/           /  .
  0  +------------+        0  +-----------+  .
  0
  0............n           0...........n
  EAST, x                  EAST, x
  \endverbatim

  \note Normally you will not have to specify the AxisType since it
  will be set automatically in KDChartAxesPainter::setDefaultAxesTypes()
  called by c'tor of class KDChartAxesPainter

  \sa setAxisType, axisType, KDChartAxesPainter::setAxisAssignment()
  */


/**
  Constructor. Define default values:

  - do not show this axis at all,
  - use circa 100 per thousand of the printable area
    size for drawing this axis,
  - calc mode linear,
  - line is visible,
  - line width: 3 per mille of the printable area size
  - line color: black,
  - labels are visible,
  - labels font:      helvetica
  - labels font size: 20 / 1000 of the printable area size
  - labels color:     black,
  - this axis will be used for an ordinate
  - label value limits will be calculated automatically,
  */
KDChartAxisParams::KDChartAxisParams()
{
    _axisType = AxisTypeUnknown;
    _axisVisible = false;
    _axisAreaMode = AxisAreaModeAutoSize;
    _axisUseAvailableSpaceFrom = 0;
    _axisUseAvailableSpaceTo = -1000;
    _axisAreaMin = -100;
    _axisAreaMax = 0;
    _axisCalcMode = AxisCalcLinear;
    _axisIsoRefAxis = UINT_MAX; // == KDCHART_NO_AXIS, see KDChartParams.cpp
    _axisTrueAreaSize = 0;
    _axisZeroLineStartX = 0.0;
    _axisZeroLineStartY = 0.0;
    _axisDtLowPosX = 0.0;
    _axisDtLowPosY = 0.0;
    _axisDtHighPosX = 0.0;
    _axisDtHighPosY = 0.0;

    _axisLineWidth = -3; // == 3/1000
    _axisTrueLineWidth = 1;
    _axisLineVisible = true;
    _axisLineColor = TQColor( 0, 0, 0 );

    _axisShowFractionalValuesDelimiters = true;
    _axisShowGrid      = false;
    _axisGridColor     = KDCHART_DEFAULT_AXIS_GRID_COLOR;
    _axisGridLineWidth = KDCHART_AXIS_GRID_AUTO_LINEWIDTH;
    _axisGridStyle     = Qt::SolidLine;

    _axisShowSubDelimiters = true;
    _axisGridSubColor      = KDCHART_DEFAULT_AXIS_GRID_COLOR;
    _axisGridSubLineWidth  = KDCHART_AXIS_GRID_AUTO_LINEWIDTH;
    _axisGridSubStyle      = Qt::DotLine;

    _axisZeroLineColor = TQColor( 0x00, 0x00, 0x80 );

    _axisLabelsVisible = true;
    _axisLabelsFont = TQFont( "helvetica", 12,
                             TQFont::Normal, false );
    _axisLabelsFontUseRelSize = true;
    _axisLabelsFontRelSize = 32;
    _axisLabelsFontMinSize =  6;
    _axisLabelsDontShrinkFont = false;
    _axisLabelsDontAutoRotate = false;
    _axisLabelsRotation = 0;
    _axisLabelsColor = TQColor( 0, 0, 0 );

    _axisSteadyValueCalc = true;
    _axisValueStartIsExact = true;
    _axisValueStart        = KDCHART_AXIS_LABELS_AUTO_LIMIT;
    _axisValueEnd          = KDCHART_AXIS_LABELS_AUTO_LIMIT;
    _axisValueDelta = KDCHART_AXIS_LABELS_AUTO_DELTA;
    _axisValueDeltaScale = ValueScaleNumerical;
    _axisValueLeaveOut = KDCHART_AXIS_LABELS_AUTO_LEAVEOUT;
    _axisValuesDecreasing = false;

    // First we used "h:mm:ss\nd.MM.yyyy" but now we calculate the
    // format automatically - based on the time span to be displayed.
    _axisLabelsDateTimeFormat = KDCHART_AXIS_LABELS_AUTO_DATETIME_FORMAT;

    _axisMaxEmptyInnerSpan = 90;
    _takeLabelsFromDataRow = LabelsFromDataRowNo;
    _labelTextsDataRow = 0;
    _axisLabelStringList.clear();
    _axisShortLabelsStringList.clear();

    setAxisLabelTexts( 0 );
    setAxisFirstLabelText();
    setAxisLastLabelText();
    setTrueAxisDeltaPixels( 0.0 );
    setTrueAxisLowHighDelta( 0.0, 0.0, 0.0 );
    setTrueAxisDtLowHighDeltaScale( TQDateTime(), TQDateTime(), ValueScaleDay );

    _axisLabelsDivPow10 = 0;
    _axisDigitsBehindComma = KDCHART_AXIS_LABELS_AUTO_DIGITS;
    _axisLabelsNotation = KDChartEnums::NumberNotationDecimal;
    _axisLabelsDecimalPoint = ".";
    _axisLabelsThousandsPoint = ",";
    _axisLabelsPrefix = "";
    _axisLabelsPostfix = "";
    _axisLabelsTotalLen = 0;
    _axisLabelsPadFill = ' ';
    _axisLabelsBlockAlign = true;
}

/**
  Destructor. Only defined to have it virtual.

*/

KDChartAxisParams::~KDChartAxisParams()
{
    // Intentionally left blank for now.
}


/**
  Specifies the axis type. The default is unknown (AxisTypeUnknown).

  \note Normally you will not have to specify the AxisType since it
  will be set automatically in KDChartAxesPainter::setDefaultAxesTypes()
  called by c'tor of class KDChartAxesPainter

  \param axisType the axis type to use
  \sa axisType, AxisType
  */
void KDChartAxisParams::setAxisType( AxisType axisType )
{
    _axisType = axisType;
    emit changed();
}

/**
  \fn AxisType  KDChartAxisParams::axisType() const

  \return the axis type configured in this params object.

  \sa setAxisType, AxisType
  */


/**

  \c enum KDChartAxisParams::AxisPos {  AxisPosSTART = 0,

  AxisPosBottom         = 0,
  AxisPosSagittal            = 0,  //   <-- for POLAR charts
  AxisPosLeft           = 1,
  AxisPosCircular            = 1,  //   <-- for POLAR charts
  AxisPosLowerRightEdge = 2,

  AxisPosTop = 3,
  AxisPosRight = 4,
  AxisPosLowerLeftEdge = 5,

// diese Markierung muss jeweils mitgepflegt werden,
// wenn AxisPos erweitert werden sollte.
AxisPosAdditionalsSTART = 6,

AxisPosBottom2 = 6,
AxisPosLeft2 = 7,
AxisPosLowerRightEdge2 = 8,

AxisPosTop2 = 9,
AxisPosRight2 = 10,
AxisPosLowerLeftEdge2 = 11,

// auch diese Markierung muss jeweils mitgepflegt werden,
// wenn AxisPos erweitert werden sollte.
AxisPosEND = 11 };

Since the chart area is defined by subtracting the space consumed by
the axes from the printable area there are two options that are
mutually exclusive.

- Define the chart by precisely specifying (in absolute or in
relative numbers) how much space may be used by each axis.
and/or define start and end values for the axes' labels.

-> This produces results that are comparable to each other
since the chart will have an exactly fixed size and its position
on the paper will remain the same even if the labels of its axes
become wider or more narrow.
Also the graphical representation of the date will be comparable
since all your charts will use the same scale if you wish this.

- Let the program calculate the chart layout based upon the kind
of and width of the labels to be drawn at the axes.
Also the program can calculate the labels for you and find the
boundary values for start and end of the scale automatically.
-> This will produce good looking results without you having
to fiddle around with the settings.
Unfortunately these charts will not allways be comparable to
each other if the axes' labels change since both the size of
the area reserved for the chart and the scaling of the
scales will vary if the data values do so.

With KDChart both ways are possible, see hints given with
setAxisAreaMode(), setAxisAreaMin() and setAxisAreaMax().

To optimize your results you might want to use setAxisLineWidth() and
setAxisLabelsFontPointSize(): negative values will specify it
in per thousand  of the printable area size - producing a result
looking fine even if the chart is
printed at very large dimensions.

\sa setAxisAreaMode, setAxisAreaMin, setAxisAreaMax
\sa setAxisLineWidth(), setAxisLabelsFontPointSize()
\sa setAxisLabelsLimitsAuto(), setAxisLabelsLimitsLow()
\sa setAxisLabelsLimitsHeigh()
*/

/**
  The axis position.
  Use AxisPosBottom for X-axis and AxisPosLeft for traditional Y-axis.
  When showing 3-dimensional charts you may use AxisPosLowerRightEdge
  to have an Y-axis on the lower right side going into the 'depth' of
  the picture and a z-axis going 'upwards' at the left edge.
  The other, optional values (AxisPosRight, AxisPosTop and
  AxisPosLowerLeftEdge, resp.) could be used to show a second
  axis on the other side of the picture - useful in case you want
  to show two data sets in one chart, like two curves showing data sets
  sharing the same abscissa axis but having differently scaled ordinates.
  The additional values (AxisPosBottom2, AxisPosTop2 ..) may be used
  to specify composed charts having two ordinates at the same side of
  the drawing and the like...

  These AxisPos values are used to specify which axis' settings are
  to be modified or retrieved, resp.

  \note Use special values \c AxisPossagittal and \c AxisPosCircular
  to set delimiter/label/grid parameters for polar charts.

  \sa setAxisAreaMode, axisAreaMode, setAxisCalcMode, axisCalcMode
  \sa KDChartParams::setAxisParams, KDChartParams::axisParams
  */


/**
  The basic axis type.

  \param pos the axis type to be analyzed
  \return the basic axis type (Bottom, Left, Top or Right)
  */
KDChartAxisParams::AxisPos KDChartAxisParams::basicAxisPos( uint pos )
{
    AxisPos ret = AxisPos( pos );
    switch ( pos ) {
        case AxisPosBottom:
        case AxisPosLeft:
        case AxisPosTop:
        case AxisPosRight:
            break;
        case AxisPosLowerRightEdge:
            ret = AxisPosRight;
            break;
        case AxisPosLowerLeftEdge:
            ret = AxisPosLeft;
            break;
        case AxisPosBottom2:
            ret = AxisPosBottom;
            break;
        case AxisPosLeft2:
            ret = AxisPosLeft;
            break;
        case AxisPosTop2:
            ret = AxisPosTop;
            break;
        case AxisPosRight2:
            ret = AxisPosRight;
            break;
        case AxisPosLowerRightEdge2:
            ret = AxisPosRight;
            break;
        case AxisPosLowerLeftEdge2:
            ret = AxisPosLeft;
            break;
        default: {
                     tqDebug( "IMPLEMENTATION ERROR: type missing in KDChartAxisParams::basicAxisPos()" );
                     Q_ASSERT( ret != AxisPos( pos ) );
                 }
    }
    return ret;
}

/**
  Specifies if the axis will be drawn. The default is false.

  \param axisVisible set true to make visible the respective axis.
  \sa axisVisible, AxisVisible
  */
void KDChartAxisParams::setAxisVisible( bool axisVisible )
{
    _axisVisible = axisVisible;
    emit changed();
}

/**
  Returns weither the axis will be drawn or not.

  \return if the axis is visible or not.
  \sa setAxisVisible, AxisVisible
  */
bool  KDChartAxisParams::axisVisible() const
{
    return _axisVisible;
}


/**
  \c  enum AxisAreaMode { AxisAreaModeFixedSize,
  AxisAreaModeAutoSize,
  AxisAreaModeMinMaxSize };

  The axis size, determines how to calculate the size of area used
  by the axis - i.e. the width of left axis area (or the right
  one, resp.) or the height of the top axis area (or the bottom one,
  resp.).
  \li \c AxisAreaModeFixedSize (default) value will be taken
  from \c AxisAreaMinSize() or \c AxisAreaMaxSize() - whichever
  returns the smaller value
  \li \c AxisAreaModeAutoSize (default) will be calculated
  automatically based on the size of the labels to be drawn
  \li \c AxisAreaModeMinMaxSize will be calculated automatically but
  bearing user defined limits in mind (this is not implemented yet)

  \sa setAxisAreaMode, axisAreaMode, AxisAreaMode
  \sa setAxisAreaMin, setAxisAreaMax, setAxisArea
  */

/**
  Specifies the axis size mode.
  The default is auto size (AxisAreaModeAutoSize).

  \param axisAreaMode the way how to find out the
  size of the area where the axis shall be drawn.
  \sa axisAreaMode, AxisAreaMode
  \sa setAxisAreaMin, setAxisAreaMax, setAxisArea
  */
void  KDChartAxisParams::setAxisAreaMode( AxisAreaMode axisAreaMode )
{
    _axisAreaMode = axisAreaMode;
    emit changed();
}



/**
  Returns the axis size mode configured in this params object.

  \return the axis size mode configured in this params object.
  \sa setAxisAreaMode, AxisAreaMode, setAxisAreaMin, setAxisAreaMax
  \sa setAxisArea
  */
KDChartAxisParams::AxisAreaMode  KDChartAxisParams::axisAreaMode() const
{
    return _axisAreaMode;
}

/**
  Converts the specified axis area mode enum to a string representation.

  \param mode the axis area mode enum to convert
  \return the string representation of the mode enum
  */
TQString KDChartAxisParams::axisAreaModeToString( AxisAreaMode mode ) {
    switch( mode ) {
        case AxisAreaModeFixedSize:
            return "FixedSize";
        case AxisAreaModeAutoSize:
            return "AutoSize";
        case AxisAreaModeMinMaxSize:
            return "MinMaxSize";
        default: // should not happen
            tqDebug( "Unknown axis area mode" );
            return "AxisAreaMode";
    }
}

/**
  Converts the specified string to an axis area mode enum value.

  \param string the string to convert
  \return the axis area mode enum value
  */
KDChartAxisParams::AxisAreaMode KDChartAxisParams::stringToAxisAreaMode( const TQString& type ) {
    if( type == "FixedSize" )
        return AxisAreaModeFixedSize;
    else if( type == "AutoSize" )
        return AxisAreaModeAutoSize;
    else if( type == "MinMaxSize" )
        return AxisAreaModeMinMaxSize;
    else // should not happen
        return AxisAreaModeAutoSize;
}

/**
  Specifies the axis area minimum width (or height, resp.).

  \param axisAreaMin the axis area minimum width (or height, resp.)
  If value is negative, the absolute value is per thousand
  of the size of the printable area to
  be used. This will make the axis look the same even if scaled
  to very different size.

  Note: It AxisAreaModeFixedSize is set the smaller value of
  axisAreaMax and axisAreaMin is used for the area size.

\sa axisAreaMin, axisAreaMax, setAxisAreaMode, setAxisAreaMax
\sa setAxisArea
*/
void KDChartAxisParams::setAxisAreaMin( int axisAreaMin )
{
    _axisAreaMin = axisAreaMin;
    emit changed();
}

/**
  \fn int  KDChartAxisParams::axisAreaMin() const
  Returns the axis area minimum width (or height, resp.).

  \return the axis area minimum width (or height, resp.).
  \sa setAxisAreaMin, setAxisAreaMax, setAxisArea
  */



/**
  Specifies how the axis will make use of the available space.

  Use this function to specify how large the area of the axis
  will be and where it will be positioned.

  \note This function is to be used for (vertical) ordinate axes <b>only</b>,
  available space usage specified for abscissa axes will be ignored.

example: setAxisUseAvailableSpace( 0, -499 ) will make the
axis occupy the first half of the available space,
so there could be a second axis (for chart #2 having the same
x-axis as chart #1) using the remaining
part of the available space, this one would be specified
by setAxisUseAvailableSpace( -500, -1000 ).

See also the examples given with \c KDChartParams::setAdditionalChartType().

\param axisUseAvailableSpaceFrom the beginning offset
of the space to be covered by this axis.
Set this to 0 to have your axis start at the very beginning
of the avaliable space - this is the default setting.
Use negative values to specify an offset in per mil
of the available space, or use positive values to specify
it in pixels.

\param axisUseAvailableSpaceTo the ending offset
of the space to be covered by this axis.
Set this to -1000 (== 1000 per mille) to let the axis
end at the very end of the available space, this is the default setting.
to a smaller negative value to specify the percantage
Use negative values to specify an offset in per mil
of the available space, or use positive values to specify
it in pixels.

\sa axisUseAvailableSpaceFrom, axisUseAvailableSpaceTo
*/
void  KDChartAxisParams::setAxisUseAvailableSpace( int axisUseAvailableSpaceFrom,
        int axisUseAvailableSpaceTo )
{
    _axisUseAvailableSpaceFrom = axisUseAvailableSpaceFrom;
    _axisUseAvailableSpaceTo   = axisUseAvailableSpaceTo;
    emit changed();
}


/**
  \fn  int  KDChartAxisParams::axisUseAvailableSpaceFrom() const
  Returns the beginning offset of the space used by this
  axis in comparison to the available space that could
  be used by this axis.

  \sa setAxisUseAvailableSpace, axisUseAvailableSpaceTo
  */


/**
  \fn  int  KDChartAxisParams::axisUseAvailableSpaceTo() const
  Returns the ending offset of the space used by this
  axis in comparison to the available space that could
  be used by this axis.

  \sa setAxisUseAvailableSpace, axisUseAvailableSpaceFrom
  */

/**
  Specifies the axis area maximum width (or height, resp.).

  \param axisAreaMax the axis area maximum width (or height, resp.)
  If value is negative, the absolute value is per thousand
  of the size of the printable area to
  be used. This will make the axis look the same even if scaled
  to very different size.

  Note: If AxisAreaModeFixedSize is set the smaller value of
  axisAreaMax and axisAreaMin is used for the area size.

\sa axisAreaMax, axisAreaMin, setAxisAreaMode, setAxisAreaMin
\sa setAxisArea
*/
void  KDChartAxisParams::setAxisAreaMax( int axisAreaMax )
{
    _axisAreaMax = axisAreaMax;
    emit changed();
}
/**
  \fn int  KDChartAxisParams::axisAreaMax() const
  Returns the axis area maximum width (or height, resp.).

  \return the axis area maximum width (or height, resp.).
  \sa setAxisAreaMax, setAxisAreaMin, setAxisArea
  */

/**
  Specifies the axis area size mode and the
  minimum and maximum width (or height, resp.) of the area.
  This method is here for convenience, see \c setAxisAreaMode,
  \c setAreaMin and \c setAreaMax for details.

  Note: Is AxisAreaModeFixedSize is set the smaller value of
  axisAreaMax and axisAreaMin is used for the area size.

  \param axisAreaMode the way how to find out the
  size of the area where the axis shall be drawn.
  \param axisAreaMin the axis area minimum width (or height, resp.)
  \param axisAreaMax the axis area maximum width (or height, resp.)

  \sa setAxisAreaMode, setAxisAreaMin, setAxisAreaMax
  */
void  KDChartAxisParams::setAxisArea( AxisAreaMode axisAreaMode,
        int axisAreaMin,
        int axisAreaMax )
{
    _axisAreaMode = axisAreaMode;
    _axisAreaMin = axisAreaMin;
    _axisAreaMax = axisAreaMax;
    emit changed();
}

/**
  \c enum AxisCalcMode { AxisCalcLinear, AxisCalcLogarithmic };
  The axis calculation mode.

  \sa setAxisCalcMode, axisCalcMode, AxisCalcMode
  */

/**
  Specifies the axis calculation mode.
  The default is linear calculation (AxisCalcLinear).

  \note Specifying an AxisCalcLogarithmic calculation mode
  also results in the axis's label parameters being adjusted,
  in detail these settings will become valid:

  \li steady-value-calculation mode is activated
  \li automatic limit calculation will be set for the begin and the end of the axis
  \li logarithmical step width will be calculated automatically: 0.001, 0.01, 0.1, 1, 10, ..
  \li number of Digits shown behind the comma will be calculated automatically.

  This is done by implicitely calling setAxisValues(),
  so you don't need to explicitely call that function,
  actually the following is what happens inside:

  \verbatim
  if( AxisCalcLogarithmic == axisCalcMode )
  setAxisValues( true,
                 KDCHART_AXIS_LABELS_AUTO_LIMIT,
                 KDCHART_AXIS_LABELS_AUTO_LIMIT,
                 1.0,
                 KDCHART_AXIS_LABELS_AUTO_DIGITS );
  \endverbatim

  You may override these setting by making an extra setAxisValues()
  call AFTER calling setAxisCalcMode( AxisCalcLogarithmic ).

  \param axisCalcMode the axis calculation mode to be used.
  \sa axisCalcMode, AxisCalcMode
  \sa setAxisSteadyValueCalc
  */
void  KDChartAxisParams::setAxisCalcMode( AxisCalcMode axisCalcMode )
{
    _axisCalcMode = axisCalcMode;
    if( AxisCalcLogarithmic == axisCalcMode ){
        setAxisValues( true,
                KDCHART_AXIS_LABELS_AUTO_LIMIT,
                KDCHART_AXIS_LABELS_AUTO_LIMIT,
                1.0,
                KDCHART_AXIS_LABELS_AUTO_DIGITS );
    }
    emit changed();
}
/**
  \fn  AxisCalcMode  KDChartAxisParams::axisCalcMode() const
  Returns the axis calculation mode configured in this params object.

  \return the axis calculation mode configured in this params object.
  \sa setAxisCalcMode, AxisCalcMode
  */

/**
  Converts the specified axis calc mode enum to a string representation.

  \param mode the axis calc mode enum to convert
  \return the string representation of the mode enum
  */
TQString  KDChartAxisParams::axisCalcModeToString( AxisCalcMode mode ) {
    switch( mode ) {
        case AxisCalcLinear:
            return "Linear";
        case AxisCalcLogarithmic:
            return "Logarithmic";
        default: // should not happen
            tqDebug( "Unknown axis calc mode" );
            return "Linear";
    }
}

/**
  Converts the specified string to an axis calc mode enum value.

  \param string the string to convert
  \return the axis calc mode enum value
  */
KDChartAxisParams::AxisCalcMode KDChartAxisParams::stringToAxisCalcMode( const TQString& type ) {
    if( type == "Linear" )
        return AxisCalcLinear;
    else if( type == "Logarithmic" )
        return AxisCalcLogarithmic;
    else // should not happen
        return AxisCalcLinear;
}

/**
  Specifies another axis which this axis shall be isometric with.

  \param isoRefAxis axis which this axis shall be isometric with.

  Normally all axes' step widths are calculated independently from
  each other. By specifying a reference axis for one axis you make
  KDChart use the same scale for both axes.

  For example to have the left axis using the same scale as the
  right axis you could invoke this:

  \verbatim
  KDChartAxisParams pa(
  _p->axisParams( KDChartAxisParams::AxisPosLeft ) );
  pa.setIsometricReferenceAxis( KDChartAxisParams::AxisPosBottom );
  _p->setAxisParams( KDChartAxisParams::AxisPosLeft, pa );
  \endverbatim

  These commands are equivalent to the following ones:

  \verbatim
  KDChartAxisParams pa(
  _p->axisParams( KDChartAxisParams::AxisPosBottom ) );
  pa.setIsometricReferenceAxis( KDChartAxisParams::AxisPosLeft );
  _p->setAxisParams( KDChartAxisParams::AxisPosBottom, pa );
  \endverbatim

  In any case both axes will use the same scale so - unless you are
  using more axes than these two ones - the resulting chart will be true
  to scale.

  \note Use special value KDCHART_ALL_AXES if your chart
  has got more than two axes and all of them shall use the same scale, specifying
  this for one of the axes is enough, there is no need to set it several times.

  Use special value KDCHART_NO_AXIS to undo any previous setting
  that was specified for this axis, this has to be called for any axis that was
  modified by previous calls.

  \sa isometricReferenceAxis
  */
void  KDChartAxisParams::setIsometricReferenceAxis( uint isoRefAxis )
{
    _axisIsoRefAxis = isoRefAxis;
    emit changed();
}

/**
  \fn uint  KDChartAxisParams::isometricReferenceAxis() const
  Returns which axis this axis shall be isometric with, this will
  be either the axis position - see KDChartAxisParams::AxisPos - or one of the special
  values KDCHART_ALL_AXES and KDCHART_NO_AXIS.

  \return which axis this axis shall be isometric with.

  \sa setIsometricReferenceAxis
  */


/**
  \fn void  KDChartAxisParams::setAxisTrueAreaSize( int axisTrueAreaSize )
  Specifies the true axis area width (or height, resp.).

  \param axisAreaMax the true axis area width (or height, resp.)
  as it was calculated and drawn.
  This is allways an absolute value.

  \note Do <b>not call</b> this function unless you are knowing
  exactly what you are doing. \c setAxisTrueAreaSize is normally
  reserved for internal usage by methods calculating the area
  size based upon \c axisAreaMin and \c axisAreaMax. Thus the
  signal \c changed() is not sended here.

  \sa axisAreaMax, axisAreaMin, setAxisAreaMode, setAxisAreaMin
  \sa setAxisArea
  */

/**
  \fn  int  KDChartAxisParams::axisTrueAreaSize() const
  Returns the true axis area width (or height, resp.)
  as calculated and drawn.

  \return the true axis area width (or height, resp.).
  \sa setAxisAreaMax, setAxisAreaMin, setAxisArea
  */

/**
  \fn void  KDChartAxisParams::setAxisTrueAreaRect( const TQRect& axisTrueAreaRect )
  Specifies the true axis area rectangle.

  \param axisAreaMax the true axis area rectangle
  as it was calculated and drawn.

  \note Do <b>not call</b> this function unless you are knowing
  exactly what you are doing. \c setAxisTrueAreaRect is normally
  reserved for internal usage by methods calculating the area
  size based upon \c axisAreaMin and \c axisAreaMax. Thus the
  signal \c changed() is not sended here.

  \sa axisAreaMax, axisAreaMin, setAxisAreaMode, setAxisAreaMin
  \sa setAxisArea
  */

/**
  \fn  TQRect  KDChartAxisParams::axisTrueAreaRect() const
  Returns the true axis area rectangle
  as calculated and drawn.

  \return the true axis area rectangle
  \sa setAxisAreaMax, setAxisAreaMin, setAxisArea
  */

/**
  Specifies whether the axis sub-delimiters should be drawn.

  \note If true and axisShowGrid is also true the grid on the
  chart data area will show a thin dotted line for each sub-delimiter
  (or a line with a pattern defined by \c setAxisGridSubStyle, resp.)

  \param axisShowSubDelimiters if true sub-delimiters will be drawn at this axis.
  \sa axisShowSubDelimiters, setAxisShowGrid, setAxisGridSubStyle
  */
void  KDChartAxisParams::setAxisShowSubDelimiters( bool axisShowSubDelimiters )
{
    _axisShowSubDelimiters = axisShowSubDelimiters;
    emit changed();
}

/**
  Specifies whether the delimiters should be drawn at the position for the fractional values.
  
  \note This can be useful if you want to force only painting non fractional values on the axis and 
  do not want the delimiters and grid lines to be drawn at the position where some fractional values 
  (auto calculation) were meant to be displayed. It will have no effect in case fractional values labels 
  are painted.
  In order to force painting only non fractional values you need to call setAxisBehindDigitsComma(0).
  \param axisShowFracValDelim if false delimiters and grid line will not be drawn on this axis at the positon 
  where fractional values were meant to be drawn.
  \sa setAxisDigitBehindComma
*/

void  KDChartAxisParams::setAxisShowFractionalValuesDelimiters( bool axisShowFracValDelim )
{
    _axisShowFractionalValuesDelimiters = axisShowFracValDelim;
    emit changed();
}


/**
  \fn bool  KDChartAxisParams::axisShowSubDelimiters() const
  Returns whether the axis sub-delimiters will be drawn.

  \return whether the axis sub-delimiters will be drawn.
  \sa setAxisShowSubDelimiters
  */

/**
  Specifies whether the axis line should be drawn.

  \param axisLineVisible if true the line of this axis will be drawn.
  \sa axisLineVisible
  */
void  KDChartAxisParams::setAxisLineVisible( bool axisLineVisible )
{
    _axisLineVisible = axisLineVisible;
    emit changed();
}


/**
  \fn bool  KDChartAxisParams::axisLineVisible() const
  Returns whether the axis line should be drawn.

  \return whether the axis line should be drawn.
  \sa setAxisLineVisible
  */

/**
  Specifies the axis line width.

  \param axisLineWidth the axis line width.
  If value is negative, the absolute value is per thousand
  of the printable area size to be used. This will make the
  axis look the same even if scaled to very different size.

  \sa axisLineWidth
  */
void  KDChartAxisParams::setAxisLineWidth( int axisLineWidth )
{
    _axisLineWidth = axisLineWidth;
    emit changed();
}


/**
  \fn  int  KDChartAxisParams::axisLineWidth() const
  Returns the axis line width.

  \return the axis line width.
  \sa setAxisLineWidth
  */


/**
  \fn void s KDChartAxisParams::setAxisTrueLineWidth( int axisTrueLineWidth )
  Specifies the actual axis line width, as calculated and drawn.

  \Note You may not use this internal function.

  \param axisTrueLineWidth the actual axis line width,
  as calculated and drawn.

  \sa axisTrueLineWidth
  */

/**
  \fn  int  KDChartAxisParams::axisTrueLineWidth() const
  Returns the axis true line width, as calculated and drawn.

  \return the axis true line width, as calculated and drawn.
  \sa setAxisTrueLineWidth
  */


/**
  Specifies the axis line colour.

  \param axisLineColor the axis line colour.
  \sa axisLineColor
  */
void  KDChartAxisParams::setAxisLineColor( TQColor axisLineColor )
{
    _axisLineColor = axisLineColor;
    emit changed();
}

/**
  \fn TQColor  KDChartAxisParams::axisLineColor() const
  Returns the axis line colour.

  \return the axis line colour.
  \sa setAxisLineColor
  */


/**
  Specifies whether a grid should be drawn at the chart data area.
  By default the grid will be drawn based on the left
  ordinate axis and on the bottom abscissa axis.

  The grid will show a solid line for each delimiter.
  (or a line with a pattern defined by \c setAxisGridStyle, resp.)

  \note If true and axisShowSubDelimiters is also true the grid
  will show a thin dotted line for each sub-delimiter.
  (or a line with a pattern defined by \c setAxisGridSubStyle, resp.)

  \param axisShowGrid if true a grid will be drawn on the chart data area.
  \sa axisShowGrid, setAxisGridStyle, setAxisGridSubStyle
  */
void  KDChartAxisParams::setAxisShowGrid( bool axisShowGrid )
{
    _axisShowGrid = axisShowGrid;
    emit changed();
}

/**
  \fn bool  KDChartAxisParams::axisShowGrid() const
  Returns whether a grid should be drawn at the chart data area.

  \return whether a grid should be drawn at the chart data area.
  \sa setAxisShowGrid, setAxisShowSubDelimiters
  */



/**
  Specifies the axis grid colour.

  To reset the color to the built-in default value
  please call \c setAxisGridColor( KDCHART_DEFAULT_AXIS_GRID_COLOR )

  \param axisGridColor the axis grid color.
  \sa axisGridColor, setAxisShowGrid
  */
void  KDChartAxisParams::setAxisGridColor( TQColor axisGridColor )
{
    _axisGridColor = axisGridColor;
    emit changed();
}

/**
  \fn TQColor  KDChartAxisParams::axisGridColor() const
  Returns the axis grid color.

  \return the axis grid color.
  \sa setAxisGridColor, setAxisShowGrid
  */


/**
  Specifies the colour to be used for the thin lines between the
  normal axis grid lines.

  To reset the color to the built-in default value
  please call \c setAxisGridSubColor( KDCHART_DEFAULT_AXIS_GRID_COLOR )

  \param axisGridSubColor the axis grid sub color.
  \sa axisGridSubColor, setAxisGridColor, setAxisShowGrid, setAxisShowSubDelimiters
  */
void  KDChartAxisParams::setAxisGridSubColor( TQColor axisGridSubColor )
{
    _axisGridSubColor = axisGridSubColor;
    emit changed();
}


/**
  \fn TQColor  KDChartAxisParams::axisGridSubColor() const
  Returns the axis grid sub color.

  \return the axis grid sub color.
  \sa setAxisGridSubColor
  */

/**
  Specifies the width of the axis grid lines.

  \note Normally you would <b>not</b> call this function since
  grid lines in most cases look best in their default line
width: the same width as the axis line they belong to.
However when combining multiple datasets or multiple charts
sharing the same abscissa axes but having their ordinates
differently scaled you might want to reduce the line width
of the respective grid lines and use different grid colours
to show two grids at the same time.  In such cases it might
also be a good idea to deactivate \c setAxisShowSubDelimiters
thus avoiding the dotted sub-grid lines or to set their
style to TQt::NoPen to get sub-delimiters on the axis
but no sub-grid lines.

You may use setAxisGridLineWidth( KDCHART_AXIS_GRID_AUTO_LINEWIDTH )
to reset the value to its default: being automatically
adjusted to the width of the axis line.

\param axisGridLineWidth the width of the axis grid lines.
If value is negative, the absolute value is per thousand
of the printable area size to be used. This will make the
grid look the same even if scaled to very different size.
\sa axisGridLineWidth, setAxisGridColor, setAxisGridStyle
\sa setAxisShowGrid, setAxisShowSubDelimiters
*/
void  KDChartAxisParams::setAxisGridLineWidth( int axisGridLineWidth )
{
    _axisGridLineWidth = axisGridLineWidth;
    emit changed();
}

/**
  \fn int  KDChartAxisParams::axisGridLineWidth() const
  Returns the width of the axis grid lines.
  (see explanation given with \c setAxisGridLineWidth )

  \return the width of the axis grid lines.
  \sa setAxisGridLineWidth, setAxisShowGrid
  */

/**
  Specifies the width of the thin lines between the
  normal axis grid lines.

  You may use setAxisGridSubLineWidth( KDCHART_AXIS_GRID_AUTO_LINEWIDTH )
  to reset the value to its default: being automatically
  adjusted to the width of the axis line.

  \param axisGridSubLineWidth the axis grid sub line width.
  \sa axisGridSubLineWidth, setAxisGridLineWidth, setAxisShowGrid, setAxisShowSubDelimiters
  */
void  KDChartAxisParams::setAxisGridSubLineWidth( int axisGridSubLineWidth )
{
    _axisGridSubLineWidth = axisGridSubLineWidth;
    emit changed();
}


/**
  \fn TQColor  KDChartAxisParams::axisGridSubLineWidth() const
  Returns the axis grid sub line width.

  \return the axis grid sub line width.
  \sa setAxisGridSubLineWidth
  */


/**
  Specifies the axis grid line pattern.

  \param axisGridStyle the axis grid line pattern.
  \sa axisGridStyle, setAxisShowGrid
  */
void  KDChartAxisParams::setAxisGridStyle( Qt::PenStyle axisGridStyle )
{
    _axisGridStyle = axisGridStyle;
    emit changed();
}

/**
  \fn Qt::PenStyle  KDChartAxisParams::axisGridStyle() const
  Returns the axis grid line pattern.

  \return the axis grid line pattern.
  \sa setAxisGridStyle, setAxisShowGrid
  */


/**
  Specifies the axis grid line pattern for the thin lines
  showing the sub-delimiter values.

  \param axisGridStyle the axis grid line pattern for the thin lines
  showing the sub-delimiter values.
  \sa axisGridSubStyle, setAxisGridStyle, axisGridStyle
  \sa setAxisShowGrid
  */
void  KDChartAxisParams::setAxisGridSubStyle( Qt::PenStyle axisGridSubStyle )
{
    _axisGridSubStyle = axisGridSubStyle;
    emit changed();
}

/**
  \fn  Qt::PenStyle  KDChartAxisParams::axisGridSubStyle() const
  Returns the axis grid line pattern for the thin lines
  showing the sub-delimiter values.

  \return the axis grid line pattern for the thin lines
  showing the sub-delimiter values.
  \sa setAxisGridSubStyle
  \sa setAxisGridStyle, axisGridStyle, setAxisShowGrid
  */

/**
  Specifies the colour of the zero-line
  that is drawn if zero is not at the lower
  edge of the chart.

  \param axisZeroLineColor the zero-line colour.
  \sa axisZeroLineColor
  */
void  KDChartAxisParams::setAxisZeroLineColor( TQColor axisZeroLineColor )
{
    _axisZeroLineColor = axisZeroLineColor;
    emit changed();
}

/**
  \fn  TQColor  KDChartAxisParams::axisZeroLineColor() const
  Returns the colour used for the zero-value line
  that is drawn if zero is not at the lower
  edge of the chart.

  \return the zero-line colour.
  \sa setAxisZeroLineColor
  */

/**
  Specifies whether the axis labels should be drawn.

  \param axisLabelsVisible if true the labels of this axis will be
  drawn.
  \sa axisLabelsVisible
  */
void  KDChartAxisParams::setAxisLabelsVisible( bool axisLabelsVisible )
{
    _axisLabelsVisible = axisLabelsVisible;
    emit changed();
}


/**
  \fn bool  KDChartAxisParams::axisLabelsVisible() const
  Returns whether the axis labels should be drawn.

  \return whether the axis labels should be drawn.
  \sa setAxisLabelsVisible
  */


/**
  \fn void KDChartAxisParams::setAxisLabelsFontMinSize( int axisLabelsFontMinSize )

  Specifies the minimal font size to be used for displaying the axis labels.

  Use this to specify the minimal font size to be used for axis labels,
  in case KD Chart is calculating the axis labels fonts dynamically. Default value is 10 points.

  \sa setAxisLabelsFont, setAxisLabelsFontUseRelSize, setAxisLabelsFontRelSize
  */



/**
  Specifies whether the axis labels start and end at the
  edges of the charts instead being positioned in the
  middle of the first data point (or the last one, resp.)

  \param axisLabelsTouchEdges if the axis labels start and end at the
  edges of the charts instead being positioned in the
  middle of the first data point (or the last one, resp.)

  \sa axisLabelsTouchEdges
  */
void  KDChartAxisParams::setAxisLabelsTouchEdges( bool axisLabelsTouchEdges )
{
    _axisLabelsTouchEdges = axisLabelsTouchEdges;
    emit changed();
}

/**
  \fn  bool  KDChartAxisParams::axisLabelsTouchEdges() const
  Returns whether the axis labels start and end at the
  edges of the charts instead being positioned in the
  middle of the first data point (or the last one, resp.)

  \return whether the axis labels start and end at the
  edges of the charts instead being positioned in the
  middle of the first data point (or the last one, resp.)
  \sa setAxisLabelsTouchEdges
  */

/**
  Specifies the axis labels font.

  \note The font size will be ignored if \c useFontSize is false,
  in this case the font size will be calculated dynamically using
  the value stored by you calling setAxisLabelsFontRelSize().

  \param axisLabelsFont the font to be used for the axis' labels.
  \param useFontSize set ti true if the fixed font size of
  the \c axisLabelsFont is to be used, otherwise the font size
  will be calculated dynamically.

  \sa setAxisLabelsFontRelSize, setAxisLabelsFontUseRelSize
  \sa axisLabelsFont, axisLabelsFontRelSize
  */
void  KDChartAxisParams::setAxisLabelsFont( TQFont axisLabelsFont, bool useFontSize )
{
    _axisLabelsFont = axisLabelsFont;
    _axisLabelsFontUseRelSize = ! useFontSize;
    emit changed();
}
/**
  \fn TQFont  KDChartAxisParams::axisLabelsFont() const
  Returns the axis labels font.

  \return the axis labels font.
  \sa setAxisLabelsFont, setAxisLabelsFontRelSize
  \sa axisLabelsFontRelSize
  */

/**
  Specifies whether axis labels shall be drawn
  using relative font size.

  \param axisLabelsFontUseRelSize whether axis labels shall be drawn
  using relative font size.
  If true the absolute value of the value set by \c
  setAxisLabelsFontRelSize is per thousand
  of of the printable area size
  to be used. This will make the axis look the same even if scaled
  to very different size.

  \sa setAxisLabelsFontRelSize, setAxisLabelsFont
  */
void  KDChartAxisParams::setAxisLabelsFontUseRelSize( bool axisLabelsFontUseRelSize )
{
    _axisLabelsFontUseRelSize = axisLabelsFontUseRelSize;
    emit changed();
}

/**
  \fn  bool  KDChartAxisParams::axisLabelsFontUseRelSize() const
  Returns whether the fix axis font size is used.

  \return whether the fix axis labels font size is used.
  \sa setAxisLabelsFontRelSize, setAxisLabelsFont
  */


/**
  Specifies the axis labels relative font size.

  \param axisLabelsFontRelSize the relative axis font size.
  If this value unequals zero the absolute value is per thousand
  of the printable area width size
  to be used. This will make the axis look the same even if scaled
  to very different size.

  \sa setAxisLabelsFontUseRelSize, setAxisLabelsFont
  */
void  KDChartAxisParams::setAxisLabelsFontRelSize( int axisLabelsFontRelSize )
{
    _axisLabelsFontRelSize = axisLabelsFontRelSize;
    emit changed();
}


/**
  \fn int  KDChartAxisParams::axisLabelsFontRelSize() const
  Returns the axis labels relative font size.

  \return the axis labels relative font size.
  \sa setAxisLabelsFontRelSize, setAxisLabelsFontUseRelSize
  */

/**
  \fn bool  KDChartAxisParams::axisLabelsDontShrinkFont() const
  Specifies whether the axis labels' font size may be shrinked
  to avoid overwriting neighboring areas.

  \sa axisLabelsDontShrinkFont
  \sa setAxisLabelsDontAutoRotate, setAxisLabelsRotation
  \sa setAxisLabelsFontUseRelSize, setAxisLabelsFont
  */


/**
  \fn  void  KDChartAxisParams::setAxisLabelsDontAutoRotate( bool labelsDontAutoRotate )

  Specifies whether the axis labels may be rotated
  to avoid overwriting neighboring areas.

  \sa axisLabelsDontAutoRotate
  \sa setAxisLabelsDontShrinkFont, setAxisLabelsRotation
  \sa setAxisLabelsFontUseRelSize, setAxisLabelsFont
  */

/**
  \fn bool  KDChartAxisParams::axisLabelsDontAutoRotate() const
  Returns whether the axis labels may not be rotated
  to avoid overwriting neighboring areas.

  \return whether the axis labels may not be rotated
  to avoid overwriting neighboring areas.
  \sa setAxisLabelsDontAutoRotate
  \sa axisLabelsDontShrinkFont, setAxisLabelsRotation
  \sa setAxisLabelsFontRelSize, setAxisLabelsFont
  */

/**
  \fn void  KDChartAxisParams::setAxisLabelsRotation( int rotation )
  Specifies by how many degrees the axis labels shall be rotated.

  \param rotation The rotation of the labels - value must be either
  zero or between 360 and 270. 360 degrees means don't rotate.

  \note This setting specifies the <b>minimum</b> rotation of
  the labels. Rotation may be increased to fit labels into
  available space unless you explicitely called the
  setAxisLabelsDontAutoRotate() function.

  \sa axisLabelsDontAutoRotate
  \sa setAxisLabelsDontShrinkFont, setAxisLabelsRotation
  \sa setAxisLabelsFontUseRelSize, setAxisLabelsFont
  */


/**
  \fn  int  KDChartAxisParams::axisLabelsRotation() const
  Returns by how many degrees the axis labels will be rotated.

  \sa setAxisLabelsDontAutoRotate
  \sa axisLabelsDontShrinkFont, setAxisLabelsRotation
  \sa setAxisLabelsFontRelSize, setAxisLabelsFont
  */


/**
  Specifies the axis labels colour.

  \param axisLabelsColor the axis labels colour.
  \sa axisLabelsColor
  */
void KDChartAxisParams::setAxisLabelsColor( TQColor axisLabelsColor )
{
    _axisLabelsColor = axisLabelsColor;
    emit changed();
}

/**
  \fn  TQColor  KDChartAxisParams::axisLabelsColor() const
  Returns the axis labels colour.

  \return the axis labels colour.
  \sa setAxisLabelsColor
  */

/**
  Specifies the calculations to be applied to the axis labels.

  \param divPow10  The power of 10 which the data value is to be divided by.
    A value of 2 means divide by 100, a value of  -3 means multiply by 1000,
    and 0 (by definition) would result in multiplying by 1.
  \param digitsBehindComma The number of digits to show behind the comma,
    to have this calculated automatically just use the default value
    KDCHART_DATA_VALUE_AUTO_DIGITS.
  \sa setAxisLabelsFormat
  \sa setAxisLabelsNotation
  \sa axisLabelsDivPow10, axisLabelsDigitsBehindComma
  */
void KDChartAxisParams::setAxisLabelsCalc( int divPow10,
                                           int digitsBehindComma )
{
  _axisLabelsDivPow10 = divPow10;
  _axisDigitsBehindComma = digitsBehindComma;
  emit changed();
}

/**
  Specifies the way how the axis label strings will be formatted. Will be ignored for non-numerical axis labels.

  \param decimalPoint The 'radix character' (or text, resp.) to be inserted
    into the string (default is '.').
  \param thousandsPoint The character (or text, resp.) to be used as delimiter
    between the hundred digit and the thousand digit and between the
    100.000 and the 1.000.000 digit (default is ',').

  \sa setAxisLabelsFormat, setAxisLabelsCalc
  \sa setAxisLabelsNotation
  \sa axisLabelsDecimalPoint, axisLabelsThousandsPoint
  */
void KDChartAxisParams::setAxisLabelsRadix( const TQString& decimalPoint,
                                            const TQString& thousandsPoint )
{
  _axisLabelsDecimalPoint = decimalPoint;
  _axisLabelsThousandsPoint = thousandsPoint;
}


/**
  Specifies the way how the number part of the axis label strings will be formatted.
  Will be ignored for non-numerical axis labels.

  \param notation The way of notation to be used for the number part.

  \note  If you need exponential notation with a common magnitude, just use
  setAxisLabelsCalc to declare the divisor, and then add a KDChartCustomBox
  to the end of your axis's area, informing the user about the magnitude to
  be added to each of the values, e.g. by saying "x 1e3".

  \sa KDChartEnums::NumberNotation, setAxisLabelsCalc, setAxisLabelsRadix, setAxisLabelsFormat
  */
void KDChartAxisParams::setAxisLabelsNotation( KDChartEnums::NumberNotation notation )
{
  _axisLabelsNotation = notation;
}

/**
  Specifies the way how the axis label strings will be formatted. Will be ignored for non-numerical axis labels.

  \param prefix The character (or text, resp.) to be prepended before the string
    after inserting the decimalPoint and the thousandsPoint.
  \param postfix The character (or text, resp.) to be appended to the string
    after adding decimalPoint, thousandsPoint, prefix.
  \param totalLen The forced size of the string after adding decimalPoint,
    thousandsPoint, prefix, postfix. If this parameter is set to zero
    (default) no padding will be performed.
    If the string has more characters than the (non-zero) value of totalLen,
    the respective number of characters will be cut off at the right side.
  \param padFill The padding character to be prepended before the string
    (or inserted into the string, resp.) when increasing its length until
    the totalLen is reached.
  \param blockAlign If set to true (default) the padFill character(s) will be
    inserted between the number and the prefix, if set to false they will be
    prepended before the prefix.

  \sa setAxisLabelsRadix, setAxisLabelsCalc
  \sa setAxisLabelsNotation
  \sa axisLabelsPrefix, axisLabelsPostfix, axisLabelsTotalLen
  \sa axisLabelsPadFill, axisLabelsBlockAlign
  */
void KDChartAxisParams::setAxisLabelsFormat( const TQString& prefix,
                                             const TQString& postfix,
                                             const int&     totalLen,
                                             const TQChar&   padFill,
                                             const bool&    blockAlign )
{
  _axisLabelsPrefix = prefix;
  _axisLabelsPostfix = postfix;
  _axisLabelsTotalLen = totalLen;
  _axisLabelsPadFill = padFill;
  _axisLabelsBlockAlign = blockAlign;
}



/**
  \c enum LabelsFromDataRow { LabelsFromDataRowYes,
  LabelsFromDataRowNo,
  LabelsFromDataRowGuess };

  Are the axis labels stored in a data row?
  If \c LabelsFromDataRowGuess we assume yes only if
  all the entries of that data row contain strings - no numbers.

  \li \c LabelsFromDataRowYes = label texts are to be taken from data row
  \li \c LabelsFromDataRowNo  = do not take label texts from data row
  \li \c LabelsFromDataRowGuess = take label texts from data row if all
  entries in that row are strings (no numerical values!)

  \sa setAxisValues, setAxisValueStart, setAxisValueEnd, setAxisValueDelta
  \sa setLabelTextsFormDataRow
  \sa axisLabelTextsFormDataRow
  */


/**
  Converts the specified labels from data row enum to a string
  representation.

  \param mode the enum to convert
  \return the string representation of the mode enum
  */
TQString  KDChartAxisParams::labelsFromDataRowToString( LabelsFromDataRow mode ) {
    switch( mode ) {
        case LabelsFromDataRowYes:
            return "Yes";
        case LabelsFromDataRowNo:
            return "No";
        case LabelsFromDataRowGuess:
            return "Guess";
        default: // should not happen
            tqDebug( "Unknown labels from data row mode" );
            return "Guess";
    }
}

/**
  Converts the specified string to a data row enum value.

  \param string the string to convert
  \return the data row mode enum value
  */
KDChartAxisParams::LabelsFromDataRow  KDChartAxisParams::stringToLabelsFromDataRow( const TQString& type ) {
    if( type == "Yes" )
        return LabelsFromDataRowYes;
    else if( type == "No" )
        return LabelsFromDataRowNo;
    else if( type == "Guess" )
        return LabelsFromDataRowGuess;
    else // should not happen
        return LabelsFromDataRowGuess;
}

/**

  \c enum ValueScale { ValueScaleNumerical =   0, ( have gaps here to allow specifying of additional scaling steps in between )
  ValueScaleSecond    =  20,
  ValueScaleMinute    =  30,
  ValueScaleHour      =  40,
  ValueScaleDay       =  50,
  ValueScaleWeek      =  60,
  ValueScaleMonth     =  70,
  ValueScaleQuarter   =  80,
  ValueScaleYear      =  90 };

  Are axis labels scaled mumerically or fixing a time period?
  If \c ValueScaleNumerical axis labels are just numbers like "item 1", "item 2"...

  \li \c ValueScaleSecond  = seconds
  \li \c ValueScaleMinute = minutes
  ..
  \li \c ValueScaleYear = years

  \sa setAxisValues, setAxisValueStart, setAxisValueEnd, setAxisValueDelta
  \sa setLabelTextsFormDataRow
  \sa axisLabelTextsFormDataRow
  */


/**

Note: The following text is to become part of the setAxisValues() doku
you see below.
It shall be added once the automatic string support has been added!


Currently the following strings are supported by the automatical
numbering feature. (These strings are implemented for your convenience,
you may specify any other set of label texts by passing a \c TQStringList
pointer to \c axisLabelStringList.)

\li Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
\li January, February, March, May, June, July, August, September, October, November, December
\li Spring, Summer, Autumn, Winter

...

To specify the start value and the way the label values
are calculated you may

\li \b either pass one of the <b>above strings</b> as start value
<br>
In this case the label texts will be taken from the respective
list restarting at the beginnig whenever the end is reached.
<br>
In case you specify a non-zero integer value for
\c axisValueDelta the width and direction
of steps will be performed accordingly:
<br>
A value of <b>1.0</b>
(specifying a step-length of 1 ) will cause every entry to be
taken.
<br>
A <b>4.0</b> would take the start entry, skip 3 entries, take
the 4th entry and so forth...
<br>
By using negative numbers you can specify backward stepping.
<br>
(Of course all non-integer values will be ignored here.)
*/

/**
  <B>General axis texts setup routine.</B><BR>
  Specifies how the axis limits shall be calculated
  and specifies the lower and the upper limit,
  the step-width and the list of strings
  (if such is to be used).

  \note Start and end values are \c KDChartData so you may either
  specify numerical data or pass a string. <br>
  However if passing a string make sure to also specify a
  valid TQStringList* for \c axisLabelStringList.
  In that case it could be wise to also also specify a second
  TQStringList* for \c axisShortLabelsStringsList to be used in
  case the axes area is not wide enough to display the
  label texts in their full length.

  <P>

  To specify the start value and the way the label values
  are calculated you may

  \li \b either pass a <b>string</b> as start value
  <br>
  In this case the label texts will be taken from the string
  list passed to the function via \c axisLabelStringList
  starting with the string you specified as start value and
  restarting at the beginnig whenever the end is reached.
  In case the start value is not contained in the
  \c axisLabelStringList list it will be ignored and labelling
  will be done as if you had specified
  KDCHART_AXIS_LABELS_AUTO_LIMIT as start value (see below).
  <br>
  In case you specify a non-zero integer value for
  \c axisValueDelta the width and direction
  of steps will be performed accordingly:
  <br>
  A value of <b>1.0</b>
  (specifying a step-length of 1 ) will cause every entry
  of the list to be taken.
  <br>
  A <b>4.0</b> would take the start entry, skip 3 entries, take
  the 4th entry and so forth...
  <br>
  By using negative numbers you can specify backward stepping.
  <br>
  (Of course all non-integer values will be ignored here.)
  \li \b or pass <b>KDCHART_AXIS_LABELS_AUTO_LIMIT</b> as start value
  <br>
  In this case the first label text <br>
  <i>either</i> will be calculated
  based upon the lowest value of the associated
  datasets row number \c labelTextsDataRow if
  \c axisLabelsFromDataRow is set to true, <br>
  <i>or</i> the first entry of the texts list will be taken
  if \c axisLabelStringList is set properly, <br>
  <i>otherwise</i> it will be set to "1".

  \li \b or pass a <b>numerical value</b> as start value
  <br>
  In this case the first label text will be set to that value.
  <br>
  <b>In either case</b> (KDCHART_AXIS_LABELS_AUTO_LIMIT or numerical value)
  the \c axisValueDelta may be used to specify the value to be
  added to obtain the next values:
  <br>
  A value of <b>1.0</b> will cause 1.0 to be added to the current
  value to make the next value.
  <br>
  A <b>-0.25</b> would cause 0.25 to be subtracted from the current value.
  <br>
  (Negative or non-integer numbers are allowed here.)

<P>

Examples:

\verbatim
setAxisValues();
\endverbatim
This would specify a default ordinate-axis obtaining its values from the
attached dataset. Looks nice but it is difficult to compare it to another
chart representing slightly different min/max values since it neither starts
at zero nor ends at an allways same value.

\verbatim
setAxisValues( true, KDChartData( 0.0 ) );
\endverbatim
This would specify a half-automatical ordinate-axis obtaining its values from
the attached dataset. Looks nice and can be slightly easier compared to
another chart since it allways starts at zero, causing negative values to be
ignored completely.

\verbatim
setAxisValues( true, KDChartData( -2.0 ),
        KDChartData(  7.5 ),
        0.5, 1 );
\endverbatim
This would specify an ordinate-axis \not obtaining its values
from the attached dataset.
<b>Since both the start value and the end value are specified the range
of the dataset values are ignored completely.</b>
It will show one digit behind the comma.
The resulting chart can be perfectly compared to
another chart since it allways starts and ends at the very same level - no
matter what the dataset values are about actually.

\verbatim
setAxisValues( false, KDChartData( 0.0 ),
        KDChartData( 3.5),
        0.25, 2 );
\endverbatim
This would specify a default abscissa-axis starting with value 0.0 and
adding 0.25 to get the next value, will count until 3.5.
It will show two digits behind the comma.

\verbatim
setAxisValues( false,
        KDChartData( 1964.0 ), KDCHART_AXIS_LABELS_AUTO_LIMIT, 1, 0 );
\endverbatim
This would specify a default abscissa-axis starting with value 1964 and
adding 1 to get the next value.
It will show no digits behind the comma.

\verbatim
KDChartParams p;
KDChartAxisParams pa( p.axisParams( KDChartAxisParams::AxisPosBottom ) );

TQStringList abscissaNames;
abscissaNames << "Sunday" << "Monday" << "Tuesday" << "Wednesday"
<< "Thursday" << "Friday" << "Saturday";

TQStringList abscissaShortNames;
abscissaShortNames << "Sun" << "Mon" << "Tue" << "Wed"
<< "Thu" << "Fri" << "Sat";

pa.setAxisValues( false,
        KDChartData( "Monday" ),
        KDCHART_AXIS_LABELS_AUTO_LIMIT,
        KDCHART_AXIS_LABELS_AUTO_DELTA,
        KDCHART_AXIS_LABELS_AUTO_DIGITS,
        KDChartAxisParams::LabelsFromDataRowNo,
        0,
        &abscissaNames,
        &abscissaShortNames );
p.setAxisParams( KDChartAxisParams::AxisPosBottom, pa );
\endverbatim
This would specify a default abscissa-axis starting with 'Monday' and
counting the days of the week as far as neccessary to represent
all the entries in the associated dataset.
Note this \c LabelsFromDataRowNo indicating that the texts are <b>not</b> to
be taken from a data row and note \c &abscissaNames indicating the
\c TQStringList where to take the texts from instead. (In case the axis area
        is not wide enough to display the strings in their full length their
        counterparts stored in abscissaShortNames will be displayed instead.)
<b>Note also:</b> The strings in those two TQStringList are <b>not</b>
copied into the \c KDChartAxisParams nor into the \c KDChartParams
so please make sure the Lists are alive and valid till the end of
the param objects. Otherwise you will not be able to display the
texts.
<P>

\param axisSteadyValueCalc specifies whether label values shall be calculataed based upon the associated dataset values (normally this is true for ordinate axes) or based upon some string list (as you might expect it for abscissa labels).
\param axisValueStart specifies first label value to be written.
\param axisValueEnd specifies the last label value to be written.
\param axisValueDelta specifies the length of the steps to be taken from one label text to the next one.
\param axisDigitsBehindComma specifies how many digits are to be shown behind the axis label texts comma.
\param axisMaxEmptyInnerSpan specifies the percentage of the y-axis range that may to contain NO data entries, if - and only if - axisValueStart (or axisValueEnd, resp.) is set to KDCHART_AXIS_LABELS_AUTO_LIMIT. To prevent \c setAxisValues from changing the current setting you may specify KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW here, to deactivate taking into account the inner span entirely just use KDCHART_AXIS_IGNORE_EMPTY_INNER_SPAN.
\param takeLabelsFromDataRow specifies whether the labels texts shall be taken from a special row (reserved for this in each dataset) or not.
\param axisLabelStringList points to a \c TQStringList containing the label texts to be used.
\param axisShortLabelsStringList points to a \c TQStringList containing the label texts to be used in case their full-size counterparts cannot be shown due to limited axis area size.
\param axisValueLeaveOut is used for horizontal (top or bottom) axes only; it specifies whether some of the axis labels are to be skipped if there is not enough room for drawing them all without overlapping - this parameter may be set to KDCHART_AXIS_LABELS_AUTO_LEAVEOUT or to zero or to another positive value.
\param axisValueDeltaScale is used to specify the scaling mode of \c axisValueDelta - either just ValueScaleNumbers of a special time scale indicator.
\sa setAxisValueStart, setAxisValueEnd, setAxisValueDelta, setAxisValuesDecreasing
\sa axisValueStart axisValueEnd, axisValueDelta, ValueScale
\sa LabelsFromDataRow, axisLabelTextsFormDataRow, axisLabelTexts
\sa axisSteadyValueCalc, setAxisValueLeaveOut
*/
void  KDChartAxisParams::setAxisValues( bool axisSteadyValueCalc,
        const TQVariant& axisValueStart,
        const TQVariant& axisValueEnd,
        double axisValueDelta,
        int axisDigitsBehindComma,
        int axisMaxEmptyInnerSpan,
        LabelsFromDataRow takeLabelsFromDataRow,
        int labelTextsDataRow,
        TQStringList* axisLabelStringList,
        TQStringList* axisShortLabelsStringList,
        int axisValueLeaveOut,
        ValueScale axisValueDeltaScale )
{
    _axisSteadyValueCalc = axisSteadyValueCalc;
    _axisValueStart = axisValueStart;
    _axisValueEnd   = axisValueEnd;
    _axisValueLeaveOut = axisValueLeaveOut;
    _axisValueDelta = axisValueDelta;
    _axisValueDeltaScale = axisValueDeltaScale;
    _axisDigitsBehindComma = axisDigitsBehindComma;
    if ( KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW != axisMaxEmptyInnerSpan ) {
        if ( 100 < axisMaxEmptyInnerSpan
                || 1 > axisMaxEmptyInnerSpan )
            _axisMaxEmptyInnerSpan = KDCHART_AXIS_IGNORE_EMPTY_INNER_SPAN;
        else
            _axisMaxEmptyInnerSpan = axisMaxEmptyInnerSpan;
    }
    _takeLabelsFromDataRow = takeLabelsFromDataRow;
    _labelTextsDataRow = labelTextsDataRow;
    if( axisLabelStringList )
        _axisLabelStringList = *axisLabelStringList;
    else
        _axisLabelStringList.clear();
    if( axisShortLabelsStringList )
        _axisShortLabelsStringList = *axisShortLabelsStringList;
    else
        _axisShortLabelsStringList.clear();
    // label texts must be recalculated?
    setAxisLabelTexts( 0 );
    setTrueAxisDeltaPixels( 0.0 );
    setTrueAxisLowHighDelta( 0.0, 0.0, 0.0 );
    setTrueAxisDtLowHighDeltaScale( TQDateTime(), TQDateTime(), ValueScaleDay );
    emit changed();
}

/**
  \fn  void  KDChartAxisParams::setAxisValueStart( const KDChartData axisValueStart )
  Specifies the lower limit for the axis labels: the start value.

  \param axisValueStart the lower limit for the axis labels: the start
  value.
  \sa setAxisValues, setAxisValueStartIsExact
  \sa setAxisValueEnd, setAxisValueDelta
  \sa axisValueStart, axisValueEnd, axisValueDelta
  \sa axisLabelsFromDataRow, axisLabelTexts
  \sa axisLabelStringList, axisShortLabelsStringList
  */

/**
  \fn  KDChartData  KDChartAxisParams::axisValueStart() const
  Returns the lower limit for the axis labels: the start value.

  \return the lower limit for the axis labels: the start value.
  \sa setAxisValues, setAxisValueStart, setAxisValueStartIsExact
  \sa setAxisValueEnd, setAxisValueDelta
  \sa axisValueEnd, axisValueDelta
  \sa axisLabelsFromDataRow, axisLabelTexts
  \sa axisLabelStringList, axisShortLabelsStringList
  */

/**
  \fn  void setAxisValueStartIsExact( bool isExactValue )
  Specifies whether the lower limit for the axis labels that
  is specified via setAxisValueStart() is to be used as the
  axis start value even if this will not look very nice: this is
  the default, KD Chart just takes the value specified by you, e.g.
  if you specify 75003.00 as start value you will get exactly this.

  By setting this flag to FALSE you let KD Chart find a better
  value for you: if your value is not Zero the axis will start
  with the next value lower than your start value that can be
  divided by the delta factor.

  \param isExactValue set this to FALSE if KD Chart shall find
  a better value than the one you have specified by setAxisValueStart()
  \sa setAxisValues, setAxisValueEnd, setAxisValueDelta
  \sa axisValueStartIsExact, axisValueStart
  \sa axisValueEnd, axisValueDelta
  \sa axisLabelsFromDataRow, axisLabelTexts
  \sa axisLabelStringList, axisShortLabelsStringList
  */

/**
  \fn  bool axisValueStartIsExact() const
  Returns whether the lower limit for the axis labels that
  is specified via setAxisValueStart() is to be used as the
  axis start value even if this will not look very nice: this is
  the default, KD Chart just takes the value specified by you, e.g.
  if you specify 75003.00 as start value you will get exactly this.

  \return whether the lower limit for the axis labels that
  is specified via setAxisValueStart() is to be used as the
  axis start value even if this will not look very nice.
  \sa setAxisValues, setAxisValueStartIsExact, setAxisValueStart
  \sa setAxisValueEnd, setAxisValueDelta
  \sa axisValueEnd, axisValueDelta
  \sa axisLabelsFromDataRow, axisLabelTexts
  \sa axisLabelStringList, axisShortLabelsStringList
  */


/**
  \fn  void  KDChartAxisParams::setAxisValueEnd( const KDChartData axisValueEnd )
  Specifies the upper limit for the axis labels: the end value.

  \param axisValueStart the upper limit for the axis labels: the end
  value.
  \sa setAxisValues, setAxisValueStart, setAxisValueStartIsExact
  \sa setAxisValueDelta
  \sa axisValueStart, axisValueEnd, axisValueDelta
  \sa axisLabelsFromDataRow, axisLabelTexts
  \sa axisLabelStringList, axisShortLabelsStringList
  */

/**
  \fn  KDChartData  KDChartAxisParams::axisValueEnd() const
  Returns the upper limit for the axis labels: the end value.

  \return the upper limit for the axis labels: the end value.
  \sa setAxisValues, setAxisValueStart, setAxisValueStartIsExact
  \sa setAxisValueEnd, setAxisValueDelta
  \sa axisValueStart, axisValueDelta
  \sa axisLabelsFromDataRow, axisLabelTexts
  \sa axisLabelStringList, axisShortLabelsStringList
  */


/**
  Specifies the DELTA value for the axis labels: the distance
  between two labels.

  \param axisValueDelta the DELTA value for the axis labels: the distance
  between two labels.
  \param scale the scaling of the DELTA value
  \sa ValueScale
  \sa setAxisValues
  \sa setAxisValueStart, setAxisValueStartIsExact
  \sa setAxisValueEnd, setAxisValueDelta
  \sa axisValueStart, axisValueEnd, axisValueDelta
  \sa axisLabelsFromDataRow, axisLabelTexts
  \sa axisLabelStringList, axisShortLabelsStringList
  */
void  KDChartAxisParams::setAxisValueDelta( const double axisValueDelta,
        ValueScale scale )
{
    _axisValueDelta = axisValueDelta;
    _axisValueDeltaScale = scale;
}

/**
  \fn  double KDChartAxisParams::axisValueDelta() const
  Returns the DELTA value for the axis labels: the distance
  between two labels.

  \return the DELTA value for the axis labels: the distance
  between two labels.
  \sa setAxisValueDelta
  */


/**
  \fn ValueScale  KDChartAxisParams::axisValueDeltaScale() const
  Returns the DELTA value scaling mode for the axis labels

  \sa setAxisValueDelta
  */



/**
  \fn  void  KDChartAxisParams::setAxisValueLeaveOut( const int leaveOut )
  Specifies how many axis labels are to be skipped
  if there is not enough space for displaying all of them.
  This is usefull in case you have lots of entries in one dataset.

  \sa setAxisValues
  */
/**
  \fn int  KDChartAxisParams::axisValueLeaveOut() const
  Returns how many axis labels are to be skipped
  if there is not enough space for displaying all of them.

  \sa setAxisValueLeaveOut
  */

/**
  \fn  void  KDChartAxisParams::setAxisValuesDecreasing( bool valuesDecreasing )
  Specifies whether axis values should be printed in reverted order: starting
  with the highest label and decreasing until the lowest label is reached.

  \note This feature is supported for LINE charts only.

  \sa setAxisValues
*/

/**
  \fn bool  KDChartAxisParams::axisValuesDecreasing() const
  Returns whether axis values should be printed in reverted order: starting
  with the highest label and decreasing until the lowest label is reached.

  \note This feature is supported for LINE charts only.

  \sa setAxisValuesDecreasing
  */

/**
  \fn  void  KDChartAxisParams::setTrueAxisDeltaPixels( double nDeltaPixels )
  Specifies the true axis pixel distance between two label delimiters.

  \param nDeltaPixels the true value as it was calculated.

  \note Do <b>not call</b> this function unless you are knowing
  exactly what you are doing. \c setTrueAxisDeltaPixels is normally
  reserved for internal usage by methods calculating the axis
  label texts. Thus the signal \c changed() is not sended here.

  \sa trueAxisDeltaPixels, trueAxisLow, trueAxisHigh, trueAxisDelta
  \sa setAxisArea
  */

/**
  \fn  double  KDChartAxisParams::trueAxisDeltaPixels() const
  Returns the <b>true</b> delimiter delta pixel value of the axis labels
  as is was calculated and set by \c setTrueAxisDeltaPixels.

  \return the true delimiter delta pixel value of the axis labels
  \sa setAxisValues
  \sa trueAxisLow, trueAxisHigh, trueAxisDelta
  */



/**
  Specifies the true axis lower and upper limit values of the axis
  and the exact Delta value between the axis delimiters.

  \param nLow/nHigh/nDelta the true values as they were calculated.

  \note Do <b>not call</b> this function unless you are knowing
  exactly what you are doing. \c setAxisTrueAreaSize is normally
  reserved for internal usage by methods calculating the axis
  label texts. Thus the signal \c changed() is not sended here.

  \sa trueAxisLow, trueAxisHigh, trueAxisDelta, trueAxisDeltaPixels
  \sa setAxisArea
  */
void  KDChartAxisParams::setTrueAxisLowHighDelta( double nLow, double nHigh, double nDelta )
{
    _trueLow = nLow;
    _trueHigh = nHigh;
    _trueDelta = nDelta;

}


/**
  \fn double  KDChartAxisParams::trueAxisLow() const
  Returns the <b>true</b> start value of the ordinate axis labels
  as is was calculated and set by \c setTrueAxisLowHighDelta.

  \return the true lower limit of the axis labels
  \sa setAxisValues
  \sa trueAxisHigh, trueAxisDelta, trueAxisDeltaPixels
  */

/**
  \fn  double  KDChartAxisParams::trueAxisHigh() const
  Returns the <b>true</b> end value of the ordinate axis labels
  as is was calculated and set by \c setTrueAxisLowHighDelta.

  \return the true upper limit of the axis labels
  \sa setAxisValues
  \sa trueAxisLow, trueAxisDelta, trueAxisDeltaPixels
  */

/**
  \fn  double  KDChartAxisParams::trueAxisDelta() const
  Returns the <b>true</b> delta value of the ordinate axis labels
  as is was calculated and set by \c setTrueAxisLowHighDelta.

  \return the true delta value of the axis labels
  \sa setAxisValues
  \sa trueAxisLow, trueAxisHigh, trueAxisDeltaPixels
  */



void  KDChartAxisParams::setTrueAxisDtLowHighDeltaScale( TQDateTime dtLow, TQDateTime dtHigh,
        ValueScale dtDeltaScale )
{
    _trueDtLow        = dtLow;
    _trueDtHigh       = dtHigh;
    _trueDtDeltaScale = dtDeltaScale;
}

/**
  \fn  void  KDChartAxisParams::setTrueAxisDtLow( TQDateTime dtLow )

*/

/**
  \fn  void  KDChartAxisParams::void setTrueAxisDtHigh( TQDateTime dtHigh )

*/

/**
  \fn  void  KDChartAxisParams::void setTrueAxisDtScale( ValueScale scale )

*/

/**
  \fn  void  KDChartAxisParams::TQDateTime trueAxisDtLow() const

*/

/**
  \fn  void  KDChartAxisParams::TQDateTime trueAxisDtHigh() const

*/

/**
  \fn  void  KDChartAxisParams::ValueScale trueAxisDtDeltaScale() const

*/


/**
  Specifies the not-rounded screen positions where drawing of
  this axis zero line started.

  \Note You may not call this internal function - it is reserved for
  internal usage of methodes needing to know the zero-line offsets

  \param Pt the not-rounded screen positions where drawing of
  this axis zero line started.

  \sa axisZeroLineStartX, axisZeroLineStartY
  */
void  KDChartAxisParams::setAxisZeroLineStart( double x, double y )
{
    _axisZeroLineStartX = x;
    _axisZeroLineStartY = y;
}

/**
  \fn  double  KDChartAxisParams::axisZeroLineStartX() const
  Returns the not-rounded x-position where drawing of
  this axis zero line started. This function needed
  when painting the data of isometric axes (bars, lines, dots...).

  \return the unrounded x-position where drawing of
  this axis zero line started.

  \sa setAxisZeroLineStart, axisZeroLineStartY
  */

/**
  \fn  double  KDChartAxisParams::axisZeroLineStartY() const
  Returns the not-rounded y-position where drawing of
  this axis zero line started. This function needed
  when painting the data of isometric axes (bars, lines, dots...).

  \return the unrounded y-position where drawing of
  this axis zero line started.

  \sa setAxisZeroLineStart, axisZeroLineStartX
  */

/**
  Specifies the not-rounded screen positions where drawing of
  this axis low date/time value could be done.

  \Note You may not call this internal function - it is reserved for
  internal usage of methodes needing to know the zero-line offsets

  \param Pt the not-rounded screen positions where drawing of
  this axis low date/time value could be done.

  \sa axisDtLowPosX, axisDtLowPosY
  */
void  KDChartAxisParams::setAxisDtLowPos( double x, double y )
{
    _axisDtLowPosX = x;
    _axisDtLowPosY = y;
}

/**
  \fn double void  KDChartAxisParams::axisDtLowPosX() const
  Returns the not-rounded x-position where drawing of
  this axis low date/time value could be done. This function needed
  when painting the data of isometric axes (bars, lines, dots...).

  \return the unrounded x-position where drawing of
  this axis low date/time value could be done.

  \sa setAxisDtLowPos, axisDtLowPosY
  */

/**
  \fn  double  KDChartAxisParams::axisDtLowPosY() const
  Returns the not-rounded y-position where drawing of
  this axis low date/time value could be done. This function needed
  when painting the data of isometric axes (bars, lines, dots...).

  \return the unrounded y-position where drawing of
  this axis low date/time value could be done.

  \sa setAxisDtLowPos, axisDtLowPosX
  */


/**
  Specifies the not-rounded screen positions where drawing of
  this axis high date/time value could be done.

  \Note You may not call this internal function - it is reserved for
  internal usage of methodes needing to know the zero-line offsets

  \param Pt the not-rounded screen positions where drawing of
  this axis high date/time value could be done.

  \sa axisDtHighPosX, axisDtHighPosY
  */
void  KDChartAxisParams::setAxisDtHighPos( double x, double y )
{
    _axisDtHighPosX = x;
    _axisDtHighPosY = y;
}

/**
  \fn  double  KDChartAxisParams::axisDtHighPosX() const
  Returns the not-rounded x-position where drawing of
  this axis high date/time value could be done. This function needed
  when painting the data of isometric axes (bars, lines, dots...).

  \return the unrounded x-position where drawing of
  this axis high date/time value could be done.

  \sa setAxisDtHighPos, axisDtHighPosY
  */

/**
  \fn  double  KDChartAxisParams::axisDtHighPosY() const
  Returns the not-rounded y-position where drawing of
  this axis high date/time value could be done. This function needed
  when painting the data of isometric axes (bars, lines, dots...).

  \return the unrounded y-position where drawing of
  this axis high date/time value could be done.

  \sa setAxisDtHighPos, axisDtHighPosX
  */


/**
  \fn void  KDChartAxisParams::setAxisDigitsBehindComma( const int digits )
  Specifies the number of digits to be printed behind the comma
  on the axis labels.

  \param digits the number of digits to be printed behind the comma
  on the axis labels.

  \sa axisDigitsBehindComma
  */

/**
  \fn  int  KDChartAxisParams::axisDigitsBehindComma() const
  Returns the number of digits to be printed behind the comma
  on the axis labels.

  \return the number of digits to be printed behind the comma
  on the axis labels.
  \sa setAxisValues
  \sa axisValueStart
  \sa axisLabelsFromDataRow, axisLabelTexts
  \sa axisLabelStringList, axisShortLabelsStringList
  \sa setAxisLabelStringLists
  */

/**
  \fn  void  KDChartAxisParams::setAxisLabelsDateTimeFormat( const TQString& format )
  Specifies the format to be used for displaying abscissa axis
  TQDateTime item labels.

  \note This feature is only available when using TQt 3.0 or newer,
  previous versions use a non changable format.

  To calculate the format automatically (based on the
  time span to be displayed) use the special value
  \c KDCHART_AXIS_LABELS_AUTO_DATETIME_FORMAT - this is the default setting.

  See TQt documentation on the format to be used here:

  $TQTDIR/doc/html/qdatetime.html#toString-2

  \note Insert a '\n' character if you want to print the labels in two rows, e.g. "h:mm:ss\nd.MM.yyyy" would do that.

  \sa axisLabelsDateTimeFormat
  */

/**
  \fn  TQString  KDChartAxisParams::axisLabelsDateTimeFormat() const
  Returns the format to be used for displaying abscissa axis
  TQDateTime item labels.

  \sa setAxisLabelsDateTimeFormat
  */


/**
  \fn  void  KDChartAxisParams::setAxisMaxEmptyInnerSpan( const int maxEmpty )
  Specifies the percentage of the y-axis range that may to contain NO
  data entries, if - and only if - axisValueStart (or axisValueEnd,
  resp.) is set to KDCHART_AXIS_LABELS_AUTO_LIMIT.

  \param maxEmpty the percentage of the y-axis range that may to contain NO
  data entries, if - and only if - axisValueStart (or axisValueEnd,
  resp.) is set to KDCHART_AXIS_LABELS_AUTO_LIMIT.

  \sa axisMaxEmptyInnerSpan
  */

/**
  \fn  int  KDChartAxisParams::axisMaxEmptyInnerSpan() const
  Returns the percentage of the y-axis range that may to contain NO
  data entries, if - and only if - axisValueStart (or axisValueEnd,
  resp.) is set to KDCHART_AXIS_LABELS_AUTO_LIMIT.

  \note If more space is empty the zero-line will not be included info the chart but the lowest (or highest, resp.) entry of the axis will be shifted accordingly.
  \sa setAxisValues
  */


/**
  Specifies whether the axis labels are stored in a data row.
  If \c LabelsFromDataRowGuess we assume yes only if
  all the entries of that data row contain strings - no numbers.

  \note Calling this function results in overwriting the information
  that you might have set by previous calls of that function.
  Only <b>one</b> data row can be specified as containing label texts.
  To specify a data row that contains (or might contain) axis label texts just
  call this function with \c LabelsFromDataRowYes (or \c LabelsFromDataRowGuess,
  resp.) specifying this row but do <b>not</b> call the function n times with
  the \c LabelsFromDataRowNo parameter to 'deactivate' the other rows.
  The \c LabelsFromDataRowNo should be used to specify that <b>none</b> of
  the data rows is containing the axis label texts (this is the default
  setting).

  \param row the data row number that contains (or might contain, resp.) the labels
  \param mode the state of our information concerning that row (see: \c LabelsFromDataRow)

  \sa LabelsFromDataRow, axisLabelTextsFormDataRow, setAxisValues
  */
void  KDChartAxisParams::setLabelTextsFormDataRow( int row, LabelsFromDataRow mode )
{
    _labelTextsDataRow = row;
    _takeLabelsFromDataRow = mode;
}


/**
  \fn  void void  KDChartAxisParams::setLabelTextsFormDataRow( int row, LabelsFromDataRow mode );
  Returns whether the axis labels will be taken from the associated dataset.

  \return whether the axis limits will be taken from the associated dataset.
  \sa setAxisValues
  \sa axisValueStart, axisValueEnd
  \sa axisLabelsFromDataRow, axisLabelTexts
  */


/**
  \fn  int  KDChartAxisParams::labelTextsDataRow() const
  Returns the number of the data row that contains (or might contain,
  resp.) the texts to be taken for the axis labels.
  <br>
  Use \c axisLabelTextsFormDataRow to make sure the texts are
  to be taken from that row.
  <br>
  Use \c axisLabelStringList to get a TQStringList* of texts from
  which the texts to be drawn will be taken.

  Use \c axisShortLabelsStringList to get a TQStringList* of texts from
  which the texts to be drawn will be taken in case the axis area size
  is too small to display their full-size counterparts stored in
  \c axisLabelStringList.

  Use \c axisLabelTexts to get a TQStringList* containing the label
  texts that are <b>actually</b> drawn at the axis.

  \return the number of the data row that contains (or might contain,
  resp.) the texts to be taken for the axis labels.
  \sa setAxisValues
  \sa axisValueStart, axisValueEnd
  \sa axisLabelsFromDataRow, axisLabelTexts
  \sa axisLabelStringList, axisShortLabelsStringList
  */


/**
  Specifies a \c TQStringList which the axis label texts are to
  be taken from, the second parameter (if not zero) specifies an
  alternative list of strings that are to be displayed in case
  the axis area size is too small for showing the full-length names.

  \note Normally axis labeling starts with the list's first string
  and end with its last string, but by specifying a start and an
  end value as additional parameters you can make KDChart repeat
  the strings between these two values only, as shown here:

  \verbatim
  TQStringList abscissaNames;
  abscissaNames << "Sunday" << "Monday" << "Tuesday" << "Wednesday"
  << "Thursday" << "Friday" << "Saturday";
  TQStringList abscissaShortNames;
  abscissaShortNames << "Sun" << "Mon" << "Tue" << "Wed"
  << "Thu" << "Fri" << "Sat";

  KDChartAxisParams pa( _p->axisParams(
  KDChartAxisParams::AxisPosBottom ) );

  setAxisLabelStringParams( &abscissaNames,
  &abscissaShortNames,
  "Monday",
  "Friday")

  _p->setAxisParams( KDChartAxisParams::AxisPosBottom, pa );
  \endverbatim


  \param TQStringList* axisLabelStringList points to the list of labels to be displayed
  \param  TQStringList* axisShortLabelStringList points to
  an alternative list of short names to be displayed if the long labels take too much place
  \param TQString valueStart ( default null ) the label to begin with
  \param TQString valueEnd ( default null ) the label to end with

  \sa KDChartParams::setAxisLabelStringParams
  \sa axisLabelStringList, axisShortLabelsStringList
  \sa setAxisValues, setLabelTextsFormDataRow
  \sa axisLabelTexts
  */
void  KDChartAxisParams::setAxisLabelStringLists( TQStringList*   axisLabelStringList,
        TQStringList*   axisShortLabelStringList,
        const TQString& valueStart,
        const TQString& valueEnd )
{
    TQVariant axisValueStart, axisValueEnd;

    if( valueStart.isNull() )
        axisValueStart = KDCHART_AXIS_LABELS_AUTO_LIMIT;
    else
        axisValueStart = valueStart;

    if( valueEnd.isNull() )
        axisValueEnd = KDCHART_AXIS_LABELS_AUTO_LIMIT;
    else
        axisValueEnd = valueEnd;

    setAxisValues( false,
            axisValueStart,
            axisValueEnd,
            KDCHART_AXIS_LABELS_AUTO_DELTA,
            KDCHART_AXIS_LABELS_AUTO_DIGITS,
            KDCHART_AXIS_IGNORE_EMPTY_INNER_SPAN,
            LabelsFromDataRowNo,
            0,
            axisLabelStringList,
            axisShortLabelStringList,
            KDCHART_AXIS_LABELS_AUTO_LEAVEOUT );

}


/**
  \fn  TQStringList  KDChartAxisParams::axisLabelStringList() const
  Returns a \c TQStringList containing the label texts to be used.

  Calling \c axisShortLabelsStringList() instead will return
  another \c TQStringList containing the label texts to be displayed
  in case the axis area size is too small to show the full-size names.

  \note This is the list of texts you specified by \c setAxisValues
  or by \c setAxisLabelStringLists.
  The texts <b>actually</b> drawn at the axis are <b>not neccessarily</b> the
  same as the ones in this list  since (regarding Start and/or End and/or
  Delta value) they might be only a subset of this list. Whenever label texts
  are calculated automatically the resulting labels are also stored in a
  second list that you may access via \c axisLabelTexts().

  \return a \c TQStringList containing the label texts to be used.
  \sa axisShortLabelsStringList
  \sa setAxisLabelStringLists
  \sa setAxisValues
  \sa axisValueStart, axisValueEnd, axisLabelTexts
  \sa axisLabelsFromDataRow, setLabelTextsFormDataRow
  */

/**
  \fn uint  KDChartAxisParams::axisLabelStringCount() const
  Returns the number of strings stored as label texts,
  the texts can be retrieved by calling \c axisLabelStringList().

  \sa axisShortLabelsStringCount
  \sa axisLabelStringList, axisShortLabelsStringList
  */

/**
  \fn  TQStringList  KDChartAxisParams::axisShortLabelsStringList() const
  Returns a \c TQStringList containing the label texts to be used
  in case the axis area size is too small to show the full-size
  label texts.

  Calling \c axisLabelStringList() instead will return
  another \c TQStringList containing their full-size counterparts.

  \note This is the list of texts you specified by \c setAxisValues
  or by \c setAxisShortLabelsStringList.
  The texts <b>actually</b> drawn at the axis are <b>not neccessarily</b> the
  same as the ones in this list  since (regarding Start and/or End and/or
  Delta value) they might be only a subset of this list. Whenever label texts
  are calculated automatically the resulting labels are also stored in a
  second list that you may access via \c axisLabelTexts().

  \return a \c TQStringList containing the label texts to be used
  in case the axis area size is too small to show the full-size
  label texts.
  \sa axisLabelStringList
  \sa setAxisLabelStringLists
  \sa setAxisValues
  \sa axisValueStart, axisValueEnd, axisLabelTexts
  \sa axisLabelsFromDataRow, setLabelTextsFormDataRow
  */

/**
  \fn  uint  KDChartAxisParamsaxisShortLabelsStringCount() const
  Returns the number of strings stored as label texts,
  the texts can be retrieved by calling \c axisLabelStringList().

  \sa axisLabelStringCount
  \sa axisLabelStringList, axisShortLabelsStringList
  */


/**
  \fn  const TQStringList*  KDChartAxisParamsaxisLabelTexts() const
  Returns a \c TQStringList containing the label texts
  that are <b>actually</b> drawn at the axis.

  In case the texts are unknown returns zero.

  \note This is the list of texts <b>actually</b> drawn at the axis.
  This strings are not neccessarily the same as the ones in the list given by
  \c setAxisValues since (regarding Start and/or End and/or Delta value) it
  might be only a subset of that list. Whenever labels text are calculated
  automatically the resulting labels also stored in this list - it will
  allways be a true copy of the texts painted at the axis.

  \return a \c TQStringList containing the label texts actually being used.
  \sa setAxisValues
  \sa axisValueStart, axisValueEnd, axisLabelStringList
  \sa axisLabelsFromDataRow, setLabelTextsFormDataRow
  \sa setAxisLabelStringLists, setAxisValues
  */



/**
  Specifies the label texts that are <b>actually</b> drawn
  at the axis labels.

  \note Do not call this function unless you know what you are
  doing. It is used internally whenever the texts to be drawn
  have been re-calculated or the charts parameters have changed.
  For specifying another list of strings to be used as label texts
  you might rather want to call \c setAxisLabelStringLists() or
  \c setLabelTextsFormDataRow() depending from whether your texts
  are stored in a \c TQStringList or in a data row.

  \param axisLabelTexts specifies the texts that are
  <b>actually</b> drawn at the axis labels are unknown.

  \sa setAxisLabelStringLists, setLabelTextsFormDataRow, setAxisValues
  \sa setAxisFirstLabelText, setAxisLastLabelText
  */
void  KDChartAxisParams::setAxisLabelTexts( const TQStringList* axisLabelTexts )
{
    _axisLabelTexts.clear();
    _axisLabelTextsDirty = ( 0 == axisLabelTexts );
    if ( !_axisLabelTextsDirty )
        _axisLabelTexts = *axisLabelTexts;
}

/**
  \fn  void  KDChartAxisParamssetAxisLabelTextsDirty( bool axisLabelTextsDirty )
  Specifies whether the label texts are <b>actually</b> drawn
  at the axis labels are unknown. If \c false, they could
  successfully be retrieved by \c axisLabelTexts().

  \note Do not call this function unless you know what you are
  doing. It is used internally whenever the texts to be drawn
  have been re-calculated or the charts parameters have changed.
  For specifying another list of strings to be used as label texts
  you might rather want to call \c setAxisLabelStringLists() or
  \c setLabelTextsFormDataRow() depending from whether your texts
  are stored in a \c TQStringList or in a data row.

  \param axisLabelTextsDirty specifies whether the texts are
  <b>actually</b> drawn at the axis labels are unknown.

  \sa setAxisLabelStringLists, setLabelTextsFormDataRow, setAxisValues
  */

/**
  \fn  bool  KDChartAxisParams::axisLabelTextsDirty() const
  Returns whether the label texts that are <b>actually</b> drawn
  at the axis labels are unknown. If \c false, they could
  successfully be retrieved by \c axisLabelTexts().

  \return whether the texts that are <b>actually</b> drawn at
  the axis labels are unknown.

  \sa setAxisLabelStringLists, setLabelTextsFormDataRow, setAxisValues
  */


/**
  Sets a special text that is to be displayed _instead_of_
  the first axis label IF the parameter is not a NULL string.

  \note This function does not affect axis label and axis range
  calculation but it replaces the first label after all calculation
  is done.  This may be used in case you want to replace the first
  label by some special text string, e.g. you might want to display
  the text "origo" instead of the start value.

  To remove a first label string that was set by a previous call of this
  function just call it again, with no parameter.

  \param axisFirstLabelText specifies the text that is
  <b>actually</b> drawn as the first label: a NULL string
  ( as produced by TQString() ) will be ignored, to suppress
  the first label please specify an EMPTY but NOT NULL string
  by passing "" as parameter.


  \sa setAxisLastLabelText
  \sa setAxisLabelStringLists, setLabelTextsFormDataRow, setAxisValues
  */
void  KDChartAxisParams::setAxisFirstLabelText( const TQString& axisFirstLabelText )
{
    _axisFirstLabelText = axisFirstLabelText;
}

/**
  Sets a special text that is to be displayed _instead_of_
  the last axis label IF the parameter is not a NULL string.

  \note This function does not affect axis label and axis range
  calculation but it replaces the last label after all calculation
  is done.  This may be used in case you want to replace the last
  label by some special text string, e.g. you might want to display
  the text "maximum" instead of the end value.

  To remove a last label string that was set by a previous call of this
  function just call it again, with no parameter.

  \param axisFirstLabelText specifies the text that is
  <b>actually</b> drawn as the last label: a NULL string
  ( as produced by TQString() ) will be ignored, to suppress
  the first label please specify an EMPTY but NOT NULL string
  by passing "" as parameter.

  \sa setAxisFirstLabelText
  \sa setAxisLabelStringLists, setLabelTextsFormDataRow, setAxisValues
  */
void  KDChartAxisParams::setAxisLastLabelText( const TQString& axisLastLabelText )
{
    _axisLastLabelText = axisLastLabelText;
}



/**
  \fn  void  KDChartAxisParams::setAxisSteadyValueCalc( bool axisSteadyValueCalc )
  Specifies whether label values shall be calculated based upon the
  associated dataset values (normally this is true for ordinate axes)
  or based upon some string list (as you might expect it for abscissa
  labels).

  \sa setAxisValues
  */

/**
  \fn  bool  KDChartAxisParams::axisSteadyValueCalc() const
  Returns whether label values shall be calculataed based upon the associated
  dataset values (normally this is true for ordinate axes) or based upon some
  string list (as you might expect it for abscissa labels).

  \sa setAxisValues
  */

/**
  \fn   KDChartAxisParams::KDChartAxisParams( const KDChartAxisParams& R ) : TQObject()
  Copy-constructor: By calling the copy method,
  see also the assignment operator.
  */


/**
  Assignment operator: By calling the copy method,
  see also the copy constructor.
  */

KDChartAxisParams& KDChartAxisParams::operator=( const KDChartAxisParams& R )
{
    if ( this != &R )
        deepCopy( *this, R );
    return *this;
}

void KDChartAxisParams::deepCopy( KDChartAxisParams& D, const KDChartAxisParams& R )
{
    D._axisType = R._axisType;
    D._axisVisible = R._axisVisible;
    D._axisAreaMode = R._axisAreaMode;
    D._axisUseAvailableSpaceFrom = R._axisUseAvailableSpaceFrom;
    D._axisUseAvailableSpaceTo   = R._axisUseAvailableSpaceTo;
    D._axisAreaMin = R._axisAreaMin;
    D._axisAreaMax = R._axisAreaMax;
    D._axisCalcMode = R._axisCalcMode;
    D._axisIsoRefAxis = R._axisIsoRefAxis;
    D._axisTrueAreaSize = R._axisTrueAreaSize;
    D._axisTrueAreaRect = R._axisTrueAreaRect;
    D._axisZeroLineStartX = R._axisZeroLineStartX;
    D._axisZeroLineStartY = R._axisZeroLineStartY;
    D._axisDtLowPosX = R._axisDtLowPosX;
    D._axisDtLowPosY = R._axisDtLowPosY;
    D._axisDtHighPosX = R._axisDtHighPosX;
    D._axisDtHighPosY = R._axisDtHighPosY;
    D._axisLineVisible = R._axisLineVisible;
    D._axisLineWidth = R._axisLineWidth;
    D._axisTrueLineWidth = R._axisTrueLineWidth;
    D._axisLineColor = R._axisLineColor;
    // main grid:
    D._axisShowFractionalValuesDelimiters = R._axisShowFractionalValuesDelimiters;
    D._axisShowGrid      = R._axisShowGrid;
    D._axisGridColor     = R._axisGridColor;
    D._axisGridLineWidth = R._axisGridLineWidth;
    D._axisGridStyle     = R._axisGridStyle;
    // sub grid:
    D._axisShowSubDelimiters = R._axisShowSubDelimiters;
    D._axisGridSubColor      = R._axisGridSubColor;
    D._axisGridSubLineWidth  = R._axisGridSubLineWidth;
    D._axisGridSubStyle      = R._axisGridSubStyle;

    D._axisZeroLineColor = R._axisZeroLineColor;
    D._axisLabelsVisible = R._axisLabelsVisible;
    D._axisLabelsFont = R._axisLabelsFont;
    D._axisLabelsFontUseRelSize = R._axisLabelsFontUseRelSize;
    D._axisLabelsDontShrinkFont = R._axisLabelsDontShrinkFont;
    D._axisLabelsDontAutoRotate = R._axisLabelsDontAutoRotate;
    D._axisLabelsRotation = R._axisLabelsRotation;
    D._axisLabelsFontRelSize = R._axisLabelsFontRelSize;
    D._axisLabelsFontMinSize = R._axisLabelsFontMinSize;
    D._axisLabelsColor = R._axisLabelsColor;

    D._axisSteadyValueCalc   = R._axisSteadyValueCalc;
    D._axisValueStartIsExact = R._axisValueStartIsExact;
    D._axisValueStart        = R._axisValueStart;
    D._axisValueEnd          = R._axisValueEnd;
    D._axisValueDelta        = R._axisValueDelta;
    D._axisValueDeltaScale   = R._axisValueDeltaScale;
    D._axisValueLeaveOut     = R._axisValueLeaveOut;
    D._axisValuesDecreasing  = R._axisValuesDecreasing;
    D._axisDigitsBehindComma = R._axisDigitsBehindComma;
    D._axisLabelsDateTimeFormat = R._axisLabelsDateTimeFormat;
    D._axisMaxEmptyInnerSpan = R._axisMaxEmptyInnerSpan;
    D._takeLabelsFromDataRow = R._takeLabelsFromDataRow;
    D._labelTextsDataRow     = R._labelTextsDataRow;
    D._axisLabelStringList   = R._axisLabelStringList;
    D._axisShortLabelsStringList = R._axisShortLabelsStringList;
    D._axisLabelTextsDirty   = R._axisLabelTextsDirty;

    D._axisLabelsDivPow10      = R._axisLabelsDivPow10;
    D._axisLabelsDecimalPoint  = R._axisLabelsDecimalPoint;
    D._axisLabelsNotation      = R._axisLabelsNotation;
    D._axisLabelsThousandsPoint= R._axisLabelsThousandsPoint;
    D._axisLabelsPrefix        = R._axisLabelsPrefix;
    D._axisLabelsPostfix       = R._axisLabelsPostfix;
    D._axisLabelsTotalLen      = R._axisLabelsTotalLen;
    D._axisLabelsPadFill       = R._axisLabelsPadFill;
    D._axisLabelsBlockAlign    = R._axisLabelsBlockAlign;

    D._axisFirstLabelText = R._axisFirstLabelText;
    D._axisLastLabelText = R._axisLastLabelText;

    D._axisLabelTexts = R._axisLabelTexts;
    D._trueAxisDeltaPixels = R._trueAxisDeltaPixels;
    D._trueHigh = R._trueHigh;
    D._trueLow = R._trueLow;
    D._trueDelta = R._trueDelta;
    D._trueDtLow = R._trueDtLow;
    D._trueDtHigh = R._trueDtHigh;
    D._trueDtDeltaScale = R._trueDtDeltaScale;
}


/**
  Converts the specified axis type enum to a string representation.

  \param type the axis type enum to convert
  \return the string representation of the axis type enum
  */
TQString  KDChartAxisParams::axisTypeToString( AxisType type ) {
    switch( type ) {
        case AxisTypeUnknown:
            return "Unknown";
        case AxisTypeEAST:
            return "East";
        case AxisTypeNORTH:
            return "North";
        case AxisUP:
            return "Up";
        default: // should not happen
            tqDebug( "Unknown axis type" );
            return "Unknown";
    }
}

/**
  Converts the specified string to an axis type enum value.

  \param string the string to convert
  \return the axis type enum value
  */
KDChartAxisParams::AxisType KDChartAxisParams::stringToAxisType( const TQString& type ) {
    if( type == "Unknown" )
        return AxisTypeUnknown;
    else if( type == "East" )
        return AxisTypeEAST;
    else if( type == "North" )
        return AxisTypeNORTH;
    else if( type == "Up" )
        return AxisUP;
    else // should not happen
        return AxisTypeUnknown;
}



/**
  \fn   void  KDChartAxisParams::changed()
  \c Signals:
  This signal is emitted when any of the chart axis
  parameters have changed.
  */

/**
  \var AxisType _axisType
  \c private:

  Specifies the axis type.

  \sa setAxisType
  */

/**
  \var bool  _axisVisible
  \c private:
  Specifies whether this axis is to be drawn. False by default.

  \sa setAxisVisible
  */


/**
  \var bool  _axisLabelsTouchEdges
  \private:
  Specifies whether the axis labels start and end at the
  edges of the charts instead being positioned in the
  middle of the first data point (or the last one, resp.)

  \sa axisLabelsTouchEdges
  */


/**
  \var  AxisAreaMode _axisAreaMode
  \private:
  Specifies how to find out the size of the area to be
  used by this axis.

  \sa setAxisAreaMode, setAxisAreaMin, setAxisAreaMax, setAxisArea
  */

/**
  \var int _axisUseAvailableSpaceFrom
  \private:
  Specifies the beginning offset of the space used by this axis
  in comparison to the space that could be used by this axis.

  \sa setAxisUseAvailableSpace
  */

/**
  \var int _axisUseAvailableSpaceTo
  \private:
  Specifies the ending offset of the space used by this axis
  in comparison to the space that could be used by this axis.

  \sa setAxisUseAvailableSpace
  */

/**
  \var int _axisAreaMin
  Specifies the minimum axis area width (or height, resp.).
  \sa setAxisAreaMin, setAxisAreaMode, setAxisAreaMax, setAxisArea
  */

/**
  \var  int _axisAreaMax
  Specifies the maximum axis area width (or height, resp.).

  \sa setAxisAreaMax, setAxisAreaMode, setAxisAreaMin, setAxisArea
  */

/**
  \var AxisCalcMode _axisCalcMode
  Specifies the axis calculation mode.

  \sa setAxisCalcMode
  */
/**
  \var  uint _axisIsoRefAxis
  Specifies which axis this axis shall be isometric with.

  \sa setIsometricReferenceAxis
  */

/**
  \var int _axisTrueAreaSize
  Specifies the axis area width (or height, resp.)
  as it was calculated and drawn.

  \sa setAxisAreaMax, setAxisAreaMode, setAxisAreaMin, setAxisArea
  */

/**
  \var  TQRect _axisTrueAreaRect
  Specifies the true axis area rectangle
  as it was calculated and drawn.

  \sa setAxisAreaMax, setAxisAreaMin, setAxisArea
  */

/**
  \var  bool _axisShowSubDelimiters
  Specifies whether the axis sub-delimiters will be drawn.

  \sa setAxisShowSubDelimiters
  */
/**
  \var  bool _axisLineVisible
  Specifies whether the axis line is visible or not.

  \sa setAxisLineVisible
  */

/**
  \var  int _axisLineWidth
  Specifies the axis line width.

  \sa setAxisLineWidth
  */
/**
  \var int _axisTrueLineWidth
  Specifies the actual axis line width, as calculated and drawn.

  \sa setAxisTrueLineWidth
  */

/**
  \var TQColor _axisLineColor
  Specifies the axis line colour.

  \sa setAxisLineColor
  */

/**
  \var  bool _axisShowGrid
  Specifies whether a grid will be drawn at the chart data area.

  \sa setAxisShowGrid
  */

/**
  \var  TQColor _axisGridColor
  Specifies the axis grid colour.

  \sa setAxisGridColor, setAxisShowGrid
  */


/**
  \var  int _axisGridLineWidth
  Specifies the width of the axis grid lines.

  \sa setAxisGridLineWidth
  */

/**
  \var  TQColor _axisGridSubColor
  Specifies the axis grid sub colour.

  \sa setAxisGridSubColor, setAxisShowGrid, setAxisShowSubDelimiters
  */


/**
  \var  int _axisGridSubLineWidth
  Specifies the width of the axis grid sub lines.

  \sa setAxisGridSubLineWidth, setAxisShowGrid, setAxisShowSubDelimiters
  */

/**
  \var  Qt::PenStyle _axisGridStyle
  Specifies the axis grid line pattern for main grid lines.

  \sa setAxisGridStyle, setAxisShowGrid
  */

/**
  \var Qt::PenStyle _axisGridSubStyle
  Specifies the axis grid line pattern for sub-delimiter grid lines.

  \sa setAxisGridSubStyle, setAxisGridStyle, setAxisShowGrid
  */

/**
  \var TQColor _axisZeroLineColor
  Specifies the zero-line colour.

  \sa setAxisZeroLineColor
  */

/**
  \var bool _axisLabelsVisible
  Specifies whether the axis' labels are visible or not.

  \sa setAxisLabelsVisible
  */

/**
  \var TQFont _axisLabelsFont
  Specifies the axis labels font.

  \sa setAxisLabelsFont
  \sa setAxisLabelsFontUseRelSize, setAxisLabelsFontRelSize
  */

/**
  \var bool _axisLabelsFontUseRelSize
  Specifies whether the size of the label font is to be calculated
  on a relative basis.

  \sa setAxisLabelsFontUseRelSize, setAxisLabelsFontRelSize
  \sa setAxisLabelsFont
  */

/**
  \var  int _axisLabelsFontRelSize
  Specifies the per mille basis for calculating the relative
  axis labels font size.

  \sa setAxisLabelsFontRelSize, setAxisLabelsFontUseRelSize
  \sa setAxisLabelsFont
  */

/**
  \var TQColor _axisLabelsColor
  Specifies the axis labels color.

  \sa setAxisLabelsColor
  */

/**
  \var  bool _axisSteadyValueCalc
  Specifies whether label values shall be calculataed based upon the associated dataset values (normally this is true for ordinate axes) or based upon some string list (as you might expect it for abscissa labels).

  \sa setAxisValues
  */

/**
  \var  KDChartData _axisValueStart;
  Specifies the lower limit for the axis labels: the start value.

  \sa setAxisValues
  */

/**
  \var  bool _axisValueStartIsExact;
  Specifies whether the lower limit for the axis labels is
  to be used the start value even if this might not look good.

  \sa setAxisValueStartIsExact
  */

/**
  \var KDChartData _axisValueEnd
  Specifies the higher limit for the axis labels: the end value.

  \sa setAxisValues
  */

/**
  \var double _axisValueDelta
  Stores the DELTA value for the axis labels: the distance
  between two labels.

  \sa setAxisValues
  */

/**
  \var ValueScale _axisValueDeltaScale
  Stores the scaling mode for axis labels: either just numbers
  or a specified time scale (e.g. milliseconds or hours or months...)
  */

/**
  \var  int _axisValueLeaveOut
  Stores how many axis labels are to be skipped after drawing one.
  This is usefull in case you have lots of entries in one dataset.

  \sa setAxisValues
  */

/**
  \var  bool _axisValuesDecreasing;
  Stores whether the axis labels are printed in reverted order.

  \sa setAxisValuesDecreasing
  */

/**
  \var double _trueAxisDeltaPixels
  Stores the <b>true</b> delimiter delta pixel value of the axis labels
  as is was calculated and set by \c setTrueAxisDeltaPixels.

  \sa setAxisValues
  \sa trueAxisDeltaPixels
  */

/**
  \var  double _trueLow
  Specifies the <b>true</b> start value of the axis labels
  as is was calculated and set by \c setTrueAxisLowHighDelta.

  \sa setAxisValues
  \sa trueAxisLow, trueAxisHigh, trueAxisDelta
  */

/**
  \var double _trueHigh
  Specifies the <b>true</b> end value of the axis labels
  as is was calculated and set by \c setTrueAxisLowHighDelta.

  \sa setAxisValues
  \sa trueAxisLow, trueAxisHigh, trueAxisDelta
  */

/**
  \var  double _trueDelta
  Specifies the <b>true</b> delta value of the axis labels
  as is was calculated and set by \c setTrueAxisLowHighDelta.

  \sa setAxisValues
  \sa trueAxisLow, trueAxisHigh, trueAxisDelta
  */
/**
  \var double _axisZeroLineStartX
  Specifies the not-rounded screen x-position where drawing of
  this axis zero line started.
  */

/**
  \var double _axisZeroLineStartY
  Specifies the not-rounded screen y-position where drawing of
  this axis zero line started.
  */

/**
  \var int _axisDigitsBehindComma
  Specifies the number of digits to be printed behind the comma
  on the axis labels.

  \sa setAxisValues
  */

/**
  \var  int _axisMaxEmptyInnerSpan
  Specifies the percentage of the y-axis range that may to contain NO
  data entries, if - and only if - axisValueStart (or axisValueEnd,
  resp.) is set to KDCHART_AXIS_LABELS_AUTO_LIMIT.

  \sa setAxisValues
  */
/**
  \var LabelsFromDataRow _takeLabelsFromDataRow
  Specifies whether the axis labels shall be taken directly
  from the entries of a data row.

  \sa setAxisValues
  */


/**
  \var int _labelTextsDataRow
  Specifies a data row which the axis labels shall be taken from.

  \sa setAxisValues
  */

/**
  \var  TQStringList _axisLabelStringList
  Specifies a TQStringList containing the label texts to be used.

  \sa _axisShortLabelsStringList
  \sa setAxisValues, _axisLabelTexts, _axisLabelTextsDirty
  */


/**
  \var  TQStringList _axisShortLabelsStringList
  Specifies a TQStringList containing the label texts to be used
  in case the axis area is not wide enough to show their full-size
  counterparts.

  \sa _axisLabelStringList
  \sa setAxisValues, _axisLabelTexts, _axisLabelTextsDirty
  */

/**
  \var TQStringList _axisLabelTexts
  Contains the label texts <b>actually</b> being used.

  \sa setAxisValues, _axisLabelStringList, _axisLabelTextsDirty
  */

/**
  \var bool _axisLabelTextsDirty
  Specifies whether the TQStringList _axisLabelTexts content is invalid.

  \sa setAxisValues, _axisLabelTexts
  */