1 #ifndef MONITORWIDGET_H
2 #define MONITORWIDGET_H
6 #include <QGraphicsView>
7 #include <QtSvg/QSvgRenderer>
8 #include <QtSvg/QGraphicsSvgItem>
9 #include <QtCore/QPointer>
11 class MonitorWidget
: public QGraphicsView
{
14 explicit MonitorWidget(QWidget
*parent
= 0);
17 void setMin(double min
)
27 void setMax(double max
)
38 void telemetryConnected();
39 void telemetryDisconnected();
40 void telemetryUpdated(double txRate
, double rxRate
);
43 void showEvent(QShowEvent
*event
);
44 void resizeEvent(QResizeEvent
*event
);
52 QGraphicsSvgItem
*graph
;
54 QPointer
<QGraphicsTextItem
> txSpeed
;
55 QPointer
<QGraphicsTextItem
> rxSpeed
;
57 QList
<QGraphicsSvgItem
*> txNodes
;
58 QList
<QGraphicsSvgItem
*> rxNodes
;
60 Qt::AspectRatioMode aspectRatioMode
;
63 #endif // MONITORWIDGET_H