mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
44 lines
844 B
C++
44 lines
844 B
C++
#ifndef EXPORTCSVDIALOG_H
|
|
#define EXPORTCSVDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
class DBBrowserDB;
|
|
|
|
namespace Ui {
|
|
class ExportCsvDialog;
|
|
}
|
|
|
|
class ExportCsvDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ExportCsvDialog(DBBrowserDB* db, QWidget* parent = 0, const QString& query = "", const QString& selection = "");
|
|
~ExportCsvDialog();
|
|
|
|
private slots:
|
|
virtual void accept();
|
|
void showCustomCharEdits();
|
|
|
|
private:
|
|
void setQuoteChar(const QChar& c);
|
|
char currentQuoteChar() const;
|
|
|
|
void setSeparatorChar(const QChar& c);
|
|
char currentSeparatorChar() const;
|
|
|
|
void setNewLineString(const QString& s);
|
|
QString currentNewLineString() const;
|
|
|
|
bool exportQuery(const QString& sQuery, const QString& sFilename);
|
|
|
|
private:
|
|
Ui::ExportCsvDialog* ui;
|
|
DBBrowserDB* pdb;
|
|
|
|
QString m_sQuery;
|
|
};
|
|
|
|
#endif
|