mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
1bdf00b2b4
The Information tab shows the atmospheric pressure. Make this value editable and also ensure that changes to it are undo-able. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
31 lines
735 B
C++
31 lines
735 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(dive_trip *trip, const QVector<dive *> &dives, DiveField field);
|
|
void on_atmPressVal_editingFinished();
|
|
void on_atmPressType_currentIndexChanged(int index);
|
|
private:
|
|
Ui::TabDiveInformation *ui;
|
|
void updateProfile();
|
|
void updateWhen();
|
|
int pressTypeIndex;
|
|
void updateTextBox(int event);
|
|
};
|
|
|
|
#endif
|