#ifndef _DCALLANG_H
#define _DCALLANG_H

#include "datatype.h"

// Calculator application string defines
// ------------ App.c --------------------
#define MAINMENU	(BYTE*)"Mainmenu"
#define OVERFLOW1	(BYTE*)("Metric Result Overflow")
#define OVERFLOW2	(BYTE*)("Metric result overflow !!!")
#define OVERFLOW3	(BYTE*)("Exchange Result Overflow")
#define OVERFLOW4	(BYTE*)("Exchange result overflow !!!")
#define LOANERR		(BYTE*)("Loan Error")
#define CALERR1		(BYTE*)("Can't edit calculating field!!!")
#define	CALERR2		(BYTE*)("No Solution!!!")
#define CALERR3		(BYTE*)("Result value out of range!!!")
#define CALERR4		(BYTE*)("Can't initialise DB due to low memory")
#define	CALMSG1		(BYTE*)("    Initialising Exchange Rate Database")
#define SIMPLE		(BYTE*)"Simple"
#define IMPERIAL	(BYTE*)"Metric=Imperial"
#define	MORTAGE		(BYTE*)"Mortgage Payments"

// ------------- AppSave.c --------------
#define MATHSDB		(BYTE*)"Maths Database"
#define MATHSAPP	(BYTE*)"Maths Application"
#define CALSTR1		(BYTE*)"EUR:"
#define CALSTR2		(BYTE*)"USD:"
#define CALSTR3		(BYTE*)"-  E  -"

#define EXCHANGE_DEFAULT_COUNTRY_1		17
#define EXCHANGE_DEFAULT_COUNTRY_2		60

// ------------ exrate.c ----------------
#define CUR1		"DZD"
#define CUR2		"ARP"
#define CUR3		"AUD"
#define CUR4		"ATS"
#define CUR5		"BSD"
#define CUR6		"BBD"
#define CUR7		"BEF"
#define CUR8		"BMD"
#define CUR9		"BRR"
#define CUR10		"BGL"
#define CUR11		"CAD"
#define CUR12		"CLP"
#define CUR13		"CNY"
#define CUR14		"CYP"
#define CUR15		"CSK"
#define CUR16		"DKK"
#define CUR17		"EGP"
#define CUR18		"EUR"
#define CUR19		"FIM"
#define CUR20		"FJD"
#define CUR21		"FRF"
#define CUR22		"DEM"
#define CUR23		"GRD"
#define CUR24		"HKD"
#define CUR25		"HUF"
#define CUR26		"ISK"
#define CUR27		"INR"
#define CUR28		"IDR"
#define CUR29		"IEP"
#define CUR30		"ILS"
#define CUR31		"ITL"
#define CUR32		"JMD"
#define CUR33		"JPY"
#define CUR34		"JOD"
#define CUR35		"LBP"
#define CUR36		"LUF"
#define CUR37		"MYR"
#define CUR38		"MXP"
#define CUR39		"NLG"
#define CUR40		"NZD"
#define CUR41		"NOK"
#define CUR42		"PKR"
#define CUR43		"PHP"
#define CUR44		"PLZ"
#define CUR45		"PTE"
#define CUR46		"ROL"
#define CUR47		"RUR"
#define CUR48		"SAR"
#define CUR49		"SGD"
#define CUR50		"SKK"
#define CUR51		"ZAR"
#define CUR52		"KRW"
#define CUR53		"ESP"
#define CUR54		"SDD"
#define CUR55		"SEK"
#define CUR56		"CHF"
#define CUR57		"TWD"
#define CUR58		"THB"
#define CUR59		"TTD"
#define CUR60		"TRL"
#define CUR61		"USD"
#define CUR62		"GBP"
#define CUR63		"VEB"
#define CUR64		"ZMK"

