src/ChartFermenter.h

Sun, 12 Feb 2023 13:58:36 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 12 Feb 2023 13:58:36 +0100
changeset 494
49ac23d25f61
parent 371
d03a426e0b6b
permissions
-rw-r--r--

In monitor iSpindel: in the chart calculate the ranges, do't let the toolkit do that. Save the path for chart image download in the user settings. In the tooltip for the battery voltage line, also show the remaining battery capacity. In the monitor window show the battery capacity digit instead of allways 0. Updated the translations.

#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