Changeset 3823 in ntrip
- Timestamp:
- Apr 9, 2012, 6:17:49 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r3822 r3823 994 994 _teqcActionComboBox = new QComboBox(); 995 995 _teqcActionComboBox->setEditable(false); 996 _teqcActionComboBox->addItems(QString(",Edit ,Analyze").split(","));996 _teqcActionComboBox->addItems(QString(",Edit/Concatenate,Analyze").split(",")); 997 997 ik = _teqcActionComboBox->findText(settings.value("teqcAction").toString()); 998 998 if (ik != -1) { … … 1003 1003 1004 1004 QGridLayout* teqcLayout = new QGridLayout; 1005 teqcLayout->setColumnMinimumWidth(0,14*ww);1006 _teqcActionComboBox->setMaximumWidth(1 0*ww);1005 _teqcActionComboBox->setMinimumWidth(15*ww); 1006 _teqcActionComboBox->setMaximumWidth(15*ww); 1007 1007 1008 1008 _teqcObsFileChooser = new qtFileChooser; 1009 1009 _teqcObsFileChooser->setFileName(settings.value("teqcObsFile").toString()); 1010 1010 _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); 1011 1013 1012 1014 _teqcNavFileChooser = new qtFileChooser; 1013 1015 _teqcNavFileChooser->setFileName(settings.value("teqcNavFile").toString()); 1014 1016 _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); 1018 1034 1019 1035 ir = 0; 1020 1036 teqcLayout->addWidget(new QLabel("RINEX file editing, quality control or concatination."),ir, 0, 1, 20); 1021 1037 ++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); 1024 1040 _teqcEditOptionButton = new QPushButton("Set Edit Options"); 1025 teqcLayout->addWidget(_teqcEditOptionButton, ir, 2);1041 teqcLayout->addWidget(_teqcEditOptionButton, ir, 3, Qt::AlignRight); 1026 1042 ++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); 1032 1048 ++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); 1035 1054 ++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); 1037 1057 ++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); 1041 1063 1042 1064 teqcgroup->setLayout(teqcLayout); … … 1685 1707 settings.setValue("teqcObsFile", _teqcObsFileChooser->fileName()); 1686 1708 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()); 1688 1712 1689 1713 if (_caster) { … … 2255 2279 if (sender() == 0 || sender() == _teqcActionComboBox) { 2256 2280 enable = !_teqcActionComboBox->currentText().isEmpty(); 2257 bool enable10 = _teqcActionComboBox->currentText() == "Edit ";2281 bool enable10 = _teqcActionComboBox->currentText() == "Edit/Concatenate"; 2258 2282 enableWidget(enable && enable10, _teqcEditOptionButton); 2259 2283 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); 2262 2288 } 2263 2289 } -
trunk/BNC/bncwindow.h
r3787 r3823 172 172 qtFileChooser* _teqcObsFileChooser; 173 173 qtFileChooser* _teqcNavFileChooser; 174 QLineEdit* _teqcOutLineEdit; 174 QLineEdit* _teqcOutObsLineEdit; 175 QLineEdit* _teqcOutNavLineEdit; 176 QLineEdit* _teqcOutLogLineEdit; 175 177 176 178 QCheckBox* _rnxV3CheckBox;
Note:
See TracChangeset
for help on using the changeset viewer.