subsurface/packaging
jan Iversen fdc2fd35bf mobile-widgets: add pure interface for passing values to QML
Add a header file that contains a duplicate of the enums,
that are needed in QML in one class.
the unit enums are added imidiatly, since they are needed
or will be neede shortly in Settings and DivePlannerSettings

This class will also contain Q_PROPERTY and signal/slot for
variables used in QML. This is done to allow e.g.

deco_mode qPrefUnits::planner_deco_mode()
void qPrefUnits::set_planner_deco_mode(deco_mode)
as strongly typed in C++
and
DECO_MODE planner_deco_mode()
void set_planner_deco_mode(DECO_MODE)
as strongly typed in QML
Remark: wrong assignments gives errors in QML

The advantage over using strings or the value directly is that
QML detects typos and flags them as errors/warnings.

It is important to note that the class may only contain
a) a function call to the implementation
b) a reference to a global variable e.g. prefs.

Added note to the original definitions of the enums that they
have been duplicated.

Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-01-18 17:31:58 -08:00
..
android Android: update README to mention build container 2019-11-20 18:58:43 -08:00
headless Preserve wiki pages about headless Subsurface from trac wiki 2018-01-19 15:25:37 +01:00
ios mobile-widgets: add pure interface for passing values to QML 2020-01-18 17:31:58 -08:00
macosx build-system: add backend_shared to Xcode project 2019-12-24 08:44:23 +09:00
OBS Rename README to README.md in some scripts, makefiles,... 2017-11-04 10:55:11 -07:00
ubuntu build-system: fix appdata creation on OBS 2018-09-20 10:02:54 -07:00
windows Revert "Windows build: Changesto build using mxebased hidapi,libusb and grantlee" 2019-10-14 07:31:56 -07:00