mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
ae182c386b
At this point (post grantlee), DiveObjectHelper is just pointless glue code. Let's remove it from the printing code and call the formatting functions directly. If necessary, move these functions to core/string-format.cpp. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
28 lines
893 B
C
28 lines
893 B
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;
|
|
|
|
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);
|
|
|
|
#endif
|