-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewdesignwidget.h
More file actions
55 lines (42 loc) · 1.23 KB
/
viewdesignwidget.h
File metadata and controls
55 lines (42 loc) · 1.23 KB
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
53
54
55
#ifndef VIEWDESIGNWIDGET_H
#define VIEWDESIGNWIDGET_H
#include <QWidget>
class QPushButton;
class QLineEdit;
class QCheckBox;
class QTextEdit;
class Highlighter;
class ViewDesignObjects;
class ViewDesignWidget:public QWidget
{
Q_OBJECT
public:
static ViewDesignWidget* createObject(const QString &view_name,
const QString &con_name,
bool &isExist);
static void deleteObject(const QString &view_name,
const QString &con_name);
static void initObjContainer();
static void delObjContainer();
protected:
void closeEvent(QCloseEvent *event);
private slots:
void run();
private:
ViewDesignWidget();
void init(const QString &view_name,
const QString &con_name,
bool flag);
bool getNameFromSql(const QString &sql,QString &name);
QLineEdit *txtName;
QCheckBox *cbTemp;
QPushButton *btnCreate;
QTextEdit *sqlEdit;
Highlighter *highlighter;
bool create_flag;
QString dbname;
QString viewname;
QString conname;
static ViewDesignObjects *objs;
};
#endif // VIEWDESIGNWIDGET_H