dlgTextEntry_Keyboard: rename to TouchTextEntry
[xcsoar.git] / src / Units / Unit.hpp
blobbfa190578538ba084e7e0c4f250526e14207b5b7
1 /*
2 Copyright_License {
4 XCSoar Glide Computer - http://www.xcsoar.org/
5 Copyright (C) 2000-2013 The XCSoar Project
6 A detailed list of copyright holders can be found in the file "AUTHORS".
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #ifndef XCSOAR_UNITS_UNIT_HPP
25 #define XCSOAR_UNITS_UNIT_HPP
27 #include <stdint.h>
29 enum class Unit: uint8_t {
30 UNDEFINED,
31 KILOMETER,
32 NAUTICAL_MILES,
33 STATUTE_MILES,
34 KILOMETER_PER_HOUR,
35 KNOTS,
36 STATUTE_MILES_PER_HOUR,
37 METER_PER_SECOND,
38 FEET_PER_MINUTE,
39 METER,
40 FEET,
41 FLIGHT_LEVEL,
42 KELVIN,
43 DEGREES_CELCIUS, // K = C° + 273,15
44 DEGREES_FAHRENHEIT, // K = (°F + 459,67) / 1,8
45 HECTOPASCAL,
46 MILLIBAR,
47 TORR,
48 INCH_MERCURY,
50 /**
51 * The sentinel: the number of units in this enum.
53 COUNT
56 #endif