-
Notifications
You must be signed in to change notification settings - Fork 0
/
querybuilder.h
55 lines (46 loc) · 1.07 KB
/
querybuilder.h
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 QUERYBUILDER_H
#define QUERYBUILDER_H
#include <QObject>
#include <QtGui>
#include <QStringList>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlQuery>
#include "qcustomplot.h"
#include "graph.h"
class QueryBuilder : public QObject
{
Q_OBJECT
public:
explicit QueryBuilder(QObject *parent = 0);
QString getQuery();
int getCounter();
QStringList getTableList();
QStringList getT_RigList();
QStringList getT_LogList();
QString getTBValue();
QString getFBValue();
QComboBox* fieldBox;
QComboBox* tableBox;
signals:
void setQuery(QString);
void alreadyContains(QString);
public slots:
void setFieldBox(QString s);
void setTableBox(QString s);
void setFBValue(QString s);
void makeQuery();
void setBoxes();
void enableBtn();
private:
QStringList tableList;
QStringList T_RigList;
QStringList T_LogList;
QString tableSelction;
QString query;
QString select;
QString from;
QStringList querysDone;
QString TBValue;
QString FBValue;
};
#endif // QUERYBUILDER_H