Engauge Digitizer  2
CoordUnitsPolarTheta.cpp
Go to the documentation of this file.
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #include "CoordSymbol.h"
8 #include "CoordUnitsPolarTheta.h"
9 #include <QObject>
10 
12 {
13  switch (coordUnits) {
15  return QObject::tr ("Degrees");
16 
18  return QObject::tr ("Degrees");
19 
21  return QObject::tr ("Degrees");
22 
24  return QObject::tr ("Degrees");
25 
27  return QObject::tr ("Gradians");
28 
30  return QObject::tr ("Radians");
31 
33  return QObject::tr ("Turns");
34 
35  default:
36  return QObject::tr ("Unknown");
37  }
38 }
39 
41 {
42  switch (coordUnits) {
44  return POLAR_UNITS_DEGREES;
45 
48 
51 
54 
56  return POLAR_UNITS_GRADIANS;
57 
59  return POLAR_UNITS_RADIANS;
60 
62  return POLAR_UNITS_TURNS;
63 
64  default:
65  return QObject::tr ("Unknown");
66  }
67 }
COORD_UNITS_POLAR_THETA_TURNS
Definition: CoordUnitsPolarTheta.h:20
POLAR_UNITS_GRADIANS
const QString POLAR_UNITS_GRADIANS
Definition: CoordSymbol.cpp:27
COORD_UNITS_POLAR_THETA_DEGREES
Definition: CoordUnitsPolarTheta.h:14
POLAR_UNITS_DEGREES_MINUTES_SECONDS
const QString POLAR_UNITS_DEGREES_MINUTES_SECONDS
Definition: CoordSymbol.cpp:21
COORD_UNITS_POLAR_THETA_DEGREES_MINUTES
Definition: CoordUnitsPolarTheta.h:15
POLAR_UNITS_DEGREES
const QString POLAR_UNITS_DEGREES
Definition: CoordSymbol.cpp:17
COORD_UNITS_POLAR_THETA_GRADIANS
Definition: CoordUnitsPolarTheta.h:18
CoordSymbol.h
CoordUnitsPolarTheta.h
COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS
Definition: CoordUnitsPolarTheta.h:16
POLAR_UNITS_RADIANS
const QString POLAR_UNITS_RADIANS
Definition: CoordSymbol.cpp:28
POLAR_UNITS_TURNS
const QString POLAR_UNITS_TURNS
Definition: CoordSymbol.cpp:29
COORD_UNITS_POLAR_THETA_RADIANS
Definition: CoordUnitsPolarTheta.h:19
POLAR_UNITS_DEGREES_MINUTES
const QString POLAR_UNITS_DEGREES_MINUTES
Definition: CoordSymbol.cpp:18
coordUnitsPolarThetaToBriefType
QString coordUnitsPolarThetaToBriefType(CoordUnitsPolarTheta coordUnits)
Definition: CoordUnitsPolarTheta.cpp:11
COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW
Definition: CoordUnitsPolarTheta.h:17
CoordUnitsPolarTheta
CoordUnitsPolarTheta
Definition: CoordUnitsPolarTheta.h:13
coordUnitsPolarThetaToString
QString coordUnitsPolarThetaToString(CoordUnitsPolarTheta coordUnits)
Definition: CoordUnitsPolarTheta.cpp:40
POLAR_UNITS_DEGREES_MINUTES_SECONDS_NSEW
const QString POLAR_UNITS_DEGREES_MINUTES_SECONDS_NSEW
Definition: CoordSymbol.cpp:24