void AppDisplay::readData(bool isVectorFile) { btn_read_custom.setEnabled(false); btn_read_vector.setEnabled(false); btn_coalesce.setEnabled(false); QFileDialog dialog(this); dialog.setDirectory("."); dialog.setNameFilter(isVectorFile ? "*.asc *.ASC" : "*.txt *.TXT"); dialog.setFileMode(QFileDialog::ExistingFiles); if(dialog.exec()) { computeThread.filenames = dialog.selectedFiles(); computeThread.isVectorFile = isVectorFile; computeThread.start(); } else { QMessageBox::critical(this, "File Dialog Error", "A team of highly trained monkeys has been dispatched to help you."); convertFinish(false); } }
void Recorder::avconvFinish(int num,QProcess::ExitStatus status) { qDebug() << "avconv exit with " << num << status; qDebug() << "record delete folder " << picDir; deleteDirectory(QFileInfo(picDir)); emit convertFinish(); }