21 #ifndef CSVGRAPHMAPPINGCONFIGURATIONWIDGET_H
22 #define CSVGRAPHMAPPINGCONFIGURATIONWIDGET_H
25 #include <QPushButton>
28 #include <tulip/tulipconf.h>
31 class CSVGraphMappingConfigurationWidget;
38 class CSVImportParameters;
39 class CSVToGraphDataMapping;
47 class TLP_QT_SCOPE CSVGraphMappingConfigurationWidget :
public QWidget {
50 CSVGraphMappingConfigurationWidget(QWidget *parent =
nullptr);
51 ~CSVGraphMappingConfigurationWidget()
override;
56 void updateWidget(
tlp::Graph *graph,
const CSVImportParameters &importParameters);
60 CSVToGraphDataMapping *buildMappingObject()
const;
71 std::vector<std::string> columns;
72 std::vector<unsigned int> nodeColumnIds;
73 std::vector<std::string> nodeProperties;
74 std::vector<unsigned int> edgeColumnIds;
75 std::vector<std::string> edgeProperties;
76 std::vector<unsigned int> srcColumnIds;
77 std::vector<unsigned int> tgtColumnIds;
78 std::vector<std::string> srcProperties;
79 std::vector<std::string> tgtProperties;
82 Ui::CSVGraphMappingConfigurationWidget *ui;
83 void selectColumns(
const QString &title, std::vector<unsigned int> &columnIds,
85 void selectProperties(
const QString &title, std::vector<std::string> &selProperties,
89 void createNewProperty();
90 void selectNodeColumns();
91 void selectEdgeColumns();
92 void selectSrcColumns();
93 void selectTgtColumns();
94 void selectSrcProperties();
95 void selectTgtProperties();
96 void selectNodeProperties();
97 void selectEdgeProperties();
100 void mappingChanged();