Changeset 1329 in ntrip
- Timestamp:
- Dec 23, 2008, 3:38:12 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r1327 r1329 230 230 _logFileLineEdit = new QLineEdit(settings.value("logFile").toString()); 231 231 _adviseScriptLineEdit = new QLineEdit(settings.value("adviseScript").toString()); 232 232 233 _serialPortNameLineEdit = new QLineEdit(settings.value("serialPortName").toString()); 233 234 _serialMountPointLineEdit = new QLineEdit(settings.value("serialMountPoint").toString()); 235 236 _serialBaudRateComboBox = new QComboBox(); 237 _serialBaudRateComboBox->addItems(QString("110, 300, 600," 238 "1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200").split(",")); 239 kk = _serialBaudRateComboBox->findText(settings.value("serialBaudRate").toString()); 240 if (kk != -1) { 241 _serialBaudRateComboBox->setCurrentIndex(kk); 242 } 243 _serialParityComboBox = new QComboBox(); 244 _serialParityComboBox->addItems(QString("NONE, ODD, EVEN, SPACE").split(",")); 245 kk = _serialParityComboBox->findText(settings.value("serialParity").toString()); 246 if (kk != -1) { 247 _serialParityComboBox->setCurrentIndex(kk); 248 } 249 _serialDataBitsComboBox = new QComboBox(); 250 _serialDataBitsComboBox->addItems(QString("5,6,7,8").split(",")); 251 kk = _serialDataBitsComboBox->findText(settings.value("serialDataBits").toString()); 252 if (kk != -1) { 253 _serialDataBitsComboBox->setCurrentIndex(kk); 254 } 255 _serialStopBitsComboBox = new QComboBox(); 256 _serialStopBitsComboBox->addItems(QString("1,2").split(",")); 257 kk = _serialStopBitsComboBox->findText(settings.value("serialStopBits").toString()); 258 if (kk != -1) { 259 _serialStopBitsComboBox->setCurrentIndex(kk); 260 } 234 261 235 262 _perfIntrComboBox = new QComboBox(); … … 443 470 QGridLayout* serLayout = new QGridLayout; 444 471 serLayout->addWidget(new QLabel("Port Name"),0,0, Qt::AlignLeft); 445 serLayout->addWidget(_serialPortNameLineEdit,0, 1); 446 serLayout->addWidget(new QLabel("MountPoint"),1,0, Qt::AlignLeft); 447 serLayout->addWidget(_serialMountPointLineEdit,1, 1); 472 serLayout->addWidget(_serialPortNameLineEdit,0,1); 473 serLayout->addWidget(new QLabel(" "),0,2, Qt::AlignLeft); 474 serLayout->addWidget(new QLabel("MountPoint"),0,3, Qt::AlignLeft); 475 serLayout->addWidget(_serialMountPointLineEdit,0,4); 476 serLayout->addWidget(new QLabel("Baud Rate"),1,0, Qt::AlignLeft); 477 serLayout->addWidget(_serialBaudRateComboBox,1,1); 478 serLayout->addWidget(new QLabel("Parity"),1,3, Qt::AlignLeft); 479 serLayout->addWidget(_serialParityComboBox,1,4); 480 serLayout->addWidget(new QLabel("Data Bits"),2,0, Qt::AlignLeft); 481 serLayout->addWidget(_serialDataBitsComboBox,2,1); 482 serLayout->addWidget(new QLabel("Stop Bits"),2,3, Qt::AlignLeft); 483 serLayout->addWidget(_serialStopBitsComboBox,2,4); 484 448 485 sergroup->setLayout(serLayout); 449 486 … … 677 714 settings.setValue("serialPortName", _serialPortNameLineEdit->text()); 678 715 settings.setValue("serialMountPoint", _serialMountPointLineEdit->text()); 716 settings.setValue("serialBaudRate", _serialBaudRateComboBox->currentText()); 717 settings.setValue("serialParity", _serialParityComboBox->currentText()); 718 settings.setValue("serialDataBits", _serialDataBitsComboBox->currentText()); 719 settings.setValue("serialStopBits", _serialStopBitsComboBox->currentText()); 679 720 680 721 QStringList mountPoints; -
trunk/BNC/bncwindow.h
r1327 r1329 130 130 QComboBox* _perfIntrComboBox; 131 131 QTableWidget* _mountPointsTable; 132 132 133 QLineEdit* _serialPortNameLineEdit; 133 134 QLineEdit* _serialMountPointLineEdit; 135 QComboBox* _serialBaudRateComboBox; 136 QComboBox* _serialParityComboBox; 137 QComboBox* _serialDataBitsComboBox; 138 QComboBox* _serialStopBitsComboBox; 134 139 135 140 QLineEdit* _LatLineEdit;
Note:
See TracChangeset
for help on using the changeset viewer.