summaryrefslogtreecommitdiffstats
path: root/core/qthelper.h
diff options
context:
space:
mode:
authorGravatar Monty Taylor <mordred@inaugust.com>2020-05-04 08:54:58 -0500
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2020-05-05 17:31:47 +0300
commit95e6792c4fe353441fd1cad8bad8b459b1a37d65 (patch)
tree93c002bf9ac52e1b7b73d526976912a73766da75 /core/qthelper.h
parentb3270222fd884c2b1c68519bdadf7fbc357a5d06 (diff)
downloadsubsurface-95e6792c4fe353441fd1cad8bad8b459b1a37d65.tar.gz
Grantlee: Add salinity and water type to grantlee variables
These can be useful in a printed divelog, especially if the log entry is also showing weight and exposure suit. Signed-off-by: Monty Taylor <mordred@inaugust.com>
Diffstat (limited to 'core/qthelper.h')
-rw-r--r--core/qthelper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/qthelper.h b/core/qthelper.h
index cdc77e742..26e9ef262 100644
--- a/core/qthelper.h
+++ b/core/qthelper.h
@@ -11,6 +11,7 @@ struct picture;
// 1) Types
enum inertgas {N2, HE};
+enum watertypes {FRESHWATER, SALTYWATER, EN13319WATER, SALTWATER, DC_WATERTYPE};
// 2) Functions visible only to C++ parts
@@ -37,6 +38,7 @@ int getCloudURL(QString &filename);
bool parseGpsText(const QString &gps_text, double *latitude, double *longitude);
void init_proxy();
QString getUUID();
+extern const QStringList waterTypes;
extern const QStringList videoExtensionsList;
QStringList mediaExtensionFilters();
QStringList imageExtensionFilters();
@@ -55,6 +57,8 @@ QString get_volume_string(int mliter, bool showunit = false);
QString get_volume_unit();
QString get_pressure_string(pressure_t pressure, bool showunit = false);
QString get_pressure_unit();
+QString get_salinity_string(int salinity);
+QString get_water_type_string(int salinity);
QString getSubsurfaceDataPath(QString folderToFind);
QString getPrintingTemplatePathUser();
QString getPrintingTemplatePathBundle();