-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtriggerwidget.h
More file actions
43 lines (33 loc) · 788 Bytes
/
triggerwidget.h
File metadata and controls
43 lines (33 loc) · 788 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
43
#ifndef TRIGGERWIDGET_H
#define TRIGGERWIDGET_H
#include <QDialog>
class QLineEdit;
class QComboBox;
class QTextEdit;
class TriggerDialog:public QDialog
{
Q_OBJECT
public:
TriggerDialog();
void init(const QString &con_name,
const QString &table_name,
const QString &trigger_name);
void loadTrigger(const QString &sql);
private slots:
void create();
bool check();
private:
void init_combobox();
void init_editor();
QLineEdit *txtName;
QComboBox *cbTable;
QTextEdit *sqlEdit;
QPushButton *btnOk;
QPushButton *btnCancel;
QString conname;
QString dbname;
QString tbname;
QString triggername;
bool create_flag;
};
#endif // TRIGGERWIDGET_H