21 #ifndef CSVPARSERCONFIGURATIONWIDGET_H
22 #define CSVPARSERCONFIGURATIONWIDGET_H
24 #include <QtGui/QWidget>
25 #include <QtGui/QComboBox>
26 #include <tulip/CSVParser.h>
27 #include <tulip/CSVContentHandler.h>
30 class CSVParserConfigurationWidget;
36 class CSVParserConfigurationWidgetEditableComboBox :
public QComboBox {
39 CSVParserConfigurationWidgetEditableComboBox(QWidget * parent = NULL);
42 void keyPressEvent(QKeyEvent *e);
45 class TLP_QT_SCOPE CSVParserConfigurationWidget :
public QWidget {
48 CSVParserConfigurationWidget(QWidget *parent = NULL);
49 ~CSVParserConfigurationWidget();
54 CSVParser * buildParser(
unsigned int firstLine=0,
unsigned int lastLine=UINT_MAX)
const;
56 std::string getFile()
const;
58 std::string getSeparator()
const;
59 char getTextSeparator()
const;
60 std::string getEncoding()
const;
61 bool invertMatrix()
const;
64 void setFileToOpen(
const QString& fileToOpen);
66 void fillEncodingComboBox();
67 void changeEvent(QEvent *e);
70 void changeFileNameButtonPressed();
71 void encodingChanged();
75 QString getSeparator(
int index)
const;
77 Ui::CSVParserConfigurationWidget *ui;
83 #endif // CSVPARSERCONFIGURATIONWIDGET_H