! Opens the dialog to import data to the selected container */
| 2767 | Opens the dialog to import data to the selected container |
| 2768 | */ |
| 2769 | void MainWin::importFileDialog(const QString& fileName) { |
| 2770 | DEBUG(Q_FUNC_INFO << ", file name = " << fileName.toStdString()); |
| 2771 | auto* dlg = new ImportFileDialog(this, false, fileName); |
| 2772 | |
| 2773 | // select existing container |
| 2774 | if (m_currentAspect->type() == AspectType::Spreadsheet || m_currentAspect->type() == AspectType::Matrix || m_currentAspect->type() == AspectType::Workbook) |
| 2775 | dlg->setCurrentIndex(m_projectExplorer->currentIndex()); |
| 2776 | else if (m_currentAspect->type() == AspectType::Column && m_currentAspect->parentAspect()->type() == AspectType::Spreadsheet) |
| 2777 | dlg->setCurrentIndex(m_aspectTreeModel->modelIndexOfAspect(m_currentAspect->parentAspect())); |
| 2778 | |
| 2779 | dlg->exec(); |
| 2780 | DEBUG(Q_FUNC_INFO << " DONE"); |
| 2781 | } |
| 2782 | |
| 2783 | void MainWin::importKaggleDatasetDialog() { |
| 2784 | DEBUG(Q_FUNC_INFO); |
nothing calls this directly
no test coverage detected