2019-03-09 22:32:16 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#ifndef TAB_DIVE_SITE_H
|
|
|
|
#define TAB_DIVE_SITE_H
|
|
|
|
|
|
|
|
#include "TabBase.h"
|
|
|
|
#include "ui_TabDiveSite.h"
|
2019-03-12 17:28:43 +01:00
|
|
|
#include "qt-models/divelocationmodel.h"
|
2019-03-09 22:32:16 +01:00
|
|
|
|
|
|
|
class TabDiveSite : public TabBase {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
TabDiveSite(QWidget *parent = 0);
|
|
|
|
void updateData() override;
|
|
|
|
void clear() override;
|
2019-03-13 20:58:25 +01:00
|
|
|
private slots:
|
|
|
|
void add();
|
2019-03-13 21:36:31 +01:00
|
|
|
void diveSiteAdded(struct dive_site *, int idx);
|
2019-03-13 21:56:41 +01:00
|
|
|
void diveSiteChanged(struct dive_site *ds, int field);
|
2019-03-19 19:52:54 +01:00
|
|
|
void on_purgeUnused_clicked();
|
2019-03-09 22:32:16 +01:00
|
|
|
private:
|
|
|
|
Ui::TabDiveSite ui;
|
2019-03-12 17:28:43 +01:00
|
|
|
DiveSiteSortedModel model;
|
2019-03-09 22:32:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|