// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void TiltAngleGroupBox::on_rawTltFile_textChanged(const QString& text) { if(verifyPathExists(text, rawTltFile) == true) { loadAngles(); } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void QDataContainerReaderWidget::on_InputFile_textChanged(const QString & text) { if (verifyPathExists(InputFile->text(), InputFile) ) { setInputFile(InputFile->text()); setOpenDialogLastDirectory(InputFile->text()); } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void DataContainerReaderWidget::on_filePath_fileDropped(const QString& text) { DataContainerArrayProxy proxy; setOpenDialogLastDirectory(text); // Set/Remove the red outline if the file does exist if (verifyPathExists(text, filePath) == true) { if(getFilter() != NULL) { if(m_Filter->getLastFileRead().compare(text) != 0) { QStandardItemModel* model = qobject_cast<QStandardItemModel*>(dcaProxyView->model()); if(NULL != model) { model->clear(); } if (m_Filter->getInputFileDataContainerArrayProxy().dataContainers.size() > 0 && (text == m_Filter->getLastFileRead() || m_Filter->getLastFileRead().isEmpty())) { proxy = m_Filter->getInputFileDataContainerArrayProxy(); } else { proxy = m_Filter->readDataContainerArrayStructure(text); m_Filter->setLastRead(QDateTime::currentDateTime()); } m_Filter->setLastFileRead(text); // Update the cached file path in the filter } updateModelFromProxy(proxy); } emit parametersChanged(); // This should force the preflight to run because we are emitting a signal } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void InputPathWidget::widgetChanged(const QString& text) { verifyPathExists(text, value); emit parametersChanged(); }