- Timestamp:
- Dec 1, 2008, 11:26:09 PM (16 years ago)
- Location:
- trunk/BNS
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNS/bns.cpp ¶
r1249 r1258 420 420 int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer)); 421 421 if (len > 0) { 422 emit(newOutBytes(len)); 422 if (ic == 0) { emit(newOutBytes1(len));} 423 if (ic == 1) { emit(newOutBytes2(len));} 423 424 _caster.at(ic)->write(obuffer, len); 424 425 } -
TabularUnified trunk/BNS/bns.h ¶
r1197 r1258 43 43 void newClkBytes(int nBytes); 44 44 void newEphBytes(int nBytes); 45 void newOutBytes(int nBytes); 45 void newOutBytes1(int nBytes); 46 void newOutBytes2(int nBytes); 46 47 void newMessage(const QByteArray msg); 47 48 void error(const QByteArray msg); -
TabularUnified trunk/BNS/bnswindow.cpp ¶
r1256 r1258 437 437 _statusLbl[5] = new QLabel("Ephemeris Corrections I:"); 438 438 _statusLbl[6] = new QLabel("Ephemeris Corrections II:"); 439 _statusLbl[7] = new QLabel("0 byte(s)"); _statusCnt[3] = 0; 439 440 440 441 _statusLbl[0]->setWhatsThis(tr("Status of incoming broadcast ephemeris.")); … … 442 443 _statusLbl[2]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster.")); 443 444 _statusLbl[3]->setWhatsThis(tr("Status of incoming broadcast ephemeris.")); 444 _statusLbl[4]->setWhatsThis(tr("Status of incoming stream of clocks and orbits.")); 445 _statusLbl[5]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster.")); 445 _statusLbl[4]->setWhatsThis(tr("Status of incoming stream of clocks and orbits I.")); 446 _statusLbl[5]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster I.")); 447 _statusLbl[6]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster II.")); 448 _statusLbl[7]->setWhatsThis(tr("Status of outgoing stream to NTRIP broadcaster II.")); 446 449 447 450 layout_status->addWidget(_statusLbl[3], 0, 0); … … 452 455 layout_status->addWidget(_statusLbl[2], 0, 3); 453 456 layout_status->addWidget(_statusLbl[6], 1, 2); 457 layout_status->addWidget(_statusLbl[7], 1, 3); 454 458 _status->setLayout(layout_status); 455 459 … … 648 652 connect(_bns, SIGNAL(newEphBytes(int)), this, SLOT(slotEphBytes(int))); 649 653 connect(_bns, SIGNAL(newClkBytes(int)), this, SLOT(slotClkBytes(int))); 650 connect(_bns, SIGNAL(newOutBytes(int)), this, SLOT(slotOutBytes(int))); 654 connect(_bns, SIGNAL(newOutBytes1(int)), this, SLOT(slotOutBytes1(int))); 655 connect(_bns, SIGNAL(newOutBytes2(int)), this, SLOT(slotOutBytes2(int))); 651 656 652 657 _bns->start(); … … 661 666 updateStatus(1, nBytes); 662 667 } 663 void bnsWindow::slotOutBytes (int nBytes) {668 void bnsWindow::slotOutBytes1(int nBytes) { 664 669 updateStatus(2, nBytes); 670 } 671 void bnsWindow::slotOutBytes2(int nBytes) { 672 updateStatus(3, nBytes); 665 673 } 666 674 -
TabularUnified trunk/BNS/bnswindow.h ¶
r1249 r1258 44 44 void slotEphBytes(int nBytes); 45 45 void slotClkBytes(int nBytes); 46 void slotOutBytes(int nBytes); 46 void slotOutBytes1(int nBytes); 47 void slotOutBytes2(int nBytes); 47 48 48 49 protected: … … 102 103 //QWidget* _status; 103 104 QGroupBox* _status; 104 QLabel* _statusLbl[ 6];105 double _statusCnt[ 3];105 QLabel* _statusLbl[8]; 106 double _statusCnt[4]; 106 107 QMutex _mutex; 107 108
Note:
See TracChangeset
for help on using the changeset viewer.