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>
26 lines
511 B
C++
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
|