Cleanup: move tag functions into own translation unit

Make dive.h a bit slimmer. It's only a drop in the bucket - but at
least when modifying tag functions not the *whole* application is
rebuilt anymore.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-05-30 18:29:36 +02:00 committed by Dirk Hohndel
parent 46c69fccb7
commit 6200909ba4
25 changed files with 321 additions and 267 deletions

View file

@ -5,6 +5,7 @@
#include "core/divelist.h"
#include "core/qthelper.h" // for copy_qstring
#include "core/subsurface-string.h"
#include "core/tag.h"
#include "desktop-widgets/mapwidget.h" // TODO: Replace desktop-dependency by signal
namespace Command {

View file

@ -17,6 +17,7 @@
#include "profile-widget/profilewidget2.h"
#include "core/save-profiledata.h"
#include "core/divesite.h"
#include "core/tag.h"
// Retrieves the current unit settings defined in the Subsurface preferences.
#define GET_UNIT(name, field, f, t) \

View file

@ -22,6 +22,7 @@
#include "profile-widget/profilewidget2.h"
#include "desktop-widgets/command.h"
#include "core/metadata.h"
#include "core/tag.h"
double MinMaxAvgWidget::average() const
{