Changeset 5445 in ntrip for trunk/GnssCenter/monitor
- Timestamp:
- Sep 13, 2013, 10:41:49 AM (11 years ago)
- Location:
- trunk/GnssCenter/monitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/monitor/monitor.cpp
r5443 r5445 1 1 2 2 /* ------------------------------------------------------------------------- 3 * RTNet GUI3 * RTNet Monitor 4 4 * ------------------------------------------------------------------------- 5 5 * 6 * Class: t_m ap_stations6 * Class: t_monitor 7 7 * 8 * Purpose: Plot map of stations/satellites8 * Purpose: Real-Time Monitoring of RTNet 9 9 * 10 10 * Author: L. Mervart … … 28 28 #include <qwt_plot_renderer.h> 29 29 30 #include "m ap_stations.h"30 #include "monitor.h" 31 31 #include "utils.h" 32 32 #include "worldplot.h" … … 36 36 using namespace GnssCenter; 37 37 38 Q_EXPORT_PLUGIN2(gnsscenter_m ap_stations, GnssCenter::t_map_stationsFactory)38 Q_EXPORT_PLUGIN2(gnsscenter_monitor, GnssCenter::t_monitorFactory) 39 39 40 40 // Constructor 41 41 ///////////////////////////////////////////////////////////////////////////// 42 t_m ap_stations::t_map_stations() : QMainWindow() {42 t_monitor::t_monitor() : QMainWindow() { 43 43 44 44 // World Plot … … 49 49 // Tool Bar 50 50 // -------- 51 QToolBar* toolBar = new QToolBar("t_m ap_stations_ToolBar");51 QToolBar* toolBar = new QToolBar("t_monitor_ToolBar"); 52 52 addToolBar(Qt::BottomToolBarArea, toolBar); 53 53 … … 68 68 // Destructor 69 69 ///////////////////////////////////////////////////////////////////////////// 70 t_m ap_stations::~t_map_stations() {70 t_monitor::~t_monitor() { 71 71 slotStopThrift(); 72 72 if (_results) { … … 81 81 // 82 82 ///////////////////////////////////////////////////////////////////////////// 83 void t_m ap_stations::slotStartThrift() {83 void t_monitor::slotStartThrift() { 84 84 if (!_thriftClient) { 85 85 _thriftClient = new t_thriftClient(this); … … 92 92 // 93 93 ///////////////////////////////////////////////////////////////////////////// 94 void t_m ap_stations::slotStopThrift() {94 void t_monitor::slotStopThrift() { 95 95 if (_thriftClient) { 96 96 _thriftClient->stop(); … … 101 101 // 102 102 ///////////////////////////////////////////////////////////////////////////// 103 void t_m ap_stations::slotThriftFinished() {103 void t_monitor::slotThriftFinished() { 104 104 sender()->deleteLater(); 105 105 _thriftClient = 0; … … 108 108 // 109 109 ///////////////////////////////////////////////////////////////////////////// 110 void t_m ap_stations::putThriftResults(std::vector<t_thriftResult*>* results) {110 void t_monitor::putThriftResults(std::vector<t_thriftResult*>* results) { 111 111 QMutexLocker locker(&_mutex); 112 112 if (_results) { … … 122 122 // 123 123 ///////////////////////////////////////////////////////////////////////////// 124 void t_m ap_stations::slotPlotResults() {124 void t_monitor::slotPlotResults() { 125 125 QMutexLocker locker(&_mutex); 126 126 -
trunk/GnssCenter/monitor/monitor.h
r5443 r5445 1 #ifndef GnssCenter_M AP_STATIONS_H2 #define GnssCenter_M AP_STATIONS_H1 #ifndef GnssCenter_MONITOR_H 2 #define GnssCenter_MONITOR_H 3 3 4 4 #include <QtGui> … … 15 15 namespace GnssCenter { 16 16 17 class t_m ap_stations: public QMainWindow {17 class t_monitor : public QMainWindow { 18 18 Q_OBJECT 19 19 public: 20 t_m ap_stations();21 ~t_m ap_stations();20 t_monitor(); 21 ~t_monitor(); 22 22 23 23 void putThriftResults(std::vector<t_thriftResult*>* results); … … 36 36 }; 37 37 38 class t_m ap_stationsFactory : public QObject, public t_pluginFactoryInterface {38 class t_monitorFactory : public QObject, public t_pluginFactoryInterface { 39 39 Q_OBJECT 40 40 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface) 41 41 public: 42 virtual QWidget* create() {return new t_m ap_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");} 44 44 }; 45 45
Note:
See TracChangeset
for help on using the changeset viewer.