Changeset 7230 in ntrip
- Timestamp:
- Aug 18, 2015, 12:50:22 PM (9 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncipport.cpp
r7220 r7230 61 61 _ipLatLineEdit = new QLineEdit(); 62 62 _ipLonLineEdit = new QLineEdit(); 63 _ipCountryLineEdit = new QLineEdit(); 63 64 64 65 int ww = QFontMetrics(font()).width('w'); … … 68 69 _ipLatLineEdit->setMaximumWidth(9*ww); 69 70 _ipLonLineEdit->setMaximumWidth(9*ww); 71 _ipCountryLineEdit->setMaximumWidth(9*ww); 70 72 71 73 // WhatsThis … … 77 79 _ipLatLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>")); 78 80 _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>")); 79 82 80 83 editLayout->addWidget(new QLabel(tr("Host")), 0, 0, Qt::AlignRight); … … 90 93 editLayout->addWidget(new QLabel(tr("Longitude")), 2, 2, Qt::AlignRight); 91 94 editLayout->addWidget(_ipLonLineEdit, 2, 3); 95 editLayout->addWidget(new QLabel(tr("Country")), 3, 0, Qt::AlignRight); 96 editLayout->addWidget(_ipCountryLineEdit, 3, 1); 92 97 93 98 mainLayout->addLayout(editLayout); … … 132 137 !_ipMountLineEdit->text().isEmpty() && 133 138 !_ipFormatLineEdit->text().isEmpty() && 139 !_ipCountryLineEdit->text().isEmpty() && 134 140 !_ipLatLineEdit->text().isEmpty() && 135 141 !_ipLonLineEdit->text().isEmpty() ) { … … 139 145 + _ipMountLineEdit->text() + " " 140 146 + _ipFormatLineEdit->text() + " " 147 + _ipCountryLineEdit->text() + " " 141 148 + _ipLatLineEdit->text() + " " 142 149 + _ipLonLineEdit->text() + " " -
trunk/BNC/src/bncipport.h
r4278 r7230 51 51 QLineEdit* _ipLatLineEdit; 52 52 QLineEdit* _ipLonLineEdit; 53 QLineEdit* _ipCountryLineEdit; 53 54 54 55 QPushButton* _buttonGet; -
trunk/BNC/src/bncserialport.cpp
r7221 r7230 65 65 _serialLatLineEdit = new QLineEdit(); 66 66 _serialLonLineEdit = new QLineEdit(); 67 _serialCountryLineEdit = new QLineEdit(); 67 68 68 69 _serialBaudRateComboBox->addItems(QString("110,300,600," … … 84 85 _serialParityComboBox->setMaximumWidth(9*ww); 85 86 _serialStopBitsComboBox->setMaximumWidth(5*ww); 86 _serialLatLineEdit->setMaximumWidth( 9*ww);87 _serialLatLineEdit->setMaximumWidth(11*ww); 87 88 _serialLonLineEdit->setMaximumWidth(9*ww); 88 89 _serialFormatLineEdit->setMaximumWidth(9*ww); 90 _serialCountryLineEdit->setMaximumWidth(11*ww); 89 91 90 92 // WhatsThis … … 100 102 _serialLatLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>")); 101 103 _serialLonLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>")); 104 _serialCountryLineEdit->setWhatsThis(tr("<p>Specify the country code.</p><p>Recommended is the ISO 3166-1 alpha-3a code.<br>Example: DEU</p>")); 102 105 103 106 editLayout->addWidget(new QLabel(tr("Mountpoint")), 0, 0, Qt::AlignRight); … … 109 112 editLayout->addWidget(new QLabel(tr("Longitude")), 1, 2, Qt::AlignRight); 110 113 editLayout->addWidget(_serialLonLineEdit, 1, 3); 111 editLayout->addWidget(new QLabel(tr("Port name")), 2, 0, Qt::AlignRight); 112 editLayout->addWidget(_serialPortLineEdit, 2, 1); 113 editLayout->addWidget(new QLabel(tr("Baud rate")), 2, 2, Qt::AlignRight); 114 editLayout->addWidget(_serialBaudRateComboBox, 2, 3); 115 editLayout->addWidget(new QLabel(tr("Data bits")), 3, 0, Qt::AlignRight); 116 editLayout->addWidget(_serialDataBitsComboBox, 3, 1); 117 editLayout->addWidget(new QLabel(tr("Parity")), 3, 2, Qt::AlignRight); 118 editLayout->addWidget(_serialParityComboBox, 3, 3); 119 editLayout->addWidget(new QLabel(tr("Stop bits")), 4, 0, Qt::AlignRight); 120 editLayout->addWidget(_serialStopBitsComboBox, 4, 1); 121 editLayout->addWidget(new QLabel(tr("Flow control")),4, 2, Qt::AlignRight); 122 editLayout->addWidget(_serialFlowControlComboBox, 4, 3); 114 editLayout->addWidget(new QLabel(tr("Country")), 2, 0, Qt::AlignRight); 115 editLayout->addWidget(_serialCountryLineEdit, 2, 1); 116 editLayout->addWidget(new QLabel(tr("Port name")), 3, 0, Qt::AlignRight); 117 editLayout->addWidget(_serialPortLineEdit, 3, 1); 118 editLayout->addWidget(new QLabel(tr("Baud rate")), 3, 2, Qt::AlignRight); 119 editLayout->addWidget(_serialBaudRateComboBox, 3, 3); 120 editLayout->addWidget(new QLabel(tr("Data bits")), 4, 0, Qt::AlignRight); 121 editLayout->addWidget(_serialDataBitsComboBox, 4, 1); 122 editLayout->addWidget(new QLabel(tr("Parity")), 4, 2, Qt::AlignRight); 123 editLayout->addWidget(_serialParityComboBox, 4, 3); 124 editLayout->addWidget(new QLabel(tr("Stop bits")), 5, 0, Qt::AlignRight); 125 editLayout->addWidget(_serialStopBitsComboBox, 5, 1); 126 editLayout->addWidget(new QLabel(tr("Flow control")),5, 2, Qt::AlignRight); 127 editLayout->addWidget(_serialFlowControlComboBox, 5, 3); 123 128 124 129 mainLayout->addLayout(editLayout); … … 168 173 !_serialPortLineEdit->text().isEmpty() && 169 174 !_serialFormatLineEdit->text().isEmpty() && 175 !_serialCountryLineEdit->text().isEmpty() && 170 176 !_serialLatLineEdit->text().isEmpty() && 171 177 !_serialLonLineEdit->text().isEmpty() ) { … … 179 185 + _serialMountpointLineEdit->text() + " " 180 186 + _serialFormatLineEdit->text() + " " 187 + _serialCountryLineEdit->text() + " " 181 188 + _serialLatLineEdit->text() + " " 182 189 + _serialLonLineEdit->text() + " " -
trunk/BNC/src/bncserialport.h
r4278 r7230 51 51 QLineEdit* _serialLatLineEdit; 52 52 QLineEdit* _serialLonLineEdit; 53 QLineEdit* _serialCountryLineEdit; 53 54 QComboBox* _serialBaudRateComboBox; 54 55 QComboBox* _serialFlowControlComboBox; -
trunk/BNC/src/bncudpport.cpp
r7223 r7230 60 60 _ipLatLineEdit = new QLineEdit(); 61 61 _ipLonLineEdit = new QLineEdit(); 62 _ipCountryLineEdit = new QLineEdit(); 62 63 63 64 int ww = QFontMetrics(font()).width('w'); … … 67 68 _ipLatLineEdit->setMaximumWidth(9*ww); 68 69 _ipLonLineEdit->setMaximumWidth(9*ww); 70 _ipCountryLineEdit->setMaximumWidth(9*ww); 69 71 70 72 // WhatsThis … … 75 77 _ipLatLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>")); 76 78 _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>")); 77 80 78 81 editLayout->addWidget(new QLabel(tr("UDP Port")), 0, 0, Qt::AlignRight); … … 86 89 editLayout->addWidget(new QLabel(tr("Longitude")), 2, 2, Qt::AlignRight); 87 90 editLayout->addWidget(_ipLonLineEdit, 2, 3); 91 editLayout->addWidget(new QLabel(tr("Country")), 3, 0, Qt::AlignRight); 92 editLayout->addWidget(_ipCountryLineEdit, 3, 1); 88 93 89 94 mainLayout->addLayout(editLayout); … … 127 132 !_ipMountLineEdit->text().isEmpty() && 128 133 !_ipFormatLineEdit->text().isEmpty() && 134 !_ipCountryLineEdit->text().isEmpty() && 129 135 !_ipLatLineEdit->text().isEmpty() && 130 136 !_ipLonLineEdit->text().isEmpty() ) { … … 134 140 + _ipMountLineEdit->text() + " " 135 141 + _ipFormatLineEdit->text() + " " 142 + _ipCountryLineEdit->text() + " " 136 143 + _ipLatLineEdit->text() + " " 137 144 + _ipLonLineEdit->text() + " " -
trunk/BNC/src/bncudpport.h
r4278 r7230 51 51 QLineEdit* _ipLatLineEdit; 52 52 QLineEdit* _ipLonLineEdit; 53 QLineEdit* _ipCountryLineEdit; 53 54 54 55 QPushButton* _buttonGet;
Note:
See TracChangeset
for help on using the changeset viewer.