extras/converter/group/Converter.rss
branchRCL_3
changeset 15 2d0f9ab0ba18
parent 12 ddecbce3dc1f
child 16 82ca176301de
equal deleted inserted replaced
12:ddecbce3dc1f 15:2d0f9ab0ba18
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0""
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *     This is the resource definition file for Converter.app
       
    16 *  -------------------------------------------------------------------
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #include <eikon.rsg>
       
    22 #include <eikon.rh>
       
    23 #include <uikon.rh>
       
    24 
       
    25 #include <avkon.loc>
       
    26 #include <avkon.rsg>
       
    27 #include <avkon.hrh>
       
    28 #include <avkon.rh>
       
    29 #include <avkon.mbg>
       
    30 
       
    31 
       
    32 #include <appinfo.rh>//svg icons
       
    33 #include <data_caging_paths_strings.hrh>
       
    34 #include "Converter.rh"
       
    35 #include "Converter.hrh"
       
    36 #include <converter.loc>
       
    37 #include <converterengine.loc>
       
    38 
       
    39 NAME CONV
       
    40 
       
    41 RESOURCE RSS_SIGNATURE { }
       
    42 
       
    43 RESOURCE TBUF { buf = ""; }
       
    44 
       
    45 RESOURCE EIK_APP_INFO
       
    46 	{
       
    47 	}
       
    48 
       
    49 
       
    50 // -- Main form + associated menus -------------------------------------------
       
    51 
       
    52 RESOURCE DIALOG r_cnv_mainform
       
    53 	{
       
    54 	flags = EEikDialogFlagNoDrag
       
    55 			| EEikDialogFlagFillAppClientRect
       
    56 			| EEikDialogFlagButtonsRight
       
    57 			| EEikDialogFlagCbaButtons
       
    58 			| EEikDialogFlagNoTitleBar;
       
    59 buttons	=r_cnv_mainform_softkeys;
       
    60 
       
    61 	
       
    62 	form = r_cnv_mainform_form;
       
    63 	}
       
    64 	
       
    65 
       
    66 
       
    67 RESOURCE FORM r_cnv_mainform_form
       
    68 	{
       
    69 	flags = EEikFormEditModeOnly;
       
    70 	items =
       
    71 		{
       
    72 		// conversion type
       
    73 		DLG_LINE
       
    74 			{
       
    75 			type	= EAknCtPopupField;
       
    76 			id		= EConverterTypePopup;
       
    77 			prompt	= qtn_cnv_label_type;
       
    78 			itemflags = EEikDlgItemTakesEnterKey
       
    79 						| EEikDlgItemOfferAllHotKeys;
       
    80 		    control	= POPUP_FIELD {};
       
    81 			},
       
    82 
       
    83 		// top unit popup
       
    84 		DLG_LINE
       
    85 			{
       
    86 			type	= EAknCtPopupField;
       
    87 			id		= EConverterUnit1Popup;
       
    88 			prompt	= qtn_cnv_label_unit;
       
    89 			itemflags = EEikDlgItemTakesEnterKey
       
    90 						| EEikDlgItemOfferAllHotKeys
       
    91 						| EEikDlgItemSeparatorAfter;
       
    92 		    control	= POPUP_FIELD {};
       
    93 			},
       
    94 
       
    95 		// top amount editor
       
    96 		DLG_LINE
       
    97 			{
       
    98 			type	= EEikCtFlPtEd;
       
    99 			id		= EConverterEditor1;
       
   100 			prompt	= qtn_cnv_label_amount;
       
   101 			itemflags = EEikDlgItemTakesEnterKey;
       
   102 			
       
   103 			control	= FLPTED { maxlength = KEditorTextMaxLength; };
       
   104 			},
       
   105 
       
   106 		// bottom unit popup
       
   107 		DLG_LINE
       
   108 			{
       
   109 			type	= EAknCtPopupField;
       
   110 			id		= EConverterUnit2Popup;
       
   111 			prompt	= qtn_cnv_label_unit;
       
   112 			itemflags = EEikDlgItemTakesEnterKey
       
   113 						| EEikDlgItemOfferAllHotKeys
       
   114 						| EEikDlgItemSeparatorAfter;
       
   115 		    control	= POPUP_FIELD {};
       
   116 			},
       
   117 
       
   118 		// bottom amount editor
       
   119 		DLG_LINE
       
   120 			{
       
   121 			type	= EEikCtFlPtEd;
       
   122 			id		= EConverterEditor2;
       
   123 			prompt	= qtn_cnv_label_amount;
       
   124 			control	= FLPTED { maxlength = KEditorTextMaxLength; };
       
   125 			}
       
   126 		};
       
   127 	}
       
   128 
       
   129 RESOURCE MENU_BAR r_cnv_mainform_menubar
       
   130 	{
       
   131     titles=
       
   132 		{
       
   133 		MENU_TITLE { menu_pane = r_cnv_mainform_menupane; }
       
   134 		};
       
   135 	}
       
   136 
       
   137 RESOURCE MENU_PANE r_cnv_mainform_menupane
       
   138 	{
       
   139 	items=
       
   140 		{
       
   141 		MENU_ITEM { command = ECmdSetUnit; txt = qtn_cnv_set_unit; flags = EEikMenuItemDimmed; },
       
   142 		MENU_ITEM { command = ECmdSetCurrency; txt = qtn_cnv_set_currency; flags = EEikMenuItemDimmed; },
       
   143 		MENU_ITEM { command = ECmdSetType; txt = qtn_cnv_set_type; },
       
   144 		MENU_ITEM { command = ECmdRates; txt = qtn_cnv_rates; flags = EEikMenuItemDimmed; },
       
   145 		MENU_ITEM { command = EAknCmdHelp; txt = qtn_options_help; },
       
   146 		MENU_ITEM { command = EEikCmdExit ; txt = qtn_options_exit; }
       
   147 		};
       
   148 	}
       
   149 
       
   150 
       
   151 // -- Rates form + associated menus ------------------------------------------
       
   152 
       
   153 RESOURCE DIALOG r_cnv_ratesform
       
   154 	{
       
   155 	flags = EEikDialogFlagNoDrag
       
   156 			| EEikDialogFlagFillAppClientRect
       
   157 			| EEikDialogFlagButtonsRight
       
   158 			| EEikDialogFlagCbaButtons
       
   159 			| EEikDialogFlagNoTitleBar
       
   160 			| EEikDialogFlagWait;
       
   161 	buttons = r_cnv_ratesform_softkeys;
       
   162 	form = r_cnv_ratesform_form;
       
   163 	}
       
   164 
       
   165 RESOURCE FORM r_cnv_ratesform_form
       
   166 	{
       
   167 	flags = EEikFormEditModeOnly;
       
   168 	items = {};	// This has to be an empty array, we'll fill it up later
       
   169 	}
       
   170 
       
   171 RESOURCE TBUF r_cnv_ratesform_title { buf = qtn_cnv_rates_title; }
       
   172 
       
   173 RESOURCE MENU_BAR r_cnv_ratesform_menubar
       
   174 	{
       
   175     titles=
       
   176 		{
       
   177 		MENU_TITLE { menu_pane = r_cnv_ratesform_menupane; }
       
   178 		};
       
   179 	}
       
   180 
       
   181 RESOURCE MENU_PANE r_cnv_ratesform_menupane
       
   182 	{
       
   183 	items=
       
   184 		{
       
   185 		MENU_ITEM { command = ECmdAddCurrency; txt = qtn_cnv_add_currency_rate; },
       
   186 		MENU_ITEM { command = ECmdDeleteCurrency; txt = qtn_cnv_opt_delete_currency; },
       
   187 		MENU_ITEM { command = ECmdChangeCurrencyName; txt = qtn_cnv_rename_currency; },
       
   188 		MENU_ITEM { command = ECmdSetAsBaseCurrency; txt = qtn_cnv_base_currency; },
       
   189 		MENU_ITEM { command = EAknFormCmdSave; txt = qtn_cnv_save; },
       
   190 		MENU_ITEM { command = EAknCmdHelp; txt = qtn_options_help; },
       
   191 		MENU_ITEM { command = EEikCmdExit; txt = qtn_options_exit; }
       
   192 		};
       
   193 	}
       
   194 
       
   195 RESOURCE CBA r_cnv_ratesform_softkeys
       
   196 	{
       
   197 	buttons =
       
   198 		{
       
   199 		CBA_BUTTON { id = EAknSoftkeyOptions; txt = text_softkey_option;},
       
   200 		CBA_BUTTON { id = EAknSoftkeyBack; txt = text_softkey_done; }
       
   201 		};
       
   202 	}
       
   203 
       
   204 // -- Rates form confirmation query ------------------------------------------
       
   205 
       
   206 RESOURCE DIALOG r_cnv_confirmation_query
       
   207 	{
       
   208 	flags = EGeneralQueryFlags;
       
   209 	buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
       
   210     items=
       
   211 		{
       
   212 		DLG_LINE
       
   213 			{
       
   214 			type = EAknCtQuery;
       
   215 			id = EGeneralQuery;
       
   216 			control = AVKON_CONFIRMATION_QUERY
       
   217 				{
       
   218 				layout = EConfirmationLayout;
       
   219 				label = qtn_cnf_conf_base_currency;
       
   220 				};
       
   221 			}
       
   222 		};
       
   223 	}
       
   224 
       
   225 // -- Rates form unit name query ---------------------------------------------
       
   226 
       
   227 RESOURCE DIALOG r_cnv_unitname_query
       
   228 	{
       
   229 	flags = EGeneralQueryFlags;
       
   230 	buttons = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   231 	items=
       
   232 		{
       
   233 		DLG_LINE
       
   234 			{
       
   235 			type = EAknCtQuery;
       
   236 			id = EGeneralQuery;
       
   237 			control= AVKON_DATA_QUERY
       
   238 				{
       
   239 				layout = EDataLayout;
       
   240 				label = qtn_cnv_edit_name_prompt;
       
   241 				control = EDWIN
       
   242 					{
       
   243 					maxlength = MAXCURRENCYNAMELENGTH;
       
   244 					};
       
   245 				};
       
   246 			}
       
   247 		};
       
   248 	}
       
   249 
       
   250 // -- Error note texts -------------------------------------------------------
       
   251 
       
   252 RESOURCE TBUF r_qtn_fldr_name_already_used { buf = qtn_fldr_name_already_used; }
       
   253 RESOURCE TBUF r_cnv_mainform_norate { buf = qtn_cnv_error_no_rate_singular; }
       
   254 RESOURCE TBUF r_cnv_mainform_norate_plural { buf = qtn_cnv_error_no_rate_plural; }
       
   255 RESOURCE TBUF r_cnv_mainform_invalidvalue { buf = qtn_cnv_error_invalid; }
       
   256 
       
   257 // -- Unit conversion parameters ---------------------------------------------
       
   258 
       
   259 RESOURCE CNV_MODEL r_cnv_model
       
   260 	{
       
   261 	// REMEMBER TO INCREMENT THIS VERSION NUMBER EVERY TIME THE ABOVE DATA IS
       
   262 	// MODIFIED (EVEN JUST UNIT NAMES) THIS IS TO AVOID CONFLICT BETWEEN
       
   263 	// SAVED APPLICATION SETTINGS AND THE DATA BELOW.
       
   264 	modelVersion = 8;
       
   265 	currencycategory = 0;
       
   266 	categories =
       
   267 		{
       
   268 		// NORMAL, NON-CHINESE, CURRENCY CATEGORY
       
   269 		CNV_CATEGORY
       
   270 			{
       
   271 			ischineseorder = 0; baseunit = 0; unit1 = 0; unit2 = 1; name = qtn_cnv_type_currency;
       
   272 			units =
       
   273 				{
       
   274 //Change: Only six currencies are present. There is no language dependent base currency..
       
   275 
       
   276 				CNV_UNIT_CURRENCY { name = qtn_cnv_rate_home; factor = 1.0; id = ECurrencyHome; type = 2;},
       
   277 				CNV_UNIT_CURRENCY { name = qtn_cnv_rate_foreign; factor = 1.0; id = ECurrencyForeign; type = 3;},
       
   278 				CNV_UNIT_CURRENCY { name = qtn_cnv_rate_foreign; factor = 1.0; id = ECurrencyForeign; type = 3;},
       
   279 				CNV_UNIT_CURRENCY { name = qtn_cnv_rate_foreign; factor = 1.0; id = ECurrencyForeign; type = 3;},
       
   280 				CNV_UNIT_CURRENCY { name = qtn_cnv_rate_foreign; factor = 1.0; id = ECurrencyForeign; type = 3;},
       
   281 				CNV_UNIT_CURRENCY { name = qtn_cnv_rate_foreign; factor = 1.0; id = ECurrencyForeign; type = 3;},
       
   282 				CNV_UNIT_CURRENCY { name = qtn_cnv_rate_foreign; factor = 1.0; id = ECurrencyForeign; type = 3;}
       
   283 				};
       
   284 			},
       
   285 
       
   286 		CNV_CATEGORY
       
   287 			{
       
   288 			ischineseorder = 1; baseunit = 6; unit1 = 1; unit2 = 6; name = qtn_cnv_type_area;
       
   289 			units =
       
   290 				{
       
   291 				CNV_UNIT { name = qtn_cnv_area_item_sq_inches;		factor = 1550.0031000062001;		id = EAreaItemSqInches; },	// 6
       
   292 				CNV_UNIT { name = qtn_cnv_area_item_sq_feet;		factor = 10.763910416709722;		id = EAreaItemSqFeet; },	// 7
       
   293 				CNV_UNIT { name = qtn_cnv_area_item_sq_yards;		factor = 1.1959900463010802;		id = EAreaItemSqYards; },	// 8
       
   294 				CNV_UNIT { name = qtn_cnv_area_item_sq_miles;		factor = 0.0000003861021585424;		id = EAreaItemSqMiles; },	// 10
       
   295 				CNV_UNIT { name = qtn_cnv_area_item_sq_mm;			factor = 1000000.0;					id = EAreaItemSqMm; },		// 0
       
   296 				CNV_UNIT { name = qtn_cnv_area_item_sq_cm;			factor = 10000.0;					id = EAreaItemSqCm; },		// 1
       
   297 				CNV_UNIT { name = qtn_cnv_area_item_sq_metres;		factor = 1.0;						id = EAreaItemSqMetres; },	// 2
       
   298 				CNV_UNIT { name = qtn_cnv_area_item_sq_km;			factor = 0.000001;					id = EAreaItemSqKm; },		// 5
       
   299 				CNV_UNIT { name = qtn_cnv_area_item_acres;			factor = 0.00024710538146716527;	id = EAreaItemAcres; },		// 9
       
   300 				CNV_UNIT { name = qtn_cnv_area_item_ares;			factor = 0.01;						id = EAreaItemAres; },		// 3
       
   301 				CNV_UNIT { name = qtn_cnv_area_item_hectares;		factor = 0.0001;					id = EAreaItemHectares; }	// 4
       
   302 				};
       
   303 			},
       
   304 
       
   305 		CNV_CATEGORY
       
   306 			{
       
   307 			ischineseorder = 0; baseunit = 2; unit1 = 1; unit2 = 3; name = qtn_cnv_type_energy;
       
   308 			units =
       
   309 				{
       
   310 				CNV_UNIT { name = qtn_cnv_energ_item_calor;			factor = 0.23884589662749592;		id = EEnergItemCalor; },	// 0
       
   311 				CNV_UNIT { name = qtn_cnv_energ_item_k_calor;		factor = 0.00023884589662749592;	id = EEnergItemKCalor; },	// 1
       
   312 				CNV_UNIT { name = qtn_cnv_energ_item_joules;		factor = 1.0;						id = EEnergItemJoules; },	// 2
       
   313 				CNV_UNIT { name = qtn_cnv_energ_item_k_joules;		factor = 0.001;						id = EEnergItemKJoules; },	// 3
       
   314 				CNV_UNIT { name = qtn_cnv_energ_item_hrs_pw_h;		factor = 0.00000037300002052;		id = EEnergItemHrsPwH; },	// 4
       
   315 				CNV_UNIT { name = qtn_cnv_energ_item_kw_h;			factor = 0.00000027777777777778;	id = EEnergItemKwH; },		// 5
       
   316 				CNV_UNIT { name = qtn_cnv_energ_item_elec_vol;		factor = 6241506000000000000.0;		id = EEnergItemElecVol; }	// 6
       
   317 				};
       
   318 			},
       
   319 
       
   320 		CNV_CATEGORY
       
   321 			{
       
   322 			ischineseorder = 1; baseunit = 2; unit1 = 7; unit2 = 2; name = qtn_cnv_type_length;
       
   323 			units =
       
   324 				{
       
   325 				CNV_UNIT { name = qtn_cnv_length_item_mm;			factor = 1000.0;					id = ELengthItemMm; },		// 0
       
   326 				CNV_UNIT { name = qtn_cnv_length_item_cm;			factor = 100.0;						id = ELengthItemCm; },		// 1
       
   327 				CNV_UNIT { name = qtn_cnv_length_item_metres;		factor = 1.0;						id = ELengthItemMetres; },	// 2
       
   328 				CNV_UNIT { name = qtn_cnv_length_item_km;			factor = 0.001;						id = ELengthItemKm; },		// 3
       
   329 				CNV_UNIT { name = qtn_cnv_length_item_inches;		factor = 39.37007874015748;			id = ELengthItemInches; },	// 4
       
   330 				CNV_UNIT { name = qtn_cnv_length_item_feet;			factor = 3.280839895013123;			id = ELengthItemFeet; },	// 5
       
   331 				CNV_UNIT { name = qtn_cnv_length_item_yards;		factor = 1.0936132983377076;		id = ELengthItemYards; },	// 6
       
   332 				CNV_UNIT { name = qtn_cnv_length_item_miles;		factor = 0.0006213711922373338;		id = ELengthItemMiles; },	// 7
       
   333 				CNV_UNIT { name = qtn_cnv_length_item_nm;			factor = 0.0005399568034557234;		id = ELengthItemNm; }		// 8
       
   334 				};
       
   335 			},
       
   336 
       
   337 		CNV_CATEGORY
       
   338 			{
       
   339 			ischineseorder = 1; baseunit = 1; unit1 = 5; unit2 = 2; name = qtn_cnv_type_mass;
       
   340 			units =
       
   341 				{
       
   342 				CNV_UNIT { name = qtn_cnv_mass_item_milgrams;		factor = 1000.0;					id = EMassItemMilgrams; },	// 0
       
   343 				CNV_UNIT { name = qtn_cnv_mass_item_grams;			factor = 1.0;						id = EMassItemGrams; },		// 1
       
   344 				CNV_UNIT { name = qtn_cnv_mass_item_kilograms;		factor = 0.001;						id = EMassItemKilograms; },	// 2
       
   345 				CNV_UNIT { name = qtn_cnv_mass_item_m_tons;			factor = 0.000001;					id = EMassItemMTons; },		// 3
       
   346 				CNV_UNIT { name = qtn_cnv_mass_item_ounces;			factor = 0.03527396194958041;		id = EMassItemOunces; },	// 4
       
   347 				CNV_UNIT { name = qtn_cnv_mass_item_pounds;			factor = 0.002204622621848776;		id = EMassItemPounds; },	// 5
       
   348 				CNV_UNIT { name = qtn_cnv_mass_item_stones;			factor = 0.0001574730444177697;		id = EMassItemStones; }		// 6
       
   349 				};
       
   350 			},
       
   351 
       
   352 		CNV_CATEGORY
       
   353 			{
       
   354 			ischineseorder = 1; baseunit = 0; unit1 = 2; unit2 = 1; name = qtn_cnv_type_power;
       
   355 			units =
       
   356 				{
       
   357 				CNV_UNIT { name = qtn_cnv_power_item_watts;			factor = 1.0;						id = EPowerItemWatts; },	// 0
       
   358 				CNV_UNIT { name = qtn_cnv_power_item_k_watts;		factor = 0.001;						id = EPowerItemKWatts; },	// 1
       
   359 				CNV_UNIT { name = qtn_cnv_power_item_horsepwr;		factor = 0.001341021858656296;		id = EPowerItemHorsepwr; }	// 2
       
   360 				};
       
   361 			},
       
   362 
       
   363 		CNV_CATEGORY
       
   364 			{
       
   365 			ischineseorder = 1; baseunit = 2; unit1 = 2; unit2 = 1; name = qtn_cnv_type_pressure;
       
   366 			units =
       
   367 				{
       
   368 				CNV_UNIT { name = qtn_cnv_pressure_item_athm;		factor = 0.00000986923266716013;	id = EPressureItemAthm; },	// 0
       
   369 				CNV_UNIT { name = qtn_cnv_pressure_item_bars;		factor = 0.00001;					id = EPressureItemBars; },	// 1
       
   370 				CNV_UNIT { name = qtn_cnv_pressure_item_pasc;		factor = 1.0;						id = EPressureItemPasc; },	// 2
       
   371 				CNV_UNIT { name = qtn_cnv_pressure_item_mmhg;		factor = 0.0075006;         		id = EPressureItemMmhg; }	// 3
       
   372 				};
       
   373 			},
       
   374 
       
   375 		CNV_CATEGORY
       
   376 			{
       
   377 			ischineseorder = 1; baseunit = 2; unit1 = 1; unit2 = 0; istemperature = 1; name = qtn_cnv_type_temperature;
       
   378 			units =
       
   379 				{
       
   380 				CNV_UNIT_TEMPERATURE { name = qtn_cnv_temp_item_celsius;	factor = 1.0; offset = 0.0; min = -273.15;	id = ETempItemCelsius; }, // 0
       
   381 				CNV_UNIT_TEMPERATURE { name = qtn_cnv_temp_item_fahrenh;	factor = 1.8; offset = 32; min = -459.67;	id = ETempItemFahrenh; }, // 1
       
   382 				CNV_UNIT_TEMPERATURE { name = qtn_cnv_temp_item_kelvin;		factor = 1.0; offset = 273.15;				id = ETempItemKelvin; }	  // 2
       
   383 				};
       
   384 			},
       
   385 
       
   386 		CNV_CATEGORY
       
   387 			{
       
   388 			ischineseorder = 1; baseunit = 4; unit1 = 3; unit2 = 2; name = qtn_cnv_type_time;
       
   389 			units =
       
   390 				{
       
   391 				CNV_UNIT { name = qtn_cnv_time_item_seconds;		factor = 1.0;						id = ETimeItemSeconds; },	// 0
       
   392 				CNV_UNIT { name = qtn_cnv_time_item_minutes;		factor = 0.016666666666666667;		id = ETimeItemMinutes; },	// 1
       
   393 				CNV_UNIT { name = qtn_cnv_time_item_hours;			factor = 0.000277777777777778;		id = ETimeItemHours; },		// 2
       
   394 				CNV_UNIT { name = qtn_cnv_time_item_days;			factor = 0.0000115740740740740741;	id = ETimeItemDays; },		// 3
       
   395 				CNV_UNIT { name = qtn_cnv_time_item_weeks;			factor = 0.00000165343915343915343; id = ETimeItemWeeks; }		// 4
       
   396 				};
       
   397 			},
       
   398 
       
   399 		CNV_CATEGORY
       
   400 			{
       
   401 			ischineseorder = 1; baseunit = 1; unit1 = 2; unit2 = 0; name = qtn_cnv_type_velocity;
       
   402 			units =
       
   403 				{
       
   404 				CNV_UNIT { name = qtn_cnv_vel_item_km_h;			factor = 1.0;						id = EVelItemKmH; },		// 0
       
   405 				CNV_UNIT { name = qtn_cnv_vel_item_metres_sec;		factor = 0.2777777777777778;		id = EVelItemMetresSec; },	// 1
       
   406 				CNV_UNIT { name = qtn_cnv_vel_item_miles_h;			factor = 0.6213711922373341;		id = EVelItemMilesH; },		// 2
       
   407 				CNV_UNIT { name = qtn_cnv_vel_item_feet_sec;		factor = 0.9113444152814232;		id = EVelItemFeetSec; },	// 3
       
   408 				CNV_UNIT { name = qtn_cnv_vel_item_knots;			factor = 0.539957269941486;			id = EVelItemKnots; }		// 4
       
   409 				};
       
   410 			},
       
   411 
       
   412 		CNV_CATEGORY
       
   413 			{
       
   414 			ischineseorder = 1; baseunit = 1; unit1 = 8; unit2 = 1; name = qtn_cnv_type_volume;
       
   415 			units =
       
   416 				{
       
   417 				CNV_UNIT { name = qtn_cnv_vol_item_millilitres;		factor = 1000.0;					id = EVolItemMillilitres; },// 0
       
   418 				CNV_UNIT { name = qtn_cnv_vol_item_litres;			factor = 1.0;						id = EVolItemLitres; },		// 1
       
   419 				CNV_UNIT { name = qtn_cnv_vol_item_cub_mm;			factor = 1000000.0;					id = EVolItemCubMm; },		// 2
       
   420 				CNV_UNIT { name = qtn_cnv_vol_item_cub_cm;			factor = 1000.0;					id = EVolItemCubCm; },		// 3
       
   421 				CNV_UNIT { name = qtn_cnv_vol_item_cub_metres;		factor = 0.001;						id = EVolItemCubMetres; },	// 4
       
   422 				CNV_UNIT { name = qtn_cnv_vol_item_cub_inches;		factor = 61.023744094732294;		id = EVolItemCubInches; },	// 5
       
   423 				CNV_UNIT { name = qtn_cnv_vol_item_cub_feet;		factor = 0.0353146667214886;		id = EVolItemCubFeet; },	// 6
       
   424 				CNV_UNIT { name = qtn_cnv_vol_item_gallons_uk;		factor = 0.21996924829908782;		id = EVolItemGallonsUk; },	// 7
       
   425 				CNV_UNIT { name = qtn_cnv_vol_item_gallons_us;		factor = 0.2641720523581485;		id = EVolItemGallonsUs; },	// 8
       
   426 				CNV_UNIT { name = qtn_cnv_vol_item_pints_im;		factor = 1.7597539863927025;		id = EVolItemPintsIm; },	// 9
       
   427 				CNV_UNIT { name = qtn_cnv_vol_item_pints_us;		factor = 1.8161659685377122;		id = EVolItemPintsUs; },	// 10
       
   428 				CNV_UNIT { name = qtn_cnv_vol_item_liq_pints;		factor = 2.113376418865188;			id = EVolItemLiqPints; },	// 11
       
   429 				CNV_UNIT { name = qtn_cnv_vol_item_liq_ounc_us;		factor = 33.81402270184301;			id = EVolItemLiqOuncUs; },	// 12
       
   430 				CNV_UNIT { name = qtn_cnv_vol_item_liq_ounc_uk;		factor = 35.19507972785406;			id = EVolItemLiqOuncUk; },	// 13
       
   431 				CNV_UNIT { name = qtn_cnv_vol_item_barrels;			factor = 0.006289810770432106;		id = EVolItemBarrels; }		// 14
       
   432 				};
       
   433 			}
       
   434 		};
       
   435 	}
       
   436 
       
   437 RESOURCE TBUF r_qtn_cnv_confirm_delete { buf = qtn_cnv_query_del_currency; }
       
   438 RESOURCE TBUF r_qtn_cnv_foreign {buf = qtn_cnv_rate_foreign; } 
       
   439 RESOURCE TBUF r_qtn_cnv_home {buf = qtn_cnv_rate_home; } 
       
   440 
       
   441 //Resource for MSK
       
   442 
       
   443 RESOURCE CBA r_cnv_mainform_softkeys
       
   444 	{
       
   445 	buttons =
       
   446 		{
       
   447 		CBA_BUTTON { id = EAknSoftkeyOptions; txt = text_softkey_option;},
       
   448 		CBA_BUTTON { id = EAknSoftkeyExit; txt = text_softkey_exit; },
       
   449 		CBA_BUTTON { id = EAknSoftkeyChange; txt =qtn_options_change;}
       
   450 		};
       
   451 	}
       
   452 
       
   453 RESOURCE LOCALISABLE_APP_INFO r_cnv_localisable_app_info
       
   454     {
       
   455     short_caption = qtn_cnv_app_caption_short;
       
   456     caption_and_icon = 
       
   457     CAPTION_AND_ICON_INFO
       
   458         {
       
   459         caption = qtn_cnv_app_caption;
       
   460 #ifdef __SCALABLE_ICONS
       
   461         number_of_icons = 1;
       
   462         icon_file = APP_BITMAP_DIR"\\converter_aif.mif";
       
   463 #else
       
   464         number_of_icons = 2;
       
   465         icon_file = APP_BITMAP_DIR"\\Converter_aif.mbm";
       
   466 #endif
       
   467         };
       
   468     }