- Timestamp:
- Sep 7, 2006, 8:46:42 AM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r105 r106 28 28 int ww = QFontMetrics(this->font()).width('w'); 29 29 30 setMinimumSize( 80*ww, 80*ww);30 setMinimumSize(90*ww, 80*ww); 31 31 32 32 // Create Actions … … 90 90 _outPortLineEdit->setMaximumWidth(9*ww); 91 91 _rnxPathLineEdit = new QLineEdit(settings.value("rnxPath").toString()); 92 _rnxScrpLineEdit = new QLineEdit(settings.value("rnxScript").toString()); 92 93 _rnxSkelLineEdit = new QLineEdit(settings.value("rnxSkel").toString()); 93 94 _rnxSkelLineEdit->setMaximumWidth(5*ww); 94 _rnxIntrSpinBox = new QSpinBox(); 95 _rnxIntrSpinBox->setMaximumWidth(12*ww); 96 _rnxIntrSpinBox->setValue(settings.value("rnxIntr").toInt()); 97 _rnxIntrSpinBox->setSuffix(" hour"); 98 _rnxIntrSpinBox->setRange(1,24); 99 _rnxIntrSpinBox->setSingleStep(23); 95 _rnxIntrComboBox = new QComboBox(); 96 _rnxIntrComboBox->setMaximumWidth(9*ww); 97 _rnxIntrComboBox->setEditable(false); 98 _rnxIntrComboBox->addItems(QString("15 min,1 hour,1 day").split(",")); 99 int ii = _rnxIntrComboBox->findText(settings.value("rnxIntr").toString()); 100 if (ii != -1) { 101 _rnxIntrComboBox->setCurrentIndex(ii); 102 } 103 _rnxSamplSpinBox = new QSpinBox(); 104 _rnxSamplSpinBox->setMinimum(0); 105 _rnxSamplSpinBox->setMaximum(60); 106 _rnxSamplSpinBox->setSingleStep(5); 107 _rnxSamplSpinBox->setValue(settings.value("rnxSampl").toInt()); 100 108 _mountPointsTable = new QTableWidget(0,2); 101 _mountPointsTable->setMinimumWidth( 70*ww);109 _mountPointsTable->setMinimumWidth(60*ww); 102 110 _mountPointsTable->setMaximumHeight(20*ww); 103 111 _mountPointsTable->horizontalHeader()->setResizeMode(QHeaderView::Stretch); … … 132 140 133 141 layout->addWidget(new QLabel("Proxy host"), 0, 0); 134 layout->addWidget(_proxyHostLineEdit, 0, 2); 135 layout->addWidget(new QLabel("Proxy port"), 0, 3); 136 layout->addWidget(_proxyPortLineEdit, 0, 4); 137 layout->addWidget(new QLabel("timeout (sec)"), 1, 2); 138 layout->addWidget(_timeOutLineEdit, 1, 3); 139 layout->addWidget(new QLabel("ASCII output file (full path)"), 2, 2); 140 layout->addWidget(_outFileLineEdit, 2, 3, 1, 2); 141 layout->addWidget(new QLabel("port for binary output"), 3, 2); 142 layout->addWidget(_outPortLineEdit, 3, 3); 143 layout->addWidget(new QLabel("RINEX path"), 4, 2); 144 layout->addWidget(_rnxPathLineEdit, 4, 3, 1, 2); 145 layout->addWidget(new QLabel("RINEX skeleton extension"), 5, 2); 146 layout->addWidget(_rnxSkelLineEdit, 5, 3); 147 layout->addWidget(new QLabel("RINEX file interval"), 6, 2); 148 layout->addWidget(_rnxIntrSpinBox, 6, 3); 149 layout->addWidget(new QLabel("Mountpoints"), 7, 1); 150 layout->addWidget(_mountPointsTable, 7, 2, 1, 3); 151 layout->addWidget(new QLabel("Log"), 8, 1); 152 layout->addWidget(_log, 8, 2, 1, 3); 142 layout->addWidget(_proxyHostLineEdit, 0, 1); 143 layout->addWidget(new QLabel("Proxy port"), 0, 2); 144 layout->addWidget(_proxyPortLineEdit, 0, 3); 145 layout->addWidget(new QLabel("timeout (sec)"), 1, 1); 146 layout->addWidget(_timeOutLineEdit, 1, 2); 147 layout->addWidget(new QLabel("ASCII output file (full path)"), 2, 1); 148 layout->addWidget(_outFileLineEdit, 2, 2, 1, 3); 149 layout->addWidget(new QLabel("port for binary output"), 3, 1); 150 layout->addWidget(_outPortLineEdit, 3, 2); 151 layout->addWidget(new QLabel("RINEX path"), 4, 1); 152 layout->addWidget(_rnxPathLineEdit, 4, 2, 1, 3); 153 layout->addWidget(new QLabel("RINEX script"), 5, 1); 154 layout->addWidget(_rnxScrpLineEdit, 5, 2, 1, 3); 155 layout->addWidget(new QLabel("RINEX file interval"), 6, 1); 156 layout->addWidget(_rnxIntrComboBox, 6, 2); 157 158 layout->addWidget(new QLabel("sampling (sec)"), 6, 3); 159 layout->addWidget(_rnxSamplSpinBox, 6, 4); 160 161 162 layout->addWidget(new QLabel("RINEX skeleton extension"), 7, 1); 163 layout->addWidget(_rnxSkelLineEdit, 7, 2); 164 layout->addWidget(new QLabel("Mountpoints"), 8, 0); 165 layout->addWidget(_mountPointsTable, 8, 1, 1, 4); 166 layout->addWidget(new QLabel("Log"), 9, 0); 167 layout->addWidget(_log, 9, 1, 1, 4); 153 168 154 169 _bncCaster = 0; … … 238 253 settings.setValue("outPort", _outPortLineEdit->text()); 239 254 settings.setValue("rnxPath", _rnxPathLineEdit->text()); 240 settings.setValue("rnxIntr", _rnxIntrSpinBox->value()); 255 settings.setValue("rnxScript", _rnxScrpLineEdit->text()); 256 settings.setValue("rnxIntr", _rnxIntrComboBox->currentText()); 257 settings.setValue("rnxSampl", _rnxSamplSpinBox->value()); 241 258 settings.setValue("rnxSkel", _rnxSkelLineEdit->text()); 242 259 QStringList mountPoints; -
trunk/BNC/bncwindow.h
r105 r106 48 48 QLineEdit* _rnxPathLineEdit; 49 49 QLineEdit* _rnxSkelLineEdit; 50 QSpinBox* _rnxIntrSpinBox; 50 QLineEdit* _rnxScrpLineEdit; 51 QComboBox* _rnxIntrComboBox; 52 QSpinBox* _rnxSamplSpinBox; 51 53 QTableWidget* _mountPointsTable; 52 54
Note:
See TracChangeset
for help on using the changeset viewer.