Berthold Stoeger cded7ef5fe selection: pass down selection to tab widgets
On selection change, pass down selection (including current
dive and dc) to the tab widgets. Ultimately, this should
remove access to global variables. A number of new accesses
are marked as TODO. They shall be removed in due course.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2023-04-16 20:23:59 +02:00

26 lines
511 B
C++

// SPDX-License-Identifier: GPL-2.0
#ifndef TAB_DIVE_EXTRA_INFO_H
#define TAB_DIVE_EXTRA_INFO_H
#include "TabBase.h"
namespace Ui {
class TabDiveExtraInfo;
};
class ExtraDataModel;
class TabDiveExtraInfo : public TabBase {
Q_OBJECT
public:
TabDiveExtraInfo(QWidget *parent = 0);
~TabDiveExtraInfo();
void updateData(const std::vector<dive *> &selection, dive *currentDive, int currentDC) override;
void clear() override;
private:
Ui::TabDiveExtraInfo *ui;
ExtraDataModel *extraDataModel;
};
#endif