Changeset 6677 in ntrip
- Timestamp:
- Mar 16, 2015, 4:47:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/reqcdlg.cpp
r6240 r6677 114 114 _reqcNewReceiverName->setText(settings.value("reqcNewReceiverName").toString()); 115 115 116 QString rnxV2Priority = settings.value("rnxV2Priority").toString(); 116 QString hlp = settings.value("reqcV2Priority").toString(); 117 if (hlp.isEmpty()) { 118 hlp = "CWPX_?"; 119 } 120 _reqcV2Priority = new QLineEdit(hlp); 117 121 118 122 // Dialog Layout … … 121 125 122 126 int ir = 0; 123 grid->addWidget(new QLabel("RNX Version"), ir, 1); 124 grid->addWidget(_reqcRnxVersion, ir, 2); 125 grid->addWidget(new QLabel(" Sampling"), ir, 3); 126 grid->addWidget(_reqcSampling, ir, 4); 127 ++ir; 128 grid->addWidget(new QLabel("Start"), ir, 1); 129 grid->addWidget(_reqcStartDateTime, ir, 2); 130 grid->addWidget(new QLabel(" End"), ir, 3); 131 grid->addWidget(_reqcEndDateTime, ir, 4); 132 ++ir; 133 grid->addWidget(new QLabel("Run By"), ir, 0); 134 grid->addWidget(_reqcRunBy, ir, 1); 135 grid->addWidget(new QLabel("V2 Priority:"), ir, 2, Qt::AlignRight); 136 grid->addWidget(new QLabel(rnxV2Priority), ir, 3, 1, 2); 137 ++ir; 138 grid->addWidget(new QLabel("Use Obs. Types"),ir, 0); 139 grid->addWidget(_reqcUseObsTypes, ir, 1, 1, 4); 140 ++ir; 141 grid->addWidget(new QLabel("Comment(s)"), ir, 0); 142 grid->addWidget(_reqcComment, ir, 1, 1, 4); 143 ++ir; 144 grid->addWidget(new QLabel("Old"), ir, 1, 1, 2, Qt::AlignCenter); 145 grid->addWidget(new QLabel("New"), ir, 3, 1, 2, Qt::AlignCenter); 146 ++ir; 147 grid->addWidget(new QLabel("Marker Name"), ir, 0); 148 grid->addWidget(_reqcOldMarkerName, ir, 1, 1, 2); 149 grid->addWidget(_reqcNewMarkerName, ir, 3, 1, 2); 150 ++ir; 151 grid->addWidget(new QLabel("Antenna Name"), ir, 0); 152 grid->addWidget(_reqcOldAntennaName, ir, 1, 1, 2); 153 grid->addWidget(_reqcNewAntennaName, ir, 3, 1, 2); 154 ++ir; 155 grid->addWidget(new QLabel("Receiver Name"), ir, 0); 156 grid->addWidget(_reqcOldReceiverName, ir, 1, 1, 2); 157 grid->addWidget(_reqcNewReceiverName, ir, 3, 1, 2); 127 grid->addWidget(new QLabel("RNX Version"), ir, 1); 128 grid->addWidget(_reqcRnxVersion, ir, 2); 129 grid->addWidget(new QLabel("Sampling"), ir, 3, Qt::AlignRight); 130 grid->addWidget(_reqcSampling, ir, 4); 131 ++ir; 132 grid->addWidget(new QLabel("Version 2 Signal Priority"), ir, 1); 133 grid->addWidget(_reqcV2Priority, ir, 2); 134 ++ir; 135 grid->addWidget(new QLabel("Start"), ir, 1); 136 grid->addWidget(_reqcStartDateTime, ir, 2); 137 grid->addWidget(new QLabel("End"), ir, 3, Qt::AlignRight); 138 grid->addWidget(_reqcEndDateTime, ir, 4); 139 ++ir; 140 grid->addWidget(new QLabel("Run By"), ir, 0); 141 grid->addWidget(_reqcRunBy, ir, 1); 142 ++ir; 143 grid->addWidget(new QLabel("Use Obs. Types"), ir, 0); 144 grid->addWidget(_reqcUseObsTypes, ir, 1, 1, 4); 145 ++ir; 146 grid->addWidget(new QLabel("Comment(s)"), ir, 0); 147 grid->addWidget(_reqcComment, ir, 1, 1, 4); 148 ++ir; 149 grid->addWidget(new QLabel("Old"), ir, 1, 1, 2, Qt::AlignCenter); 150 grid->addWidget(new QLabel("New"), ir, 3, 1, 2, Qt::AlignCenter); 151 ++ir; 152 grid->addWidget(new QLabel("Marker Name"), ir, 0); 153 grid->addWidget(_reqcOldMarkerName, ir, 1, 1, 2); 154 grid->addWidget(_reqcNewMarkerName, ir, 3, 1, 2); 155 ++ir; 156 grid->addWidget(new QLabel("Antenna Name"), ir, 0); 157 grid->addWidget(_reqcOldAntennaName, ir, 1, 1, 2); 158 grid->addWidget(_reqcNewAntennaName, ir, 3, 1, 2); 159 ++ir; 160 grid->addWidget(new QLabel("Receiver Name"), ir, 0); 161 grid->addWidget(_reqcOldReceiverName, ir, 1, 1, 2); 162 grid->addWidget(_reqcNewReceiverName, ir, 3, 1, 2); 163 164 slotReqcTextChanged(); 165 connect(_reqcRnxVersion, SIGNAL(currentIndexChanged(const QString &)), 166 this, SLOT(slotReqcTextChanged())); 158 167 159 168 _buttonWhatsThis = new QPushButton(tr("Help=Shift+F1"), this); … … 239 248 settings.setValue("reqcRnxVersion" , _reqcRnxVersion->currentText()); 240 249 settings.setValue("reqcSampling" , _reqcSampling->value()); 250 settings.setValue("reqcV2Priority" , _reqcV2Priority->text()); 241 251 settings.setValue("reqcStartDateTime" , _reqcStartDateTime->dateTime().toString(Qt::ISODate)); 242 252 settings.setValue("reqcEndDateTime" , _reqcEndDateTime->dateTime().toString(Qt::ISODate)); … … 251 261 settings.setValue("reqcNewReceiverName", _reqcNewReceiverName->text()); 252 262 } 263 264 // Reqc Text Changed 265 //////////////////////////////////////////////////////////////////////////// 266 void reqcDlg::slotReqcTextChanged(){ 267 268 if (sender() == 0 || sender() == _reqcRnxVersion) { 269 if (_reqcRnxVersion->currentText() == "2") { 270 _reqcV2Priority->setStyleSheet("background-color: white"); 271 _reqcV2Priority->setEnabled(true); 272 } 273 else { 274 _reqcV2Priority->setStyleSheet("background-color: LightGray"); 275 _reqcV2Priority->setEnabled(false); 276 } 277 } 278 }
Note:
See TracChangeset
for help on using the changeset viewer.