21 #ifndef CSVIMPORTWIZARD_H
22 #define CSVIMPORTWIZARD_H
24 #include <QtGui/QWizard>
25 #include <QtGui/QWizardPage>
26 #include <QtGui/QTableWidget>
27 #include <QtGui/QHeaderView>
28 #include "tulip/CSVParserConfigurationWidget.h"
29 #include "tulip/CSVImportConfigurationWidget.h"
30 #include "tulip/CSVGraphMappingConfigurationWidget.h"
32 class CSVImportWizard;
39 class CSVParsingConfigurationQWizardPage :
public QWizardPage {
42 CSVParsingConfigurationQWizardPage ( QWidget * parent = NULL );
43 bool isComplete()
const;
44 CSVParser* buildParser()
const;
48 CSVParserConfigurationWidget* parserConfigurationWidget;
49 CSVTableWidget* previewTableWidget;
50 unsigned int previewLineNumber;
56 class CSVImportConfigurationQWizardPage :
public QWizardPage {
59 CSVImportConfigurationQWizardPage ( QWidget * parent = NULL );
60 void initializePage();
61 CSVImportParameters getImportParameters()
const {
62 return importConfigurationWidget->getImportParameters();
65 CSVImportConfigurationWidget* importConfigurationWidget;
68 class CSVGraphMappingConfigurationQWizardPage :
public QWizardPage {
71 CSVGraphMappingConfigurationQWizardPage ( QWidget * parent = NULL );
72 void initializePage();
73 bool isComplete()
const;
74 CSVToGraphDataMapping* buildMappingObject()
const {
75 return graphMappingConfigurationWidget->buildMappingObject();
78 CSVGraphMappingConfigurationWidget* graphMappingConfigurationWidget;
81 class TLP_QT_SCOPE CSVImportWizard :
public QWizard {
85 explicit CSVImportWizard(QWidget *parent = NULL);
88 CSVParsingConfigurationQWizardPage* getParsingConfigurationPage()
const;
89 CSVImportConfigurationQWizardPage* getImportConfigurationPage()
const;
90 CSVGraphMappingConfigurationQWizardPage* getMappingConfigurationPage()
const;
92 void setGraph(Graph* graph) {
96 Graph* getGraph()
const {
103 Ui::CSVImportWizard *ui;
107 #endif // CSVIMPORTWIZARD_H