// ------------ Metric.c ----------------
#define CALSTR4		(BYTE*)"cm"
#define CALSTR5		(BYTE*)"ft"
#define CALSTR6		(BYTE*)"in"
#define CALSTR7		(BYTE*)"km"
#define CALSTR8		(BYTE*)"m"
#define CALSTR9		(BYTE*)"mi"
#define CALSTR10	(BYTE*)"yd"
#define CALSTR11	(BYTE*)"acres"
#define CALSTR12	(BYTE*)"sq. cm"
#define CALSTR13	(BYTE*)"sq. ft"
#define CALSTR14	(BYTE*)"sq. in"
#define CALSTR15	(BYTE*)"ha"
#define CALSTR16	(BYTE*)"sq. km"
#define CALSTR17	(BYTE*)"sq. m"
#define CALSTR18	(BYTE*)"sq. mi"
#define CALSTR19	(BYTE*)"sq. yd"
#define CALSTR20	(BYTE*)"cubic cm"
#define CALSTR21	(BYTE*)"cubic ft"
#define CALSTR22	(BYTE*)"cubic in"
#define CALSTR23	(BYTE*)"cubic m"
#define CALSTR24	(BYTE*)"cubic yd"
#define CALSTR25	(BYTE*)"g"
#define CALSTR26	(BYTE*)"gr"
#define CALSTR27	(BYTE*)"kg"
#define CALSTR28	(BYTE*)"lb"
#define CALSTR29	(BYTE*)"oz"
#define CALSTR30	(BYTE*)"stone"
#define CALSTR31	(BYTE*)"tonne"
#define CALSTR32	(BYTE*)"fl. oz"
#define CALSTR33	(BYTE*)"gal"
#define CALSTR34	(BYTE*)"gills"
#define CALSTR35	(BYTE*)"L"
#define CALSTR36	(BYTE*)"pt"
#define CALSTR37	(BYTE*)"km/h"
#define CALSTR38	(BYTE*)"knot"
#define CALSTR39	(BYTE*)"m.p.h"
#define CALSTR40	(BYTE*)"C"
#define CALSTR41	(BYTE*)"F"
#define CALSTR42	(BYTE*)"K"

#define R00      1.82674
#define R01      115.384
#define R02      74.1114
#define R03      7.4853019
#define R04      115.177
#define R05      57.2722
#define R06      3.22464
#define R07      115.202
#define R08      60.3153
#define R09      0.0669481
#define R10      77.0402
#define R11      0.23389
#define R12      13.9213
#define R13      225.482
#define R14      3.41518
#define R15      17.5155
#define R16      33.8487
#define R17      103
#define R18      17.32335643
#define R19      59.3603
#define R20      15.70224878
#define R21      52.66306376
#define R22      0.404899
#define R23      14.8772
#define R24      0.523955
#define R25      1.63946
#define R26      2.71469
#define R27      0.013424
#define R28      130.7830221
#define R29      28.2708
#define R30      0.05319506
#define R31      3.05767
#define R32      1
#define R33      162.726
#define R34      0.0765297
#define R35      2.553303305
#define R36      30.3454
#define R37      11.459
#define R38      46.73936226
#define R39      63.672
#define R40      15.0736
#define R41      2.27785
#define R42      2.94993
#define R43      30.7893
#define R44      0.513761834
#define R45      0.010236
#define R46      5.00504
#define R47      30.7488
#define R48      68.1378
#define R49      3.0495
#define R50      18.8113
#define R51      0.097924
#define R52      0.619042467
#define R53      0.540982
#define R54      14.6272
#define R55      81.3567
#define R56      3.57026
#define R57      3.10961
#define R58      18.6713
#define R59      0.00034
#define R60      115.157
#define R61      188.398
#define R62      0.199691
#define R63      0.0525628

#define LLETTER_METRIC_C		'C'
#define LLETTER_EXCHANGE_SAVE	'S'
#define LLETTER_X				'X'
#define LLETTER_CLEAR			'C'
#define LLETTER_COPY			'C'
#define LLETTER_CUT				'X'
#define LLETTER_PASTE			'V'
#define LLETTER_UNDO			'Z'

#define SLETTER_METRIC_C		'c'
#define SLETTER_EXCHANGE_SAVE	's'
#define SLETTER_X				'x'
#define SLETTER_CLEAR			'c'
#define SLETTER_COPY			'c'
#define SLETTER_CUT				'x'
#define SLETTER_PASTE			'v'
#define SLETTER_UNDO			'z'

#endif