2017-04-27 18:26:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2017-04-04 17:21:30 +00:00
|
|
|
#ifndef TAB_DIVE_INFORMATION_H
|
|
|
|
#define TAB_DIVE_INFORMATION_H
|
|
|
|
|
|
|
|
#include "TabBase.h"
|
2019-04-26 08:03:32 +00:00
|
|
|
#include "core/subsurface-qt/DiveListNotifier.h"
|
2017-04-04 17:21:30 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class TabDiveInformation;
|
|
|
|
};
|
|
|
|
|
|
|
|
class TabDiveInformation : public TabBase {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-04-04 18:01:47 +00:00
|
|
|
TabDiveInformation(QWidget *parent = 0);
|
2017-04-04 17:21:30 +00:00
|
|
|
~TabDiveInformation();
|
2018-09-29 20:13:44 +00:00
|
|
|
void updateData() override;
|
|
|
|
void clear() override;
|
2019-04-26 08:03:32 +00:00
|
|
|
private slots:
|
2019-06-23 07:22:26 +00:00
|
|
|
void divesChanged(const QVector<dive *> &dives, DiveField field);
|
2019-11-10 21:09:19 +00:00
|
|
|
void diveModeChanged(int index);
|
2019-04-30 10:42:33 +00:00
|
|
|
void on_atmPressVal_editingFinished();
|
|
|
|
void on_atmPressType_currentIndexChanged(int index);
|
2019-11-10 21:09:19 +00:00
|
|
|
void on_visibility_valueChanged(int value);
|
2019-11-28 19:04:52 +00:00
|
|
|
void on_wavesize_valueChanged(int value);
|
|
|
|
void on_current_valueChanged(int value);
|
|
|
|
void on_surge_valueChanged(int value);
|
|
|
|
void on_chill_valueChanged(int value);
|
2019-11-11 09:47:12 +00:00
|
|
|
void on_airtemp_editingFinished();
|
|
|
|
void on_watertemp_editingFinished();
|
2017-04-04 17:21:30 +00:00
|
|
|
private:
|
|
|
|
Ui::TabDiveInformation *ui;
|
2019-04-26 08:03:32 +00:00
|
|
|
void updateProfile();
|
2019-10-12 22:01:44 +00:00
|
|
|
void updateSalinity();
|
2019-04-26 08:03:32 +00:00
|
|
|
void updateWhen();
|
2019-04-30 10:42:33 +00:00
|
|
|
int pressTypeIndex;
|
|
|
|
void updateTextBox(int event);
|
2019-11-10 21:09:19 +00:00
|
|
|
void updateMode(struct dive *d);
|
|
|
|
void divesEdited(int);
|
|
|
|
void closeWarning();
|
2019-11-28 10:35:39 +00:00
|
|
|
void showCurrentWidget(bool show, int position);
|
2017-04-04 17:21:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|