tychoGUI  1.0
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Private Slots | Private Attributes
configure_path Class Reference

#include <configure_path.h>

Public Member Functions

 configure_path (QWidget *parent=0)
 ~configure_path ()

Private Slots

void tycho_exectuable_config_ini ()

Private Attributes

Ui::configure_pathui

Detailed Description

Definition at line 10 of file configure_path.h.


Constructor & Destructor Documentation

configure_path::configure_path ( QWidget *  parent = 0)
explicit

Definition at line 7 of file configure_path.cpp.

References Ui_configure_path::pushButton, Ui_configure_path::pushButton_2, Ui_configure_path::setupUi(), tycho_exectuable_config_ini(), and ui.

:
QDialog(parent),
{
ui->setupUi(this);
connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(tycho_exectuable_config_ini()));
connect(ui->pushButton_2, SIGNAL(clicked()), this, SLOT(close()));
}
configure_path::~configure_path ( )

Definition at line 19 of file configure_path.cpp.

References ui.

{
delete ui;
}

Member Function Documentation

void configure_path::tycho_exectuable_config_ini ( )
privateslot

Definition at line 25 of file configure_path.cpp.

References Ui_configure_path::lineEdit, and ui.

Referenced by configure_path().

{
QString tycho_exe_config;
tycho_exe_config = QFileDialog::getOpenFileName(this, tr("The TYCHO Executable"), QString::null);
//write the new path of the TYCHO executable in the confif_tycho_gui.ini File.
FILE *fd;
fd = fopen("config_tycho_gui.ini", "w");
fprintf(fd,"#THIS IS A TYCHO GUI CONFIG FILE\n#WHICH STORES THE FULL PATH OF THE\n#TYCHO SIMULATION EXECUTABLE\n""");
fprintf(fd,"%s", tycho_exe_config.toStdString().c_str());
fclose(fd);
ui->lineEdit->setText(tycho_exe_config);
}

Field Documentation

Ui::configure_path* configure_path::ui
private

Definition at line 19 of file configure_path.h.

Referenced by configure_path(), tycho_exectuable_config_ini(), and ~configure_path().


The documentation for this class was generated from the following files: