mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
c972c7cbd9
This adds a helper function to determine the Subsurface data directory (are we running from build directory? installed on Linux? installed on Mac? - still need to add support for Windows). This same function is then used by both the setup for Marble and for the help browser. This assumes that the user-manual.html file has actually been built and installed (which we don't do by default with the current Makefile). Right now there are rendering issues with our manual in the help browser widget - I'm sure this can be fixed... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
22 lines
668 B
C
22 lines
668 B
C
/*
|
|
* helpers.h
|
|
*
|
|
* header file for random helper functions of Subsurface
|
|
*
|
|
*/
|
|
#ifndef HELPER_H
|
|
#define HELPER_H
|
|
|
|
#include <QString>
|
|
#include "dive.h"
|
|
|
|
QString get_depth_string(depth_t depth, bool showunit);
|
|
QString get_weight_string(weight_t weight, bool showunit);
|
|
QString get_temperature_string(temperature_t temp, bool showunit);
|
|
QString get_volume_string(volume_t volume, bool showunit);
|
|
QString get_pressure_string(pressure_t pressure, bool showunit);
|
|
void set_default_dive_computer(const char *vendor, const char *product);
|
|
void set_default_dive_computer_device(const char *name);
|
|
QString getSubsurfaceDataPath(QString folderToFind);
|
|
|
|
#endif /* HELPER_H */
|