Changeset 1601 in ntrip


Ignore:
Timestamp:
Feb 17, 2009, 6:00:42 PM (15 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsettings.cpp

    r1595 r1601  
    6666    setValue("serialBaudRate",   "9600");
    6767    setValue("serialDataBits",   "8");
     68    setValue("serialFileNMEA",   "");
    6869    setValue("serialHeightNMEA", "");
    6970    setValue("serialMountPoint", "");
  • trunk/BNC/bncwindow.cpp

    r1596 r1601  
    274274    _serialAutoNMEAComboBox->setCurrentIndex(kk);
    275275  }
     276  _serialFileNMEALineEdit    = new QLineEdit(settings.value("serialFileNMEA").toString());
    276277  _serialHeightNMEALineEdit  = new QLineEdit(settings.value("serialHeightNMEA").toString());
    277278  _perfIntrComboBox    = new QComboBox();
     
    350351  _serialStopBitsComboBox->setWhatsThis(tr("<p>Select the number of 'Stop bits' for the serial link.</p><p>Note that your selection must equal the number of stop bits configured to the serial connected device. Note further that often 1 stop bit is used.</p>"));
    351352  _serialAutoNMEAComboBox->setWhatsThis(tr("<p>Concerning virtual reference stations (VRS):<p></p>Select 'Auto' to automatically forward NMEA GGA messages coming from your serial connected device to the NTRIP broadcaster.</p><p>Note that this replaces the 'Manual' simulation of an initial NMEA GGA message based on the approximate (editable) VRS latitude/longitude from the broadcaster's sourcetable and an approximate VRS height to be specified.</p><p>The setting of this option is ignored in case of streams coming from physical reference stations.</p>"));
    352   _serialHeightNMEALineEdit->setWhatsThis(tr("<p>Concerning virtual reference stations (VRS):<p></p>Specify an approximate 'Height' in meter for your VRS to simulate an inital NMEA GGA message.</p><p>The setting of this option is ignored in case of streams coming from physical reference stations.</p>"));
     353  _serialFileNMEALineEdit->setWhatsThis(tr("<p>Save NMEA.</p>"));
     354  _serialHeightNMEALineEdit->setWhatsThis(tr("<p>Concerning virtual reference stations (VRS):<p></p>Specify an approximate 'Height' above mean sea level in meter for your VRS to simulate an inital NMEA GGA message.</p><p>The setting of this option is ignored in case of streams coming from physical reference stations.</p>"));
    353355
    354356  // Canvas with Editable Fields
     
    613615  serLayout->addWidget(new QLabel("NMEA"),                        4,0);
    614616  serLayout->addWidget(_serialAutoNMEAComboBox,                   4,1);
    615   serLayout->addWidget(new QLabel("Height"),                      4,2, Qt::AlignRight);
    616   serLayout->addWidget(_serialHeightNMEALineEdit,                 4,3);
     617  serLayout->addWidget(new QLabel("File (full path)"),            4,2, Qt::AlignRight);
     618  serLayout->addWidget(_serialFileNMEALineEdit,                   4,3,1,25);
     619  serLayout->addWidget(new QLabel("Height"),                      4,29, Qt::AlignRight);
     620  serLayout->addWidget(_serialHeightNMEALineEdit,                 4,30);
    617621  serLayout->addWidget(new QLabel("Serial port settings to feed a serial connected device."),5,0,1,30);
    618622
     
    628632    _serialStopBitsComboBox->setStyleSheet("background-color: lightGray");
    629633    _serialAutoNMEAComboBox->setStyleSheet("background-color: lightGray");
     634    _serialFileNMEALineEdit->setStyleSheet("background-color: lightGray");
    630635    _serialHeightNMEALineEdit->setStyleSheet("background-color: lightGray");
    631636    _serialPortNameLineEdit->setEnabled(false);
     
    635640    _serialStopBitsComboBox->setEnabled(false);
    636641    _serialAutoNMEAComboBox->setEnabled(false);
     642    _serialFileNMEALineEdit->setEnabled(false);
    637643    _serialHeightNMEALineEdit->setEnabled(false);
    638644  } else {
     
    640646      _serialHeightNMEALineEdit->setStyleSheet("background-color: lightGray");
    641647      _serialHeightNMEALineEdit->setEnabled(false);
     648    }
     649    if (_serialAutoNMEAComboBox->currentText() != "Auto" ) {
     650      _serialFileNMEALineEdit->setStyleSheet("background-color: lightGray");
     651      _serialFileNMEALineEdit->setEnabled(false);
    642652    }
    643653  }
     
    912922  settings.setValue("rnxV3",       _rnxV3CheckBox->checkState());
    913923  settings.setValue("scanRTCM",    _scanRTCMCheckBox->checkState());
     924  settings.setValue("serialFileNMEA",_serialFileNMEALineEdit->text());
    914925  settings.setValue("serialHeightNMEA",_serialHeightNMEALineEdit->text());
    915926  settings.setValue("serialAutoNMEA",  _serialAutoNMEAComboBox->currentText());
     
    13301341        _serialHeightNMEALineEdit->setStyleSheet("background-color: white");
    13311342        _serialHeightNMEALineEdit->setEnabled(true);
     1343        _serialFileNMEALineEdit->setStyleSheet("background-color: lightGray");
     1344        _serialFileNMEALineEdit->setEnabled(false);
    13321345      } else {
    13331346        _serialHeightNMEALineEdit->setStyleSheet("background-color: lightGray");
    13341347        _serialHeightNMEALineEdit->setEnabled(false);
     1348        _serialFileNMEALineEdit->setStyleSheet("background-color: white");
     1349        _serialFileNMEALineEdit->setEnabled(true);
    13351350      }
    13361351    } else {
     
    13411356      _serialStopBitsComboBox->setStyleSheet("background-color: lightGray");
    13421357      _serialAutoNMEAComboBox->setStyleSheet("background-color: lightGray");
     1358      _serialFileNMEALineEdit->setStyleSheet("background-color: lightGray");
    13431359      _serialHeightNMEALineEdit->setStyleSheet("background-color: lightGray");
    13441360      _serialPortNameLineEdit->setEnabled(false);
     
    13491365      _serialAutoNMEAComboBox->setEnabled(false);
    13501366      _serialHeightNMEALineEdit->setEnabled(false);
     1367      _serialFileNMEALineEdit->setEnabled(false);
    13511368    }
    13521369  }
  • trunk/BNC/bncwindow.h

    r1595 r1601  
    139139    QComboBox* _serialStopBitsComboBox;
    140140    QLineEdit* _serialHeightNMEALineEdit;
     141    QLineEdit* _serialFileNMEALineEdit;
    141142    QComboBox* _serialAutoNMEAComboBox;
    142143
Note: See TracChangeset for help on using the changeset viewer.