mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
fac006148f
Currently, the "hide event" status is lost when switching dives. Save it in the event struct instead to make it persistent. In the future we might save this information to the log file. Then this should be integrated in the undo-system. This commit also makes the "unhide events" menu entry more fine grained: It now differentiates between individual events and event types. Note this adds an additional field to the event structure. There is a "deleted" field that is used internally for book-keeping, but probably should be removed. Not touching this at the moment as long as this is C-only code. When/if switching to C++ we can make the event linked list a table, which will make this much simpler. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
36 lines
1.2 KiB
C
36 lines
1.2 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;
|
|
struct event;
|
|
|
|
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 formatDiveGasString(const dive *d);
|
|
QString formatDayOfWeek(int day);
|
|
QString formatMinutes(int seconds);
|
|
QString formatTripTitle(const dive_trip *trip);
|
|
QString formatTripTitleWithDives(const dive_trip *trip);
|
|
|
|
#endif
|