Changeset 1170 in ntrip for trunk/BNC/bncwindow.cpp


Ignore:
Timestamp:
Oct 27, 2008, 3:35:54 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r1168 r1170  
    145145  if (ii != -1) {
    146146    _rnxIntrComboBox->setCurrentIndex(ii);
     147  }
     148  _onTheFlyComboBox = new QComboBox();
     149  _onTheFlyComboBox->setMaximumWidth(9*ww);
     150  _onTheFlyComboBox->setEditable(false);
     151  _onTheFlyComboBox->addItems(QString("1 min,1 hour,1 day").split(","));
     152  ii = _onTheFlyComboBox->findText(settings.value("onTheFlyInterval").toString());
     153  if (ii != -1) {
     154    _onTheFlyComboBox->setCurrentIndex(ii);
    147155  }
    148156  _ephIntrComboBox    = new QComboBox();
     
    372380  gLayout->addWidget(new QLabel("Append files")    ,1,0 );
    373381  gLayout->addWidget(_rnxAppendCheckBox,     1,1  );
    374   gLayout->addWidget(new QLabel("General settings for logfile and file handling."),2, 0, 1, 2, Qt::AlignLeft);
    375   gLayout->addWidget(new QLabel("    "),3,0);
     382  gLayout->addWidget(new QLabel("Reread Configuration every")    ,2,0 );
     383  gLayout->addWidget(_onTheFlyComboBox,     2,1  );
     384  gLayout->addWidget(new QLabel("General settings for logfile and file handling."),3, 0, 1, 2, Qt::AlignLeft);
    376385  gLayout->addWidget(new QLabel("    "),4,0);
    377386  gLayout->addWidget(new QLabel("    "),5,0);
     387  gLayout->addWidget(new QLabel("    "),6,0);
    378388  ggroup->setLayout(gLayout);
    379389
     
    613623  settings.setValue("rnxScript",   _rnxScrpLineEdit->text());
    614624  settings.setValue("rnxIntr",     _rnxIntrComboBox->currentText());
     625  settings.setValue("onTheFlyInterval", _onTheFlyComboBox->currentText());
    615626  settings.setValue("ephIntr",     _ephIntrComboBox->currentText());
    616627  settings.setValue("corrIntr",    _corrIntrComboBox->currentText());
     
    675686          this, SLOT(slotMessage(QByteArray)));
    676687
    677   slotMessage("============ Start BNC ============");
     688  _caster->slotReadMountpoints();
     689
     690  slotMessage                 ("============ Start BNC ============");
    678691  ((bncApp*)qApp)->slotMessage("============ Start BNC ============");
    679 
    680   for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) {
    681     QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() +
    682               "@"  + _mountPointsTable->item(iRow, 1)->text() );
    683 
    684     QByteArray format = _mountPointsTable->item(iRow, 2)->text().toAscii();
    685 
    686     QByteArray latitude = _mountPointsTable->item(iRow, 3)->text().toAscii();
    687     QByteArray longitude = _mountPointsTable->item(iRow, 4)->text().toAscii();
    688     QByteArray nmea = _mountPointsTable->item(iRow, 5)->text().toAscii();
    689 
    690     bncGetThread* getThread = new bncGetThread(url, format, latitude, longitude, nmea, iRow);
    691 
    692     connect(getThread, SIGNAL(newMessage(QByteArray)),
    693             this, SLOT(slotMessage(QByteArray)));
    694     connect(getThread, SIGNAL(newMessage(QByteArray)),
    695             (bncApp*)qApp, SLOT(slotMessage(QByteArray)));
    696 
    697     connect(getThread, SIGNAL(newBytes(QByteArray, double)),
    698             (bncTableItem*) _mountPointsTable->item(iRow, 6),
    699             SLOT(slotNewBytes(QByteArray, double)));
    700 
    701     _caster->addGetThread(getThread);
    702 
    703     getThread->start();
    704   }
    705692}
    706693
Note: See TracChangeset for help on using the changeset viewer.