src/ChartFermenter.h

Tue, 26 Jul 2022 14:26:50 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 26 Jul 2022 14:26:50 +0200
changeset 371
d03a426e0b6b
parent 333
499c95108bbd
permissions
-rw-r--r--

On the fermenter, iSpindel, carbonation and brewday chart a tooltip with values is shown wheren hovering over the most important data lines. Changed the vertical to horzontal screen layout and added a save button to save the graph as .png image.

#ifndef _CHARTFERMENTER_H
#define _CHARTFERMENTER_H

#include "MainWindow.h"

#include <QDialog>
#include <QDialogButtonBox>

class Callout;

namespace Ui {
class ChartFermenter;
}

class ChartFermenter : public QDialog
{
    Q_OBJECT

private slots:
    void savePNG();

public slots:
    void tooltip(QPointF point, bool state);

public:
    explicit ChartFermenter(QString code, QString name, QWidget *parent = 0);
    ~ChartFermenter();

private:
    QChartView *chartView;
    QChart *chart;
    Callout *t_tooltip = 0;
};

#endif

mercurial