2013-06-17 22:58:26 +00:00
|
|
|
#ifndef QTHELPER_H
|
|
|
|
#define QTHELPER_H
|
|
|
|
|
|
|
|
#include <QMultiMap>
|
|
|
|
#include <QString>
|
|
|
|
#include <stdint.h>
|
2013-10-04 18:39:33 +00:00
|
|
|
#include "dive.h"
|
2013-11-26 17:44:18 +00:00
|
|
|
#include "divelist.h"
|
2013-10-09 05:25:02 +00:00
|
|
|
#include <QTranslator>
|
|
|
|
|
|
|
|
// global pointers for our translation
|
|
|
|
extern QTranslator *qtTranslator, *ssrfTranslator;
|
2013-06-17 22:58:26 +00:00
|
|
|
|
2013-10-04 18:39:33 +00:00
|
|
|
QString weight_string(int weight_in_grams);
|
2014-06-03 01:13:50 +00:00
|
|
|
bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_text, bool *parsed_out = 0);
|
2014-05-12 16:19:57 +00:00
|
|
|
QString printGPSCoords(int lat, int lon);
|
2013-11-26 17:44:18 +00:00
|
|
|
QList<int> getDivesInTrip(dive_trip_t *trip);
|
2014-06-02 03:59:41 +00:00
|
|
|
QString gasToStr(struct gasmix gas);
|
2013-06-17 22:58:26 +00:00
|
|
|
#endif // QTHELPER_H
|