21 #ifndef CSVIMPORTWIZARD_H
22 #define CSVIMPORTWIZARD_H
25 #include <QWizardPage>
27 #include <tulip/tulipconf.h>
30 class CSVImportWizard;
36 class CSVParserConfigurationWidget;
38 class CSVImportConfigurationWidget;
39 class CSVToGraphDataMapping;
40 class CSVGraphMappingConfigurationWidget;
41 class CSVImportParameters;
46 class CSVParsingConfigurationQWizardPage :
public QWizardPage {
49 CSVParsingConfigurationQWizardPage ( QWidget * parent = NULL );
50 bool isComplete()
const;
51 CSVParser* buildParser()
const;
55 CSVParserConfigurationWidget* parserConfigurationWidget;
56 CSVTableWidget* previewTableWidget;
57 unsigned int previewLineNumber;
63 class CSVImportConfigurationQWizardPage :
public QWizardPage {
66 CSVImportConfigurationQWizardPage ( QWidget * parent = NULL );
67 void initializePage();
68 CSVImportParameters getImportParameters()
const;
71 CSVImportConfigurationWidget* importConfigurationWidget;
74 class CSVGraphMappingConfigurationQWizardPage :
public QWizardPage {
77 CSVGraphMappingConfigurationQWizardPage ( QWidget * parent = NULL );
78 void initializePage();
79 bool isComplete()
const;
80 CSVToGraphDataMapping* buildMappingObject()
const;
83 CSVGraphMappingConfigurationWidget* graphMappingConfigurationWidget;
86 class TLP_QT_SCOPE CSVImportWizard :
public QWizard {
90 explicit CSVImportWizard(QWidget *parent = NULL);
93 CSVParsingConfigurationQWizardPage* getParsingConfigurationPage()
const;
94 CSVImportConfigurationQWizardPage* getImportConfigurationPage()
const;
95 CSVGraphMappingConfigurationQWizardPage* getMappingConfigurationPage()
const;
97 inline void setGraph(Graph* graph) {
101 inline Graph* getGraph()
const {
108 Ui::CSVImportWizard *ui;
112 #endif // CSVIMPORTWIZARD_H