mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-05 00:21:29 +00:00
8cd191c271
Make it possible for the individual tab-widgets to access the parent widget. In principle this could have been done by downcasting the pointer returned by parent(), but this makes it explicit. The goal here is to store information on the selection, current dive, etc. without repeating it in every subwidget. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
25 lines
507 B
C++
25 lines
507 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(MainTab *parent);
|
|
~TabDiveExtraInfo();
|
|
void updateData(const std::vector<dive *> &selection, dive *currentDive, int currentDC) override;
|
|
void clear() override;
|
|
private:
|
|
Ui::TabDiveExtraInfo *ui;
|
|
ExtraDataModel *extraDataModel;
|
|
};
|
|
|
|
#endif
|