Changeset 7230 in ntrip for trunk/BNC/src/bncipport.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/bncipport.cpp

    r7220 r7230  
    6161  _ipLatLineEdit = new QLineEdit();
    6262  _ipLonLineEdit = new QLineEdit();
     63  _ipCountryLineEdit = new QLineEdit();
    6364
    6465  int ww = QFontMetrics(font()).width('w');
     
    6869  _ipLatLineEdit->setMaximumWidth(9*ww);
    6970  _ipLonLineEdit->setMaximumWidth(9*ww);
     71  _ipCountryLineEdit->setMaximumWidth(9*ww);
    7072
    7173  // WhatsThis
     
    7779  _ipLatLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>"));
    7880  _ipLonLineEdit->setWhatsThis(tr("<p>Enter the approximate longitude of the stream providing receiver in degrees.<p></p>Example: -15.20</p>"));
     81  _ipCountryLineEdit->setWhatsThis(tr("<p>Specify the country code.</p><p>Recommended is the ISO 3166-1 alpha-3a code.<br>Example: DEU</p>"));
    7982
    8083  editLayout->addWidget(new QLabel(tr("Host")),      0, 0, Qt::AlignRight);
     
    9093  editLayout->addWidget(new QLabel(tr("Longitude")), 2, 2, Qt::AlignRight);
    9194  editLayout->addWidget(_ipLonLineEdit,              2, 3);
     95  editLayout->addWidget(new QLabel(tr("Country")),   3, 0, Qt::AlignRight);
     96  editLayout->addWidget(_ipCountryLineEdit,          3, 1);
    9297
    9398  mainLayout->addLayout(editLayout);
     
    132137       !_ipMountLineEdit->text().isEmpty()  &&
    133138       !_ipFormatLineEdit->text().isEmpty() &&
     139       !_ipCountryLineEdit->text().isEmpty() &&
    134140       !_ipLatLineEdit->text().isEmpty()    &&
    135141       !_ipLonLineEdit->text().isEmpty() ) {
     
    139145                                + _ipMountLineEdit->text() + " "
    140146                                + _ipFormatLineEdit->text() + " "
     147                                + _ipCountryLineEdit->text() + " "
    141148                                + _ipLatLineEdit->text() + " "
    142149                                + _ipLonLineEdit->text() + " "
Note: See TracChangeset for help on using the changeset viewer.