Changeset 5406 in ntrip
- Timestamp:
- Sep 10, 2013, 2:28:35 PM (11 years ago)
- Location:
- trunk/GnssCenter/map_stations
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/map_stations/map_stations.cpp
r5404 r5406 4 4 * ------------------------------------------------------------------------- 5 5 * 6 * Class: t_ svgMap6 * Class: t_map_stations 7 7 * 8 8 * Purpose: Plot map of stations/satellites … … 27 27 #include <qwt_plot_renderer.h> 28 28 29 #include " svgmap.h"29 #include "map_stations.h" 30 30 31 31 using namespace std; 32 32 using namespace GnssCenter; 33 33 34 Q_EXPORT_PLUGIN2(gnsscenter_ svgmap, GnssCenter::t_svgMapFactory)34 Q_EXPORT_PLUGIN2(gnsscenter_map_stations, GnssCenter::t_map_stationsFactory) 35 35 36 36 // Constructor 37 37 ///////////////////////////////////////////////////////////////////////////// 38 t_ svgMap::t_svgMap() : QDialog() {38 t_map_stations::t_map_stations() : QDialog() { 39 39 40 40 // Map in Scalable Vector Graphics (svg) Format … … 99 99 // Destructor 100 100 ///////////////////////////////////////////////////////////////////////////// 101 t_ svgMap::~t_svgMap() {101 t_map_stations::~t_map_stations() { 102 102 delete _mapPlot; 103 103 delete _buttonWhatsThis; … … 106 106 // 107 107 ///////////////////////////////////////////////////////////////////////////// 108 void t_ svgMap::slotNewPoint(const QString& name, double latDeg, double lonDeg) {108 void t_map_stations::slotNewPoint(const QString& name, double latDeg, double lonDeg) { 109 109 110 110 if (lonDeg > 180.0) lonDeg -= 360.0; … … 156 156 // Close 157 157 //////////////////////////////////////////////////////////////////////////// 158 void t_ svgMap::slotClose() {158 void t_map_stations::slotClose() { 159 159 done(0); 160 160 } … … 162 162 // Close Dialog gracefully 163 163 //////////////////////////////////////////////////////////////////////////// 164 void t_ svgMap::closeEvent(QCloseEvent* event) {164 void t_map_stations::closeEvent(QCloseEvent* event) { 165 165 QDialog::closeEvent(event); 166 166 } … … 168 168 // 169 169 //////////////////////////////////////////////////////////////////////////// 170 void t_ svgMap::showEvent(QShowEvent* event) {170 void t_map_stations::showEvent(QShowEvent* event) { 171 171 double width = _maxPointLon - _minPointLon; 172 172 double height = _maxPointLat - _minPointLat; … … 218 218 // Print the widget 219 219 //////////////////////////////////////////////////////////////////////////// 220 void t_ svgMap::slotPrint() {220 void t_map_stations::slotPrint() { 221 221 222 222 QPrinter printer; … … 236 236 // Whats This Help 237 237 //////////////////////////////////////////////////////////////////////////// 238 void t_ svgMap::slotWhatsThis() {238 void t_map_stations::slotWhatsThis() { 239 239 QWhatsThis::enterWhatsThisMode(); 240 240 } -
trunk/GnssCenter/map_stations/map_stations.h
r5404 r5406 1 #ifndef GnssCenter_ SVGMAP_H2 #define GnssCenter_ SVGMAP_H1 #ifndef GnssCenter_MAP_STATIONS_H 2 #define GnssCenter_MAP_STATIONS_H 3 3 4 4 #include <QtGui> … … 11 11 namespace GnssCenter { 12 12 13 class t_ svgMap: public QDialog {13 class t_map_stations : public QDialog { 14 14 Q_OBJECT 15 15 public: 16 t_ svgMap();17 ~t_ svgMap();16 t_map_stations(); 17 ~t_map_stations(); 18 18 19 19 public slots: … … 42 42 }; 43 43 44 class t_ svgMapFactory : public QObject, public t_pluginFactoryInterface {44 class t_map_stationsFactory : public QObject, public t_pluginFactoryInterface { 45 45 Q_OBJECT 46 46 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface) 47 47 public: 48 virtual QWidget* create() {return new t_ svgMap();}48 virtual QWidget* create() {return new t_map_stations();} 49 49 virtual QString getName() const {return QString("Map");} 50 50 }; -
trunk/GnssCenter/map_stations/map_stations.pro
r5404 r5406 2 2 TEMPLATE = lib 3 3 CONFIG += plugin debug 4 TARGET = $$qtLibraryTarget(gnsscenter_ svgmap)4 TARGET = $$qtLibraryTarget(gnsscenter_map_stations) 5 5 QT += svg 6 6 INCLUDEPATH += ../qwt ../main … … 19 19 PRE_TARGETDEPS += gen-cpp 20 20 21 HEADERS = svgmap.h21 HEADERS = map_stations.h 22 22 23 SOURCES = svgmap.cpp23 SOURCES = map_stations.cpp 24 24 25 RESOURCES = svgmap.qrc25 RESOURCES = map_stations.qrc
Note:
See TracChangeset
for help on using the changeset viewer.