2020-12-14 21:42:07 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
// Various functions that format data into QStrings or QStringLists
|
|
|
|
#ifndef STRING_FORMAT_H
|
|
|
|
#define STRING_FORMAT_H
|
|
|
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
struct dive;
|
2021-12-16 22:09:39 +00:00
|
|
|
struct dive_trip;
|
2020-12-14 21:42:07 +00:00
|
|
|
|
|
|
|
QString formatSac(const dive *d);
|
|
|
|
QString formatNotes(const dive *d);
|
|
|
|
QString format_gps_decimal(const dive *d);
|
|
|
|
QStringList formatGetCylinder(const dive *d);
|
|
|
|
QStringList formatStartPressure(const dive *d);
|
|
|
|
QStringList formatEndPressure(const dive *d);
|
|
|
|
QStringList formatFirstGas(const dive *d);
|
2020-12-15 14:33:39 +00:00
|
|
|
QString formatGas(const dive *d);
|
2020-12-14 21:42:07 +00:00
|
|
|
QStringList formatFullCylinderList();
|
2020-12-14 22:21:58 +00:00
|
|
|
QStringList formatCylinders(const dive *d);
|
2020-12-15 14:33:39 +00:00
|
|
|
QString formatSumWeight(const dive *d);
|
|
|
|
QString formatWeightList(const dive *d);
|
|
|
|
QStringList formatWeights(const dive *d);
|
|
|
|
QString formatDiveDuration(const dive *d);
|
|
|
|
QString formatDiveGPS(const dive *d);
|
|
|
|
QString formatDiveDate(const dive *d);
|
|
|
|
QString formatDiveTime(const dive *d);
|
2020-12-15 15:10:08 +00:00
|
|
|
QString formatDiveDateTime(const dive *d);
|
2021-01-01 11:49:50 +00:00
|
|
|
QString formatDayOfWeek(int day);
|
2021-12-16 22:09:39 +00:00
|
|
|
QString formatTripTitle(const dive_trip *trip);
|
|
|
|
QString formatTripTitleWithDives(const dive_trip *trip);
|
2020-12-14 21:42:07 +00:00
|
|
|
|
|
|
|
#endif
|