31 #include <QtPdCom1/ScalarSubscriber.h> 32 #include <QtPdCom1/Transmission.h> 34 #include <QScopedPointer> 49 READ getOrientation WRITE setOrientation RESET resetOrientation)
50 Q_PROPERTY(
Style style
51 READ getStyle WRITE setStyle RESET resetStyle)
53 Q_PROPERTY(
bool showScale
54 READ getShowScale WRITE setShowScale RESET resetShowScale)
56 Q_PROPERTY(
double scaleMin
57 READ getScaleMin WRITE setScaleMin RESET resetScaleMin)
59 Q_PROPERTY(
double scaleMax
60 READ getScaleMax WRITE setScaleMax RESET resetScaleMax)
62 READ getOrigin WRITE setOrigin RESET resetOrigin)
63 Q_PROPERTY(
int borderWidth
64 READ getBorderWidth WRITE setBorderWidth RESET resetBorderWidth)
65 Q_PROPERTY(QColor backgroundColor
66 READ getBackgroundColor WRITE setBackgroundColor
67 RESET resetBackgroundColor)
68 Q_PROPERTY(
bool autoBarWidth
69 READ getAutoBarWidth WRITE setAutoBarWidth
70 RESET resetAutoBarWidth)
73 Bar(QWidget *parent = 0);
81 Orientation getOrientation()
const;
82 void setOrientation(Orientation);
83 void resetOrientation();
91 Style getStyle()
const;
95 bool getShowScale()
const;
96 void setShowScale(
bool);
97 void resetShowScale();
99 double getScaleMin()
const;
100 void setScaleMin(
double);
101 void resetScaleMin();
103 double getScaleMax()
const;
104 void setScaleMax(
double);
105 void resetScaleMax();
124 Origin getOrigin()
const;
125 void setOrigin(Origin);
128 int getBorderWidth()
const;
129 void setBorderWidth(
int);
130 void resetBorderWidth();
132 QColor getBackgroundColor()
const;
133 void setBackgroundColor(QColor);
134 void resetBackgroundColor();
136 bool getAutoBarWidth()
const;
137 void setAutoBarWidth(
bool);
138 void resetAutoBarWidth();
140 QSize sizeHint()
const override;
153 const PdCom::Selector &selector = {},
154 const QtPdCom::Transmission & = QtPdCom::event_mode,
160 QColor color = Qt::blue
163 PdCom::Process *process,
165 const PdCom::Selector &selector = {},
166 const QtPdCom::Transmission & = QtPdCom::event_mode,
172 QColor color = Qt::blue
183 void addStackedVariable(
185 const PdCom::Selector &selector = {},
186 const QtPdCom::Transmission & = QtPdCom::event_mode,
192 QColor color = Qt::blue
194 void addStackedVariable(
195 PdCom::Process *process,
197 const PdCom::Selector &selector = {},
198 const QtPdCom::Transmission & = QtPdCom::event_mode,
204 QColor color = Qt::blue
209 void clearVariables();
218 const PdCom::Selector &selector = {},
219 const QtPdCom::Transmission & = QtPdCom::event_mode,
225 QColor color = Qt::blue
228 PdCom::Process *process,
230 const PdCom::Selector &selector = {},
231 const QtPdCom::Transmission & = QtPdCom::event_mode,
237 QColor color = Qt::blue
241 void setGradientStops(
const QGradientStops &);
242 const QPair<double, double> getGradientLimits()
const;
245 bool event(QEvent *)
override;
246 void resizeEvent(QResizeEvent *)
override;
247 void paintEvent(QPaintEvent *event)
override;
250 Q_DECLARE_PRIVATE(Bar)
Orientation
Orientation of the bar widget.
Definition: Bar.h:77
Style
Style of the bar widget.
Definition: Bar.h:86
Bar graph widget.
Definition: Bar.h:44
#define PD_PUBLIC
Definition: Export.h:33
Display colored bars over a plain background.
Definition: Bar.h:87
Origin
Bar origin mode.
Definition: Bar.h:111
Display arrows over a colored background.
Definition: Bar.h:88
Vertical bar with scale on the left.
Definition: Bar.h:78
Bar graph widget.
Definition: Bar_p.h:43
Draw bars originating from zero.
Definition: Bar.h:112