4 #include <QGraphicsView>
5 #include <QGraphicsRectItem>
7 class GpsSnrWidget
: public QGraphicsView
{
10 explicit GpsSnrWidget(QWidget
*parent
= 0);
16 void updateSat(int index
, int prn
, int elevation
, int azimuth
, int snr
);
19 static const int MAX_SATTELITES
= 16;
20 int satellites
[MAX_SATTELITES
][4];
21 QGraphicsScene
*scene
;
22 QGraphicsRectItem
*boxes
[MAX_SATTELITES
];
23 QGraphicsSimpleTextItem
*satTexts
[MAX_SATTELITES
];
24 QGraphicsSimpleTextItem
*satSNRs
[MAX_SATTELITES
];
26 void drawSat(int index
);
29 void showEvent(QShowEvent
*event
);
30 void resizeEvent(QResizeEvent
*event
);
33 #endif // GPSSNRWIDGET_H