AsyncProgressDialog
ProgressVelocityPlot.h
1 #pragma once
2 
3 #include "ProgressWidget.h"
4 
5 #include <QPen>
6 #include <QBrush>
7 
8 #include <memory>
9 
10 namespace APD
11 {
12 
14 {
15  Q_OBJECT
16 
17 public:
18  explicit ProgressVelocityPlot(QWidget* parent = nullptr);
19  explicit ProgressVelocityPlot(const QString& quantityUnits, QWidget* parent = nullptr);
20  ~ProgressVelocityPlot() override;
21 
22  QString quantityUnits() const;
23  void setQuantityUnits(const QString& quantityUnits);
24 
25  bool isProgressHidden() const;
26  void setProgressHidden(bool hide);
27  bool isVelocityHistoryHidden() const;
28  void setVelocityHistoryHidden(bool hide);
29  bool isCurrentVelocityHidden() const;
30  void setCurrentVelocityHidden(bool hide);
31  QPen progressPen() const;
32  void setProgressPen(const QPen& pen);
33  QBrush progressBrush() const;
34  void setProgressBrush(const QBrush& brush);
35  QPen currentVelocityPen() const;
36  void setCurrentVelocityPen(const QPen& pen);
37  QPen velocityHistoryPen() const;
38  void setVelocityHistoryPen(const QPen& pen);
39  QBrush velocityHistoryBrush() const;
40  void setVelocityHistoryBrush(const QBrush& brush);
41 
42 public slots:
43  void setValue(int value, const QVariant& userData, const TimeStamp& timeStamp) override;
44  void setRange(int minimum, int maximum) override;
45 
46 private:
47  Q_DISABLE_COPY(ProgressVelocityPlot)
48 
49  class Impl;
50  std::unique_ptr<Impl> m_impl;
51 };
52 
53 }
QPen currentVelocityPen() const
Definition: ProgressVelocityPlot.cpp:331
bool isCurrentVelocityHidden() const
Definition: ProgressVelocityPlot.cpp:268
void setCurrentVelocityPen(const QPen &pen)
Definition: ProgressVelocityPlot.cpp:340
QString quantityUnits() const
Definition: ProgressVelocityPlot.cpp:204
ProgressVelocityPlot(QWidget *parent=nullptr)
Definition: ProgressVelocityPlot.cpp:169
bool isVelocityHistoryHidden() const
Definition: ProgressVelocityPlot.cpp:245
void setProgressHidden(bool hide)
Definition: ProgressVelocityPlot.cpp:233
Base class for all widgets capable of displaying progress for a TaskThread.
Definition: ProgressWidget.h:10
QPen velocityHistoryPen() const
Definition: ProgressVelocityPlot.cpp:352
QPen progressPen() const
Definition: ProgressVelocityPlot.cpp:291
void setVelocityHistoryBrush(const QBrush &brush)
Definition: ProgressVelocityPlot.cpp:381
A widget capable of showing current velocity as well as the velocity history.
Definition: ProgressVelocityPlot.h:13
void setVelocityHistoryPen(const QPen &pen)
Definition: ProgressVelocityPlot.cpp:361
void setValue(int value, const QVariant &userData, const TimeStamp &timeStamp) override
Definition: ProgressVelocityPlot.cpp:180
void setCurrentVelocityHidden(bool hide)
Definition: ProgressVelocityPlot.cpp:279
void setQuantityUnits(const QString &quantityUnits)
Definition: ProgressVelocityPlot.cpp:213
void setProgressBrush(const QBrush &brush)
Definition: ProgressVelocityPlot.cpp:320
QBrush velocityHistoryBrush() const
Definition: ProgressVelocityPlot.cpp:372
void setRange(int minimum, int maximum) override
Definition: ProgressVelocityPlot.cpp:188
QBrush progressBrush() const
Definition: ProgressVelocityPlot.cpp:311
void setProgressPen(const QPen &pen)
Definition: ProgressVelocityPlot.cpp:300
void setVelocityHistoryHidden(bool hide)
Definition: ProgressVelocityPlot.cpp:256
bool isProgressHidden() const
Definition: ProgressVelocityPlot.cpp:224