blob: 4267a1b7128fbd11796af17cbe436ab2b71a9774 (
plain) (
blame)
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
43
44
45
46
47
48
49
50
51
52
|
#ifndef DBCONVERTERDIALOG_H
#define DBCONVERTERDIALOG_H
#include "guiSQLiteStudio_global.h"
#include <QDialog>
class DbListModel;
class Db;
class DbVersionConverter;
class WidgetCover;
namespace Ui {
class DbConverterDialog;
}
class GUI_API_EXPORT DbConverterDialog : public QDialog
{
Q_OBJECT
public:
explicit DbConverterDialog(QWidget *parent = 0);
~DbConverterDialog();
void setDb(Db* db);
private:
void init();
void srcDbChanged();
bool validate();
static bool confirmConversion(const QList<QPair<QString, QString> >& diffs);
static bool confirmConversionErrors(const QSet<QString>& errors);
Ui::DbConverterDialog *ui = nullptr;
DbListModel* dbListModel = nullptr;
Db* srcDb = nullptr;
DbVersionConverter* converter = nullptr;
bool dontUpdateState = false;
WidgetCover* widgetCover = nullptr;
public slots:
void accept();
private slots:
void srcDbChanged(int index);
void updateState();
void processingFailed(const QString& errorMessage);
void processingSuccessful();
void processingAborted();
};
#endif // DBCONVERTERDIALOG_H
|