Changeset 5422 in ntrip for trunk/GnssCenter
- Timestamp:
- Sep 12, 2013, 4:25:13 PM (12 years ago)
- Location:
- trunk/GnssCenter/map_stations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/map_stations/map_stations.cpp
r5420 r5422 46 46 setCentralWidget(_plot); 47 47 48 // Tool Bar 49 // -------- 50 QToolBar* toolBar = new QToolBar("t_map_stations_ToolBar"); 51 addToolBar(Qt::BottomToolBarArea, toolBar); 52 QAction* actStartThrift = new QAction("Start Thrift", 0); 53 toolBar->addAction(actStartThrift); 54 connect(actStartThrift, SIGNAL(triggered()), this, SLOT(slotStartThrift())); 55 48 56 // Thrift Client; 49 57 // -------------- 50 _thriftClient = new t_thriftClient(this); 51 _thriftClient->start(); 58 _thriftClient = 0; 52 59 } 53 60 54 61 // Destructor 55 62 ///////////////////////////////////////////////////////////////////////////// 56 t_map_stations::~t_map_stations() { 57 _thriftClient->stop(); 63 t_map_stations::~t_map_stations() { 64 if (_thriftClient) { 65 _thriftClient->stop(); 66 } 58 67 } 59 68 69 // 70 ///////////////////////////////////////////////////////////////////////////// 71 void t_map_stations::slotStartThrift() { 72 if (!_thriftClient) { 73 _thriftClient = new t_thriftClient(this); 74 _thriftClient->start(); 75 } 76 } 60 77 61 78 // -
trunk/GnssCenter/map_stations/map_stations.h
r5420 r5422 24 24 void slotNewThriftResult(t_thriftResult*); 25 25 26 private slots: 27 void slotStartThrift(); 28 26 29 private: 27 30 t_worldPlot* _plot;
Note:
See TracChangeset
for help on using the changeset viewer.