⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qgps_satmap.h

📁 在linux系统下开发的GPS接收程序,具有良好的图形操作界面.
💻 H
字号:
//------------------------------------------------------------------------// QGpsSatMap a GUI widget for satellites////	- programmed by Boyoon Jung//------------------------------------------------------------------------#ifndef __QGPSSATMAP_H#define __QGPSSATMAP_H// header files for GPS device#include <gps.h>// header files for Qt library#include <qframe.h>#include <qpixmap.h>#include <qpainter.h>// class definitionclass QGpsSatMap : public QFrame{    private:	QPixmap _pixmap;	// for double buffering	QPainter _painter;	// for drawing	int cx, cy;		// center of a drawing area	int radius;		// radius of the biggest inscribed circle	int nsat;		// number of satellites	satinfo_t sat[12];	// satellite info	bool active[12];	// active or not    protected:	// re-implemented functions	void resizeEvent (QResizeEvent *);	// when the size of window changes	void drawContents(QPainter *);		// draw contents	void drawContentsMask(QPainter *p) { drawContents(p); }    public:	// constructor	QGpsSatMap(QWidget*parent=0, const char *name=0, WFlags f=0);	// destructor	~QGpsSatMap();	// update info	void updateSatellites(int nsat, satinfo_t sat[], int active[]);};#endif // __QGPSSATMAP_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -