Changeset 5406 in ntrip for trunk/GnssCenter/map_stations


Ignore:
Timestamp:
Sep 10, 2013, 2:28:35 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/map_stations
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/map_stations/map_stations.cpp

    r5404 r5406  
    44 * -------------------------------------------------------------------------
    55 *
    6  * Class:      t_svgMap
     6 * Class:      t_map_stations
    77 *
    88 * Purpose:    Plot map of stations/satellites
     
    2727#include <qwt_plot_renderer.h>
    2828
    29 #include "svgmap.h"
     29#include "map_stations.h"
    3030
    3131using namespace std;
    3232using namespace GnssCenter;
    3333
    34 Q_EXPORT_PLUGIN2(gnsscenter_svgmap, GnssCenter::t_svgMapFactory)
     34Q_EXPORT_PLUGIN2(gnsscenter_map_stations, GnssCenter::t_map_stationsFactory)
    3535
    3636// Constructor
    3737/////////////////////////////////////////////////////////////////////////////
    38 t_svgMap::t_svgMap() : QDialog() {
     38t_map_stations::t_map_stations() : QDialog() {
    3939
    4040  // Map in Scalable Vector Graphics (svg) Format
     
    9999// Destructor
    100100/////////////////////////////////////////////////////////////////////////////
    101 t_svgMap::~t_svgMap() {
     101t_map_stations::~t_map_stations() {
    102102  delete _mapPlot;
    103103  delete _buttonWhatsThis;
     
    106106//
    107107/////////////////////////////////////////////////////////////////////////////
    108 void t_svgMap::slotNewPoint(const QString& name, double latDeg, double lonDeg) {
     108void t_map_stations::slotNewPoint(const QString& name, double latDeg, double lonDeg) {
    109109
    110110  if (lonDeg > 180.0) lonDeg -= 360.0;
     
    156156// Close
    157157////////////////////////////////////////////////////////////////////////////
    158 void t_svgMap::slotClose() {
     158void t_map_stations::slotClose() {
    159159  done(0);
    160160}
     
    162162// Close Dialog gracefully
    163163////////////////////////////////////////////////////////////////////////////
    164 void t_svgMap::closeEvent(QCloseEvent* event) {
     164void t_map_stations::closeEvent(QCloseEvent* event) {
    165165  QDialog::closeEvent(event);
    166166}
     
    168168//
    169169////////////////////////////////////////////////////////////////////////////
    170 void t_svgMap::showEvent(QShowEvent* event) {
     170void t_map_stations::showEvent(QShowEvent* event) {
    171171  double width  = _maxPointLon - _minPointLon;
    172172  double height = _maxPointLat - _minPointLat;
     
    218218// Print the widget
    219219////////////////////////////////////////////////////////////////////////////
    220 void t_svgMap::slotPrint() {
     220void t_map_stations::slotPrint() {
    221221
    222222  QPrinter printer;
     
    236236// Whats This Help
    237237////////////////////////////////////////////////////////////////////////////
    238 void t_svgMap::slotWhatsThis() {
     238void t_map_stations::slotWhatsThis() {
    239239  QWhatsThis::enterWhatsThisMode();
    240240}
  • trunk/GnssCenter/map_stations/map_stations.h

    r5404 r5406  
    1 #ifndef GnssCenter_SVGMAP_H
    2 #define GnssCenter_SVGMAP_H
     1#ifndef GnssCenter_MAP_STATIONS_H
     2#define GnssCenter_MAP_STATIONS_H
    33
    44#include <QtGui>
     
    1111namespace GnssCenter {
    1212
    13 class t_svgMap : public QDialog {
     13class t_map_stations : public QDialog {
    1414 Q_OBJECT
    1515 public:
    16   t_svgMap();
    17   ~t_svgMap();
     16  t_map_stations();
     17  ~t_map_stations();
    1818
    1919 public slots:
     
    4242};
    4343
    44 class t_svgMapFactory : public QObject, public t_pluginFactoryInterface {
     44class t_map_stationsFactory : public QObject, public t_pluginFactoryInterface {
    4545 Q_OBJECT
    4646 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
    4747 public:
    48   virtual QWidget* create() {return new t_svgMap();}
     48  virtual QWidget* create() {return new t_map_stations();}
    4949  virtual QString getName() const {return QString("Map");}
    5050};
  • trunk/GnssCenter/map_stations/map_stations.pro

    r5404 r5406  
    22TEMPLATE             = lib
    33CONFIG              += plugin debug
    4 TARGET               = $$qtLibraryTarget(gnsscenter_svgmap)
     4TARGET               = $$qtLibraryTarget(gnsscenter_map_stations)
    55QT                  += svg
    66INCLUDEPATH         += ../qwt ../main
     
    1919PRE_TARGETDEPS      += gen-cpp
    2020
    21 HEADERS   = svgmap.h
     21HEADERS   = map_stations.h
    2222
    23 SOURCES   = svgmap.cpp
     23SOURCES   = map_stations.cpp
    2424
    25 RESOURCES = svgmap.qrc
     25RESOURCES = map_stations.qrc
Note: See TracChangeset for help on using the changeset viewer.