- Timestamp:
- Apr 17, 2009, 9:54:29 AM (16 years ago)
- Location:
- trunk/BNS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnssettings.cpp
r1772 r1795 62 62 setValue("outFile_3", ""); 63 63 64 setValue("outHostEph", ""); 65 setValue("outPortEph", ""); 66 setValue("mountpoint_Eph",""); 67 setValue("passwordEph", ""); 68 64 69 setValue("trafo_dx", "0.0541"); 65 70 setValue("trafo_dy", "0.0502"); -
trunk/BNS/bnswindow.cpp
r1771 r1795 223 223 _beClocks3CheckBox = new QCheckBox(); 224 224 _beClocks3CheckBox->setCheckState(Qt::CheckState(settings.value("beClocks3").toInt())); 225 226 // Broadcast Ephemerides 227 // --------------------- 228 _outHost_Eph_LineEdit = new QLineEdit(settings.value("outHostEph").toString()); 229 _outPort_Eph_LineEdit = new QLineEdit(settings.value("outPortEph").toString()); 230 _password_Eph_LineEdit = new QLineEdit(settings.value("passwordEph").toString()); 231 _password_Eph_LineEdit->setEchoMode(QLineEdit::Password); 232 _mountpoint_Eph_LineEdit = new QLineEdit(settings.value("mountpoint_Eph").toString()); 225 233 226 234 // RINEX Clocks Options … … 562 570 } 563 571 572 // Broadcast Ephemerides 573 // --------------------- 574 QWidget* tab_casEph = new QWidget(); 575 tabs->addTab(tab_casEph, "Broadcast Ephemerides"); 576 577 QGridLayout* layout_casEph = new QGridLayout; 578 579 layout_casEph->setColumnMinimumWidth(0, 9*ww); 580 _outPort_Eph_LineEdit->setMaximumWidth(9*ww); 581 _password_Eph_LineEdit->setMaximumWidth(9*ww); 582 _mountpoint_Eph_LineEdit->setMaximumWidth(12*ww); 583 584 layout_casEph->addWidget(new QLabel("Host"), 0, 0); 585 layout_casEph->addWidget(_outHost_Eph_LineEdit, 0, 1, 1, 3); 586 layout_casEph->addWidget(new QLabel(" Port"), 0, 4, Qt::AlignRight); 587 layout_casEph->addWidget(_outPort_Eph_LineEdit, 0, 5, 1, 10); 588 layout_casEph->addWidget(new QLabel("Mountpoint"), 1, 0); 589 layout_casEph->addWidget(_mountpoint_Eph_LineEdit, 1, 1); 590 layout_casEph->addWidget(new QLabel("Password"), 1, 2, Qt::AlignRight); 591 layout_casEph->addWidget(_password_Eph_LineEdit, 1, 3); 592 layout_casEph->addWidget(new QLabel("Concatenated Broadcast Ephemerides"), 2, 0, 1, 50); 593 594 tab_casEph->setLayout(layout_casEph); 595 connect(_outHost_Eph_LineEdit, SIGNAL(textChanged(const QString &)), 596 this, SLOT(bnsText(const QString &))); 597 if (_outHost_Eph_LineEdit->text().isEmpty()) { 598 _outPort_Eph_LineEdit->setStyleSheet("background-color: lightGray"); 599 _mountpoint_Eph_LineEdit->setStyleSheet("background-color: lightGray"); 600 _password_Eph_LineEdit->setStyleSheet("background-color: lightGray"); 601 _outPort_Eph_LineEdit->setEnabled(false); 602 _mountpoint_Eph_LineEdit->setEnabled(false); 603 _password_Eph_LineEdit->setEnabled(false); 604 } 605 564 606 // RINEX Clocks Tab 565 607 // ---------------- … … 818 860 settings.setValue("outFile_3", _outFile_3_LineEdit->text()); 819 861 settings.setValue("beClocks3", _beClocks2CheckBox->checkState()); 862 863 settings.setValue("outHostEph", _outHost_Eph_LineEdit->text()); 864 settings.setValue("outPortEph", _outPort_Eph_LineEdit->text()); 865 settings.setValue("mountpoint_Eph",_mountpoint_Eph_LineEdit->text()); 866 settings.setValue("passwordEph", _password_Eph_LineEdit->text()); 867 820 868 settings.setValue("rnxPath", _rnxPathLineEdit->text()); 821 869 settings.setValue("rnxIntr", _rnxIntrComboBox->currentText()); … … 1081 1129 } 1082 1130 1131 // Enable/disable Broadcast Ephemerides 1132 // ------------------------------------k----------- 1133 if (tabs->currentIndex() == 7) { 1134 if (!isEmpty) { 1135 _outPort_Eph_LineEdit->setStyleSheet("background-color: white"); 1136 _mountpoint_Eph_LineEdit->setStyleSheet("background-color: white"); 1137 _password_Eph_LineEdit->setStyleSheet("background-color: white"); 1138 _outPort_Eph_LineEdit->setEnabled(true); 1139 _mountpoint_Eph_LineEdit->setEnabled(true); 1140 _password_Eph_LineEdit->setEnabled(true); 1141 } else { 1142 _outPort_Eph_LineEdit->setStyleSheet("background-color: lightGray"); 1143 _mountpoint_Eph_LineEdit->setStyleSheet("background-color: lightGray"); 1144 _password_Eph_LineEdit->setStyleSheet("background-color: lightGray"); 1145 _outPort_Eph_LineEdit->setEnabled(false); 1146 _mountpoint_Eph_LineEdit->setEnabled(false); 1147 _password_Eph_LineEdit->setEnabled(false); 1148 } 1149 } 1150 1083 1151 // Enable/disable RINEX Clocks Options 1084 1152 // ----------------------------------- 1085 if (tabs->currentIndex() == 7) {1153 if (tabs->currentIndex() == 8) { 1086 1154 if (!isEmpty) { 1087 1155 _rnxIntrComboBox->setStyleSheet("background-color: white"); … … 1099 1167 // Enable/disable SP3 Orbits Options 1100 1168 // --------------------------------- 1101 if (tabs->currentIndex() == 8) {1169 if (tabs->currentIndex() == 9) { 1102 1170 if (!isEmpty) { 1103 1171 _sp3IntrComboBox->setStyleSheet("background-color: white"); -
trunk/BNS/bnswindow.h
r1771 r1795 113 113 QCheckBox* _beClocks3CheckBox; 114 114 115 QLineEdit* _outHost_Eph_LineEdit; 116 QLineEdit* _outPort_Eph_LineEdit; 117 QLineEdit* _mountpoint_Eph_LineEdit; 118 QLineEdit* _password_Eph_LineEdit; 119 115 120 QLineEdit* _rnxPathLineEdit; 116 121 QComboBox* _rnxIntrComboBox;
Note:
See TracChangeset
for help on using the changeset viewer.