Changeset 1926 in ntrip


Ignore:
Timestamp:
Nov 11, 2009, 7:29:17 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r1925 r1926  
    6666    _MPName.append(url.path().toAscii()); _bytesMP.append(0);
    6767  }
     68  connect(&_timer, SIGNAL(timeout()), this, SLOT(update()));
     69  _timer.start(1000);
    6870}
    6971
     
    7173////////////////////////////////////////////////////////////////////////////
    7274FWidget::~FWidget() {
     75  _timer.stop();
    7376}
    7477
    7578//
    7679////////////////////////////////////////////////////////////////////////////
    77 void FWidget::nextAnimationFrame() {
     80void FWidget::slotNextAnimationFrame(const QByteArray staID, double nbyte) {
     81  _timer.stop();
     82  cout << staID.data() << " " << nbyte << endl;
    7883  update();
     84  _timer.start(1000);
    7985}
    8086
     
    786792  QGridLayout* mLayout = new QGridLayout;
    787793  _aogroup->setCurrentIndex(settings.value("startTab").toInt());
    788   mLayout->addWidget(_aogroup,             0,0);
     794  mLayout->addWidget(_aogroup,            0,0);
    789795  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);
    795797
    796798  _canvas->setLayout(mLayout);
     
    13021304          _mountPointsTable->item(iRow, 4)->text() == thread->longitude() ) {
    13031305        ((bncTableItem*) _mountPointsTable->item(iRow, 7))->setGetThread(thread);
     1306        connect(thread, SIGNAL(newBytes(QByteArray, double)),
     1307                _Figure1, SLOT(slotNextAnimationFrame(QByteArray, double)));
     1308
    13041309        break;
    13051310      }
  • trunk/BNC/bncwindow.h

    r1925 r1926  
    3838  ~FWidget();
    3939 public slots:
    40   void nextAnimationFrame();
     40  void slotNextAnimationFrame(const QByteArray staID, double nbyte);
    4141 protected:
    4242  void paintEvent(QPaintEvent *event);
     
    4444  QList<QByteArray> _MPName;
    4545  QList<double>     _bytesMP;
     46  QTimer            _timer;
    4647};
    4748
Note: See TracChangeset for help on using the changeset viewer.