21 #ifndef CSVPARSERCONFIGURATIONWIDGET_H
22 #define CSVPARSERCONFIGURATIONWIDGET_H
26 #include <tulip/tulipconf.h>
29 class CSVParserConfigurationWidget;
36 class TLP_QT_SCOPE CSVParserConfigurationWidget :
public QWidget {
39 CSVParserConfigurationWidget(QWidget *parent = NULL);
40 ~CSVParserConfigurationWidget();
45 CSVParser * buildParser(
unsigned int firstLine=0,
unsigned int lastLine=UINT_MAX)
const;
47 std::string getFile()
const;
49 QString getSeparator()
const;
50 char getTextSeparator()
const;
51 std::string getEncoding()
const;
52 bool invertMatrix()
const;
53 bool getMergeSeparator()
const;
56 void setFileToOpen(
const QString& fileToOpen);
58 void fillEncodingComboBox();
61 void changeFileNameButtonPressed();
62 void encodingChanged();
63 void changeSeparator(
int index);
67 QString getSeparator(
int index)
const;
69 Ui::CSVParserConfigurationWidget *ui;
75 #endif // CSVPARSERCONFIGURATIONWIDGET_H