forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImportCsvDialog.h
More file actions
42 lines (31 loc) · 811 Bytes
/
ImportCsvDialog.h
File metadata and controls
42 lines (31 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef IMPORTCSVDIALOG_H
#define IMPORTCSVDIALOG_H
#include <QDialog>
class DBBrowserDB;
class QCompleter;
namespace Ui {
class ImportCsvDialog;
}
class ImportCsvDialog : public QDialog
{
Q_OBJECT
public:
explicit ImportCsvDialog(const QString& filename, DBBrowserDB* db, QWidget* parent = 0);
~ImportCsvDialog();
private slots:
virtual void accept();
virtual void updatePreview();
virtual void checkInput();
private:
Ui::ImportCsvDialog* ui;
QString csvFilename;
DBBrowserDB* pdb;
QCompleter* encodingCompleter;
void setQuoteChar(const QChar& c);
char currentQuoteChar() const;
void setSeparatorChar(const QChar& c);
char currentSeparatorChar() const;
void setEncoding(const QString& sEnc);
QString currentEncoding() const;
};
#endif