Changeset 1339 in ntrip


Ignore:
Timestamp:
Dec 26, 2008, 9:17:02 PM (16 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r1333 r1339  
    238238
    239239  _serialBaudRateComboBox = new QComboBox();
     240  _serialBaudRateComboBox->setMaximumWidth(9*ww);
    240241  _serialBaudRateComboBox->addItems(QString("110,300,600,"
    241242            "1200,2400,4800,9600,19200,38400,57600,115200").split(","));
     
    245246  }
    246247  _serialParityComboBox   = new QComboBox();
     248  _serialParityComboBox->setMaximumWidth(9*ww);
    247249  _serialParityComboBox->addItems(QString("NONE,ODD,EVEN,SPACE").split(","));
    248250  kk = _serialParityComboBox->findText(settings.value("serialParity").toString());
     
    251253  }
    252254  _serialDataBitsComboBox = new QComboBox();
     255  _serialDataBitsComboBox->setMaximumWidth(5*ww);
    253256  _serialDataBitsComboBox->addItems(QString("5,6,7,8").split(","));
    254257  kk = _serialDataBitsComboBox->findText(settings.value("serialDataBits").toString());
     
    257260  }
    258261  _serialStopBitsComboBox = new QComboBox();
     262  _serialStopBitsComboBox->setMaximumWidth(5*ww);
    259263  _serialStopBitsComboBox->addItems(QString("1,2").split(","));
    260264  kk = _serialStopBitsComboBox->findText(settings.value("serialStopBits").toString());
     
    355359  aogroup->addTab(agroup,tr("Outages"));
    356360  aogroup->addTab(rgroup,tr("Miscellaneous"));
    357   aogroup->addTab(sergroup,tr("Serial"));
     361  aogroup->addTab(sergroup,tr("Serial Port"));
    358362
    359363  QGridLayout* pLayout = new QGridLayout;
     
    474478
    475479  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);
    489495
    490496  sergroup->setLayout(serLayout);
Note: See TracChangeset for help on using the changeset viewer.