5#include "ui_ProgressWindow.h"
8#include <QtCharts/QLineSeries>
9#include <QtCharts/QValueAxis>
10#include "QtCharts/QAreaSeries"
14using namespace QtCharts;
41 ProgressWindow(QWidget *parent = Q_NULLPTR,
int number_of_panels=1,
bool extra_label_and_progressbar =
false);
43 void AppendPoint(
const double&
x,
const double&
y,
int chart=0)
override;
46 void SetLabel(
const QString& label)
override;
47 void SetYRange(
const double &y0,
const double &y1,
int chart=0)
override;
48 void SetXRange(
const double &x0,
const double &x1,
int chart=0)
override;
49 void SetTitle(
const QString &title,
int chart=0)
override;
50 void SetXAxisTitle(
const QString &title,
int chart=0)
override;
51 void SetYAxisTitle(
const QString &title,
int chart=0)
override;
62 void Start()
override { show(); }
67 Ui::ProgressWindow
ui;
Abstract sink for progress information produced by a running analysis.
Graphical ProgressReporter that draws progress as charts in a dialog.
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.
void SetXRange(const double &x0, const double &x1, int chart=0) override
Sets the horizontal range of a chart.
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.