Changeset 5445 in ntrip


Ignore:
Timestamp:
Sep 13, 2013, 10:41:49 AM (8 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/monitor
Files:
2 edited

Legend:

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

    r5443 r5445  
    11
    22/* -------------------------------------------------------------------------
    3  * RTNet GUI
     3 * RTNet Monitor
    44 * -------------------------------------------------------------------------
    55 *
    6  * Class:      t_map_stations
     6 * Class:      t_monitor
    77 *
    8  * Purpose:    Plot map of stations/satellites
     8 * Purpose:    Real-Time Monitoring of RTNet
    99 *
    1010 * Author:     L. Mervart
     
    2828#include <qwt_plot_renderer.h>
    2929
    30 #include "map_stations.h"
     30#include "monitor.h"
    3131#include "utils.h"
    3232#include "worldplot.h"
     
    3636using namespace GnssCenter;
    3737
    38 Q_EXPORT_PLUGIN2(gnsscenter_map_stations, GnssCenter::t_map_stationsFactory)
     38Q_EXPORT_PLUGIN2(gnsscenter_monitor, GnssCenter::t_monitorFactory)
    3939
    4040// Constructor
    4141/////////////////////////////////////////////////////////////////////////////
    42 t_map_stations::t_map_stations() : QMainWindow() {
     42t_monitor::t_monitor() : QMainWindow() {
    4343
    4444  // World Plot
     
    4949  // Tool Bar
    5050  // --------
    51   QToolBar* toolBar = new QToolBar("t_map_stations_ToolBar");
     51  QToolBar* toolBar = new QToolBar("t_monitor_ToolBar");
    5252  addToolBar(Qt::BottomToolBarArea, toolBar);
    5353
     
    6868// Destructor
    6969/////////////////////////////////////////////////////////////////////////////
    70 t_map_stations::~t_map_stations() {
     70t_monitor::~t_monitor() {
    7171  slotStopThrift();
    7272  if (_results) {
     
    8181//
    8282/////////////////////////////////////////////////////////////////////////////
    83 void t_map_stations::slotStartThrift() {
     83void t_monitor::slotStartThrift() {
    8484  if (!_thriftClient) {
    8585    _thriftClient = new t_thriftClient(this);
     
    9292//
    9393/////////////////////////////////////////////////////////////////////////////
    94 void t_map_stations::slotStopThrift() {
     94void t_monitor::slotStopThrift() {
    9595  if (_thriftClient) {
    9696    _thriftClient->stop();
     
    101101//
    102102/////////////////////////////////////////////////////////////////////////////
    103 void t_map_stations::slotThriftFinished() {
     103void t_monitor::slotThriftFinished() {
    104104  sender()->deleteLater();
    105105  _thriftClient = 0;
     
    108108//
    109109/////////////////////////////////////////////////////////////////////////////
    110 void t_map_stations::putThriftResults(std::vector<t_thriftResult*>* results) {
     110void t_monitor::putThriftResults(std::vector<t_thriftResult*>* results) {
    111111  QMutexLocker locker(&_mutex);
    112112  if (_results) {
     
    122122//
    123123/////////////////////////////////////////////////////////////////////////////
    124 void t_map_stations::slotPlotResults() {
     124void t_monitor::slotPlotResults() {
    125125  QMutexLocker locker(&_mutex);
    126126
  • trunk/GnssCenter/monitor/monitor.h

    r5443 r5445  
    1 #ifndef GnssCenter_MAP_STATIONS_H
    2 #define GnssCenter_MAP_STATIONS_H
     1#ifndef GnssCenter_MONITOR_H
     2#define GnssCenter_MONITOR_H
    33
    44#include <QtGui>
     
    1515namespace GnssCenter {
    1616
    17 class t_map_stations : public QMainWindow {
     17class t_monitor : public QMainWindow {
    1818 Q_OBJECT
    1919 public:
    20   t_map_stations();
    21   ~t_map_stations();
     20  t_monitor();
     21  ~t_monitor();
    2222
    2323  void putThriftResults(std::vector<t_thriftResult*>* results);
     
    3636};
    3737
    38 class t_map_stationsFactory : public QObject, public t_pluginFactoryInterface {
     38class t_monitorFactory : public QObject, public t_pluginFactoryInterface {
    3939 Q_OBJECT
    4040 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
    4141 public:
    42   virtual QWidget* create() {return new t_map_stations();}
    43   virtual QString getName() const {return QString("Map of Stations");}
     42  virtual QWidget* create() {return new t_monitor();}
     43  virtual QString getName() const {return QString("RTNet Monitor");}
    4444};
    4545
Note: See TracChangeset for help on using the changeset viewer.