mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Choose water presets from a qcombobox in planner, custom value possible
Add a combo box for water types with defaults for fresh water, sea water and the EN 13319. All values taken from units.h, where EN 13319 was added beforehand. Custom values can be entered through a spinbox. Also changed "Salinity" in TapDiveInformation.ui to "Water type". Translation required! Signed-off-by: Oliver Schwaneberg <oliver.schwaneberg@gmail.com>
This commit is contained in:
parent
afc9dd5f38
commit
0ca52f868e
6 changed files with 151 additions and 68 deletions
|
@ -51,13 +51,15 @@ slots:
|
|||
void settingsChanged();
|
||||
void atmPressureChanged(const int pressure);
|
||||
void heightChanged(const int height);
|
||||
void salinityChanged(const double salinity);
|
||||
void waterTypeChanged(const int index);
|
||||
void customSalinityChanged(double density);
|
||||
void printDecoPlan();
|
||||
void setSurfacePressure(int surface_pressure);
|
||||
void setSalinity(int salinity);
|
||||
private:
|
||||
Ui::DivePlanner ui;
|
||||
QAbstractButton *replanButton;
|
||||
void waterTypeUpdateTexts();
|
||||
};
|
||||
|
||||
#include "ui_plannerSettings.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue