Changeset 1926 in ntrip
- Timestamp:
- Nov 11, 2009, 7:29:17 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncwindow.cpp ¶
r1925 r1926 66 66 _MPName.append(url.path().toAscii()); _bytesMP.append(0); 67 67 } 68 connect(&_timer, SIGNAL(timeout()), this, SLOT(update())); 69 _timer.start(1000); 68 70 } 69 71 … … 71 73 //////////////////////////////////////////////////////////////////////////// 72 74 FWidget::~FWidget() { 75 _timer.stop(); 73 76 } 74 77 75 78 // 76 79 //////////////////////////////////////////////////////////////////////////// 77 void FWidget::nextAnimationFrame() { 80 void FWidget::slotNextAnimationFrame(const QByteArray staID, double nbyte) { 81 _timer.stop(); 82 cout << staID.data() << " " << nbyte << endl; 78 83 update(); 84 _timer.start(1000); 79 85 } 80 86 … … 786 792 QGridLayout* mLayout = new QGridLayout; 787 793 _aogroup->setCurrentIndex(settings.value("startTab").toInt()); 788 mLayout->addWidget(_aogroup, 794 mLayout->addWidget(_aogroup, 0,0); 789 795 mLayout->addWidget(_mountPointsTable, 1,0); 790 791 QTimer *timer = new QTimer(this); 792 connect(timer, SIGNAL(timeout()), _Figure1, SLOT(nextAnimationFrame())); 793 mLayout->addWidget(_loggroup, 2,0); 794 timer->start(100); 796 mLayout->addWidget(_loggroup, 2,0); 795 797 796 798 _canvas->setLayout(mLayout); … … 1302 1304 _mountPointsTable->item(iRow, 4)->text() == thread->longitude() ) { 1303 1305 ((bncTableItem*) _mountPointsTable->item(iRow, 7))->setGetThread(thread); 1306 connect(thread, SIGNAL(newBytes(QByteArray, double)), 1307 _Figure1, SLOT(slotNextAnimationFrame(QByteArray, double))); 1308 1304 1309 break; 1305 1310 } -
TabularUnified trunk/BNC/bncwindow.h ¶
r1925 r1926 38 38 ~FWidget(); 39 39 public slots: 40 void nextAnimationFrame();40 void slotNextAnimationFrame(const QByteArray staID, double nbyte); 41 41 protected: 42 42 void paintEvent(QPaintEvent *event); … … 44 44 QList<QByteArray> _MPName; 45 45 QList<double> _bytesMP; 46 QTimer _timer; 46 47 }; 47 48
Note:
See TracChangeset
for help on using the changeset viewer.