37 #include <QFileDialog>
38 #include <QProgressDialog>
42 m_LsmName(
""), m_MegaPath(
""), m_FileFormatIsPNG(true), m_Counter(0)
78 tr(
"Image Files (*.lsm)") );
97 | QFileDialog::DontResolveSymlinks);
130 std::cerr <<
"Please select good path for lsm and megacapture" << std::endl;
135 this->lsmFileName->setEnabled(
false);
136 this->megaFilePath->setEnabled(
false);
137 this->selectLsmFile->setEnabled(
false);
138 this->selectMegaPath->setEnabled(
false);
139 this->outputFormat->setEnabled(
false);
140 this->convert->setEnabled(
false);
141 this->label->setEnabled(
false);
142 this->selectLSMLabel->setEnabled(
false);
143 this->megaFilePath_2->setEnabled(
false);
144 this->outputFormatLabel->setEnabled(
false);
145 this->label_2->setEnabled(
false);
147 this->convertLabel->setText(
tr(
"READS LSM READERS") );
189 this->convertLabel->setText(
tr(
"CONVERSION in PROGRESS") );
std::string toStdString() const
void on_outputFormat_activated(int index)
Select the output format.
void on_selectLsmFile_clicked()
Get the name of the lsm file selected.
QString getExistingDirectory(QWidget *parent, const QString &caption, const QString &dir, QFlags< QFileDialog::Option > options)
~QGoLsmToMegaExportDialog()
Desctructor.
void InitialisationProgressReceived()
Catch thread, initialize the progress bar.
QString tr(const char *sourceText, const char *disambiguation, int n)
void start(Priority priority)
void setValue(int progress)
QString & insert(int position, QChar ch)
void SetMegaPath(std::string iMegaPath)
Set the path of the MegaCapture file to create.
int GetNumberOfPoints()
Returns the number of signals to be sent for the progress bar.
void CanceledReceived()
Catch thread, cancel the conversion.
void on_convert_clicked()
Disable buttons and send thread to launch conversion.
void SetOutputFileType(const GoFigure::FileType &iFileType)
Set the output file type.
void setRange(int minimum, int maximum)
void on_selectMegaPath_clicked()
Get the location to store MegaCapture file.
QProgressDialog * m_ProgressDialog
QString & replace(int position, int n, QChar after)
ConversionLsmToMegaThread * ConversionLsmToMegaThreadSend
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFlags< QFileDialog::Option > options)
void ProgressReceived()
Catch thread, update the progress bar content.
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void SetBaseName(std::string iBaseName)
Set the base name of the LSM file to convert.
QGoLsmToMegaExportDialog(QWidget *parent=0)
Constructor.
void SetLsmPath(std::string iLsmPath)
Set the path to the LSM file to convert and initialise LSM reader.
void exit(int returnCode)
void ConversionTerminatedReceived()
Catch thread, close progress bar and dialog box.