mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
d1b8f1ca3d
To enable grouping by trip in the statistics module, split the get_trip_title() function in a version that appends a "(n dive(s)" string an one that doesn't. The statistics module doesn't want that added string, since it displays the number of dives in a different way. Also, move the functions to string-format.h, where these are collected. And rename them to camelCase. Yes, it's ugly, but consistent with most other C++ code in the code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
// 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;
|
|
struct dive_trip;
|
|
|
|
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);
|
|
QString formatGas(const dive *d);
|
|
QStringList formatFullCylinderList();
|
|
QStringList formatCylinders(const dive *d);
|
|
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);
|
|
QString formatDiveDateTime(const dive *d);
|
|
QString formatDayOfWeek(int day);
|
|
QString formatTripTitle(const dive_trip *trip);
|
|
QString formatTripTitleWithDives(const dive_trip *trip);
|
|
|
|
#endif
|