8 #include <QTextBrowser>
10 #include <QTextStream>
12 #include <QMessageBox>
26 proc =
new QProcess(
this);
38 connect(
ui->
close, SIGNAL(clicked()),
this, SLOT(close()));
40 QFile file(
"config_tycho_gui.ini");
41 if(!file.open(QIODevice::ReadOnly)) {
42 QMessageBox::information(0,
"error",
"No config_tycho_gui.ini File found.");
45 QTextStream in(&file);
76 tycho_exe = QFileDialog::getOpenFileName(
this, tr(
"The TYCHO Executable"), QString::null);
87 QString parameterfile_QString;
89 parameterfile_QString = QFileDialog::getOpenFileName(
this, tr(
"The TYCHO Executable"), QString::null);
165 QString txtfile = QFileDialog::getSaveFileName(
this, tr(
"Save TYCHO Simulation Logfile"),
":", tr(
"logfile (*.txt)"));
168 if (file.open(QFile::WriteOnly | QFile::Truncate)) {
169 QTextStream out(&file);
182 QFile file(
"config_tycho_gui.ini");
183 if(!file.open(QIODevice::ReadOnly)) {
184 QMessageBox::information(0,
"error",
"No config_tycho_gui.ini File found.");
188 QTextStream in(&file);
193 line = in.readLine();