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