8#include "ui_ProgressWindow.h"
11#include <QtCharts/QLineSeries>
12#include <QtCharts/QValueAxis>
13#include "QtCharts/QAreaSeries"
17using namespace QtCharts;
44 ProgressWindow(QWidget *parent = Q_NULLPTR,
int number_of_panels=1,
bool extra_label_and_progressbar =
false);
46 void AppendPoint(
const double&
x,
const double&
y,
int chart=0)
override;
49 void SetLabel(
const QString& label)
override;
50 void SetYRange(
const double &y0,
const double &y1,
int chart=0)
override;
51 void SetXRange(
const double &x0,
const double &x1,
int chart=0)
override;
52 void SetTitle(
const QString &title,
int chart=0)
override;
53 void SetXAxisTitle(
const QString &title,
int chart=0)
override;
54 void SetYAxisTitle(
const QString &title,
int chart=0)
override;
65 void Start()
override { show(); }
72 Ui::ProgressWindow
ui{};
Abstract sink for progress information produced by a running analysis.
void SetProgress2(const double &prog) override
Sets the secondary progress fraction, where one is displayed.
void SetTitle(const QString &title, int chart=0) override
Sets the title of a chart.
void SetYRange(const double &y0, const double &y1, int chart=0) override
Sets the vertical range of a chart.
void SetXAxisTitle(const QString &title, int chart=0) override
Sets the horizontal axis title of a chart.
void SetChartTitle(int i, const QString &title) override
Sets the title of chart i.
ProgressWindow(QWidget *parent=Q_NULLPTR, int number_of_panels=1, bool extra_label_and_progressbar=false)
void SetXRange(const double &x0, const double &x1, int chart=0) override
Sets the horizontal range of a chart.
bool HasChart(int chart) const
True if chart is one of this window's chart panels.
void ClearGraph(int chart=0) override
Discards the points accumulated in a chart.
QVector< ChartCollection > ChartItems
void SetYAxisTitle(const QString &title, int chart=0) override
Sets the vertical axis title of a chart.
void Finish() override
Closes the dialog. Named Finish() because QWidget::close() is not virtual.
void SetProgress(const double &prog) override
Sets the primary progress fraction.
void SetLabel(const QString &label) override
Sets the free-text status label.
void Start() override
Shows the dialog. Named Start() because QWidget::show() is not virtual.
QVector< QString > charttitles
void AppendPoint(const double &x, const double &y, int chart=0) override
Adds a point to one of the progress charts.