mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
43 lines
811 B
C++
43 lines
811 B
C++
#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
|