Changeset 7230 in ntrip for trunk/BNC/src/bncudpport.cpp


Ignore:
Timestamp:
Aug 18, 2015, 12:50:22 PM (9 years ago)
Author:
stuerze
Message:

country code is considerred during mountpoint setup from tcp port, udp port and serial port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncudpport.cpp

    r7223 r7230  
    6060  _ipLatLineEdit = new QLineEdit();
    6161  _ipLonLineEdit = new QLineEdit();
     62  _ipCountryLineEdit = new QLineEdit();
    6263
    6364  int ww = QFontMetrics(font()).width('w');
     
    6768  _ipLatLineEdit->setMaximumWidth(9*ww);
    6869  _ipLonLineEdit->setMaximumWidth(9*ww);
     70  _ipCountryLineEdit->setMaximumWidth(9*ww);
    6971
    7072  // WhatsThis
     
    7577  _ipLatLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>"));
    7678  _ipLonLineEdit->setWhatsThis(tr("<p>Enter the approximate longitude of the stream providing receiver in degrees.<p></p>Example: -15.20</p>"));
     79  _ipCountryLineEdit->setWhatsThis(tr("<p>Specify the country code.</p><p>Recommended is the ISO 3166-1 alpha-3a code.<br>Example: DEU</p>"));
    7780
    7881  editLayout->addWidget(new QLabel(tr("UDP Port")),  0, 0, Qt::AlignRight);
     
    8689  editLayout->addWidget(new QLabel(tr("Longitude")), 2, 2, Qt::AlignRight);
    8790  editLayout->addWidget(_ipLonLineEdit,              2, 3);
     91  editLayout->addWidget(new QLabel(tr("Country")),   3, 0, Qt::AlignRight);
     92  editLayout->addWidget(_ipCountryLineEdit,          3, 1);
    8893
    8994  mainLayout->addLayout(editLayout);
     
    127132       !_ipMountLineEdit->text().isEmpty()  &&
    128133       !_ipFormatLineEdit->text().isEmpty() &&
     134       !_ipCountryLineEdit->text().isEmpty() &&
    129135       !_ipLatLineEdit->text().isEmpty()    &&
    130136       !_ipLonLineEdit->text().isEmpty() ) {
     
    134140                                + _ipMountLineEdit->text() + " "
    135141                                + _ipFormatLineEdit->text() + " "
     142                                + _ipCountryLineEdit->text() + " "
    136143                                + _ipLatLineEdit->text() + " "
    137144                                + _ipLonLineEdit->text() + " "
Note: See TracChangeset for help on using the changeset viewer.