21 #ifndef CSVPARSERCONFIGURATIONWIDGET_H
22 #define CSVPARSERCONFIGURATIONWIDGET_H
28 #include <tulip/tulipconf.h>
31 class CSVParserConfigurationWidget;
38 class TLP_QT_SCOPE CSVParserConfigurationWidget :
public QWidget {
41 CSVParserConfigurationWidget(QWidget *parent =
nullptr);
42 ~CSVParserConfigurationWidget()
override;
48 CSVParser *buildParser(
unsigned int firstLine = 0,
unsigned int lastLine = UINT_MAX)
const;
50 std::string getFile()
const;
53 QString getSeparator()
const;
54 char getTextSeparator()
const;
55 char getDecimalMark()
const;
56 std::string getEncoding()
const;
57 bool invertMatrix()
const;
58 bool getMergeSeparator()
const;
59 bool getConsiderAsString()
const;
60 void initWithLastOpenedFile();
61 int getFirstLineIndex()
const;
62 void setNbIgnoredLines(
int);
65 void setFileToOpen(
const QString &fileToOpen);
68 void fillEncodingComboBox();
71 void changeFileNameButtonPressed();
72 void encodingChanged();
73 void changeSeparator(
int index);
74 void ignoreFirstLines(
int checkState);
77 QString getSeparator(
int index)
const;
79 Ui::CSVParserConfigurationWidget *ui;
80 static QString lastOpenedFile;