Changeset 1789 in ntrip for trunk/BNC


Ignore:
Timestamp:
Apr 8, 2009, 11:01:34 PM (16 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncudpport.cpp

    r1782 r1789  
    5353  QGridLayout* editLayout = new QGridLayout;
    5454
    55   setWindowTitle(tr("Add Stream from TCP/IP Port"));
     55  setWindowTitle(tr("Add Stream from UDP Port"));
    5656
    57   _ipHostLineEdit = new QLineEdit();
    5857  _ipPortLineEdit = new QLineEdit();
    5958  _ipMountLineEdit = new QLineEdit();
     
    7170  // WhatsThis
    7271  // ---------
    73   _ipHostLineEdit->setWhatsThis(tr("<p>If no proxy server is involed in the communication, BNC allows to retrieve streams via TCP directly from an IP address without using the NTRIP transport protocol.</p><p>Enter the IP address of the stream providing host.</p>"));
    74   _ipPortLineEdit->setWhatsThis(tr("<p>Enter the IP port number of the stream providing host.</p>"));
     72  _ipPortLineEdit->setWhatsThis(tr("<p>BNC allows to pick up streams arriving directly at one of the local host's UDP ports without using the NTRIP transport protocol.</p><p>Enter the local port number where the UDP stream arrives.</p>"));
    7573  _ipMountLineEdit->setWhatsThis(tr("<p>Specify a mountpoint.</p><p>Recommended is a 4-character station ID.<br>Example: FFMJ</p>"));
    7674  _ipFormatLineEdit->setWhatsThis(tr("<p>Specify the stream format.</p><p>Available options are 'RTCM_2', 'RTCM_3', 'RTIGS', and 'ZERO'.</p>"));
     
    7876  _ipLonLineEdit->setWhatsThis(tr("<p>Enter the approximate longitude of the stream providing receiver in degrees.<p></p>Example: -15.20</p>"));
    7977
    80   editLayout->addWidget(new QLabel(tr("Host")),      0, 0, Qt::AlignRight);
    81   editLayout->addWidget(_ipHostLineEdit,             0, 1);
    82   editLayout->addWidget(new QLabel(tr("Port")),      0, 2, Qt::AlignRight);
    83   editLayout->addWidget(_ipPortLineEdit,             0, 3);
     78  editLayout->addWidget(new QLabel(tr("UDP Port")),  0, 0, Qt::AlignRight);
     79  editLayout->addWidget(_ipPortLineEdit,             0, 1);
    8480  editLayout->addWidget(new QLabel(tr("Mountpoint")),1, 0, Qt::AlignRight);
    8581  editLayout->addWidget(_ipMountLineEdit,            1, 1);
     
    128124  QStringList* mountPoints = new QStringList;
    129125
    130   if ( !_ipHostLineEdit->text().isEmpty()   &&
    131        !_ipPortLineEdit->text().isEmpty()   &&
     126  if ( !_ipPortLineEdit->text().isEmpty()   &&
    132127       !_ipMountLineEdit->text().isEmpty()  &&
    133128       !_ipFormatLineEdit->text().isEmpty() &&
     
    135130       !_ipLonLineEdit->text().isEmpty() ) {
    136131
    137     mountPoints->push_back("//" + _ipHostLineEdit->text() + ":"
     132    mountPoints->push_back("//127.0.0.1:"
    138133                                + _ipPortLineEdit->text() + "/"
    139134                                + _ipMountLineEdit->text() + " "
Note: See TracChangeset for help on using the changeset viewer.