mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
6f05194b02
Dive photos are copied to the photos directory on export. The photos section appears only if photos exist. C++ helper functions are added to copy images to the photos directory, Additionally the photos directory must be passed as a parameter to the write_one_dive function to save photos to it. Some options structure may be needed instead of passing many arguments. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
20 lines
552 B
C
20 lines
552 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_out = 0);
|
|
QString printGPSCoords(int lat, int lon);
|
|
QList<int> getDivesInTrip(dive_trip_t *trip);
|
|
QString gasToStr(struct gasmix gas);
|
|
|
|
#endif // QTHELPER_H
|