27 #ifndef LINEARDIALGADGETWIDGET_H_
28 #define LINEARDIALGADGETWIDGET_H_
34 #include <QGraphicsView>
35 #include <QtSvg/QSvgRenderer>
36 #include <QtSvg/QGraphicsSvgItem>
88 QSvgRenderer *m_renderer;
89 QGraphicsSvgItem *background;
90 QGraphicsSvgItem *foreground;
91 QGraphicsSvgItem *index;
92 QGraphicsSvgItem *green;
93 QGraphicsSvgItem *yellow;
94 QGraphicsSvgItem *red;
95 QGraphicsSvgItem *fieldSymbol;
97 QGraphicsTextItem *fieldName;
98 QGraphicsTextItem *fieldValue;
LineardialGadgetWidget(QWidget *parent=nullptr)
void updateIndex(UAVObject *object1)
Called by the UAVObject which got updated.
void setRedRange(double min, double max)
void setGreenRange(double min, double max)
void setIndex(double val)
void setDialFont(QString fontProps)
void setDecimalPlaces(int val)
void connectInput(QString obj, QString field)
Connects the widget to the relevant UAVObjects.
void setDialFile(QString dfn)
Setup dial using its master SVG template.
void setRange(double min, double max)
~LineardialGadgetWidget()
void resizeEvent(QResizeEvent *event)
void paintEvent(QPaintEvent *event)
void setFactor(double val)
void setYellowRange(double min, double max)