author | eric <eric> | 2003-02-25 13:37:30 (UTC) |
---|---|---|
committer | eric <eric> | 2003-02-25 13:37:30 (UTC) |
commit | af4a36adc86052db4ab6855830cb7c5cc9e2d008 (patch) (unidiff) | |
tree | 6c1e4c51ce9663b8256f56aa0c98ab1eaab72d07 | |
parent | e21765875b06f8e76bdd6cfce120a68beaf48e41 (diff) | |
download | opie-af4a36adc86052db4ab6855830cb7c5cc9e2d008.zip opie-af4a36adc86052db4ab6855830cb7c5cc9e2d008.tar.gz opie-af4a36adc86052db4ab6855830cb7c5cc9e2d008.tar.bz2 |
- add more currency support
-rw-r--r-- | noncore/tools/euroconv/calcdisplay.cpp | 40 | ||||
-rw-r--r-- | noncore/tools/euroconv/currency.h | 10 |
2 files changed, 43 insertions, 7 deletions
diff --git a/noncore/tools/euroconv/calcdisplay.cpp b/noncore/tools/euroconv/calcdisplay.cpp index 1659858..898de81 100644 --- a/noncore/tools/euroconv/calcdisplay.cpp +++ b/noncore/tools/euroconv/calcdisplay.cpp | |||
@@ -176,11 +176,27 @@ switch (iIndex){ | |||
176 | break; | 176 | break; |
177 | 177 | ||
178 | case 1: // FF: French Francs | 178 | case 1: // FF: French Francs |
179 | return(dValue*FF); | 179 | return(dValue*FRF); |
180 | break; | 180 | break; |
181 | 181 | ||
182 | case 2: // DM: Deutch Mark | 182 | case 2: // DM: Deutch Mark |
183 | return(dValue*DM); | 183 | return(dValue*DEM); |
184 | break; | ||
185 | |||
186 | case 3: // BEL Belgium Francs | ||
187 | return(dValue*BEF); | ||
188 | break; | ||
189 | |||
190 | case 4: // ITL Itialian Lire | ||
191 | return(dValue*ITL); | ||
192 | break; | ||
193 | |||
194 | case 5: // LUF Luxemburg | ||
195 | return(dValue*LUF); | ||
196 | break; | ||
197 | |||
198 | case 6: // IEP Irish Pound | ||
199 | return(dValue*IEP); | ||
184 | break; | 200 | break; |
185 | 201 | ||
186 | default: | 202 | default: |
@@ -202,11 +218,27 @@ switch (iIndex){ | |||
202 | break; | 218 | break; |
203 | 219 | ||
204 | case 1: // FF: French Francs | 220 | case 1: // FF: French Francs |
205 | return(dValue/FF); | 221 | return(dValue/FRF); |
206 | break; | 222 | break; |
207 | 223 | ||
208 | case 2: // DM: Deutch Mark | 224 | case 2: // DM: Deutch Mark |
209 | return(dValue/DM); | 225 | return(dValue/DEM); |
226 | break; | ||
227 | |||
228 | case 3: // BEL Belgium Francs | ||
229 | return(dValue/BEF); | ||
230 | break; | ||
231 | |||
232 | case 4: // ITL Itialian Lire | ||
233 | return(dValue/ITL); | ||
234 | break; | ||
235 | |||
236 | case 5: // LUF Luxemburg | ||
237 | return(dValue/LUF); | ||
238 | break; | ||
239 | |||
240 | case 6: // IEP Irish Pound | ||
241 | return(dValue/IEP); | ||
210 | break; | 242 | break; |
211 | }//switch (iIndex) | 243 | }//switch (iIndex) |
212 | 244 | ||
diff --git a/noncore/tools/euroconv/currency.h b/noncore/tools/euroconv/currency.h index d9ee75c..6ca4d09 100644 --- a/noncore/tools/euroconv/currency.h +++ b/noncore/tools/euroconv/currency.h | |||
@@ -14,7 +14,11 @@ | |||
14 | 14 | ||
15 | // 1 Euro equal.... | 15 | // 1 Euro equal.... |
16 | #define EURO 1 // Euro | 16 | #define EURO 1 // Euro |
17 | #define FF 6.55957 // French Francs | 17 | #define FRF 6.55957 // French Francs |
18 | #define DM 1.9594 // Deutch Mark | 18 | #define DEM 1.9594 // Deutch Mark |
19 | #define BEF 40.3399 // Belgium Francs | ||
20 | #define ITL 1936.27 // Italian Lire | ||
21 | #define LUF 40.3399 // Luxemburg | ||
22 | #define IEP 0.787564 // Irish Pound | ||
19 | 23 | ||
20 | static const char* aCurrency[] = { "Euro", "FF", "DM", 0 }; | 24 | static const char* aCurrency[] = { "Euro", "FRF", "DEM", "BEF", "ITL", "LUF", "IEP", 0 }; |