Changeset 3823 in ntrip


Ignore:
Timestamp:
Apr 9, 2012, 6:17:49 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3822 r3823  
    994994  _teqcActionComboBox = new QComboBox();
    995995  _teqcActionComboBox->setEditable(false);
    996   _teqcActionComboBox->addItems(QString(",Edit,Analyze").split(","));
     996  _teqcActionComboBox->addItems(QString(",Edit/Concatenate,Analyze").split(","));
    997997  ik = _teqcActionComboBox->findText(settings.value("teqcAction").toString());
    998998  if (ik != -1) {
     
    10031003
    10041004  QGridLayout* teqcLayout = new QGridLayout;
    1005   teqcLayout->setColumnMinimumWidth(0,14*ww);
    1006   _teqcActionComboBox->setMaximumWidth(10*ww);
     1005  _teqcActionComboBox->setMinimumWidth(15*ww);
     1006  _teqcActionComboBox->setMaximumWidth(15*ww);
    10071007
    10081008  _teqcObsFileChooser = new qtFileChooser;
    10091009  _teqcObsFileChooser->setFileName(settings.value("teqcObsFile").toString());
    10101010  _teqcObsFileChooser->setWhatsThis(tr("Specify the full path to an observation file in RINEX v2 or v3 format."));
     1011  _teqcObsFileChooser->setMinimumWidth(15*ww);
     1012  _teqcObsFileChooser->setMaximumWidth(15*ww);
    10111013
    10121014  _teqcNavFileChooser = new qtFileChooser;
    10131015  _teqcNavFileChooser->setFileName(settings.value("teqcNavFile").toString());
    10141016  _teqcNavFileChooser->setWhatsThis(tr("Specify the full path to a RINEX v2 or v3 navigation file."));
    1015 
    1016   _teqcOutLineEdit = new QLineEdit(settings.value("teqcOutFile").toString());
    1017   _teqcOutLineEdit->setWhatsThis(tr("Specify the full path to an output file."));
     1017  _teqcNavFileChooser->setMinimumWidth(15*ww);
     1018  _teqcNavFileChooser->setMaximumWidth(15*ww);
     1019
     1020  _teqcOutObsLineEdit = new QLineEdit(settings.value("teqcOutObsFile").toString());
     1021  _teqcOutObsLineEdit->setWhatsThis(tr("Specify the full path to an output file."));
     1022  _teqcOutObsLineEdit->setMinimumWidth(15*ww);
     1023  _teqcOutObsLineEdit->setMaximumWidth(15*ww);
     1024
     1025  _teqcOutNavLineEdit = new QLineEdit(settings.value("teqcOutNavFile").toString());
     1026  _teqcOutNavLineEdit->setWhatsThis(tr("Specify the full path to an output file."));
     1027  _teqcOutNavLineEdit->setMinimumWidth(15*ww);
     1028  _teqcOutNavLineEdit->setMaximumWidth(15*ww);
     1029
     1030  _teqcOutLogLineEdit = new QLineEdit(settings.value("teqcOutLogFile").toString());
     1031  _teqcOutLogLineEdit->setWhatsThis(tr("Specify the full path to an output file."));
     1032  _teqcOutLogLineEdit->setMinimumWidth(15*ww);
     1033  _teqcOutLogLineEdit->setMaximumWidth(15*ww);
    10181034
    10191035  ir = 0;
    10201036  teqcLayout->addWidget(new QLabel("RINEX file editing, quality control or concatination."),ir, 0, 1, 20);
    10211037  ++ir;
    1022   teqcLayout->addWidget(new QLabel("Action"),                   ir, 0);
    1023   teqcLayout->addWidget(_teqcActionComboBox,                    ir, 1);
     1038  teqcLayout->addWidget(new QLabel("Action"),                   ir, 0, Qt::AlignLeft);
     1039  teqcLayout->addWidget(_teqcActionComboBox,                    ir, 1, Qt::AlignLeft);
    10241040  _teqcEditOptionButton = new QPushButton("Set Edit Options");
    1025   teqcLayout->addWidget(_teqcEditOptionButton,                  ir, 2);
     1041  teqcLayout->addWidget(_teqcEditOptionButton,                  ir, 3, Qt::AlignRight);
    10261042  ++ir;
    1027   teqcLayout->addWidget(new QLabel("Input files (full path)"),  ir, 0);
    1028   teqcLayout->addWidget(_teqcObsFileChooser,                    ir, 1, 1, 4);
    1029   teqcLayout->addWidget(new QLabel("Obs "),                     ir, 5);
    1030   teqcLayout->addWidget(_teqcNavFileChooser,                    ir, 6, 1, 8);
    1031   teqcLayout->addWidget(new QLabel("Nav"),                      ir,14);
     1043  teqcLayout->addWidget(new QLabel("Input files (full path)"),  ir, 0, Qt::AlignLeft);
     1044  teqcLayout->addWidget(_teqcObsFileChooser,                    ir, 1, Qt::AlignRight);
     1045  teqcLayout->addWidget(new QLabel("Obs"),                      ir, 2, Qt::AlignLeft);
     1046  teqcLayout->addWidget(_teqcNavFileChooser,                    ir, 3, Qt::AlignRight);
     1047  teqcLayout->addWidget(new QLabel("Nav"),                      ir, 4, Qt::AlignLeft);
    10321048  ++ir;
    1033   teqcLayout->addWidget(new QLabel("Output file (full path)"),  ir, 0);
    1034   teqcLayout->addWidget(_teqcOutLineEdit,                       ir, 1, 1, 4);
     1049  teqcLayout->addWidget(new QLabel("Output files (full path)"),  ir, 0, Qt::AlignLeft);
     1050  teqcLayout->addWidget(_teqcOutObsLineEdit,                     ir, 1, Qt::AlignRight);
     1051  teqcLayout->addWidget(new QLabel("Obs"),                       ir, 2, Qt::AlignLeft);
     1052  teqcLayout->addWidget(_teqcOutNavLineEdit,                     ir, 3, Qt::AlignRight);
     1053  teqcLayout->addWidget(new QLabel("Nav"),                       ir, 4, Qt::AlignLeft);
    10351054  ++ir;
    1036   teqcLayout->addWidget(new QLabel(" "),                        ir, 0);
     1055  teqcLayout->addWidget(_teqcOutLogLineEdit,                     ir, 1, Qt::AlignRight);
     1056  teqcLayout->addWidget(new QLabel("Log"),                       ir, 2, Qt::AlignLeft);
    10371057  ++ir;
    1038   teqcLayout->addWidget(new QLabel(" "),                        ir, 0);
    1039   ++ir;
    1040   teqcLayout->addWidget(new QLabel(" "),                        ir, 0);
     1058  teqcLayout->addWidget(new QLabel(""), ir, 1);
     1059  teqcLayout->setRowStretch(ir, 999);
     1060
     1061  teqcLayout->setColumnMinimumWidth(2, 8*ww);
     1062  teqcLayout->setColumnMinimumWidth(4, 8*ww);
    10411063
    10421064  teqcgroup->setLayout(teqcLayout);
     
    16851707  settings.setValue("teqcObsFile", _teqcObsFileChooser->fileName());
    16861708  settings.setValue("teqcNavFile", _teqcNavFileChooser->fileName());
    1687   settings.setValue("teqcOutFile", _teqcOutLineEdit->text());
     1709  settings.setValue("teqcOutObsFile", _teqcOutObsLineEdit->text());
     1710  settings.setValue("teqcOutNavFile", _teqcOutNavLineEdit->text());
     1711  settings.setValue("teqcOutLogFile", _teqcOutLogLineEdit->text());
    16881712
    16891713  if (_caster) {
     
    22552279  if (sender() == 0 || sender() == _teqcActionComboBox) {
    22562280    enable = !_teqcActionComboBox->currentText().isEmpty();
    2257     bool enable10 = _teqcActionComboBox->currentText() == "Edit";
     2281    bool enable10 = _teqcActionComboBox->currentText() == "Edit/Concatenate";
    22582282    enableWidget(enable &&  enable10, _teqcEditOptionButton);
    22592283    enableWidget(enable,              _teqcObsFileChooser);
    2260     enableWidget(enable && !enable10, _teqcNavFileChooser);
    2261     enableWidget(enable && !enable10, _teqcOutLineEdit);
     2284    enableWidget(enable,              _teqcNavFileChooser);
     2285    enableWidget(enable &&  enable10, _teqcOutObsLineEdit);
     2286    enableWidget(enable &&  enable10, _teqcOutNavLineEdit);
     2287    enableWidget(enable && !enable10, _teqcOutLogLineEdit);
    22622288  }
    22632289}
  • trunk/BNC/bncwindow.h

    r3787 r3823  
    172172    qtFileChooser* _teqcObsFileChooser;
    173173    qtFileChooser* _teqcNavFileChooser;
    174     QLineEdit*     _teqcOutLineEdit;
     174    QLineEdit*     _teqcOutObsLineEdit;
     175    QLineEdit*     _teqcOutNavLineEdit;
     176    QLineEdit*     _teqcOutLogLineEdit;
    175177
    176178    QCheckBox* _rnxV3CheckBox;
Note: See TracChangeset for help on using the changeset viewer.