21 #ifndef CSVIMPORTWIZARD_H
22 #define CSVIMPORTWIZARD_H
24 #include <QtGui/QWizard>
25 #include <QtGui/QWizardPage>
27 #include <tulip/Graph.h>
28 #include <tulip/CSVGraphImport.h>
31 class CSVImportWizard;
36 class CSVParserConfigurationWidget;
38 class CSVImportConfigurationWidget;
39 class CSVToGraphDataMapping;
40 class CSVGraphMappingConfigurationWidget;
45 class CSVParsingConfigurationQWizardPage :
public QWizardPage {
48 CSVParsingConfigurationQWizardPage ( QWidget * parent = NULL );
49 bool isComplete()
const;
50 CSVParser* buildParser()
const;
54 CSVParserConfigurationWidget* parserConfigurationWidget;
55 CSVTableWidget* previewTableWidget;
56 unsigned int previewLineNumber;
62 class CSVImportConfigurationQWizardPage :
public QWizardPage {
65 CSVImportConfigurationQWizardPage ( QWidget * parent = NULL );
66 void initializePage();
67 CSVImportParameters getImportParameters()
const;
70 CSVImportConfigurationWidget* importConfigurationWidget;
73 class CSVGraphMappingConfigurationQWizardPage :
public QWizardPage {
76 CSVGraphMappingConfigurationQWizardPage ( QWidget * parent = NULL );
77 void initializePage();
78 bool isComplete()
const;
79 CSVToGraphDataMapping* buildMappingObject()
const;
82 CSVGraphMappingConfigurationWidget* graphMappingConfigurationWidget;
85 class TLP_QT_SCOPE CSVImportWizard :
public QWizard {
89 explicit CSVImportWizard(QWidget *parent = NULL);
92 CSVParsingConfigurationQWizardPage* getParsingConfigurationPage()
const;
93 CSVImportConfigurationQWizardPage* getImportConfigurationPage()
const;
94 CSVGraphMappingConfigurationQWizardPage* getMappingConfigurationPage()
const;
96 inline void setGraph(Graph* graph) {
100 inline Graph* getGraph()
const {
107 Ui::CSVImportWizard *ui;
111 #endif // CSVIMPORTWIZARD_H