mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
6ab05563b3
The DiveList classes were a partial mess (and some of it is still in a messy state). The classes that deal with it where done in 'qtHelpers.h', the extern global variable in dive.h, a few methods here and there. This concentrates most - but not all - functions in their own file. The reason for that is to make the new developer faster when looking for things: if it's a divecomputer related method, it should be in a single file, not scattered around. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
18 lines
506 B
C
18 lines
506 B
C
#ifndef QTHELPER_H
|
|
#define QTHELPER_H
|
|
|
|
#include <QMultiMap>
|
|
#include <QString>
|
|
#include <stdint.h>
|
|
#include "dive.h"
|
|
#include "divelist.h"
|
|
#include <QTranslator>
|
|
|
|
// global pointers for our translation
|
|
extern QTranslator *qtTranslator, *ssrfTranslator;
|
|
|
|
QString weight_string(int weight_in_grams);
|
|
bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_text, bool *parsed);
|
|
QString printGPSCoords(int lat, int lon);
|
|
QList<int> getDivesInTrip(dive_trip_t *trip);
|
|
#endif // QTHELPER_H
|