2016-11-02 17:35:26 +01:00
|
|
|
#ifndef FORMAT_H
|
|
|
|
#define FORMAT_H
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include "units.h"
|
|
|
|
|
|
|
|
class Coordinates;
|
|
|
|
|
2018-02-11 20:39:39 +01:00
|
|
|
enum CoordinatesFormat {
|
|
|
|
DecimalDegrees,
|
|
|
|
DegreesMinutes,
|
|
|
|
DMS
|
|
|
|
};
|
|
|
|
|
2016-11-02 17:35:26 +01:00
|
|
|
namespace Format
|
|
|
|
{
|
2017-09-29 11:43:09 +02:00
|
|
|
QString timeSpan(qreal time, bool full = true);
|
2016-11-02 17:35:26 +01:00
|
|
|
QString distance(qreal value, Units units);
|
|
|
|
QString elevation(qreal value, Units units);
|
2018-02-11 20:39:39 +01:00
|
|
|
QString coordinates(const Coordinates &value, CoordinatesFormat type);
|
2016-11-02 17:35:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // FORMAT_H
|