summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/checkcloudconnection.cpp1
-rw-r--r--core/cloudstorage.cpp1
-rw-r--r--core/downloadfromdcthread.cpp1
-rw-r--r--core/git-access.c1
-rw-r--r--core/gpslocation.cpp1
-rw-r--r--core/qt-init.cpp1
-rw-r--r--core/qthelper.h7
-rw-r--r--desktop-widgets/downloadfromdivecomputer.cpp1
-rw-r--r--desktop-widgets/simplewidgets.cpp1
-rw-r--r--desktop-widgets/tab-widgets/TabDiveInformation.cpp1
-rw-r--r--qt-models/cylindermodel.cpp1
-rw-r--r--qt-models/diveimportedmodel.cpp1
-rw-r--r--qt-models/diveplannermodel.cpp1
-rw-r--r--qt-models/models.cpp1
14 files changed, 17 insertions, 3 deletions
diff --git a/core/checkcloudconnection.cpp b/core/checkcloudconnection.cpp
index b912160c1..1d8870742 100644
--- a/core/checkcloudconnection.cpp
+++ b/core/checkcloudconnection.cpp
@@ -8,6 +8,7 @@
#include "pref.h"
#include "qthelper.h"
#include "git-access.h"
+#include "dive.h" // for "verbose"
#include "checkcloudconnection.h"
diff --git a/core/cloudstorage.cpp b/core/cloudstorage.cpp
index 77d9153e9..4e7ff10f0 100644
--- a/core/cloudstorage.cpp
+++ b/core/cloudstorage.cpp
@@ -2,6 +2,7 @@
#include "cloudstorage.h"
#include "pref.h"
#include "qthelper.h"
+#include "dive.h"
#include "settings/qPrefCloudStorage.h"
#include <QApplication>
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp
index 1112d6027..9763cbdd8 100644
--- a/core/downloadfromdcthread.cpp
+++ b/core/downloadfromdcthread.cpp
@@ -2,6 +2,7 @@
#include "core/libdivecomputer.h"
#include "core/qthelper.h"
#include "core/settings/qPrefDiveComputer.h"
+#include "core/divelist.h"
#include <QDebug>
#if defined(Q_OS_ANDROID)
#include "core/subsurface-string.h"
diff --git a/core/git-access.c b/core/git-access.c
index f4f040ab9..ff27ebcf7 100644
--- a/core/git-access.c
+++ b/core/git-access.c
@@ -22,6 +22,7 @@
#include "membuffer.h"
#include "strndup.h"
#include "qthelper.h"
+#include "dive.h"
#include "git-access.h"
#include "gettext.h"
#include "sha1.h"
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp
index 3c63d4dbd..acc5b1da5 100644
--- a/core/gpslocation.cpp
+++ b/core/gpslocation.cpp
@@ -4,6 +4,7 @@
#include "qt-models/gpslistmodel.h"
#include "core/pref.h"
#include "core/qthelper.h"
+#include "core/divelist.h" // for mark_divelist_changed()
#include "core/settings/qPrefLocationService.h"
#include <time.h>
#include <unistd.h>
diff --git a/core/qt-init.cpp b/core/qt-init.cpp
index ad1671655..c06aeae00 100644
--- a/core/qt-init.cpp
+++ b/core/qt-init.cpp
@@ -5,6 +5,7 @@
#include <QLibraryInfo>
#include <QTextCodec>
#include "qthelper.h"
+#include "dive.h" // for "verbose"
#include "core/settings/qPref.h"
char *settings_suffix = NULL;
diff --git a/core/qthelper.h b/core/qthelper.h
index 685525a70..74185b467 100644
--- a/core/qthelper.h
+++ b/core/qthelper.h
@@ -5,8 +5,9 @@
#include <stdint.h>
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
-#include "dive.h"
-#include "divelist.h"
+#include "core/pref.h"
+
+struct picture;
// 1) Types
@@ -26,7 +27,7 @@ QString distance_string(int distanceInMeters);
bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_text, bool *parsed_out = 0);
QList<int> getDivesInTrip(struct dive_trip *trip);
QString get_gas_string(struct gasmix gas);
-QString get_divepoint_gas_string(struct dive *d, const divedatapoint& dp);
+QString get_divepoint_gas_string(struct dive *d, const struct divedatapoint &dp);
QString get_taglist_string(struct tag_entry *tag_list);
void read_hashes();
void write_hashes();
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index 7c6101845..769d4a913 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -3,6 +3,7 @@
#include "desktop-widgets/command.h"
#include "core/display.h"
#include "core/qthelper.h"
+#include "core/divelist.h"
#include "core/settings/qPrefDiveComputer.h"
#include "core/subsurface-string.h"
#include "core/uemis.h"
diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp
index acb66c0c5..f6356f2d4 100644
--- a/desktop-widgets/simplewidgets.cpp
+++ b/desktop-widgets/simplewidgets.cpp
@@ -23,6 +23,7 @@
#include "desktop-widgets/command.h"
#include "core/metadata.h"
#include "core/tag.h"
+#include "core/divelist.h" // for mark_divelist_changed
double MinMaxAvgWidget::average() const
{
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.cpp b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
index 9af640a8e..492ba97a7 100644
--- a/desktop-widgets/tab-widgets/TabDiveInformation.cpp
+++ b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
@@ -8,6 +8,7 @@
#include "core/qthelper.h"
#include "core/statistics.h"
#include "core/display.h"
+#include "core/divelist.h"
#define COMBO_CHANGED 0
#define TEXT_EDITED 1
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp
index 4f16231b3..448a86e2d 100644
--- a/qt-models/cylindermodel.cpp
+++ b/qt-models/cylindermodel.cpp
@@ -3,6 +3,7 @@
#include "tankinfomodel.h"
#include "models.h"
#include "core/qthelper.h"
+#include "core/divelist.h" // for mark_divelist_changed()
#include "core/color.h"
#include "qt-models/diveplannermodel.h"
#include "core/gettextfromc.h"
diff --git a/qt-models/diveimportedmodel.cpp b/qt-models/diveimportedmodel.cpp
index 5de0f7cb4..c5180dda8 100644
--- a/qt-models/diveimportedmodel.cpp
+++ b/qt-models/diveimportedmodel.cpp
@@ -1,5 +1,6 @@
#include "diveimportedmodel.h"
#include "core/qthelper.h"
+#include "core/divelist.h"
DiveImportedModel::DiveImportedModel(QObject *o) : QAbstractTableModel(o),
firstIndex(0),
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 5a8889802..47d2bf275 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -6,6 +6,7 @@
#include "qt-models/models.h"
#include "core/device.h"
#include "core/qthelper.h"
+#include "core/divelist.h" // for mark_divelist_changed()
#include "core/settings/qPrefDivePlanner.h"
#include "desktop-widgets/command.h"
#include "core/gettextfromc.h"
diff --git a/qt-models/models.cpp b/qt-models/models.cpp
index ee68be2ca..f6b3e927f 100644
--- a/qt-models/models.cpp
+++ b/qt-models/models.cpp
@@ -7,6 +7,7 @@
*/
#include "qt-models/models.h"
#include "core/qthelper.h"
+#include "core/dive.h"
#include "core/gettextfromc.h"
#include <QLocale>