Changeset 1339 in ntrip
- Timestamp:
- Dec 26, 2008, 9:17:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r1333 r1339 238 238 239 239 _serialBaudRateComboBox = new QComboBox(); 240 _serialBaudRateComboBox->setMaximumWidth(9*ww); 240 241 _serialBaudRateComboBox->addItems(QString("110,300,600," 241 242 "1200,2400,4800,9600,19200,38400,57600,115200").split(",")); … … 245 246 } 246 247 _serialParityComboBox = new QComboBox(); 248 _serialParityComboBox->setMaximumWidth(9*ww); 247 249 _serialParityComboBox->addItems(QString("NONE,ODD,EVEN,SPACE").split(",")); 248 250 kk = _serialParityComboBox->findText(settings.value("serialParity").toString()); … … 251 253 } 252 254 _serialDataBitsComboBox = new QComboBox(); 255 _serialDataBitsComboBox->setMaximumWidth(5*ww); 253 256 _serialDataBitsComboBox->addItems(QString("5,6,7,8").split(",")); 254 257 kk = _serialDataBitsComboBox->findText(settings.value("serialDataBits").toString()); … … 257 260 } 258 261 _serialStopBitsComboBox = new QComboBox(); 262 _serialStopBitsComboBox->setMaximumWidth(5*ww); 259 263 _serialStopBitsComboBox->addItems(QString("1,2").split(",")); 260 264 kk = _serialStopBitsComboBox->findText(settings.value("serialStopBits").toString()); … … 355 359 aogroup->addTab(agroup,tr("Outages")); 356 360 aogroup->addTab(rgroup,tr("Miscellaneous")); 357 aogroup->addTab(sergroup,tr("Serial "));361 aogroup->addTab(sergroup,tr("Serial Port")); 358 362 359 363 QGridLayout* pLayout = new QGridLayout; … … 474 478 475 479 QGridLayout* serLayout = new QGridLayout; 476 serLayout->addWidget(new QLabel("Port Name"),0,0, Qt::AlignLeft); 477 serLayout->addWidget(_serialPortNameLineEdit,0,1); 478 serLayout->addWidget(new QLabel(" "),0,2, Qt::AlignLeft); 479 serLayout->addWidget(new QLabel("MountPoint"),0,3, Qt::AlignLeft); 480 serLayout->addWidget(_serialMountPointLineEdit,0,4); 481 serLayout->addWidget(new QLabel("Baud Rate"),1,0, Qt::AlignLeft); 482 serLayout->addWidget(_serialBaudRateComboBox,1,1); 483 serLayout->addWidget(new QLabel("Parity"),1,3, Qt::AlignLeft); 484 serLayout->addWidget(_serialParityComboBox,1,4); 485 serLayout->addWidget(new QLabel("Data Bits"),2,0, Qt::AlignLeft); 486 serLayout->addWidget(_serialDataBitsComboBox,2,1); 487 serLayout->addWidget(new QLabel("Stop Bits"),2,3, Qt::AlignLeft); 488 serLayout->addWidget(_serialStopBitsComboBox,2,4); 480 serLayout->setColumnMinimumWidth(0,14*ww); 481 serLayout->addWidget(new QLabel("Mountpoint"), 0,0, Qt::AlignLeft); 482 serLayout->addWidget(_serialMountPointLineEdit, 0,1,1,2); 483 serLayout->addWidget(new QLabel("Port name"), 1,0, Qt::AlignLeft); 484 serLayout->addWidget(_serialPortNameLineEdit, 1,1,1,2); 485 serLayout->addWidget(new QLabel("Baud rate"), 2,0, Qt::AlignLeft); 486 serLayout->addWidget(_serialBaudRateComboBox, 2,1); 487 serLayout->addWidget(new QLabel(" Parity "), 2,2, Qt::AlignRight); 488 serLayout->addWidget(_serialParityComboBox, 2,3); 489 serLayout->addWidget(new QLabel("Data bits"), 3,0, Qt::AlignLeft); 490 serLayout->addWidget(_serialDataBitsComboBox, 3,1); 491 serLayout->addWidget(new QLabel(" Stop bits "), 3,2, Qt::AlignRight); 492 serLayout->addWidget(_serialStopBitsComboBox, 3,3); 493 serLayout->addWidget(new QLabel("Serial port settings."), 4,0,1,30); 494 serLayout->addWidget(new QLabel(" "),5,0); 489 495 490 496 sergroup->setLayout(serLayout);
Note:
See TracChangeset
for help on using the changeset viewer.