00001 #include <QtGui> 00002 #include <QApplication> 00003 00004 #include "runpihm.h" 00005 00006 #include <iomanip> 00007 #include <fstream> 00008 using namespace std; 00009 00010 #include "../pihmLIBS/helpDialog/helpdialog.h" 00011 #include "../pihm/ihm10.h" 00012 #include "../pihm/calib.h" 00013 #include "../pihm/et_is.h" 00014 00015 runPIHMDlg::runPIHMDlg(QWidget *parent) 00016 { 00017 QPlastiqueStyle::QPlastiqueStyle(); 00018 setupUi(this); 00019 connect(browseButton, SIGNAL(clicked()), this, SLOT(folderBrowse())); 00020 connect(runButton, SIGNAL(clicked()), this, SLOT(run())); 00021 connect(helpButton, SIGNAL(clicked()), this, SLOT(help())); 00022 } 00023 00024 void runPIHMDlg::folderBrowse() 00025 { 00026 QString folder = QFileDialog::getExistingDirectory(this, "Choose Input Directory", "/"); 00027 lineEdit->setText(folder); 00028 } 00029 00030 void runPIHMDlg::run() 00031 { 00032 QString id = lineEditFile->text(); 00033 QString fileID = lineEdit->text() + id; 00034 00035 ihm10(1, NULL, progressBar); 00036 } 00037 00038 void runPIHMDlg::help() 00039 { 00040 helpDialog* hlpDlg = new helpDialog(this, "Run PIHM", 1, "helpFiles/runpihm.html", "Help :: Run PIHM"); 00041 hlpDlg->show(); 00042 }