extras/converter/Ui/Src/Converter.hrh
changeset 0 3ee3dfdd8d69
equal deleted inserted replaced
-1:000000000000 0:3ee3dfdd8d69
       
     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 *     Defines commands and control identifiers.
       
    16 *     The file can be included in C++ or resource file.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef __CONVERTER_HRH__
       
    23 #define __CONVERTER_HRH__
       
    24 
       
    25 enum TMaxValues
       
    26 	{
       
    27 	KEditorTextMaxLength = 12
       
    28 	};
       
    29 
       
    30 enum TConverterCommands
       
    31 	{
       
    32 	ECmdSetUnit = 100,			// Don't override UIKON IDs..
       
    33 	ECmdSetCurrency,
       
    34 	ECmdSetType,
       
    35 	ECmdRates,
       
    36 	ECmdChangeCurrencyName,
       
    37 	ECmdSetAsBaseCurrency,
       
    38 	ECmdAddCurrency,
       
    39 	ECmdDeleteCurrency
       
    40 	};
       
    41 
       
    42 enum TConverterDlgCtrlIds
       
    43 	{
       
    44 	EConverterTypePopup = 1,	// Dialogs don't like zero IDs..
       
    45 	EConverterUnit1Popup,
       
    46 	EConverterEditor1,
       
    47 	EConverterUnit2Popup,
       
    48 	EConverterEditor2,
       
    49 	EConverterNote,
       
    50 	EConverterDummy
       
    51 	};
       
    52 
       
    53 #define MAXCURRENCYNAMELENGTH 13
       
    54 
       
    55 enum TConverterUnitIds
       
    56 	{
       
    57 	EAreaItemAcres = 1,
       
    58 	EAreaItemAres, 
       
    59 	EAreaItemHectares, 
       
    60 	EAreaItemSqCm, 
       
    61 	EAreaItemSqFeet, 
       
    62 	EAreaItemSqInches, 
       
    63 	EAreaItemSqKm, 
       
    64 	EAreaItemSqMetres, 
       
    65 	EAreaItemSqMiles, 
       
    66 	EAreaItemSqMm, 
       
    67 	EAreaItemSqYards, 
       
    68 	EEnergItemCalor, 
       
    69 	EEnergItemElecVol, 
       
    70 	EEnergItemHrsPwH, 
       
    71 	EEnergItemJoules, 
       
    72 	EEnergItemKCalor, 
       
    73 	EEnergItemKJoules, 
       
    74 	EEnergItemKwH, 
       
    75 	ELengthItemCm, 
       
    76 	ELengthItemFeet, 
       
    77 	ELengthItemInches, 
       
    78 	ELengthItemKm, 
       
    79 	ELengthItemMetres, 
       
    80 	ELengthItemMiles, 
       
    81 	ELengthItemMm, 
       
    82 	ELengthItemNm, 
       
    83 	ELengthItemYards, 
       
    84 	EMassItemGrams, 
       
    85 	EMassItemKilograms, 
       
    86 	EMassItemMTons, 
       
    87 	EMassItemMilgrams, 
       
    88 	EMassItemOunces, 
       
    89 	EMassItemPounds, 
       
    90 	EMassItemStones, 
       
    91 	EPowerItemHorsepwr, 
       
    92 	EPowerItemKWatts, 
       
    93 	EPowerItemWatts, 
       
    94 	EPressureItemAthm, 
       
    95 	EPressureItemBars, 
       
    96 	EPressureItemMmhg, 
       
    97 	EPressureItemPasc, 
       
    98 	ETempItemCelsius, 
       
    99 	ETempItemFahrenh, 
       
   100 	ETempItemKelvin, 
       
   101 	ETimeItemDays, 
       
   102 	ETimeItemHours, 
       
   103 	ETimeItemMinutes, 
       
   104 	ETimeItemSeconds, 
       
   105 	ETimeItemWeeks, 
       
   106 	EVelItemFeetSec, 
       
   107 	EVelItemKmH, 
       
   108 	EVelItemKnots, 
       
   109 	EVelItemMetresSec, 
       
   110 	EVelItemMilesH, 
       
   111 	EVolItemBarrels, 
       
   112 	EVolItemCubCm, 
       
   113 	EVolItemCubFeet, 
       
   114 	EVolItemCubInches, 
       
   115 	EVolItemCubMetres, 
       
   116 	EVolItemCubMm, 
       
   117 	EVolItemGallonsUk, 
       
   118 	EVolItemGallonsUs, 
       
   119 	EVolItemLiqOuncUk, 
       
   120 	EVolItemLiqOuncUs, 
       
   121 	EVolItemLiqPints, 
       
   122 	EVolItemLitres, 
       
   123 	EVolItemMillilitres, 
       
   124 	EVolItemPintsIm, 	
       
   125 	EVolItemPintsUs,
       
   126 	ECurrencyHome,
       
   127 	ECurrencyForeign
       
   128 	};
       
   129 
       
   130 #endif	// __CONVERTER_HRH__