Changeset 3199 in ntrip
- Timestamp:
- Mar 30, 2011, 3:44:48 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncsettings.cpp
r3194 r3199 105 105 setValue("nmeaPort", ""); 106 106 setValue("combineStreams", ""); 107 setValue("cmbOutHost", "");108 setValue("cmbOutPort", "");109 setValue("cmbMountpoint", "");110 setValue("cmbPassword", "");111 setValue("cmbOutPath", "");112 setValue("cmbSP3Path", "");113 107 setValue("uploadMountpointsOut", ""); 114 108 sync(); -
trunk/BNC/bncwindow.cpp
r3198 r3199 459 459 QPushButton* addCmbRowButton = new QPushButton("Add Row"); 460 460 QPushButton* delCmbRowButton = new QPushButton("Delete"); 461 _cmbOutHostLineEdit = new QLineEdit(settings.value("cmbOutHost").toString());462 _cmbOutPortLineEdit = new QLineEdit(settings.value("cmbOutPort").toString());463 _cmbMountpointLineEdit = new QLineEdit(settings.value("cmbMountpoint").toString());464 _cmbPasswordLineEdit = new QLineEdit(settings.value("cmbPassword").toString());465 _cmbOutPathLineEdit = new QLineEdit(settings.value("cmbOutPath").toString());466 _cmbSP3PathLineEdit = new QLineEdit(settings.value("cmbSP3Path").toString());467 461 468 462 connect(_cmbTable, SIGNAL(itemSelectionChanged()), 469 463 SLOT(slotBncTextChanged())); 470 connect(_cmbMountpointLineEdit, SIGNAL(textChanged(const QString &)),471 this, SLOT(slotBncTextChanged()));472 464 473 465 // Upload Results … … 597 589 addCmbRowButton->setWhatsThis(tr("Hit 'Add Row' button to add another line to the mountpoints table.")); 598 590 delCmbRowButton->setWhatsThis(tr("Hit 'Delete' button to delete the highlighted line from the mountpoints table.")); 599 _cmbOutHostLineEdit->setWhatsThis(tr("Specify the domain name or IP number of an Ntrip Broadcaster for uploading the combination stream."));600 _cmbOutPortLineEdit->setWhatsThis(tr("Enter the listening IP port of the specified Ntrip Broadcaster for uploading the combination stream."));601 _cmbMountpointLineEdit->setWhatsThis(tr("<p>Enter a mountpoint for the combination stream. If 'Host', 'Port' and 'Password' are set, the combination stream will be uploaded to the specified Ntrip Broadcaster.</p><p>Note that the mountpoint defined here can be introduce as 'Obs Mountpoint' under the 'PPP (1)' tab to carry out a Precise Point Positioning through directly using the combination stream without prior upload to the Ntrip Broadcaster."));602 _cmbPasswordLineEdit->setWhatsThis(tr("Enter the password for uploading the combination stream to the specified Ntrip Broadcaster."));603 _cmbOutPathLineEdit->setWhatsThis(tr("<p>Specify a directory for saving the combined Broadcast Ephemeris corrections in a plain ASCII format on disk.</p><p>The length of the Broadcast Ephemeris corrections files is defined through option 'Interval' under the 'Broadcast Corrections' tab.</p>"));604 _cmbSP3PathLineEdit->setWhatsThis(tr("<p>Specify a directory for saving the combination of Broadcast Ephemeris and Broadcast Ephemeris corrections in SP3 format on disk. The SP3 file output already works with only one corrections stream specified for combination.</p><p>Note that this normally requires to also specify the full path to an 'ANTEX File' under the 'PPP (2)' tab.</p>"));605 591 606 592 // Canvas with Editable Fields … … 938 924 populateCmbTable(); 939 925 cmbLayout->addWidget(_cmbTable,0,0,6,3); 940 cmbLayout->setColumnStretch(0,1);941 cmbLayout->setColumnStretch(1,1);942 cmbLayout->setColumnStretch(2,1);943 926 944 927 cmbLayout->addWidget(addCmbRowButton,1,3); … … 947 930 connect(delCmbRowButton, SIGNAL(clicked()), this, SLOT(slotDelCmbRow())); 948 931 949 cmbLayout->setColumnStretch(4,1); 950 951 cmbLayout->addWidget(new QLabel(" Host"), 0, 4); 952 cmbLayout->addWidget(_cmbOutHostLineEdit, 0, 5); 953 cmbLayout->addWidget(new QLabel(" Port"), 0, 6); 954 _cmbOutPortLineEdit->setMaximumWidth(9*ww); 955 cmbLayout->addWidget(_cmbOutPortLineEdit, 0, 7); 956 cmbLayout->addWidget(new QLabel(" Mountpoint"), 1, 4); 957 _cmbMountpointLineEdit->setMaximumWidth(9*ww); 958 cmbLayout->addWidget(_cmbMountpointLineEdit, 1, 5); 959 cmbLayout->addWidget(new QLabel(" Password"), 1, 6); 960 _cmbPasswordLineEdit->setEchoMode(QLineEdit::PasswordEchoOnEdit); 961 _cmbPasswordLineEdit->setMaximumWidth(9*ww); 962 cmbLayout->addWidget(_cmbPasswordLineEdit, 1, 7); 963 cmbLayout->addWidget(new QLabel(" Directory, ASCII"), 2, 4); 964 cmbLayout->addWidget(_cmbOutPathLineEdit, 2, 5, 1, 3); 965 cmbLayout->addWidget(new QLabel(" Directory, SP3"), 3, 4); 966 cmbLayout->addWidget(_cmbSP3PathLineEdit, 3, 5, 1, 3); 967 cmbLayout->addWidget(new QLabel(" Combine Broadcast Ephemeris corrections streams."),5,3,1,5); 932 cmbLayout->addWidget(new QLabel(" Combine Broadcast Ephemeris corrections streams."),5,3,1,3); 968 933 969 934 cmbgroup->setLayout(cmbLayout); … … 973 938 QGridLayout* uploadHlpLayout = new QGridLayout(); 974 939 975 uploadHlpLayout->addWidget(new QLabel("Upload RTNet results to NTRIP caster"),0,0);940 uploadHlpLayout->addWidget(new QLabel("Upload RTNet or Combination Results"),0,0); 976 941 977 942 uploadHlpLayout->addWidget(addUploadRowButton,0,1); … … 1410 1375 settings.setValue("combineStreams", ""); 1411 1376 } 1412 settings.setValue("cmbOutHost", _cmbOutHostLineEdit->text());1413 settings.setValue("cmbOutPort", _cmbOutPortLineEdit->text());1414 settings.setValue("cmbMountpoint", _cmbMountpointLineEdit->text());1415 settings.setValue("cmbPassword", _cmbPasswordLineEdit->text());1416 settings.setValue("cmbOutPath", _cmbOutPathLineEdit->text());1417 settings.setValue("cmbSP3Path", _cmbSP3PathLineEdit->text());1418 1377 1419 1378 if (!uploadMountpointsOut.isEmpty()) { … … 1495 1454 if (!anxfile.exists()) ((bncApp*)qApp)->slotMessage("Cannot find IGS ANTEX file", true); 1496 1455 } 1497 1498 QDir cmbOutDir(settings.value("cmbOutPath").toString());1499 if (!cmbOutDir.exists()) ((bncApp*)qApp)->slotMessage("Cannot find directory for saving combination results in ASCII format", true);1500 1501 QDir cmbSP3dir(settings.value("cmbSP3Path").toString());1502 if (!cmbSP3dir.exists()) ((bncApp*)qApp)->slotMessage("Cannot find directory for saving combination results in SP3 format", true);1503 1456 1504 1457 _caster->slotReadMountPoints(); … … 2123 2076 } 2124 2077 } 2125 2126 // Combination2127 // ----------2128 if (sender() == 02129 || sender() == _cmbTable2130 || sender() == _cmbMountpointLineEdit) {2131 if (_cmbTable->rowCount() > 0) {2132 _cmbMountpointLineEdit->setPalette(palette_white);2133 _cmbSP3PathLineEdit->setPalette(palette_white);2134 _cmbMountpointLineEdit->setEnabled(true);2135 _cmbSP3PathLineEdit->setEnabled(true);2136 if (!_cmbMountpointLineEdit->text().isEmpty()) {2137 _cmbOutHostLineEdit->setPalette(palette_white);2138 _cmbOutPortLineEdit->setPalette(palette_white);2139 _cmbPasswordLineEdit->setPalette(palette_white);2140 _cmbOutPathLineEdit->setPalette(palette_white);2141 _cmbOutHostLineEdit->setEnabled(true);2142 _cmbOutPortLineEdit->setEnabled(true);2143 _cmbPasswordLineEdit->setEnabled(true);2144 _cmbOutPathLineEdit->setEnabled(true);2145 } else {2146 _cmbOutHostLineEdit->setPalette(palette_gray);2147 _cmbOutPortLineEdit->setPalette(palette_gray);2148 _cmbPasswordLineEdit->setPalette(palette_gray);2149 _cmbOutPathLineEdit->setPalette(palette_gray);2150 _cmbOutHostLineEdit->setEnabled(false);2151 _cmbOutPortLineEdit->setEnabled(false);2152 _cmbPasswordLineEdit->setEnabled(false);2153 _cmbOutPathLineEdit->setEnabled(false);2154 }2155 } else {2156 _cmbMountpointLineEdit->setPalette(palette_gray);2157 _cmbOutHostLineEdit->setPalette(palette_gray);2158 _cmbOutPortLineEdit->setPalette(palette_gray);2159 _cmbPasswordLineEdit->setPalette(palette_gray);2160 _cmbOutPathLineEdit->setPalette(palette_gray);2161 _cmbSP3PathLineEdit->setPalette(palette_gray);2162 _cmbMountpointLineEdit->setEnabled(false);2163 _cmbOutHostLineEdit->setEnabled(false);2164 _cmbOutPortLineEdit->setEnabled(false);2165 _cmbPasswordLineEdit->setEnabled(false);2166 _cmbOutPathLineEdit->setEnabled(false);2167 _cmbSP3PathLineEdit->setEnabled(false);2168 }2169 }2170 2078 } 2171 2079 -
trunk/BNC/bncwindow.h
r3197 r3199 196 196 197 197 QTableWidget* _cmbTable; 198 QLineEdit* _cmbOutHostLineEdit;199 QLineEdit* _cmbOutPortLineEdit;200 QLineEdit* _cmbMountpointLineEdit;201 QLineEdit* _cmbPasswordLineEdit;202 QLineEdit* _cmbOutPathLineEdit;203 QLineEdit* _cmbSP3PathLineEdit;204 198 205 199 QTableWidget* _uploadTable;
Note:
See TracChangeset
for help on using the changeset viewer.