mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 14:10:19 +00:00
2fe1121b1c
The undo stack is preserved. This is in preparation of removing temperatures from the Notes tab. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
39 lines
975 B
C++
39 lines
975 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef TAB_DIVE_INFORMATION_H
|
|
#define TAB_DIVE_INFORMATION_H
|
|
|
|
#include "TabBase.h"
|
|
#include "core/subsurface-qt/DiveListNotifier.h"
|
|
|
|
namespace Ui {
|
|
class TabDiveInformation;
|
|
};
|
|
|
|
class TabDiveInformation : public TabBase {
|
|
Q_OBJECT
|
|
public:
|
|
TabDiveInformation(QWidget *parent = 0);
|
|
~TabDiveInformation();
|
|
void updateData() override;
|
|
void clear() override;
|
|
private slots:
|
|
void divesChanged(const QVector<dive *> &dives, DiveField field);
|
|
void diveModeChanged(int index);
|
|
void on_atmPressVal_editingFinished();
|
|
void on_atmPressType_currentIndexChanged(int index);
|
|
void on_visibility_valueChanged(int value);
|
|
void on_airtemp_editingFinished();
|
|
void on_watertemp_editingFinished();
|
|
private:
|
|
Ui::TabDiveInformation *ui;
|
|
void updateProfile();
|
|
void updateSalinity();
|
|
void updateWhen();
|
|
int pressTypeIndex;
|
|
void updateTextBox(int event);
|
|
void updateMode(struct dive *d);
|
|
void divesEdited(int);
|
|
void closeWarning();
|
|
};
|
|
|
|
#endif
|