subsurface/backend-shared
Berthold Stoeger 110e64bc66 general: simplify a few unit manipulations
Now that we have defined addition and subtraction on unit
classes, let's use them in a few examples.

Yes, some of these are a bit pointless, because they are
of the kind
        a.mbar - b.mbar => (a-b).mbar

However, these probably should be further simplified
by storing the result in a unit type.

This commit is mostly a proof-of-concept.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-09-11 10:23:07 +02:00
..
CMakeLists.txt ui: create a RoundRectItem class 2021-01-03 13:56:05 -08:00
exportfuncs.cpp general: simplify a few unit manipulations 2024-09-11 10:23:07 +02:00
exportfuncs.h cleanup: more Coverity silencing 2024-01-17 14:23:19 -08:00
plannershared.cpp Make MND display depend on O2 narcotic preference 2020-07-11 10:37:49 -07:00
plannershared.h
README
roundrectitem.cpp statistics: convert chart to QQuickItem 2021-01-10 15:16:52 -08:00
roundrectitem.h statistics: convert chart to QQuickItem 2021-01-10 15:16:52 -08:00

This directory contains shared UI backend code shared between
the desktop version and the mobile version.

The backend code sits between the actual functionality, which
are implemented in core and qt-models, and the UI/QML which
are implemented in desktop-widgets and mobile-widgets.

The idea of backend is not to duplicate code, and at the same time
limit the UI and QML to only deal with real GUI.

The first implementations for backend are "export" and "diveplanner".