// SPDX-License-Identifier: GPL-2.0 // The profile and its toolbars. #ifndef PROFILEWIDGET_H #define PROFILEWIDGET_H #include "ui_profilewidget.h" #include #include class ProfileWidget2; class EmptyView; class QStackedWidget; class ProfileWidget : public QWidget { Q_OBJECT public: ProfileWidget(); ~ProfileWidget(); std::unique_ptr view; void plotCurrentDive(); void setPlanState(const struct dive *d, int dc); void setEditState(const struct dive *d, int dc); void setEnabledToolbar(bool enabled); private slots: void unsetProfHR(); void unsetProfTissues(); private: std::unique_ptr emptyView; std::vector toolbarActions; Ui::ProfileWidget ui; QStackedWidget *stack; void setDive(const struct dive *d); }; #endif // PROFILEWIDGET_H