Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Enumerations | Functions | Variables
CoordUnitsPolarTheta.h File Reference
#include <QString>
Include dependency graph for CoordUnitsPolarTheta.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  CoordUnitsPolarTheta {
  COORD_UNITS_POLAR_THETA_DEGREES, COORD_UNITS_POLAR_THETA_DEGREES_MINUTES, COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS, COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW,
  COORD_UNITS_POLAR_THETA_GRADIANS, COORD_UNITS_POLAR_THETA_RADIANS, COORD_UNITS_POLAR_THETA_TURNS, NUM_COORD_UNITS_POLAR_THETA
}
 

Functions

QString coordUnitsPolarThetaToBriefType (CoordUnitsPolarTheta coordUnits)
 
QString coordUnitsPolarThetaToString (CoordUnitsPolarTheta coordUnitsPolarTheta)
 

Variables

const QChar THETA
 

Enumeration Type Documentation

Enumerator
COORD_UNITS_POLAR_THETA_DEGREES 
COORD_UNITS_POLAR_THETA_DEGREES_MINUTES 
COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS 
COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW 
COORD_UNITS_POLAR_THETA_GRADIANS 
COORD_UNITS_POLAR_THETA_RADIANS 
COORD_UNITS_POLAR_THETA_TURNS 
NUM_COORD_UNITS_POLAR_THETA 

Definition at line 14 of file CoordUnitsPolarTheta.h.

Function Documentation

QString coordUnitsPolarThetaToBriefType ( CoordUnitsPolarTheta  coordUnits)

Definition at line 11 of file CoordUnitsPolarTheta.cpp.

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 }
QString coordUnitsPolarThetaToString ( CoordUnitsPolarTheta  coordUnitsPolarTheta)

Definition at line 40 of file CoordUnitsPolarTheta.cpp.

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 }
const QString POLAR_UNITS_DEGREES_MINUTES_SECONDS_NSEW
Definition: CoordSymbol.cpp:24
const QString POLAR_UNITS_GRADIANS
Definition: CoordSymbol.cpp:27
const QString POLAR_UNITS_DEGREES
Definition: CoordSymbol.cpp:17
const QString POLAR_UNITS_DEGREES_MINUTES_SECONDS
Definition: CoordSymbol.cpp:21
const QString POLAR_UNITS_RADIANS
Definition: CoordSymbol.cpp:28
const QString POLAR_UNITS_TURNS
Definition: CoordSymbol.cpp:29
const QString POLAR_UNITS_DEGREES_MINUTES
Definition: CoordSymbol.cpp:18

Variable Documentation

const QChar THETA