diff -r a730825bc5e4 -r d03a426e0b6b src/EditProduct.h --- a/src/EditProduct.h Tue Jul 26 11:15:37 2022 +0200 +++ b/src/EditProduct.h Tue Jul 26 14:26:50 2022 +0200 @@ -1,6 +1,8 @@ #ifndef _EDITPRODUCT_H #define _EDITPRODUCT_H +#include "MainWindow.h" + #include #include #include @@ -19,6 +21,8 @@ #include "global.h" +class Callout; + struct StepResult { double svol; double irate; @@ -42,6 +46,9 @@ explicit EditProduct(int id, QWidget *parent = 0); ~EditProduct(); +public slots: + void tooltip(QPointF point, bool state); + private slots: void on_saveButton_clicked(); void on_quitButton_clicked(); @@ -190,6 +197,7 @@ void brew_trubloss_changed(double val); void brew_topupwater_changed(double val); void brew_log_button(); + void savePNG(); void brix_changed(double val); void primary_start_changed(double val); void primary_peak_changed(double val); @@ -273,6 +281,9 @@ QLabel *htimeLabel, *mtimeLabel, *mamountLabel, *yamountLabel, *ivolLabel, *itmpLabel; QTableWidget *splitTable; QPushButton *split_addButton, *split_delButton; + QChart *chart; + QChartView *chartView; + Callout *t_tooltip = 0; void to100Fermentables(int row); static bool ferment_sort_test(const Fermentables &D1, const Fermentables &D2);