17 QString txtfile = QFileDialog::getOpenFileName(
this, tr(
"Open TYCHO Parameterfile"), QString::null);
25 if (file.open(QIODevice::ReadOnly | QIODevice::Text)){
27 QTextStream in(&file);
29 tmp_data = in.readLine(0);
31 if ((tmp_data.contains(
"#"))||(tmp_data.mid(0,1) ==
"")) {
35 data.append(tmp_data);
71 ui->
filetype->setCurrentIndex(data[0].toInt());
86 if (data[5]!=
"dummy")
ui->
ic_wind->setEnabled(
true);
95 if (data[8]!=
"dummy")
ui->
ic_marker->setEnabled(
true);
111 ui->
res_x->setValue(data[12].toInt());
112 ui->
res_y->setValue(data[13].toInt());
113 ui->
res_z->setValue(data[14].toInt());
115 ui->
dimension->setCurrentIndex(data[15].toInt()-1);
122 ui->
bound_up->setCurrentIndex(data[20].toInt());
144 ui->
cfl->setText(data[32]);