subsurface/backend-shared
Berthold Stoeger 6622f42aab Cylinders: Add CylindersModelFiltered
When the show_unused_cylinders flag is not set, the cylinder tables
in the equipment tab and the planner should not show unused cylinders.
However, the code in CylindersModel is fundamentally broken if the
unused cylinders are not at the end of the list: The correct number
of cylinders is shown, but not the correct cylinders.

Therefore, add a higher-level CylindersModelFiltered model on top
of CylindersModel that does the actual filtering. Some calls are
routed through to the base model (notably those that take indexes,
as these have to be mapped), for some calls the caller has to get
access to the source model first. We might want to adjust this.

For filtering, reuse the already existing show_cylinder function
and export it via CylindersModel.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-02-11 20:37:09 -08:00
..
CMakeLists.txt mobile/summary: remove backend-share/divesummary.[h|cpp] 2020-02-08 10:29:36 -08:00
exportfuncs.cpp Cleanup: remove const bool parameters and return types 2020-02-09 12:13:18 -08:00
exportfuncs.h Cleanup: remove const bool parameters and return types 2020-02-09 12:13:18 -08:00
plannershared.cpp Cylinders: Add CylindersModelFiltered 2020-02-11 20:37:09 -08:00
plannershared.h Cleanup: rename plannerShared to PlannerShared 2020-02-04 02:17:52 +01:00
README build-system: add new root dir backend-shared 2019-12-24 08:44:23 +09: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".