Changeset 1409 in ntrip for trunk/BNC/bncwindow.cpp
- Timestamp:
- Dec 30, 2008, 8:53:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r1405 r1409 60 60 int ww = QFontMetrics(this->font()).width('w'); 61 61 62 static const QStringList labels = QString("account, broadcaster:port /mountpoint,decoder,lat,long,nmea,ntrip,bytes").split(",");62 static const QStringList labels = QString("account, Streams: broadcaster:port/mountpoint,decoder,lat,long,nmea,ntrip,bytes").split(","); 63 63 64 64 setMinimumSize(80*ww, 65*ww); … … 89 89 connect(_actQuit, SIGNAL(triggered()), SLOT(close())); 90 90 91 _actAddMountPoints = new QAction(tr("Add & Mountpoints"),this);91 _actAddMountPoints = new QAction(tr("Add &Streams"),this); 92 92 connect(_actAddMountPoints, SIGNAL(triggered()), SLOT(slotAddMountPoints())); 93 93 94 _actDeleteMountPoints = new QAction(tr("&Delete Mountpoints"),this);94 _actDeleteMountPoints = new QAction(tr("&Delete Streams"),this); 95 95 connect(_actDeleteMountPoints, SIGNAL(triggered()), SLOT(slotDeleteMountPoints())); 96 96 _actDeleteMountPoints->setEnabled(false); … … 114 114 _proxyPortLineEdit->setMaximumWidth(9*ww); 115 115 _miscMountLineEdit = new QLineEdit(settings.value("miscMount").toString()); 116 _miscMountLineEdit->setMaximumWidth(20*ww);117 116 _scanRTCMCheckBox = new QCheckBox(); 118 117 _scanRTCMCheckBox->setCheckState(Qt::CheckState( … … 330 329 _adviseFailSpinBox->setWhatsThis(tr("<p>An advisory note is generated when no (or only corrupted) observations are seen throughout the 'Failure threshold' time span. A value of 15 min (default) is recommended.</p><p>A value of zero '0' means that for any stream failure, however short, BNC immediately generates an advisory note.</p><p>Note that for using this function you need to specify the 'Observation rate'.</p>")); 331 330 _makePauseCheckBox->setWhatsThis(tr("<p>In case of a continuously corrupted stream, the decoding process can be paused and decodings are then attempted again at decreasing rate till the stream hopefully recovers. Tick 'Pause' to activate this function.</p><p>Do not tick 'Pause' (default) in order to prevent BNC from making any decoding pause. Be aware that this may incur an unnecessary workload.</p><p>Note that this function is only effective if an 'Observation rate' is specified.</p>")); 332 _logFileLineEdit->setWhatsThis(tr("Records of BNC's activities are shown in the Logsection on the bottom of this window. They can be saved into a file when a valid path is specified in the 'Logfile (full path)' field."));331 _logFileLineEdit->setWhatsThis(tr("Records of BNC's activities are shown in the 'Logs' section on the bottom of this window. They can be saved into a file when a valid path is specified in the 'Logfile (full path)' field.")); 333 332 _adviseScriptLineEdit->setWhatsThis(tr("<p>Specify the full path to a script or batch file to handle advisory notes generated in the event of corrupted streams or stream outages. The affected mountpoint and one of the comments 'Begin_Outage', 'End_Outage', 'Begin_Corrupted', or 'End_Corrupted' are passed on to the script as command line parameters.</p><p>The script can be configured to send an email to BNC's operator and/or to the affected stream provider. An empty option field (default) or invalid path means that you don't want to use this option.</p><p> Note that for using this function you need to specify the 'Observation rate'.</p>")); 334 _perfIntrComboBox->setWhatsThis(tr("<p>BNC can average latencies per stream over a certain period of GPS time. The resulting mean latencies are recorded in the Log file/section at the end of each 'Log latency' interval together with results of a statistical evaluation (approximate number of covered epochs, data gaps).</p><p>Select a 'Log latency' interval or select the empty option field if you do not want BNC to log latencies and statistical information.</p>"));335 _mountPointsTable->setWhatsThis(tr("<p>Streams selected for retrieval are listed in the ' Mountpoints' section. Clicking on 'Add Mountpoints' button will open a window that allows the user to select data streams from an NTRIP broadcaster according to their mountpoints. To remove a stream from the 'Mountpoints' list, highlight it by clicking on it and hit the 'Delete Mountpoints' button. You can also remove multiple mountpoints by highlighting them using +Shift and +Ctrl.</p><p>BNC automatically allocates one of its internal decoders to a stream based on the stream's 'format' and 'format-details' as given in the sourcetable. However, there might be cases where you need to override the automatic selection due to incorrect sourcetable for example. BNC allows users to manually select the required decoder by editing the decoder string. Double click on the 'decoder' field, enter your preferred decoder and then hit Enter. The accepted decoder strings are 'RTCM_2.x', 'RTCM_3.x', and 'RTIGS'.</p><p>In case you need to log the raw data as is, BNC allows users to by-pass its decoders and and directly save the input in daily log files. To do this specify the decoder string as 'ZERO'.</p><p>BNC can also retrieve streams from virtual reference stations (VRS). To initiate these streams, an approximate rover position needs to be sent in NMEA GGA message to the NTRIP broadcaster. In return, a user-specific data stream is generated, typically by a Network-RTK software. This stream is customized to the exact latitude and longitude as shown in the 'lat' and 'long' columns under 'Mountpoints'. These VRS streams are indicated by a 'yes' in the 'nmea' column under 'Mountpoints' as well as in the sourcetable. The default 'lat' and 'long' values are taken from the sourcetable. However, in most cases you would probably want to change this according to your requirement. Double click on 'lat' and 'long' fields, enter the values you wish to send and then hit Enter. The format is in positive north latitude degrees (e.g. for northern hemisphere: 52.436, for southern hemisphere: -24.567) and eastern longitude degrees (e.g.: 358.872 or -1.128). Only mountpoints with a 'yes' in its 'nmea' column can be edited. The position should preferably be a point within the coverage of the network.</p>"));336 _log->setWhatsThis(tr("Records of BNC's activities are shown in the Logsection. The message log covers the communication status between BNC and the NTRIP broadcaster as well as any problems that occur in the communication link, stream availability, stream delay, stream conversion etc."));333 _perfIntrComboBox->setWhatsThis(tr("<p>BNC can average latencies per stream over a certain period of GPS time. The resulting mean latencies are recorded in the 'Logs' section at the end of each 'Log latency' interval together with results of a statistical evaluation (approximate number of covered epochs, data gaps).</p><p>Select a 'Log latency' interval or select the empty option field if you do not want BNC to log latencies and statistical information.</p>")); 334 _mountPointsTable->setWhatsThis(tr("<p>Streams selected for retrieval are listed in the 'Streams' section. Clicking on 'Add Streams' button will open a window that allows the user to select data streams from an NTRIP broadcaster according to their mountpoints. To remove a stream from the 'Streams' list, highlight it by clicking on it and hit the 'Delete Streams' button. You can also remove multiple streams by highlighting them using +Shift and +Ctrl.</p><p>BNC automatically allocates one of its internal decoders to a stream based on the stream's 'format' as given in the sourcetable. BNC allows users to change this selection by editing the decoder string. Double click on the 'decoder' field, enter your preferred decoder and then hit Enter. The accepted decoder strings are 'RTCM_2.x', 'RTCM_3.x', and 'RTIGS'.</p><p>In case you need to log the raw data as is, BNC allows users to by-pass its decoders and and directly save the input in daily log files. To do this specify the decoder string as 'ZERO'.</p><p>BNC can also retrieve streams from virtual reference stations (VRS). VRS streams are indicated by a 'yes' in the 'nmea' column. To initiate these streams, the approximate latitude/longitude rover position is sent to the NTRIP broadcaster. The default values can be change according to your requirement. Double click on 'lat' and 'long' fields, enter the values you wish to send and then hit Enter.</p>")); 335 _log->setWhatsThis(tr("Records of BNC's activities are shown in the 'Logs' section. The message log covers the communication status between BNC and the NTRIP broadcaster as well as any problems that occur in the communication link, stream availability, stream delay, stream conversion etc.")); 337 336 _ephV3CheckBox->setWhatsThis(tr("The default format for RINEX Navigation files containing Broadcast Ephemeris is RINEX Version 2.11. Select 'Version 3' if you want to save the ephemeris in RINEX Version 3 format.")); 338 337 _rnxV3CheckBox->setWhatsThis(tr("The default format for RINEX Observation files is RINEX Version 2.11. Select 'Version 3' if you want to save the observations in RINEX Version 3 format.")); … … 352 351 setCentralWidget(_canvas); 353 352 354 QTabWidget* aogroup = new QTabWidget(); 353 //QTabWidget* aogroup = new QTabWidget(); 354 aogroup = new QTabWidget(); 355 355 QWidget* pgroup = new QWidget(); 356 356 QWidget* ggroup = new QWidget(); … … 373 373 374 374 QGridLayout* pLayout = new QGridLayout; 375 pLayout->setColumnMinimumWidth(0,1 4*ww);376 pLayout->addWidget(new QLabel("Proxy host"), 0,0, Qt::AlignLeft);377 pLayout->addWidget(_proxyHostLineEdit, 0, 1);378 pLayout->addWidget(new QLabel("Proxy port"), 1,0, Qt::AlignLeft);379 pLayout->addWidget(_proxyPortLineEdit, 1,1);380 pLayout->addWidget(new QLabel("Settings for the proxy in protected networks, leave the boxes blank if none."),2, 0, 1, 2, Qt::AlignLeft);375 pLayout->setColumnMinimumWidth(0,13*ww); 376 pLayout->addWidget(new QLabel("Proxy host"), 0, 0); 377 pLayout->addWidget(_proxyHostLineEdit, 0, 1, 1,10); 378 pLayout->addWidget(new QLabel("Proxy port"), 1, 0); 379 pLayout->addWidget(_proxyPortLineEdit, 1, 1); 380 pLayout->addWidget(new QLabel("Settings for the proxy in protected networks, leave boxes blank if none."),2, 0, 1, 50, Qt::AlignLeft); 381 381 pLayout->addWidget(new QLabel(" "),3,0); 382 382 pLayout->addWidget(new QLabel(" "),4,0); … … 445 445 QGridLayout* rLayout = new QGridLayout; 446 446 rLayout->setColumnMinimumWidth(0,14*ww); 447 rLayout->addWidget(new QLabel("Mountpoint"), 0, 0 , Qt::AlignLeft);448 rLayout->addWidget(_miscMountLineEdit, 0, 1, 1,15,Qt::AlignLeft);447 rLayout->addWidget(new QLabel("Mountpoint"), 0, 0); 448 rLayout->addWidget(_miscMountLineEdit, 0, 1, 1,7); 449 449 rLayout->addWidget(new QLabel("Log latency"), 1, 0); 450 450 rLayout->addWidget(_perfIntrComboBox, 1, 1); 451 451 rLayout->addWidget(new QLabel("Scan RTCM"), 2, 0); 452 452 rLayout->addWidget(_scanRTCMCheckBox, 2, 1); 453 rLayout->addWidget(new QLabel("Log latencies or scan RTCM streams for numbers of message types and antenna information."),3, 0, 1, 4, Qt::AlignLeft);453 rLayout->addWidget(new QLabel("Log latencies or scan RTCM streams for numbers of message types and antenna information."),3, 0,1,30); 454 454 rLayout->addWidget(new QLabel(" "), 4, 0); 455 455 rLayout->addWidget(new QLabel(" "), 5, 0); … … 508 508 sergroup->setLayout(serLayout); 509 509 510 QVBoxLayout* mLayout = new QVBoxLayout; 511 mLayout->addWidget(aogroup); 512 mLayout->addWidget(_mountPointsTable); 513 mLayout->addWidget(_log); 510 //QVBoxLayout* mLayout = new QVBoxLayout; 511 //mLayout->addWidget(aogroup); 512 //mLayout->addWidget(_mountPointsTable); 513 //mLayout->addWidget(_log); 514 QGridLayout* mLayout = new QGridLayout; 515 aogroup->setCurrentIndex(settings.value("startTab").toInt()); 516 mLayout->addWidget(aogroup, 0,0); 517 mLayout->addWidget(_mountPointsTable, 1,0); 518 mLayout->addWidget(new QLabel(" Logs:"),2,0); 519 mLayout->addWidget(_log, 3,0); 514 520 515 521 _canvas->setLayout(mLayout); … … 759 765 settings.setValue("miscMount", _miscMountLineEdit->text()); 760 766 settings.setValue("scanRTCM", _scanRTCMCheckBox->checkState()); 761 settings.setValue("serialPortName", _serialPortNameLineEdit->text()); 762 settings.setValue("serialMountPoint", _serialMountPointLineEdit->text()); 763 settings.setValue("serialBaudRate", _serialBaudRateComboBox->currentText()); 764 settings.setValue("serialParity", _serialParityComboBox->currentText()); 765 settings.setValue("serialDataBits", _serialDataBitsComboBox->currentText()); 766 settings.setValue("serialStopBits", _serialStopBitsComboBox->currentText()); 767 settings.setValue("serialAutoNMEA", _serialAutoNMEACheckBox->checkState()); 767 settings.setValue("serialPortName", _serialPortNameLineEdit->text()); 768 settings.setValue("serialMountPoint",_serialMountPointLineEdit->text()); 769 settings.setValue("serialBaudRate", _serialBaudRateComboBox->currentText()); 770 settings.setValue("serialParity", _serialParityComboBox->currentText()); 771 settings.setValue("serialDataBits", _serialDataBitsComboBox->currentText()); 772 settings.setValue("serialStopBits", _serialStopBitsComboBox->currentText()); 773 settings.setValue("serialAutoNMEA", _serialAutoNMEACheckBox->checkState()); 774 settings.setValue("startTab", aogroup->currentIndex()); 768 775 769 776 QStringList mountPoints;
Note:
See TracChangeset
for help on using the changeset viewer.