Modal dialog that lets the user pick a CSV or JSON file and map its columns to graph node/edge identifiers before importing attributes.
More...
#include <forms/dialogimportattributes.h>
Modal dialog that lets the user pick a CSV or JSON file and map its columns to graph node/edge identifiers before importing attributes.
Usage:
true,
parent);
if (dlg.exec() == QDialog::Accepted) {
graph->vertexAttributesImport(dlg.parsedTable().headers,
dlg.parsedTable().rows,
dlg.idColumn(),
dlg.matchByLabel());
}
Modal dialog that lets the user pick a CSV or JSON file and map its columns to graph node/edge identi...
Definition dialogimportattributes.h:43
◆ Scope
◆ DialogImportAttributes()
| DialogImportAttributes::DialogImportAttributes |
( |
Scope |
scope, |
|
|
bool |
isCSV, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ idColumn()
| int DialogImportAttributes::idColumn |
( |
| ) |
const |
◆ loadFile()
| void DialogImportAttributes::loadFile |
( |
const QString & |
path | ) |
|
|
private |
◆ matchByLabel()
| bool DialogImportAttributes::matchByLabel |
( |
| ) |
const |
True → match by label; false → match by node number.
◆ onAccepted
| void DialogImportAttributes::onAccepted |
( |
| ) |
|
|
privateslot |
◆ onBrowse
| void DialogImportAttributes::onBrowse |
( |
| ) |
|
|
privateslot |
◆ parsedTable()
Parsed file contents — valid only after the dialog is accepted.
◆ populateColumnCombos()
| void DialogImportAttributes::populateColumnCombos |
( |
| ) |
|
|
private |
◆ populatePreview()
| void DialogImportAttributes::populatePreview |
( |
| ) |
|
|
private |
◆ srcColumn()
| int DialogImportAttributes::srcColumn |
( |
| ) |
const |
Index of the source-node column.
◆ tgtColumn()
| int DialogImportAttributes::tgtColumn |
( |
| ) |
const |
Index of the target-node column.
◆ m_buttonBox
| QDialogButtonBox* DialogImportAttributes::m_buttonBox |
|
private |
◆ m_byLabelRadio
| QRadioButton* DialogImportAttributes::m_byLabelRadio = nullptr |
|
private |
◆ m_byNumberRadio
| QRadioButton* DialogImportAttributes::m_byNumberRadio = nullptr |
|
private |
◆ m_fileLabel
| QLabel* DialogImportAttributes::m_fileLabel |
|
private |
◆ m_idCombo
| QComboBox* DialogImportAttributes::m_idCombo = nullptr |
|
private |
◆ m_isCSV
| const bool DialogImportAttributes::m_isCSV |
|
private |
◆ m_previewTable
| QTableWidget* DialogImportAttributes::m_previewTable |
|
private |
◆ m_scope
| const Scope DialogImportAttributes::m_scope |
|
private |
◆ m_srcCombo
| QComboBox* DialogImportAttributes::m_srcCombo = nullptr |
|
private |
◆ m_table
◆ m_tgtCombo
| QComboBox* DialogImportAttributes::m_tgtCombo = nullptr |
|
private |
The documentation for this class was generated from the following files: