2017-04-27 18:26:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2017-04-04 17:21:30 +00:00
|
|
|
#ifndef TAB_BASE_H
|
|
|
|
#define TAB_BASE_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
struct dive;
|
2022-09-09 16:12:31 +00:00
|
|
|
class MainTab;
|
2017-04-04 17:21:30 +00:00
|
|
|
|
|
|
|
class TabBase : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-09-09 16:12:31 +00:00
|
|
|
TabBase(MainTab *parent);
|
2022-09-04 09:04:01 +00:00
|
|
|
virtual void updateData(const std::vector<dive *> &selection, dive *currentDive, int currentDC) = 0;
|
2017-04-04 17:21:30 +00:00
|
|
|
virtual void clear() = 0;
|
2020-11-04 21:09:44 +00:00
|
|
|
virtual void updateUi(QString titleColor);
|
2022-09-09 16:12:31 +00:00
|
|
|
protected:
|
|
|
|
MainTab &parent;
|
2017-04-04 17:21:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|