subsurface/desktop-widgets/tab-widgets/TabDiveEquipment.h
Berthold Stoeger 0732bb2302 undo: remove TabDiveWidget::acceptChanges and rejectChanges
Since cylinders are now edited using the undo system, these
functions are not needed anymore.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-04-07 00:13:35 +02:00

43 lines
1 KiB
C++

// SPDX-License-Identifier: GPL-2.0
#ifndef TAB_DIVE_EQUIPMENT_H
#define TAB_DIVE_EQUIPMENT_H
#include "TabBase.h"
#include "ui_TabDiveEquipment.h"
#include "qt-models/completionmodels.h"
#include "desktop-widgets/divelistview.h"
namespace Ui {
class TabDiveEquipment;
};
class WeightModel;
class CylindersModelFiltered;
class TabDiveEquipment : public TabBase {
Q_OBJECT
public:
TabDiveEquipment(QWidget *parent = 0);
~TabDiveEquipment();
void updateData() override;
void clear() override;
void divesEdited(int i);
void closeWarning();
private slots:
void divesChanged(const QVector<dive *> &dives, DiveField field);
void addCylinder_clicked();
void addWeight_clicked();
void toggleTriggeredColumn();
void editCylinderWidget(const QModelIndex &index);
void editWeightWidget(const QModelIndex &index);
void on_suit_editingFinished();
private:
Ui::TabDiveEquipment ui;
SuitCompletionModel suitModel;
CylindersModelFiltered *cylindersModel;
WeightModel *weightModel;
};
#endif // TAB_DIVE_EQUIPMENT_H