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:
|
|
|
|
void divesChanged(dive_trip *trip, const QVector<dive *> &dives, DiveField field);
|
2017-04-04 17:21:30 +00:00
|
|
|
private:
|
|
|
|
Ui::TabDiveInformation *ui;
|
2019-04-26 08:03:32 +00:00
|
|
|
void updateProfile();
|
|
|
|
void updateWhen();
|
2017-04-04 17:21:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|