blob: 171dab87cdd8b2cbaa4ff90de43ad7c9338fc3a7 (
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
|
#ifndef COLUMNGENERATEDPANEL_H
#define COLUMNGENERATEDPANEL_H
#include "constraintpanel.h"
#include "guiSQLiteStudio_global.h"
#include <QWidget>
namespace Ui {
class ColumnGeneratedPanel;
}
class GUI_API_EXPORT ColumnGeneratedPanel : public ConstraintPanel
{
Q_OBJECT
public:
explicit ColumnGeneratedPanel(QWidget *parent = 0);
~ColumnGeneratedPanel();
bool validate();
bool validateOnly();
protected:
void changeEvent(QEvent *e);
void constraintAvailable();
void storeConfiguration();
private:
void init();
void readConstraint();
void updateVirtualSql();
QString getTempTable();
void storeExpr(SqliteCreateTable::Column::Constraint* constr);
void clear(SqliteCreateTable::Column::Constraint* constr);
Ui::ColumnGeneratedPanel *ui = nullptr;
QString lastValidatedText;
bool lastValidationResult = false;
private slots:
void updateState();
};
#endif // COLUMNGENERATEDPANEL_H
|